]> gcc.gnu.org Git - gcc.git/blame - libgomp/configure
ltmain.sh: Update from ToT Libtool.
[gcc.git] / libgomp / configure
CommitLineData
953ff289
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
1cf3d07d
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
953ff289
DN
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME='GNU OpenMP Runtime Library'
418PACKAGE_TARNAME='libgomp'
419PACKAGE_VERSION='1.0'
420PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421PACKAGE_BUGREPORT=''
422
423# Factoring default headers for most tests.
424ac_includes_default="\
425#include <stdio.h>
426#if HAVE_SYS_TYPES_H
427# include <sys/types.h>
428#endif
429#if HAVE_SYS_STAT_H
430# include <sys/stat.h>
431#endif
432#if STDC_HEADERS
433# include <stdlib.h>
434# include <stddef.h>
435#else
436# if HAVE_STDLIB_H
437# include <stdlib.h>
438# endif
439#endif
440#if HAVE_STRING_H
441# if !STDC_HEADERS && HAVE_MEMORY_H
442# include <memory.h>
443# endif
444# include <string.h>
445#endif
446#if HAVE_STRINGS_H
447# include <strings.h>
448#endif
449#if HAVE_INTTYPES_H
450# include <inttypes.h>
451#else
452# if HAVE_STDINT_H
453# include <stdint.h>
454# endif
455#endif
456#if HAVE_UNISTD_H
457# include <unistd.h>
458#endif"
459
1cf3d07d 460ac_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 GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
953ff289
DN
461ac_subst_files=''
462
463# Initialize some variables set by options.
464ac_init_help=
465ac_init_version=false
466# The variables have the same names as the options, with
467# dashes changed to underlines.
468cache_file=/dev/null
469exec_prefix=NONE
470no_create=
471no_recursion=
472prefix=NONE
473program_prefix=NONE
474program_suffix=NONE
475program_transform_name=s,x,x,
476silent=
477site=
478srcdir=
479verbose=
480x_includes=NONE
481x_libraries=NONE
482
483# Installation directory options.
484# These are left unexpanded so users can "make install exec_prefix=/foo"
485# and all the variables that are supposed to be based on exec_prefix
486# by default will actually change.
487# Use braces instead of parens because sh, perl, etc. also accept them.
488bindir='${exec_prefix}/bin'
489sbindir='${exec_prefix}/sbin'
490libexecdir='${exec_prefix}/libexec'
491datadir='${prefix}/share'
492sysconfdir='${prefix}/etc'
493sharedstatedir='${prefix}/com'
494localstatedir='${prefix}/var'
495libdir='${exec_prefix}/lib'
496includedir='${prefix}/include'
497oldincludedir='/usr/include'
498infodir='${prefix}/info'
499mandir='${prefix}/man'
500
501ac_prev=
502for ac_option
503do
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
507 ac_prev=
508 continue
509 fi
510
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
515 case $ac_option in
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir=$ac_optarg ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
533
534 --config-cache | -C)
535 cache_file=config.cache ;;
536
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538 ac_prev=datadir ;;
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
541 datadir=$ac_optarg ;;
542
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
551
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
562 esac
563 eval "enable_$ac_feature='$ac_optarg'" ;;
564
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
573
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
577
578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
584
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
589
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
596
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
601
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 libdir=$ac_optarg ;;
606
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
613
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
622
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 mandir=$ac_optarg ;;
627
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
631
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
634 no_create=yes ;;
635
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
639
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
648
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 prefix=$ac_optarg ;;
653
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
660
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
667
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
684
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
688
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
693 sbindir=$ac_optarg ;;
694
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
704 sharedstatedir=$ac_optarg ;;
705
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
709 site=$ac_optarg ;;
710
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 srcdir=$ac_optarg ;;
715
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
722
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
727
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
730
731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
733
734 -with-* | --with-*)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
744 esac
745 eval "with_$ac_package='$ac_optarg'" ;;
746
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
755
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
759
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
766
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
773
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
777 ;;
778
779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
787 export $ac_envvar ;;
788
789 *)
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795 ;;
796
797 esac
798done
799
800if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
804fi
805
806# Be sure to have absolute paths.
807for ac_var in exec_prefix prefix
808do
809 eval ac_val=$`echo $ac_var`
810 case $ac_val in
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
814 esac
815done
816
817# Be sure to have absolute paths.
818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
820do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827done
828
829# There might be people who depend on the old broken behavior: `$host'
830# used to hold the argument of --host etc.
831# FIXME: To remove some day.
832build=$build_alias
833host=$host_alias
834target=$target_alias
835
836# FIXME: To remove some day.
837if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
844 fi
845fi
846
847ac_tool_prefix=
848test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850test "$silent" = yes && exec 6>/dev/null
851
852
853# Find the source files, if location was not specified.
854if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
863echo X"$0" |
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
869 srcdir=$ac_confdir
1cf3d07d 870 if test ! -r $srcdir/$ac_unique_file; then
953ff289
DN
871 srcdir=..
872 fi
873else
874 ac_srcdir_defaulted=no
875fi
1cf3d07d 876if test ! -r $srcdir/$ac_unique_file; then
953ff289
DN
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
883 fi
884fi
1cf3d07d 885(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
953ff289
DN
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889ac_env_build_alias_set=${build_alias+set}
890ac_env_build_alias_value=$build_alias
891ac_cv_env_build_alias_set=${build_alias+set}
892ac_cv_env_build_alias_value=$build_alias
893ac_env_host_alias_set=${host_alias+set}
894ac_env_host_alias_value=$host_alias
895ac_cv_env_host_alias_set=${host_alias+set}
896ac_cv_env_host_alias_value=$host_alias
897ac_env_target_alias_set=${target_alias+set}
898ac_env_target_alias_value=$target_alias
899ac_cv_env_target_alias_set=${target_alias+set}
900ac_cv_env_target_alias_value=$target_alias
1cf3d07d
SE
901ac_env_CPP_set=${CPP+set}
902ac_env_CPP_value=$CPP
903ac_cv_env_CPP_set=${CPP+set}
904ac_cv_env_CPP_value=$CPP
905ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906ac_env_CPPFLAGS_value=$CPPFLAGS
907ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_cv_env_CPPFLAGS_value=$CPPFLAGS
953ff289
DN
909ac_env_FC_set=${FC+set}
910ac_env_FC_value=$FC
911ac_cv_env_FC_set=${FC+set}
912ac_cv_env_FC_value=$FC
913ac_env_FCFLAGS_set=${FCFLAGS+set}
914ac_env_FCFLAGS_value=$FCFLAGS
915ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916ac_cv_env_FCFLAGS_value=$FCFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
953ff289
DN
921
922#
923# Report the --help message.
924#
925if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
928 cat <<_ACEOF
929\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
930
931Usage: $0 [OPTION]... [VAR=VALUE]...
932
933To assign environment variables (e.g., CC, CFLAGS...), specify them as
934VAR=VALUE. See below for descriptions of some of the useful variables.
935
936Defaults for the options are specified in brackets.
937
938Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
948
949_ACEOF
950
951 cat <<_ACEOF
952Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
954 [$ac_default_prefix]
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 [PREFIX]
957
958By default, \`make install' will install all the files in
959\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961for instance \`--prefix=\$HOME'.
962
963For better control, use the options below.
964
965Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
978_ACEOF
979
980 cat <<\_ACEOF
981
982Program names:
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
986
987System types:
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 --target=TARGET configure for building compilers for TARGET [HOST]
991_ACEOF
992fi
993
994if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997 esac
998 cat <<\_ACEOF
999
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-version-specific-runtime-libs
1004 Specify that runtime libraries should be installed
1005 in a compiler-specific directory [default=no]
fe5568e9
JJ
1006 --enable-linux-futex Use the Linux futex system call
1007 [default=default]
627ab4b8
TT
1008 --enable-generated-files-in-srcdir
1009 put copies of generated files in source dir intended
1010 for creating source tarballs for users without
1011 texinfo bison or flex. [default=no]
953ff289
DN
1012 --enable-multilib build many library versions (default)
1013 --disable-dependency-tracking speeds up one-time build
1014 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
1015 --enable-shared[=PKGS]
1016 build shared libraries [default=yes]
1017 --enable-static[=PKGS]
1018 build static libraries [default=yes]
1019 --enable-fast-install[=PKGS]
1020 optimize for fast installation [default=yes]
953ff289 1021 --disable-libtool-lock avoid locking (might break parallel builds)
c41303c6
RH
1022 --enable-maintainer-mode enable make rules and dependencies not useful
1023 (and sometimes confusing) to the casual installer
2fb31455 1024 --enable-tls Use thread-local storage [default=yes]
953ff289
DN
1025 --enable-symvers=STYLE enables symbol versioning of the shared library
1026 [default=yes]
1027
1028Optional Packages:
1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1031 --with-pic try to use only PIC/non-PIC objects [default=use
1032 both]
1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
953ff289
DN
1034
1035Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1cf3d07d 1042 CPP C preprocessor
953ff289
DN
1043 FC Fortran compiler command
1044 FCFLAGS Fortran compiler flags
953ff289
DN
1045
1046Use these variables to override the choices made by `configure' or to help
1047it to find libraries and programs with nonstandard names/locations.
1048
1049_ACEOF
1050fi
1051
1052if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1058
1059if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063else
1064 ac_dir_suffix= ac_top_builddir=
1065fi
1066
1067case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081esac
1082
1083# Do not use `cd foo && pwd` to compute absolute paths, because
1084# the directories may not exist.
1085case `pwd` in
1086.) ac_abs_builddir="$ac_dir";;
1087*)
1088 case "$ac_dir" in
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_top_builddir=${ac_top_builddir}.;;
1096*)
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_srcdir=$ac_srcdir;;
1105*)
1106 case $ac_srcdir in
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_srcdir=$ac_top_srcdir;;
1114*)
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 esac;;
1120esac
1121
1122 cd $ac_dir
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1125 echo
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1128 echo
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1132 echo
1133 $ac_configure --help
1134 else
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 fi
d349482e 1137 cd $ac_popdir
953ff289
DN
1138 done
1139fi
1140
1141test -n "$ac_init_help" && exit 0
1142if $ac_init_version; then
1143 cat <<\_ACEOF
1144GNU OpenMP Runtime Library configure 1.0
1145generated by GNU Autoconf 2.59
1146
1147Copyright (C) 2003 Free Software Foundation, Inc.
1148This configure script is free software; the Free Software Foundation
1149gives unlimited permission to copy, distribute and modify it.
1150_ACEOF
1151 exit 0
1152fi
1153exec 5>config.log
1154cat >&5 <<_ACEOF
1155This file contains any messages produced by compilers while
1156running configure, to aid debugging if configure makes a mistake.
1157
1158It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
1160
1161 $ $0 $@
1162
1163_ACEOF
1164{
1165cat <<_ASUNAME
1166## --------- ##
1167## Platform. ##
1168## --------- ##
1169
1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187_ASUNAME
1188
1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190for as_dir in $PATH
1191do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195done
1196
1197} >&5
1198
1199cat >&5 <<_ACEOF
1200
1201
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
1205
1206_ACEOF
1207
1208
1209# Keep a trace of the command line.
1210# Strip out --no-create and --no-recursion so they do not pile up.
1211# Strip out --silent because we don't want to record it for future runs.
1212# Also quote any args containing shell meta-characters.
1213# Make two passes to allow for proper duplicate-argument suppression.
1214ac_configure_args=
1215ac_configure_args0=
1216ac_configure_args1=
1217ac_sep=
1218ac_must_keep_next=false
1219for ac_pass in 1 2
1220do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256done
1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260# When interrupted or exit'd, cleanup temporary files, and complete
1261# config.log. We remove comments because anyway the quotes in there
1262# would cause problems or look ugly.
1263# WARNING: Be sure not to use single quotes in there, as some shells,
1264# such as our DU 5.0 friend, will then `close' the trap.
1265trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271## ---------------- ##
1272## Cache variables. ##
1273## ---------------- ##
1274_ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277{
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290}
1291 echo
1292
1293 cat <<\_ASBOX
1294## ----------------- ##
1295## Output variables. ##
1296## ----------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308## ------------- ##
1309## Output files. ##
1310## ------------- ##
1311_ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323## ----------- ##
1324## confdefs.h. ##
1325## ----------- ##
1326_ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341done
1342ac_signal=0
1343
1344# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345rm -rf conftest* confdefs.h
1346# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347echo >confdefs.h
1348
1349# Predefined preprocessor variables.
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_NAME "$PACKAGE_NAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_STRING "$PACKAGE_STRING"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373_ACEOF
1374
1375
1376# Let the site file select an alternate cache file if it wants to.
1377# Prefer explicitly selected file to automatically selected ones.
1378if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384fi
1385for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392done
1393
1394if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409fi
1410
1411# Check that the precious variables saved in the cache have kept the same
1412# value.
1413ac_cache_corrupted=false
1414for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1435echo "$as_me: former value: $ac_old_val" >&2;}
1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1437echo "$as_me: current value: $ac_new_val" >&2;}
1438 ac_cache_corrupted=:
1439 fi;;
1440 esac
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1443 case $ac_new_val in
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1447 esac
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451 esac
1452 fi
1453done
1454if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460fi
1461
1462ac_ext=c
1463ac_cpp='$CPP $CPPFLAGS'
1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494 ac_config_headers="$ac_config_headers config.h"
1495
1496
1497# -------
1498# Options
1499# -------
1500
1501echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504if test "${enable_version_specific_runtime_libs+set}" = set; then
1505 enableval="$enable_version_specific_runtime_libs"
1506
1507 case "$enableval" in
1508 yes|no) ;;
1509 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511 { (exit 1); exit 1; }; } ;;
1512 esac
1513
1514else
1515 enable_version_specific_runtime_libs=no
1516fi;
1517
1518echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1520
1521echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1522echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1523 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1524if test "${enable_linux_futex+set}" = set; then
1525 enableval="$enable_linux_futex"
1526
1527 case "$enableval" in
fe5568e9
JJ
1528 yes|no|default) ;;
1529 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1530echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
953ff289 1531 { (exit 1); exit 1; }; } ;;
fe5568e9 1532 esac
953ff289
DN
1533
1534else
fe5568e9 1535 enable_linux_futex=default
953ff289
DN
1536fi;
1537
1538echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1539echo "${ECHO_T}$enable_linux_futex" >&6
1540
627ab4b8
TT
1541# We would like our source tree to be readonly. However when releases or
1542# pre-releases are generated, the flex/bison generated files as well as the
1543# various formats of manuals need to be included along with the rest of the
1544# sources. Therefore we have --enable-generated-files-in-srcdir to do
1545# just that.
1546echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1547echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1548 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1549if test "${enable_generated_files_in_srcdir+set}" = set; then
1550 enableval="$enable_generated_files_in_srcdir"
1551
1552 case "$enableval" in
1553 yes|no) ;;
1554 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1555echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1556 { (exit 1); exit 1; }; } ;;
1557 esac
1558
1559else
1560 enable_generated_files_in_srcdir=no
1561fi;
1562
1563echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1564echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1565
1566
1567if test "$enable_generated_files_in_srcdir" = yes; then
1568 GENINSRC_TRUE=
1569 GENINSRC_FALSE='#'
1570else
1571 GENINSRC_TRUE='#'
1572 GENINSRC_FALSE=
1573fi
1574
1575
1576
953ff289
DN
1577# -------
1578# -------
1579
1580# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1581#
1582# You will slowly go insane if you do not grok the following fact: when
1583# building this library, the top-level /target/ becomes the library's /host/.
1584#
1585# configure then causes --target to default to --host, exactly like any
1586# other package using autoconf. Therefore, 'target' and 'host' will
1587# always be the same. This makes sense both for native and cross compilers
1588# just think about it for a little while. :-)
1589#
1590# Also, if this library is being configured as part of a cross compiler, the
1591# top-level configure script will pass the "real" host as $with_cross_host.
1592#
1593# Do not delete or change the following two lines. For why, see
1594# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1595ac_aux_dir=
1596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597 if test -f $ac_dir/install-sh; then
1598 ac_aux_dir=$ac_dir
1599 ac_install_sh="$ac_aux_dir/install-sh -c"
1600 break
1601 elif test -f $ac_dir/install.sh; then
1602 ac_aux_dir=$ac_dir
1603 ac_install_sh="$ac_aux_dir/install.sh -c"
1604 break
1605 elif test -f $ac_dir/shtool; then
1606 ac_aux_dir=$ac_dir
1607 ac_install_sh="$ac_aux_dir/shtool install -c"
1608 break
1609 fi
1610done
1611if test -z "$ac_aux_dir"; then
1612 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614 { (exit 1); exit 1; }; }
1615fi
1616ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619
1620# Make sure we can run config.sub.
1621$ac_config_sub sun4 >/dev/null 2>&1 ||
1622 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624 { (exit 1); exit 1; }; }
1625
1626echo "$as_me:$LINENO: checking build system type" >&5
1627echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628if test "${ac_cv_build+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 ac_cv_build_alias=$build_alias
1632test -z "$ac_cv_build_alias" &&
1633 ac_cv_build_alias=`$ac_config_guess`
1634test -z "$ac_cv_build_alias" &&
1635 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637 { (exit 1); exit 1; }; }
1638ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645echo "${ECHO_T}$ac_cv_build" >&6
1646build=$ac_cv_build
1647build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652echo "$as_me:$LINENO: checking host system type" >&5
1653echo $ECHO_N "checking host system type... $ECHO_C" >&6
1654if test "${ac_cv_host+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656else
1657 ac_cv_host_alias=$host_alias
1658test -z "$ac_cv_host_alias" &&
1659 ac_cv_host_alias=$ac_cv_build_alias
1660ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1662echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1663 { (exit 1); exit 1; }; }
1664
1665fi
1666echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1667echo "${ECHO_T}$ac_cv_host" >&6
1668host=$ac_cv_host
1669host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1670host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1671host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672
1673
1674echo "$as_me:$LINENO: checking target system type" >&5
1675echo $ECHO_N "checking target system type... $ECHO_C" >&6
1676if test "${ac_cv_target+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679 ac_cv_target_alias=$target_alias
1680test "x$ac_cv_target_alias" = "x" &&
1681 ac_cv_target_alias=$ac_cv_host_alias
1682ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1683 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1684echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687fi
1688echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1689echo "${ECHO_T}$ac_cv_target" >&6
1690target=$ac_cv_target
1691target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1692target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1693target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694
1695
1696# The aliases save the names the user supplied, while $host etc.
1697# will get canonicalized.
1698test -n "$target_alias" &&
1699 test "$program_prefix$program_suffix$program_transform_name" = \
1700 NONENONEs,x,x, &&
1701 program_prefix=${target_alias}-
1702target_alias=${target_alias-$host_alias}
1703
1704# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1705# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1706# 1.9.0: minimum required version
1707# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1708# of other PACKAGE_* variables will, however, and there's nothing
1709# we can do about that; they come from AC_INIT).
1710# foreign: we don't follow the normal rules for GNU packages (no COPYING
1711# file in the top srcdir, etc, etc), so stop complaining.
953ff289
DN
1712# -Wall: turns on all automake warnings...
1713# -Wno-portability: ...except this one, since GNU make is required.
1714# -Wno-override: ... and this one, since we do want this in testsuite.
1715am__api_version="1.9"
1716# Find a good install program. We prefer a C program (faster),
1717# so one script is as good as another. But avoid the broken or
1718# incompatible versions:
1719# SysV /etc/install, /usr/sbin/install
1720# SunOS /usr/etc/install
1721# IRIX /sbin/install
1722# AIX /bin/install
1723# AmigaOS /C/install, which installs bootblocks on floppy discs
1724# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1725# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1726# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1727# OS/2's system install, which has a completely different semantic
1728# ./install, which can be erroneously created by make from ./install.sh.
1729echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1730echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1731if test -z "$INSTALL"; then
1732if test "${ac_cv_path_install+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 # Account for people who put trailing slashes in PATH elements.
1741case $as_dir/ in
1742 ./ | .// | /cC/* | \
1743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1744 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1745 /usr/ucb/* ) ;;
1746 *)
1747 # OSF1 and SCO ODT 3.0 have their own names for install.
1748 # Don't use installbsd from OSF since it installs stuff as root
1749 # by default.
1750 for ac_prog in ginstall scoinst install; do
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1753 if test $ac_prog = install &&
1754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755 # AIX install. It has an incompatible calling convention.
1756 :
1757 elif test $ac_prog = install &&
1758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1759 # program-specific install script used by HP pwplus--don't use.
1760 :
1761 else
1762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1763 break 3
1764 fi
1765 fi
1766 done
1767 done
1768 ;;
1769esac
1770done
1771
1772
1773fi
1774 if test "${ac_cv_path_install+set}" = set; then
1775 INSTALL=$ac_cv_path_install
1776 else
1777 # As a last resort, use the slow shell script. We don't cache a
1778 # path for INSTALL within a source directory, because that will
1779 # break other packages using the cache if that directory is
1780 # removed, or if the path is relative.
1781 INSTALL=$ac_install_sh
1782 fi
1783fi
1784echo "$as_me:$LINENO: result: $INSTALL" >&5
1785echo "${ECHO_T}$INSTALL" >&6
1786
1787# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1788# It thinks the first close brace ends the variable substitution.
1789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1790
1791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1792
1793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1794
1795echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1796echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1797# Just in case
1798sleep 1
1799echo timestamp > conftest.file
1800# Do `set' in a subshell so we don't clobber the current shell's
1801# arguments. Must try -L first in case configure is actually a
1802# symlink; some systems play weird games with the mod time of symlinks
1803# (eg FreeBSD returns the mod time of the symlink's containing
1804# directory).
1805if (
1806 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1807 if test "$*" = "X"; then
1808 # -L didn't work.
1809 set X `ls -t $srcdir/configure conftest.file`
1810 fi
1811 rm -f conftest.file
1812 if test "$*" != "X $srcdir/configure conftest.file" \
1813 && test "$*" != "X conftest.file $srcdir/configure"; then
1814
1815 # If neither matched, then we have a broken ls. This can happen
1816 # if, for instance, CONFIG_SHELL is bash and it inherits a
1817 # broken ls alias from the environment. This has actually
1818 # happened. Such a system could not be considered "sane".
1819 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1820alias in your environment" >&5
1821echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1822alias in your environment" >&2;}
1823 { (exit 1); exit 1; }; }
1824 fi
1825
1826 test "$2" = conftest.file
1827 )
1828then
1829 # Ok.
1830 :
1831else
1832 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1833Check your system clock" >&5
1834echo "$as_me: error: newly created file is older than distributed files!
1835Check your system clock" >&2;}
1836 { (exit 1); exit 1; }; }
1837fi
1838echo "$as_me:$LINENO: result: yes" >&5
1839echo "${ECHO_T}yes" >&6
1840test "$program_prefix" != NONE &&
1841 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1842# Use a double $ so make ignores it.
1843test "$program_suffix" != NONE &&
1844 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1845# Double any \ or $. echo might interpret backslashes.
1846# By default was `s,x,x', remove it if useless.
1847cat <<\_ACEOF >conftest.sed
1848s/[\\$]/&&/g;s/;s,x,x,$//
1849_ACEOF
1850program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1851rm conftest.sed
1852
1853# expand $ac_aux_dir to an absolute path
1854am_aux_dir=`cd $ac_aux_dir && pwd`
1855
1856test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1857# Use eval to expand $SHELL
1858if eval "$MISSING --run true"; then
1859 am_missing_run="$MISSING --run "
1860else
1861 am_missing_run=
1862 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1863echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1864fi
1865
1866if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1867 # We used to keeping the `.' as first argument, in order to
1868 # allow $(mkdir_p) to be used without argument. As in
1869 # $(mkdir_p) $(somedir)
1870 # where $(somedir) is conditionally defined. However this is wrong
1871 # for two reasons:
1872 # 1. if the package is installed by a user who cannot write `.'
1873 # make install will fail,
1874 # 2. the above comment should most certainly read
1875 # $(mkdir_p) $(DESTDIR)$(somedir)
1876 # so it does not work when $(somedir) is undefined and
1877 # $(DESTDIR) is not.
1878 # To support the latter case, we have to write
1879 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1880 # so the `.' trick is pointless.
1881 mkdir_p='mkdir -p --'
1882else
1883 # On NextStep and OpenStep, the `mkdir' command does not
1884 # recognize any option. It will interpret all options as
1885 # directories to create, and then abort because `.' already
1886 # exists.
1887 for d in ./-p ./--version;
1888 do
1889 test -d $d && rmdir $d
1890 done
1891 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1892 if test -f "$ac_aux_dir/mkinstalldirs"; then
1893 mkdir_p='$(mkinstalldirs)'
1894 else
1895 mkdir_p='$(install_sh) -d'
1896 fi
1897fi
1898
1899for ac_prog in gawk mawk nawk awk
1900do
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902set dummy $ac_prog; ac_word=$2
1903echo "$as_me:$LINENO: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_AWK+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908 if test -n "$AWK"; then
1909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1910else
1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_AWK="$ac_prog"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922done
1923done
1924
1925fi
1926fi
1927AWK=$ac_cv_prog_AWK
1928if test -n "$AWK"; then
1929 echo "$as_me:$LINENO: result: $AWK" >&5
1930echo "${ECHO_T}$AWK" >&6
1931else
1932 echo "$as_me:$LINENO: result: no" >&5
1933echo "${ECHO_T}no" >&6
1934fi
1935
1936 test -n "$AWK" && break
1937done
1938
1939echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1940echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1941set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1942if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 cat >conftest.make <<\_ACEOF
1946all:
1947 @echo 'ac_maketemp="$(MAKE)"'
1948_ACEOF
1949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1950eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1951if test -n "$ac_maketemp"; then
1952 eval ac_cv_prog_make_${ac_make}_set=yes
1953else
1954 eval ac_cv_prog_make_${ac_make}_set=no
1955fi
1956rm -f conftest.make
1957fi
1958if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1959 echo "$as_me:$LINENO: result: yes" >&5
1960echo "${ECHO_T}yes" >&6
1961 SET_MAKE=
1962else
1963 echo "$as_me:$LINENO: result: no" >&5
1964echo "${ECHO_T}no" >&6
1965 SET_MAKE="MAKE=${MAKE-make}"
1966fi
1967
1968rm -rf .tst 2>/dev/null
1969mkdir .tst 2>/dev/null
1970if test -d .tst; then
1971 am__leading_dot=.
1972else
1973 am__leading_dot=_
1974fi
1975rmdir .tst 2>/dev/null
1976
1977# test to see if srcdir already configured
1978if test "`cd $srcdir && pwd`" != "`pwd`" &&
1979 test -f $srcdir/config.status; then
1980 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1981echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1982 { (exit 1); exit 1; }; }
1983fi
1984
1985# test whether we have cygpath
1986if test -z "$CYGPATH_W"; then
1987 if (cygpath --version) >/dev/null 2>/dev/null; then
1988 CYGPATH_W='cygpath -w'
1989 else
1990 CYGPATH_W=echo
1991 fi
1992fi
1993
1994
1995# Define the identity of the package.
1996 PACKAGE='libgomp'
1997 VERSION='1.0'
1998
1999
2000cat >>confdefs.h <<_ACEOF
2001#define PACKAGE "$PACKAGE"
2002_ACEOF
2003
2004
2005cat >>confdefs.h <<_ACEOF
2006#define VERSION "$VERSION"
2007_ACEOF
2008
2009# Some tools Automake needs.
2010
2011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2012
2013
2014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2015
2016
2017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2018
2019
2020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2021
2022
2023MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2024
2025install_sh=${install_sh-"$am_aux_dir/install-sh"}
2026
2027# Installed binaries are usually stripped using `strip' when the user
2028# run `make install-strip'. However `strip' might not be the right
2029# tool to use in cross-compilation environments, therefore Automake
2030# will honor the `STRIP' environment variable to overrule this program.
2031if test "$cross_compiling" != no; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2034set dummy ${ac_tool_prefix}strip; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037if test "${ac_cv_prog_STRIP+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040 if test -n "$STRIP"; then
2041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055done
2056
2057fi
2058fi
2059STRIP=$ac_cv_prog_STRIP
2060if test -n "$STRIP"; then
2061 echo "$as_me:$LINENO: result: $STRIP" >&5
2062echo "${ECHO_T}$STRIP" >&6
2063else
2064 echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068fi
2069if test -z "$ac_cv_prog_STRIP"; then
2070 ac_ct_STRIP=$STRIP
2071 # Extract the first word of "strip", so it can be a program name with args.
2072set dummy strip; ac_word=$2
2073echo "$as_me:$LINENO: checking for $ac_word" >&5
2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078 if test -n "$ac_ct_STRIP"; then
2079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_STRIP="strip"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092done
2093done
2094
2095 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2096fi
2097fi
2098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2099if test -n "$ac_ct_STRIP"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2101echo "${ECHO_T}$ac_ct_STRIP" >&6
2102else
2103 echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6
2105fi
2106
2107 STRIP=$ac_ct_STRIP
2108else
2109 STRIP="$ac_cv_prog_STRIP"
2110fi
2111
2112fi
2113INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2114
2115# We need awk for the "check" target. The system "awk" is bad on
2116# some platforms.
2117# Always define AMTAR for backward compatibility.
2118
2119AMTAR=${AMTAR-"${am_missing_run}tar"}
2120
2121am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2122
2123
2124
2125
2126
2127# Default to --enable-multilib
2128# Check whether --enable-multilib or --disable-multilib was given.
2129if test "${enable_multilib+set}" = set; then
2130 enableval="$enable_multilib"
2131 case "$enableval" in
2132 yes) multilib=yes ;;
2133 no) multilib=no ;;
2134 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2135echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2136 { (exit 1); exit 1; }; } ;;
2137 esac
2138else
2139 multilib=yes
2140fi;
2141
2142# We may get other options which we leave undocumented:
2143# --with-target-subdir, --with-multisrctop, --with-multisubdir
2144# See config-ml.in if you want the gory details.
2145
2146if test "$srcdir" = "."; then
2147 if test "$with_target_subdir" != "."; then
2148 multi_basedir="$srcdir/$with_multisrctop../.."
2149 else
2150 multi_basedir="$srcdir/$with_multisrctop.."
2151 fi
2152else
2153 multi_basedir="$srcdir/.."
2154fi
2155
2156
5b043f08
GK
2157# Even if the default multilib is not a cross compilation,
2158# it may be that some of the other multilibs are.
2159if test $cross_compiling = no && test $multilib = yes \
2160 && test "x${with_multisubdir}" != x ; then
2161 cross_compiling=maybe
2162fi
2163
953ff289
DN
2164 ac_config_commands="$ac_config_commands default-1"
2165
2166
2167# Calculate toolexeclibdir
2168# Also toolexecdir, though it's only used in toolexeclibdir
2169case ${enable_version_specific_runtime_libs} in
2170 yes)
2171 # Need the gcc compiler version to know where to install libraries
2172 # and header files if --enable-version-specific-runtime-libs option
2173 # is selected.
2174 toolexecdir='$(libdir)/gcc/$(target_alias)'
2175 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2176 ;;
2177 no)
2178 if test -n "$with_cross_host" &&
2179 test x"$with_cross_host" != x"no"; then
2180 # Install a library built with a cross compiler in tooldir, not libdir.
2181 toolexecdir='$(exec_prefix)/$(target_alias)'
2182 toolexeclibdir='$(toolexecdir)/lib'
2183 else
2184 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2185 toolexeclibdir='$(libdir)'
2186 fi
2187 multi_os_directory=`$CC -print-multi-os-directory`
2188 case $multi_os_directory in
2189 .) ;; # Avoid trailing /.
2190 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2191 esac
2192 ;;
2193esac
2194
2195
2196
2197# Check the compiler.
2198# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2199# We must force CC to /not/ be precious variables; otherwise
2200# the wrong, non-multilib-adjusted value will be used in multilibs.
2201# As a side effect, we have to subst CFLAGS ourselves.
2202
2203
2204
2205ac_ext=c
2206ac_cpp='$CPP $CPPFLAGS'
2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2212set dummy ${ac_tool_prefix}gcc; ac_word=$2
2213echo "$as_me:$LINENO: checking for $ac_word" >&5
2214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2220else
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2231 fi
2232done
2233done
2234
2235fi
2236fi
2237CC=$ac_cv_prog_CC
2238if test -n "$CC"; then
2239 echo "$as_me:$LINENO: result: $CC" >&5
2240echo "${ECHO_T}$CC" >&6
2241else
2242 echo "$as_me:$LINENO: result: no" >&5
2243echo "${ECHO_T}no" >&6
2244fi
2245
2246fi
2247if test -z "$ac_cv_prog_CC"; then
2248 ac_ct_CC=$CC
2249 # Extract the first word of "gcc", so it can be a program name with args.
2250set dummy gcc; ac_word=$2
2251echo "$as_me:$LINENO: checking for $ac_word" >&5
2252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256 if test -n "$ac_ct_CC"; then
2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258else
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_ac_ct_CC="gcc"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2269 fi
2270done
2271done
2272
2273fi
2274fi
2275ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276if test -n "$ac_ct_CC"; then
2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278echo "${ECHO_T}$ac_ct_CC" >&6
2279else
2280 echo "$as_me:$LINENO: result: no" >&5
2281echo "${ECHO_T}no" >&6
2282fi
2283
2284 CC=$ac_ct_CC
2285else
2286 CC="$ac_cv_prog_CC"
2287fi
2288
2289if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2292set dummy ${ac_tool_prefix}cc; ac_word=$2
2293echo "$as_me:$LINENO: checking for $ac_word" >&5
2294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_CC="${ac_tool_prefix}cc"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2311 fi
2312done
2313done
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
2319 echo "$as_me:$LINENO: result: $CC" >&5
2320echo "${ECHO_T}$CC" >&6
2321else
2322 echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6
2324fi
2325
2326fi
2327if test -z "$ac_cv_prog_CC"; then
2328 ac_ct_CC=$CC
2329 # Extract the first word of "cc", so it can be a program name with args.
2330set dummy cc; ac_word=$2
2331echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 if test -n "$ac_ct_CC"; then
2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_CC="cc"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2349 fi
2350done
2351done
2352
2353fi
2354fi
2355ac_ct_CC=$ac_cv_prog_ac_ct_CC
2356if test -n "$ac_ct_CC"; then
2357 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2358echo "${ECHO_T}$ac_ct_CC" >&6
2359else
2360 echo "$as_me:$LINENO: result: no" >&5
2361echo "${ECHO_T}no" >&6
2362fi
2363
2364 CC=$ac_ct_CC
2365else
2366 CC="$ac_cv_prog_CC"
2367fi
2368
2369fi
2370if test -z "$CC"; then
2371 # Extract the first word of "cc", so it can be a program name with args.
2372set dummy cc; ac_word=$2
2373echo "$as_me:$LINENO: checking for $ac_word" >&5
2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375if test "${ac_cv_prog_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2380else
2381 ac_prog_rejected=no
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2390 ac_prog_rejected=yes
2391 continue
2392 fi
2393 ac_cv_prog_CC="cc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397done
2398done
2399
2400if test $ac_prog_rejected = yes; then
2401 # We found a bogon in the path, so make sure we never use it.
2402 set dummy $ac_cv_prog_CC
2403 shift
2404 if test $# != 0; then
2405 # We chose a different compiler from the bogus one.
2406 # However, it has the same basename, so the bogon will be chosen
2407 # first if we set CC to just the basename; use the full file name.
2408 shift
2409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2410 fi
2411fi
2412fi
2413fi
2414CC=$ac_cv_prog_CC
2415if test -n "$CC"; then
2416 echo "$as_me:$LINENO: result: $CC" >&5
2417echo "${ECHO_T}$CC" >&6
2418else
2419 echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6
2421fi
2422
2423fi
2424if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 for ac_prog in cl
2427 do
2428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2430echo "$as_me:$LINENO: checking for $ac_word" >&5
2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449done
2450done
2451
2452fi
2453fi
2454CC=$ac_cv_prog_CC
2455if test -n "$CC"; then
2456 echo "$as_me:$LINENO: result: $CC" >&5
2457echo "${ECHO_T}$CC" >&6
2458else
2459 echo "$as_me:$LINENO: result: no" >&5
2460echo "${ECHO_T}no" >&6
2461fi
2462
2463 test -n "$CC" && break
2464 done
2465fi
2466if test -z "$CC"; then
2467 ac_ct_CC=$CC
2468 for ac_prog in cl
2469do
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471set dummy $ac_prog; ac_word=$2
2472echo "$as_me:$LINENO: checking for $ac_word" >&5
2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_ac_ct_CC="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491done
2492done
2493
2494fi
2495fi
2496ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497if test -n "$ac_ct_CC"; then
2498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499echo "${ECHO_T}$ac_ct_CC" >&6
2500else
2501 echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6
2503fi
2504
2505 test -n "$ac_ct_CC" && break
2506done
2507
2508 CC=$ac_ct_CC
2509fi
2510
2511fi
2512
2513
2514test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515See \`config.log' for more details." >&5
2516echo "$as_me: error: no acceptable C compiler found in \$PATH
2517See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2519
2520# Provide some information about the compiler.
2521echo "$as_me:$LINENO:" \
2522 "checking for C compiler version" >&5
2523ac_compiler=`set X $ac_compile; echo $2`
2524{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525 (eval $ac_compiler --version </dev/null >&5) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530 (eval $ac_compiler -v </dev/null >&5) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2535 (eval $ac_compiler -V </dev/null >&5) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2539
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h. */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h. */
2546
2547int
2548main ()
2549{
2550
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555ac_clean_files_save=$ac_clean_files
2556ac_clean_files="$ac_clean_files a.out a.exe b.out"
2557# Try to create an executable without -o first, disregard a.out.
2558# It will help us diagnose broken compilers, and finding out an intuition
2559# of exeext.
2560echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2561echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2562ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2563if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2564 (eval $ac_link_default) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; then
2568 # Find the output, starting from the most likely. This scheme is
2569# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2570# resort.
2571
2572# Be careful to initialize this variable, since it used to be cached.
2573# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2574ac_cv_exeext=
2575# b.out is created by i960 compilers.
2576for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2577do
2578 test -f "$ac_file" || continue
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2581 ;;
2582 conftest.$ac_ext )
2583 # This is the source file.
2584 ;;
2585 [ab].out )
2586 # We found the default executable, but exeext='' is most
2587 # certainly right.
2588 break;;
2589 *.* )
2590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591 # FIXME: I believe we export ac_cv_exeext for Libtool,
2592 # but it would be cool to find out if it's true. Does anybody
2593 # maintain Libtool? --akim.
2594 export ac_cv_exeext
2595 break;;
2596 * )
2597 break;;
2598 esac
2599done
2600else
2601 echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2605See \`config.log' for more details." >&5
2606echo "$as_me: error: C compiler cannot create executables
2607See \`config.log' for more details." >&2;}
2608 { (exit 77); exit 77; }; }
2609fi
2610
2611ac_exeext=$ac_cv_exeext
2612echo "$as_me:$LINENO: result: $ac_file" >&5
2613echo "${ECHO_T}$ac_file" >&6
2614
2615# Check the compiler produces executables we can run. If not, either
2616# the compiler is broken, or we cross compile.
2617echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2618echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2619# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2620# If not cross compiling, check that we can run a simple program.
2621if test "$cross_compiling" != yes; then
2622 if { ac_try='./$ac_file'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 cross_compiling=no
2629 else
2630 if test "$cross_compiling" = maybe; then
2631 cross_compiling=yes
2632 else
2633 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2634If you meant to cross compile, use \`--host'.
2635See \`config.log' for more details." >&5
2636echo "$as_me: error: cannot run C compiled programs.
2637If you meant to cross compile, use \`--host'.
2638See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2640 fi
2641 fi
2642fi
2643echo "$as_me:$LINENO: result: yes" >&5
2644echo "${ECHO_T}yes" >&6
2645
2646rm -f a.out a.exe conftest$ac_cv_exeext b.out
2647ac_clean_files=$ac_clean_files_save
2648# Check the compiler produces executables we can run. If not, either
2649# the compiler is broken, or we cross compile.
2650echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2651echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2652echo "$as_me:$LINENO: result: $cross_compiling" >&5
2653echo "${ECHO_T}$cross_compiling" >&6
2654
2655echo "$as_me:$LINENO: checking for suffix of executables" >&5
2656echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2658 (eval $ac_link) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; then
2662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2663# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2664# work properly (i.e., refer to `conftest.exe'), while it won't with
2665# `rm'.
2666for ac_file in conftest.exe conftest conftest.*; do
2667 test -f "$ac_file" || continue
2668 case $ac_file in
2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2671 export ac_cv_exeext
2672 break;;
2673 * ) break;;
2674 esac
2675done
2676else
2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2678See \`config.log' for more details." >&5
2679echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2680See \`config.log' for more details." >&2;}
2681 { (exit 1); exit 1; }; }
2682fi
2683
2684rm -f conftest$ac_cv_exeext
2685echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2686echo "${ECHO_T}$ac_cv_exeext" >&6
2687
2688rm -f conftest.$ac_ext
2689EXEEXT=$ac_cv_exeext
2690ac_exeext=$EXEEXT
2691echo "$as_me:$LINENO: checking for suffix of object files" >&5
2692echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2693if test "${ac_cv_objext+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h. */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h. */
2702
2703int
2704main ()
2705{
2706
2707 ;
2708 return 0;
2709}
2710_ACEOF
2711rm -f conftest.o conftest.obj
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; then
2717 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2721 break;;
2722 esac
2723done
2724else
2725 echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2729See \`config.log' for more details." >&5
2730echo "$as_me: error: cannot compute suffix of object files: cannot compile
2731See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2733fi
2734
2735rm -f conftest.$ac_cv_objext conftest.$ac_ext
2736fi
2737echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2738echo "${ECHO_T}$ac_cv_objext" >&6
2739OBJEXT=$ac_cv_objext
2740ac_objext=$OBJEXT
2741echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2742echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2743if test "${ac_cv_c_compiler_gnu+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746 cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752
2753int
2754main ()
2755{
2756#ifndef __GNUC__
2757 choke me
2758#endif
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
d349482e
AT
2773 { ac_try='test -z "$ac_c_werror_flag"
2774 || test ! -s conftest.err'
953ff289
DN
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_compiler_gnu=yes
2787else
2788 echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
2790
2791ac_compiler_gnu=no
2792fi
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794ac_cv_c_compiler_gnu=$ac_compiler_gnu
2795
2796fi
2797echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2798echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2799GCC=`test $ac_compiler_gnu = yes && echo yes`
2800ac_test_CFLAGS=${CFLAGS+set}
2801ac_save_CFLAGS=$CFLAGS
2802CFLAGS="-g"
2803echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2804echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2805if test "${ac_cv_prog_cc_g+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808 cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h. */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h. */
2814
2815int
2816main ()
2817{
2818
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext
2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
d349482e
AT
2832 { ac_try='test -z "$ac_c_werror_flag"
2833 || test ! -s conftest.err'
953ff289
DN
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 ac_cv_prog_cc_g=yes
2846else
2847 echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850ac_cv_prog_cc_g=no
2851fi
2852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853fi
2854echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2856if test "$ac_test_CFLAGS" = set; then
2857 CFLAGS=$ac_save_CFLAGS
2858elif test $ac_cv_prog_cc_g = yes; then
2859 if test "$GCC" = yes; then
2860 CFLAGS="-g -O2"
2861 else
2862 CFLAGS="-g"
2863 fi
2864else
2865 if test "$GCC" = yes; then
2866 CFLAGS="-O2"
2867 else
2868 CFLAGS=
2869 fi
2870fi
2871echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2872echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2873if test "${ac_cv_prog_cc_stdc+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876 ac_cv_prog_cc_stdc=no
2877ac_save_CC=$CC
2878cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
2884#include <stdarg.h>
2885#include <stdio.h>
2886#include <sys/types.h>
2887#include <sys/stat.h>
2888/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2889struct buf { int x; };
2890FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891static char *e (p, i)
2892 char **p;
2893 int i;
2894{
2895 return p[i];
2896}
2897static char *f (char * (*g) (char **, int), char **p, ...)
2898{
2899 char *s;
2900 va_list v;
2901 va_start (v,p);
2902 s = g (p, va_arg (v,int));
2903 va_end (v);
2904 return s;
2905}
2906
2907/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2908 function prototypes and stuff, but not '\xHH' hex character constants.
2909 These don't provoke an error unfortunately, instead are silently treated
2910 as 'x'. The following induces an error, until -std1 is added to get
2911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2912 array size at least. It's necessary to write '\x00'==0 to get something
2913 that's true only with -std1. */
2914int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2915
2916int test (int i, double x);
2917struct s1 {int (*f) (int a);};
2918struct s2 {int (*f) (double a);};
2919int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920int argc;
2921char **argv;
2922int
2923main ()
2924{
2925return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930# Don't try gcc -ansi; that turns off useful extensions and
2931# breaks some systems' header files.
2932# AIX -qlanglvl=ansi
2933# Ultrix and OSF/1 -std1
2934# HP-UX 10.20 and later -Ae
2935# HP-UX older versions -Aa -D_HPUX_SOURCE
2936# SVR4 -Xc -D__EXTENSIONS__
2937for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938do
2939 CC="$ac_save_CC $ac_arg"
2940 rm -f conftest.$ac_objext
2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
d349482e
AT
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
953ff289
DN
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 ac_cv_prog_cc_stdc=$ac_arg
2963break
2964else
2965 echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968fi
2969rm -f conftest.err conftest.$ac_objext
2970done
2971rm -f conftest.$ac_ext conftest.$ac_objext
2972CC=$ac_save_CC
2973
2974fi
2975
2976case "x$ac_cv_prog_cc_stdc" in
2977 x|xno)
2978 echo "$as_me:$LINENO: result: none needed" >&5
2979echo "${ECHO_T}none needed" >&6 ;;
2980 *)
2981 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2982echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2983 CC="$CC $ac_cv_prog_cc_stdc" ;;
2984esac
2985
2986# Some people use a C++ compiler to compile C. Since we use `exit',
2987# in C++ we need to declare it. In case someone uses the same compiler
2988# for both compiling C and C++ we need to have the C++ compiler decide
2989# the declaration of exit, since it's the most demanding environment.
2990cat >conftest.$ac_ext <<_ACEOF
2991#ifndef __cplusplus
2992 choke me
2993#endif
2994_ACEOF
2995rm -f conftest.$ac_objext
2996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
d349482e
AT
3004 { ac_try='test -z "$ac_c_werror_flag"
3005 || test ! -s conftest.err'
953ff289
DN
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 for ac_declaration in \
3018 '' \
3019 'extern "C" void std::exit (int) throw (); using std::exit;' \
3020 'extern "C" void std::exit (int); using std::exit;' \
3021 'extern "C" void exit (int) throw ();' \
3022 'extern "C" void exit (int);' \
3023 'void exit (int);'
3024do
3025 cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031$ac_declaration
3032#include <stdlib.h>
3033int
3034main ()
3035{
3036exit (42);
3037 ;
3038 return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext
3042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3044 ac_status=$?
3045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
d349482e
AT
3050 { ac_try='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
953ff289
DN
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 :
3064else
3065 echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068continue
3069fi
3070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077$ac_declaration
3078int
3079main ()
3080{
3081exit (42);
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
d349482e
AT
3095 { ac_try='test -z "$ac_c_werror_flag"
3096 || test ! -s conftest.err'
953ff289
DN
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 break
3109else
3110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113fi
3114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115done
3116rm -f conftest*
3117if test -n "$ac_declaration"; then
3118 echo '#ifdef __cplusplus' >>confdefs.h
3119 echo $ac_declaration >>confdefs.h
3120 echo '#endif' >>confdefs.h
3121fi
3122
3123else
3124 echo "$as_me: failed program was:" >&5
3125sed 's/^/| /' conftest.$ac_ext >&5
3126
3127fi
3128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129ac_ext=c
3130ac_cpp='$CPP $CPPFLAGS'
3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134DEPDIR="${am__leading_dot}deps"
3135
3136 ac_config_commands="$ac_config_commands depfiles"
3137
3138
3139am_make=${MAKE-make}
3140cat > confinc << 'END'
3141am__doit:
3142 @echo done
3143.PHONY: am__doit
3144END
3145# If we don't find an include directive, just comment out the code.
3146echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3147echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3148am__include="#"
3149am__quote=
3150_am_result=none
3151# First try GNU make style include.
3152echo "include confinc" > confmf
3153# We grep out `Entering directory' and `Leaving directory'
3154# messages which can occur if `w' ends up in MAKEFLAGS.
3155# In particular we don't look at `^make:' because GNU make might
3156# be invoked under some other name (usually "gmake"), in which
3157# case it prints its new name instead of `make'.
3158if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3159 am__include=include
3160 am__quote=
3161 _am_result=GNU
3162fi
3163# Now try BSD make style include.
3164if test "$am__include" = "#"; then
3165 echo '.include "confinc"' > confmf
3166 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3167 am__include=.include
3168 am__quote="\""
3169 _am_result=BSD
3170 fi
3171fi
3172
3173
3174echo "$as_me:$LINENO: result: $_am_result" >&5
3175echo "${ECHO_T}$_am_result" >&6
3176rm -f confinc confmf
3177
3178# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3179if test "${enable_dependency_tracking+set}" = set; then
3180 enableval="$enable_dependency_tracking"
3181
3182fi;
3183if test "x$enable_dependency_tracking" != xno; then
3184 am_depcomp="$ac_aux_dir/depcomp"
3185 AMDEPBACKSLASH='\'
3186fi
3187
3188
3189if test "x$enable_dependency_tracking" != xno; then
3190 AMDEP_TRUE=
3191 AMDEP_FALSE='#'
3192else
3193 AMDEP_TRUE='#'
3194 AMDEP_FALSE=
3195fi
3196
3197
3198
3199
3200depcc="$CC" am_compiler_list=
3201
3202echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3203echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3204if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
3207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3208 # We make a subdir and do the tests there. Otherwise we can end up
3209 # making bogus files that we don't know about and never remove. For
3210 # instance it was reported that on HP-UX the gcc test will end up
3211 # making a dummy file named `D' -- because `-MD' means `put the output
3212 # in D'.
3213 mkdir conftest.dir
3214 # Copy depcomp to subdir because otherwise we won't find it if we're
3215 # using a relative directory.
3216 cp "$am_depcomp" conftest.dir
3217 cd conftest.dir
3218 # We will build objects and dependencies in a subdirectory because
3219 # it helps to detect inapplicable dependency modes. For instance
3220 # both Tru64's cc and ICC support -MD to output dependencies as a
3221 # side effect of compilation, but ICC will put the dependencies in
3222 # the current directory while Tru64 will put them in the object
3223 # directory.
3224 mkdir sub
3225
3226 am_cv_CC_dependencies_compiler_type=none
3227 if test "$am_compiler_list" = ""; then
3228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3229 fi
3230 for depmode in $am_compiler_list; do
3231 # Setup a source with many dependencies, because some compilers
3232 # like to wrap large dependency lists on column 80 (with \), and
3233 # we should not choose a depcomp mode which is confused by this.
3234 #
3235 # We need to recreate these files for each test, as the compiler may
3236 # overwrite some of them when testing with obscure command lines.
3237 # This happens at least with the AIX C compiler.
3238 : > sub/conftest.c
3239 for i in 1 2 3 4 5 6; do
3240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3241 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3242 # Solaris 8's {/usr,}/bin/sh.
3243 touch sub/conftst$i.h
3244 done
3245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3246
3247 case $depmode in
3248 nosideeffect)
3249 # after this tag, mechanisms are not by side-effect, so they'll
3250 # only be used when explicitly requested
3251 if test "x$enable_dependency_tracking" = xyes; then
3252 continue
3253 else
3254 break
3255 fi
3256 ;;
3257 none) break ;;
3258 esac
3259 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3260 # mode. It turns out that the SunPro C++ compiler does not properly
3261 # handle `-M -o', and we need to detect this.
3262 if depmode=$depmode \
3263 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3265 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3266 >/dev/null 2>conftest.err &&
3267 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3268 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3269 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3270 # icc doesn't choke on unknown options, it will just issue warnings
3271 # or remarks (even with -Werror). So we grep stderr for any message
3272 # that says an option was ignored or not supported.
3273 # When given -MP, icc 7.0 and 7.1 complain thusly:
3274 # icc: Command line warning: ignoring option '-M'; no argument required
3275 # The diagnosis changed in icc 8.0:
3276 # icc: Command line remark: option '-MP' not supported
3277 if (grep 'ignoring option' conftest.err ||
3278 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3279 am_cv_CC_dependencies_compiler_type=$depmode
3280 break
3281 fi
3282 fi
3283 done
3284
3285 cd ..
3286 rm -rf conftest.dir
3287else
3288 am_cv_CC_dependencies_compiler_type=none
3289fi
3290
3291fi
3292echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3293echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3294CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3295
3296
3297
3298if
3299 test "x$enable_dependency_tracking" != xno \
3300 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3301 am__fastdepCC_TRUE=
3302 am__fastdepCC_FALSE='#'
3303else
3304 am__fastdepCC_TRUE='#'
3305 am__fastdepCC_FALSE=
3306fi
3307
3308
3309
3310
3311
3312
3313# In order to override CFLAGS_FOR_TARGET, all of our special flags go
3314# in XCFLAGS. But we need them in CFLAGS during configury. So put them
3315# in both places for now and restore CFLAGS at the end of config.
3316save_CFLAGS="$CFLAGS"
3317
3318# Add -Wall -Werror if we are using GCC.
3319if test "x$GCC" = "xyes"; then
3320 XCFLAGS="$XCFLAGS -Wall -Werror"
3321fi
3322
3323# Find other programs we need.
3324if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3326set dummy ${ac_tool_prefix}ar; ac_word=$2
3327echo "$as_me:$LINENO: checking for $ac_word" >&5
3328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329if test "${ac_cv_prog_AR+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332 if test -n "$AR"; then
3333 ac_cv_prog_AR="$AR" # Let the user override the test.
3334else
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336for as_dir in $PATH
3337do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_AR="${ac_tool_prefix}ar"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346done
3347done
3348
3349fi
3350fi
3351AR=$ac_cv_prog_AR
3352if test -n "$AR"; then
3353 echo "$as_me:$LINENO: result: $AR" >&5
3354echo "${ECHO_T}$AR" >&6
3355else
3356 echo "$as_me:$LINENO: result: no" >&5
3357echo "${ECHO_T}no" >&6
3358fi
3359
3360fi
3361if test -z "$ac_cv_prog_AR"; then
3362 ac_ct_AR=$AR
3363 # Extract the first word of "ar", so it can be a program name with args.
3364set dummy ar; ac_word=$2
3365echo "$as_me:$LINENO: checking for $ac_word" >&5
3366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370 if test -n "$ac_ct_AR"; then
3371 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3372else
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_AR="ar"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384done
3385done
3386
3387fi
3388fi
3389ac_ct_AR=$ac_cv_prog_ac_ct_AR
3390if test -n "$ac_ct_AR"; then
3391 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3392echo "${ECHO_T}$ac_ct_AR" >&6
3393else
3394 echo "$as_me:$LINENO: result: no" >&5
3395echo "${ECHO_T}no" >&6
3396fi
3397
3398 AR=$ac_ct_AR
3399else
3400 AR="$ac_cv_prog_AR"
3401fi
3402
3403if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3405set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3406echo "$as_me:$LINENO: checking for $ac_word" >&5
3407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408if test "${ac_cv_prog_RANLIB+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411 if test -n "$RANLIB"; then
3412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425done
3426done
3427
3428fi
3429fi
3430RANLIB=$ac_cv_prog_RANLIB
3431if test -n "$RANLIB"; then
3432 echo "$as_me:$LINENO: result: $RANLIB" >&5
3433echo "${ECHO_T}$RANLIB" >&6
3434else
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437fi
3438
3439fi
3440if test -z "$ac_cv_prog_RANLIB"; then
3441 ac_ct_RANLIB=$RANLIB
3442 # Extract the first word of "ranlib", so it can be a program name with args.
3443set dummy ranlib; ac_word=$2
3444echo "$as_me:$LINENO: checking for $ac_word" >&5
3445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 if test -n "$ac_ct_RANLIB"; then
3450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3451else
3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH
3454do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_RANLIB="ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463done
3464done
3465
3466 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3467fi
3468fi
3469ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3470if test -n "$ac_ct_RANLIB"; then
3471 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3472echo "${ECHO_T}$ac_ct_RANLIB" >&6
3473else
3474 echo "$as_me:$LINENO: result: no" >&5
3475echo "${ECHO_T}no" >&6
3476fi
3477
3478 RANLIB=$ac_ct_RANLIB
3479else
3480 RANLIB="$ac_cv_prog_RANLIB"
3481fi
3482
3483# Extract the first word of "perl", so it can be a program name with args.
3484set dummy perl; ac_word=$2
3485echo "$as_me:$LINENO: checking for $ac_word" >&5
3486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487if test "${ac_cv_path_PERL+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 case $PERL in
3491 [\\/]* | ?:[\\/]*)
3492 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3493 ;;
3494 *)
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3505 fi
3506done
3507done
3508
3509 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3510 ;;
3511esac
3512fi
3513PERL=$ac_cv_path_PERL
3514
3515if test -n "$PERL"; then
3516 echo "$as_me:$LINENO: result: $PERL" >&5
3517echo "${ECHO_T}$PERL" >&6
3518else
3519 echo "$as_me:$LINENO: result: no" >&5
3520echo "${ECHO_T}no" >&6
3521fi
3522
3523echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3524echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3525set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3526if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529 cat >conftest.make <<\_ACEOF
3530all:
3531 @echo 'ac_maketemp="$(MAKE)"'
3532_ACEOF
3533# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3534eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3535if test -n "$ac_maketemp"; then
3536 eval ac_cv_prog_make_${ac_make}_set=yes
3537else
3538 eval ac_cv_prog_make_${ac_make}_set=no
3539fi
3540rm -f conftest.make
3541fi
3542if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 SET_MAKE=
3546else
3547 echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6
3549 SET_MAKE="MAKE=${MAKE-make}"
3550fi
3551
3552# Find a good install program. We prefer a C program (faster),
3553# so one script is as good as another. But avoid the broken or
3554# incompatible versions:
3555# SysV /etc/install, /usr/sbin/install
3556# SunOS /usr/etc/install
3557# IRIX /sbin/install
3558# AIX /bin/install
3559# AmigaOS /C/install, which installs bootblocks on floppy discs
3560# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3561# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3562# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3563# OS/2's system install, which has a completely different semantic
3564# ./install, which can be erroneously created by make from ./install.sh.
3565echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3566echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3567if test -z "$INSTALL"; then
3568if test "${ac_cv_path_install+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH
3573do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 # Account for people who put trailing slashes in PATH elements.
3577case $as_dir/ in
3578 ./ | .// | /cC/* | \
3579 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3580 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3581 /usr/ucb/* ) ;;
3582 *)
3583 # OSF1 and SCO ODT 3.0 have their own names for install.
3584 # Don't use installbsd from OSF since it installs stuff as root
3585 # by default.
3586 for ac_prog in ginstall scoinst install; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3589 if test $ac_prog = install &&
3590 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3591 # AIX install. It has an incompatible calling convention.
3592 :
3593 elif test $ac_prog = install &&
3594 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595 # program-specific install script used by HP pwplus--don't use.
3596 :
3597 else
3598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3599 break 3
3600 fi
3601 fi
3602 done
3603 done
3604 ;;
3605esac
3606done
3607
3608
3609fi
3610 if test "${ac_cv_path_install+set}" = set; then
3611 INSTALL=$ac_cv_path_install
3612 else
3613 # As a last resort, use the slow shell script. We don't cache a
3614 # path for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the path is relative.
3617 INSTALL=$ac_install_sh
3618 fi
3619fi
3620echo "$as_me:$LINENO: result: $INSTALL" >&5
3621echo "${ECHO_T}$INSTALL" >&6
3622
3623# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624# It thinks the first close brace ends the variable substitution.
3625test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3626
3627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3628
3629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3630
3631
748b9d7c
DF
3632# See if makeinfo has been installed and is modern enough
3633# that we can use it.
3634
3635 # Extract the first word of "makeinfo", so it can be a program name with args.
3636set dummy makeinfo; ac_word=$2
3637echo "$as_me:$LINENO: checking for $ac_word" >&5
3638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642 if test -n "$MAKEINFO"; then
3643 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_MAKEINFO="makeinfo"
3653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656done
3657done
3658
3659fi
3660fi
3661MAKEINFO=$ac_cv_prog_MAKEINFO
3662if test -n "$MAKEINFO"; then
3663 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3664echo "${ECHO_T}$MAKEINFO" >&6
3665else
3666 echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
3668fi
3669
3670 if test -n "$MAKEINFO"; then
3671 # Found it, now check the version.
3672 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3673echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3674if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3678 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3679
3680 case $ac_prog_version in
3681 '') gcc_cv_prog_makeinfo_modern=no;;
3682 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3683 *) gcc_cv_prog_makeinfo_modern=no;;
3684 esac
3685
78e075d4
JJ
3686 if test $gcc_cv_prog_makeinfo_modern = no; then
3687 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3688 fi
3689
748b9d7c
DF
3690fi
3691echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3692echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3693 else
3694 gcc_cv_prog_makeinfo_modern=no
3695 fi
1cf3d07d
SE
3696 if test $gcc_cv_prog_makeinfo_modern = no; then
3697 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3698 fi
748b9d7c
DF
3699
3700
3701
3702if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3703 BUILD_INFO_TRUE=
3704 BUILD_INFO_FALSE='#'
3705else
3706 BUILD_INFO_TRUE='#'
3707 BUILD_INFO_FALSE=
3708fi
3709
3710
3711
953ff289 3712# Configure libtool
1cf3d07d
SE
3713
3714
3715macro_version='2.1a'
3716macro_revision='1.2435'
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729ltmain="$ac_aux_dir/ltmain.sh"
3730
3731# Set options
3732
3733enable_dlopen=no
3734
3735
3736enable_win32_dll=no
3737
3738
953ff289
DN
3739# Check whether --enable-shared or --disable-shared was given.
3740if test "${enable_shared+set}" = set; then
3741 enableval="$enable_shared"
3742 p=${PACKAGE-default}
1cf3d07d
SE
3743 case $enableval in
3744 yes) enable_shared=yes ;;
3745 no) enable_shared=no ;;
3746 *)
3747 enable_shared=no
3748 # Look at the argument we got. We use all the common list separators.
3749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3750 for pkg in $enableval; do
3751 IFS="$lt_save_ifs"
3752 if test "X$pkg" = "X$p"; then
3753 enable_shared=yes
3754 fi
3755 done
3756 IFS="$lt_save_ifs"
3757 ;;
3758 esac
953ff289
DN
3759else
3760 enable_shared=yes
3761fi;
1cf3d07d
SE
3762
3763
3764
3765
3766
3767
3768
3769
953ff289
DN
3770# Check whether --enable-static or --disable-static was given.
3771if test "${enable_static+set}" = set; then
3772 enableval="$enable_static"
3773 p=${PACKAGE-default}
1cf3d07d
SE
3774 case $enableval in
3775 yes) enable_static=yes ;;
3776 no) enable_static=no ;;
3777 *)
3778 enable_static=no
3779 # Look at the argument we got. We use all the common list separators.
3780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3781 for pkg in $enableval; do
3782 IFS="$lt_save_ifs"
3783 if test "X$pkg" = "X$p"; then
3784 enable_static=yes
3785 fi
3786 done
3787 IFS="$lt_save_ifs"
3788 ;;
3789 esac
953ff289
DN
3790else
3791 enable_static=yes
3792fi;
1cf3d07d
SE
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802# Check whether --with-pic or --without-pic was given.
3803if test "${with_pic+set}" = set; then
3804 withval="$with_pic"
3805 pic_mode="$withval"
3806else
3807 pic_mode=default
3808fi;
3809
3810test -z "$pic_mode" && pic_mode=default
3811
3812
3813
3814
3815
3816
3817
953ff289
DN
3818# Check whether --enable-fast-install or --disable-fast-install was given.
3819if test "${enable_fast_install+set}" = set; then
3820 enableval="$enable_fast_install"
3821 p=${PACKAGE-default}
1cf3d07d
SE
3822 case $enableval in
3823 yes) enable_fast_install=yes ;;
3824 no) enable_fast_install=no ;;
3825 *)
3826 enable_fast_install=no
3827 # Look at the argument we got. We use all the common list separators.
3828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3829 for pkg in $enableval; do
3830 IFS="$lt_save_ifs"
3831 if test "X$pkg" = "X$p"; then
3832 enable_fast_install=yes
3833 fi
3834 done
3835 IFS="$lt_save_ifs"
3836 ;;
3837 esac
953ff289
DN
3838else
3839 enable_fast_install=yes
3840fi;
3841
1cf3d07d
SE
3842
3843
3844
3845
3846
3847
3848
3849echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3851if test "${lt_cv_path_SED+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 # Loop through the user's path and test for sed and gsed.
3855# Then use that list of sed's as ones to test for truncation.
3856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857for as_dir in $PATH
3858do
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for lt_ac_prog in sed gsed; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3864 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3865 fi
3866 done
3867 done
3868done
3869IFS=$as_save_IFS
3870lt_ac_max=0
3871lt_ac_count=0
3872# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3873# along with /bin/sed that truncates output.
3874for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3875 test ! -f $lt_ac_sed && continue
3876 cat /dev/null > conftest.in
3877 lt_ac_count=0
3878 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3879 # Check for GNU sed and select it if it is found.
3880 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3881 lt_cv_path_SED=$lt_ac_sed
3882 break
3883 fi
3884 while true; do
3885 cat conftest.in conftest.in >conftest.tmp
3886 mv conftest.tmp conftest.in
3887 cp conftest.in conftest.nl
3888 echo >>conftest.nl
3889 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3890 cmp -s conftest.out conftest.nl || break
3891 # 10000 chars as input seems more than enough
3892 test $lt_ac_count -gt 10 && break
3893 lt_ac_count=`expr $lt_ac_count + 1`
3894 if test $lt_ac_count -gt $lt_ac_max; then
3895 lt_ac_max=$lt_ac_count
3896 lt_cv_path_SED=$lt_ac_sed
3897 fi
3898 done
3899done
3900
3901fi
3902
3903SED=$lt_cv_path_SED
3904
3905echo "$as_me:$LINENO: result: $SED" >&5
3906echo "${ECHO_T}$SED" >&6
3907
3908test -z "$SED" && SED=sed
3909Xsed="$SED -e 1s/^X//"
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921echo "$as_me:$LINENO: checking for egrep" >&5
3922echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3927 then ac_cv_prog_egrep='grep -E'
3928 else ac_cv_prog_egrep='egrep'
3929 fi
3930fi
3931echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP=$ac_cv_prog_egrep
3934
3935
3936echo "$as_me:$LINENO: checking for fgrep" >&5
3937echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3938if test "${ac_cv_prog_fgrep+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3942 then ac_cv_prog_fgrep='grep -F'
3943 else ac_cv_prog_fgrep='fgrep'
3944 fi
3945fi
3946echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3947echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3948 FGREP=$ac_cv_prog_fgrep
3949
3950
3951test -z "$GREP" && GREP=grep
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
953ff289
DN
3971# Check whether --with-gnu-ld or --without-gnu-ld was given.
3972if test "${with_gnu_ld+set}" = set; then
3973 withval="$with_gnu_ld"
3974 test "$withval" = no || with_gnu_ld=yes
3975else
3976 with_gnu_ld=no
3977fi;
3978ac_prog=ld
3979if test "$GCC" = yes; then
3980 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3981 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3982echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
953ff289
DN
3983 case $host in
3984 *-*-mingw*)
3985 # gcc leaves a trailing carriage return which upsets mingw
3986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3987 *)
3988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3989 esac
3990 case $ac_prog in
3991 # Accept absolute paths.
1cf3d07d 3992 [\\/]* | ?:[\\/]*)
953ff289 3993 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3994 # Canonicalize the pathname of ld
3995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
953ff289
DN
3998 done
3999 test -z "$LD" && LD="$ac_prog"
4000 ;;
4001 "")
4002 # If it fails, then pretend we aren't using GCC.
4003 ac_prog=ld
4004 ;;
4005 *)
4006 # If it is relative, then search for the first ld in PATH.
4007 with_gnu_ld=unknown
4008 ;;
4009 esac
4010elif test "$with_gnu_ld" = yes; then
4011 echo "$as_me:$LINENO: checking for GNU ld" >&5
4012echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4013else
4014 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4015echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4016fi
4017if test "${lt_cv_path_LD+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 if test -z "$LD"; then
1cf3d07d 4021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
953ff289 4022 for ac_dir in $PATH; do
1cf3d07d 4023 IFS="$lt_save_ifs"
953ff289
DN
4024 test -z "$ac_dir" && ac_dir=.
4025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4026 lt_cv_path_LD="$ac_dir/$ac_prog"
4027 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4028 # but apparently some variants of GNU ld only accept -v.
953ff289 4029 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
953ff289 4032 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4033 ;;
4034 *)
953ff289 4035 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4036 ;;
4037 esac
953ff289
DN
4038 fi
4039 done
1cf3d07d 4040 IFS="$lt_save_ifs"
953ff289
DN
4041else
4042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4043fi
4044fi
4045
4046LD="$lt_cv_path_LD"
4047if test -n "$LD"; then
4048 echo "$as_me:$LINENO: result: $LD" >&5
4049echo "${ECHO_T}$LD" >&6
4050else
4051 echo "$as_me:$LINENO: result: no" >&5
4052echo "${ECHO_T}no" >&6
4053fi
4054test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4055echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4056 { (exit 1); exit 1; }; }
4057echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4058echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4059if test "${lt_cv_prog_gnu_ld+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
1cf3d07d
SE
4062 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4063case `$LD -v 2>&1 </dev/null` in
4064*GNU* | *'with BFD'*)
953ff289 4065 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4066 ;;
4067*)
953ff289 4068 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4069 ;;
4070esac
953ff289
DN
4071fi
4072echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4073echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4074with_gnu_ld=$lt_cv_prog_gnu_ld
4075
4076
953ff289 4077
1cf3d07d
SE
4078
4079
4080
4081
4082
4083
4084
4085echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4086echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
953ff289
DN
4087if test "${lt_cv_path_NM+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090 if test -n "$NM"; then
4091 # Let the user override the test.
4092 lt_cv_path_NM="$NM"
4093else
1cf3d07d
SE
4094 lt_nm_to_check="${ac_tool_prefix}nm"
4095 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4096 lt_nm_to_check="$lt_nm_to_check nm"
4097 fi
4098 for lt_tmp_nm in $lt_nm_to_check; do
4099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4100 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4101 IFS="$lt_save_ifs"
4102 test -z "$ac_dir" && ac_dir=.
4103 tmp_nm="$ac_dir/$lt_tmp_nm"
4104 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4105 # Check to see if the nm accepts a BSD-compat flag.
4106 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4107 # nm: unknown option "B" ignored
4108 # Tru64's nm complains that /dev/null is an invalid object file
4109 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4110 */dev/null* | *'Invalid file or object type'*)
4111 lt_cv_path_NM="$tmp_nm -B"
4112 break
4113 ;;
4114 *)
4115 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4116 */dev/null*)
4117 lt_cv_path_NM="$tmp_nm -p"
4118 break
4119 ;;
4120 *)
4121 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4122 continue # so that we can try to find one that supports BSD flags
4123 ;;
4124 esac
4125 ;;
4126 esac
4127 fi
4128 done
4129 IFS="$lt_save_ifs"
4130 done
4131 : ${lt_cv_path_NM=no}
4132fi
4133fi
4134echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4135echo "${ECHO_T}$lt_cv_path_NM" >&6
4136if test "$lt_cv_path_NM" != "no"; then
4137 NM="$lt_cv_path_NM"
4138else
4139 # Didn't find any BSD compatible name lister, look for dumpbin.
4140 if test -n "$ac_tool_prefix"; then
4141 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4142 do
4143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4145echo "$as_me:$LINENO: checking for $ac_word" >&5
4146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 if test -n "$DUMPBIN"; then
4151 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4152else
4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH
4155do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4163 fi
4164done
4165done
4166
4167fi
4168fi
4169DUMPBIN=$ac_cv_prog_DUMPBIN
4170if test -n "$DUMPBIN"; then
4171 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4172echo "${ECHO_T}$DUMPBIN" >&6
4173else
4174 echo "$as_me:$LINENO: result: no" >&5
4175echo "${ECHO_T}no" >&6
4176fi
4177
4178 test -n "$DUMPBIN" && break
4179 done
4180fi
4181if test -z "$DUMPBIN"; then
4182 ac_ct_DUMPBIN=$DUMPBIN
4183 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4184do
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186set dummy $ac_prog; ac_word=$2
4187echo "$as_me:$LINENO: checking for $ac_word" >&5
4188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192 if test -n "$ac_ct_DUMPBIN"; then
4193 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4194else
4195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206done
4207done
4208
4209fi
953ff289 4210fi
1cf3d07d
SE
4211ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4212if test -n "$ac_ct_DUMPBIN"; then
4213 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4214echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4215else
4216 echo "$as_me:$LINENO: result: no" >&5
4217echo "${ECHO_T}no" >&6
4218fi
4219
4220 test -n "$ac_ct_DUMPBIN" && break
4221done
4222test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4223
4224 DUMPBIN=$ac_ct_DUMPBIN
4225fi
4226
4227
4228 if test "$DUMPBIN" != ":"; then
4229 NM="$DUMPBIN"
4230 fi
953ff289 4231fi
1cf3d07d
SE
4232test -z "$NM" && NM=nm
4233
4234
4235
4236
4237
953ff289 4238
1cf3d07d
SE
4239echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4240echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4241if test "${lt_cv_nm_interface+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244 lt_cv_nm_interface="BSD nm"
4245 echo "int some_variable = 0;" > conftest.$ac_ext
4246 (eval echo "\"\$as_me:4246: $ac_compile\"" >&5)
4247 (eval "$ac_compile" 2>conftest.err)
4248 cat conftest.err >&5
4249 (eval echo "\"\$as_me:4249: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4251 cat conftest.err >&5
4252 (eval echo "\"\$as_me:4252: output\"" >&5)
4253 cat conftest.out >&5
4254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4255 lt_cv_nm_interface="MS dumpbin"
4256 fi
4257 rm -f conftest*
4258fi
4259echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4260echo "${ECHO_T}$lt_cv_nm_interface" >&6
953ff289
DN
4261
4262echo "$as_me:$LINENO: checking whether ln -s works" >&5
4263echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4264LN_S=$as_ln_s
4265if test "$LN_S" = "ln -s"; then
4266 echo "$as_me:$LINENO: result: yes" >&5
4267echo "${ECHO_T}yes" >&6
4268else
4269 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4270echo "${ECHO_T}no, using $LN_S" >&6
4271fi
4272
1cf3d07d
SE
4273# find the maximum length of command line arguments
4274echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4275echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4276if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279 i=0
4280 teststring="ABCD"
4281
4282 case $build_os in
4283 msdosdjgpp*)
4284 # On DJGPP, this test can blow up pretty badly due to problems in libc
4285 # (any single argument exceeding 2000 bytes causes a buffer overrun
4286 # during glob expansion). Even if it were fixed, the result of this
4287 # check would be larger than it should be.
4288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4289 ;;
4290
4291 gnu*)
4292 # Under GNU Hurd, this test is not required because there is
4293 # no limit to the length of command line arguments.
4294 # Libtool will interpret -1 as no limit whatsoever
4295 lt_cv_sys_max_cmd_len=-1;
4296 ;;
4297
4298 cygwin* | mingw*)
4299 # On Win9x/ME, this test blows up -- it succeeds, but takes
4300 # about 5 minutes as the teststring grows exponentially.
4301 # Worse, since 9x/ME are not pre-emptively multitasking,
4302 # you end up with a "frozen" computer, even though with patience
4303 # the test eventually succeeds (with a max line length of 256k).
4304 # Instead, let's just punt: use the minimum linelength reported by
4305 # all of the supported platforms: 8192 (on NT/2K/XP).
4306 lt_cv_sys_max_cmd_len=8192;
4307 ;;
4308
4309 amigaos*)
4310 # On AmigaOS with pdksh, this test takes hours, literally.
4311 # So we just punt and use a minimum line length of 8192.
4312 lt_cv_sys_max_cmd_len=8192;
4313 ;;
4314
4315 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4316 # This has been around since 386BSD, at least. Likely further.
4317 if test -x /sbin/sysctl; then
4318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4319 elif test -x /usr/sbin/sysctl; then
4320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4321 else
4322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4323 fi
4324 # And add a safety zone
4325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4327 ;;
4328
4329 interix*)
4330 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4331 lt_cv_sys_max_cmd_len=196608
4332 ;;
4333
4334 osf*)
4335 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4336 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4337 # nice to cause kernel panics so lets avoid the loop below.
4338 # First set a reasonable default.
4339 lt_cv_sys_max_cmd_len=16384
4340 #
4341 if test -x /sbin/sysconfig; then
4342 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4343 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4344 esac
4345 fi
4346 ;;
4347 sco3.2v5*)
4348 lt_cv_sys_max_cmd_len=102400
4349 ;;
4350 sysv5* | sco5v6* | sysv4.2uw2*)
4351 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4352 if test -n "$kargmax"; then
4353 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4354 else
4355 lt_cv_sys_max_cmd_len=32768
4356 fi
4357 ;;
4358 *)
4359 # Make teststring a little bigger before we do anything with it.
4360 # a 1K string should be a reasonable start.
4361 for i in 1 2 3 4 5 6 7 8 ; do
4362 teststring=$teststring$teststring
4363 done
4364 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4365 # If test is not a shell built-in, we'll probably end up computing a
4366 # maximum length that is only half of the actual maximum length, but
4367 # we can't tell.
4368 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4369 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4370 test $i != 17 # 1/2 MB should be enough
4371 do
4372 i=`expr $i + 1`
4373 teststring=$teststring$teststring
4374 done
4375 # Only check the string length outside the loop.
4376 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4377 teststring=
4378 # Add a significant safety factor because C++ compilers can tack on massive
4379 # amounts of additional arguments before passing them to the linker.
4380 # It appears as though 1/2 is a usable value.
4381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4382 ;;
4383 esac
4384
4385fi
4386
4387if test -n $lt_cv_sys_max_cmd_len ; then
4388 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4389echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4390else
4391 echo "$as_me:$LINENO: result: none" >&5
4392echo "${ECHO_T}none" >&6
4393fi
4394max_cmd_len=$lt_cv_sys_max_cmd_len
4395
4396
4397
4398
4399
4400
4401
4402: ${CP="cp -f"}
4403: ${MV="mv -f"}
4404: ${RM="rm -f"}
4405
4406echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4407echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4408# Try some XSI features
4409xsi_shell=no
4410( _lt_dummy="a/b/c"
4411 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4412 = c,a/b,, ) >/dev/null 2>&1 \
4413 && xsi_shell=yes
4414echo "$as_me:$LINENO: result: $xsi_shell" >&5
4415echo "${ECHO_T}$xsi_shell" >&6
4416
4417
4418echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4419echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4420lt_shell_append=no
4421( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4422 >/dev/null 2>&1 \
4423 && lt_shell_append=yes
4424echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4425echo "${ECHO_T}$lt_shell_append" >&6
4426
4427
4428if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4429 lt_unset=unset
4430else
4431 lt_unset=false
4432fi
4433
4434
4435
4436
4437
4438# test EBCDIC or ASCII
4439case `echo X|tr X '\101'` in
4440 A) # ASCII based system
4441 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4442 lt_SP2NL='tr \040 \012'
4443 lt_NL2SP='tr \015\012 \040\040'
4444 ;;
4445 *) # EBCDIC based system
4446 lt_SP2NL='tr \100 \n'
4447 lt_NL2SP='tr \r\n \100\100'
4448 ;;
4449esac
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4460echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4461if test "${lt_cv_ld_reload_flag+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464 lt_cv_ld_reload_flag='-r'
4465fi
4466echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4467echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4468reload_flag=$lt_cv_ld_reload_flag
4469case $reload_flag in
4470"" | " "*) ;;
4471*) reload_flag=" $reload_flag" ;;
4472esac
4473reload_cmds='$LD$reload_flag -o $output$reload_objs'
4474case $host_os in
4475 darwin*)
4476 if test "$GCC" = yes; then
4477 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4478 else
4479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4480 fi
4481 ;;
4482esac
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4494echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
953ff289
DN
4495if test "${lt_cv_deplibs_check_method+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498 lt_cv_file_magic_cmd='$MAGIC_CMD'
4499lt_cv_file_magic_test_file=
4500lt_cv_deplibs_check_method='unknown'
4501# Need to set the preceding variable on all platforms that support
4502# interlibrary dependencies.
4503# 'none' -- dependencies not supported.
4504# `unknown' -- same as none, but documents that we really don't know.
4505# 'pass_all' -- all dependencies passed with no checks.
4506# 'test_compile' -- check by making test program.
1cf3d07d
SE
4507# 'file_magic [[regex]]' -- check by looking for files in library path
4508# which responds to the $file_magic_cmd with a given extended regex.
953ff289
DN
4509# If you have `file' or equivalent on your system and you're not sure
4510# whether `pass_all' will *always* work, you probably want this one.
4511
4512case $host_os in
1cf3d07d 4513aix4* | aix5*)
953ff289
DN
4514 lt_cv_deplibs_check_method=pass_all
4515 ;;
4516
4517beos*)
4518 lt_cv_deplibs_check_method=pass_all
4519 ;;
4520
1cf3d07d 4521bsdi[45]*)
953ff289
DN
4522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4523 lt_cv_file_magic_cmd='/usr/bin/file -L'
4524 lt_cv_file_magic_test_file=/shlib/libc.so
4525 ;;
4526
1cf3d07d
SE
4527cygwin*)
4528 # func_win32_libid is a shell function defined in ltmain.sh
4529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4530 lt_cv_file_magic_cmd='func_win32_libid'
4531 ;;
4532
4533mingw* | pw32*)
4534 # Base MSYS/MinGW do not provide the 'file' command needed by
4535 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4536 # unless we find 'file', for example because we are cross-compiling.
4537 if ( file / ) >/dev/null 2>&1; then
4538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4539 lt_cv_file_magic_cmd='func_win32_libid'
4540 else
4541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4542 lt_cv_file_magic_cmd='$OBJDUMP -f'
4543 fi
953ff289
DN
4544 ;;
4545
4546darwin* | rhapsody*)
953ff289
DN
4547 lt_cv_deplibs_check_method=pass_all
4548 ;;
4549
1cf3d07d
SE
4550freebsd* | dragonfly*)
4551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
953ff289
DN
4552 case $host_cpu in
4553 i*86 )
4554 # Not sure whether the presence of OpenBSD here was a mistake.
4555 # Let's accept both of them until this is cleared up.
1cf3d07d 4556 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
953ff289
DN
4557 lt_cv_file_magic_cmd=/usr/bin/file
4558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4559 ;;
4560 esac
4561 else
4562 lt_cv_deplibs_check_method=pass_all
4563 fi
4564 ;;
4565
4566gnu*)
4567 lt_cv_deplibs_check_method=pass_all
4568 ;;
4569
1cf3d07d
SE
4570hpux10.20* | hpux11*)
4571 lt_cv_file_magic_cmd=/usr/bin/file
953ff289 4572 case $host_cpu in
953ff289
DN
4573 ia64*)
4574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
953ff289
DN
4575 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4576 ;;
1cf3d07d
SE
4577 hppa*64*)
4578 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]'
4579 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
953ff289
DN
4580 ;;
4581 *)
1cf3d07d
SE
4582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4583 lt_cv_file_magic_test_file=/usr/lib/libc.sl
953ff289
DN
4584 ;;
4585 esac
1cf3d07d
SE
4586 ;;
4587
4588interix[3-9]*)
4589 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4591 ;;
4592
4593irix5* | irix6* | nonstopux*)
4594 case $LD in
4595 *-32|*"-32 ") libmagic=32-bit;;
4596 *-n32|*"-n32 ") libmagic=N32;;
4597 *-64|*"-64 ") libmagic=64-bit;;
4598 *) libmagic=never-match;;
4599 esac
953ff289
DN
4600 lt_cv_deplibs_check_method=pass_all
4601 ;;
4602
4603# This must be Linux ELF.
1cf3d07d 4604linux* | k*bsd*-gnu)
953ff289
DN
4605 lt_cv_deplibs_check_method=pass_all
4606 ;;
4607
1cf3d07d
SE
4608netbsd*)
4609 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
953ff289 4611 else
1cf3d07d 4612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
953ff289
DN
4613 fi
4614 ;;
4615
1cf3d07d 4616newos6*)
953ff289
DN
4617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4618 lt_cv_file_magic_cmd=/usr/bin/file
4619 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4620 ;;
4621
1cf3d07d
SE
4622*nto* | *qnx*)
4623 lt_cv_deplibs_check_method=pass_all
4624 ;;
4625
4626openbsd*)
4627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4629 else
4630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4631 fi
4632 ;;
4633
953ff289 4634osf3* | osf4* | osf5*)
953ff289
DN
4635 lt_cv_deplibs_check_method=pass_all
4636 ;;
4637
1cf3d07d 4638rdos*)
953ff289
DN
4639 lt_cv_deplibs_check_method=pass_all
4640 ;;
4641
4642solaris*)
4643 lt_cv_deplibs_check_method=pass_all
953ff289
DN
4644 ;;
4645
1cf3d07d 4646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
953ff289
DN
4647 lt_cv_deplibs_check_method=pass_all
4648 ;;
4649
1cf3d07d 4650sysv4 | sysv4.3*)
953ff289 4651 case $host_vendor in
953ff289
DN
4652 motorola)
4653 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]'
4654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4655 ;;
1cf3d07d
SE
4656 ncr)
4657 lt_cv_deplibs_check_method=pass_all
4658 ;;
4659 sequent)
4660 lt_cv_file_magic_cmd='/bin/file'
4661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4662 ;;
4663 sni)
4664 lt_cv_file_magic_cmd='/bin/file'
4665 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4666 lt_cv_file_magic_test_file=/lib/libc.so
4667 ;;
4668 siemens)
4669 lt_cv_deplibs_check_method=pass_all
4670 ;;
4671 pc)
4672 lt_cv_deplibs_check_method=pass_all
4673 ;;
953ff289
DN
4674 esac
4675 ;;
1cf3d07d
SE
4676
4677tpf*)
4678 lt_cv_deplibs_check_method=pass_all
4679 ;;
953ff289
DN
4680esac
4681
4682fi
4683echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4684echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4685file_magic_cmd=$lt_cv_file_magic_cmd
4686deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 4687test -z "$deplibs_check_method" && deplibs_check_method=unknown
953ff289
DN
4688
4689
4690
4691
4692
953ff289 4693
953ff289 4694
953ff289 4695
953ff289 4696
953ff289 4697
953ff289 4698
953ff289
DN
4699
4700if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4702set dummy ${ac_tool_prefix}ar; ac_word=$2
953ff289
DN
4703echo "$as_me:$LINENO: checking for $ac_word" >&5
4704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4705if test "${ac_cv_prog_AR+set}" = set; then
953ff289
DN
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707else
1cf3d07d
SE
4708 if test -n "$AR"; then
4709 ac_cv_prog_AR="$AR" # Let the user override the test.
953ff289
DN
4710else
4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4718 ac_cv_prog_AR="${ac_tool_prefix}ar"
953ff289
DN
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722done
4723done
4724
4725fi
4726fi
1cf3d07d
SE
4727AR=$ac_cv_prog_AR
4728if test -n "$AR"; then
4729 echo "$as_me:$LINENO: result: $AR" >&5
4730echo "${ECHO_T}$AR" >&6
953ff289
DN
4731else
4732 echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734fi
4735
4736fi
1cf3d07d
SE
4737if test -z "$ac_cv_prog_AR"; then
4738 ac_ct_AR=$AR
4739 # Extract the first word of "ar", so it can be a program name with args.
4740set dummy ar; ac_word=$2
953ff289
DN
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4743if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
953ff289
DN
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
1cf3d07d
SE
4746 if test -n "$ac_ct_AR"; then
4747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
953ff289
DN
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4756 ac_cv_prog_ac_ct_AR="ar"
953ff289
DN
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
1cf3d07d 4763 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
953ff289
DN
4764fi
4765fi
1cf3d07d
SE
4766ac_ct_AR=$ac_cv_prog_ac_ct_AR
4767if test -n "$ac_ct_AR"; then
4768 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4769echo "${ECHO_T}$ac_ct_AR" >&6
953ff289
DN
4770else
4771 echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773fi
4774
1cf3d07d 4775 AR=$ac_ct_AR
953ff289 4776else
1cf3d07d 4777 AR="$ac_cv_prog_AR"
953ff289
DN
4778fi
4779
1cf3d07d
SE
4780test -z "$AR" && AR=ar
4781test -z "$AR_FLAGS" && AR_FLAGS=cru
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
953ff289
DN
4793if test -n "$ac_tool_prefix"; then
4794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4795set dummy ${ac_tool_prefix}strip; ac_word=$2
4796echo "$as_me:$LINENO: checking for $ac_word" >&5
4797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4798if test "${ac_cv_prog_STRIP+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801 if test -n "$STRIP"; then
4802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4803else
4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816done
4817
4818fi
4819fi
4820STRIP=$ac_cv_prog_STRIP
4821if test -n "$STRIP"; then
4822 echo "$as_me:$LINENO: result: $STRIP" >&5
4823echo "${ECHO_T}$STRIP" >&6
4824else
4825 echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
4827fi
4828
4829fi
4830if test -z "$ac_cv_prog_STRIP"; then
4831 ac_ct_STRIP=$STRIP
4832 # Extract the first word of "strip", so it can be a program name with args.
4833set dummy strip; ac_word=$2
4834echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839 if test -n "$ac_ct_STRIP"; then
4840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_STRIP="strip"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4857fi
4858fi
4859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4860if test -n "$ac_ct_STRIP"; then
4861 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4862echo "${ECHO_T}$ac_ct_STRIP" >&6
4863else
4864 echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6
4866fi
4867
4868 STRIP=$ac_ct_STRIP
4869else
4870 STRIP="$ac_cv_prog_STRIP"
4871fi
4872
1cf3d07d 4873test -z "$STRIP" && STRIP=:
953ff289
DN
4874
4875
953ff289 4876
953ff289
DN
4877
4878
953ff289 4879
1cf3d07d
SE
4880if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883echo "$as_me:$LINENO: checking for $ac_word" >&5
4884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885if test "${ac_cv_prog_RANLIB+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888 if test -n "$RANLIB"; then
4889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4890else
4891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4901 fi
4902done
4903done
4904
4905fi
4906fi
4907RANLIB=$ac_cv_prog_RANLIB
4908if test -n "$RANLIB"; then
4909 echo "$as_me:$LINENO: result: $RANLIB" >&5
4910echo "${ECHO_T}$RANLIB" >&6
4911else
4912 echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6
4914fi
4915
4916fi
4917if test -z "$ac_cv_prog_RANLIB"; then
4918 ac_ct_RANLIB=$RANLIB
4919 # Extract the first word of "ranlib", so it can be a program name with args.
4920set dummy ranlib; ac_word=$2
4921echo "$as_me:$LINENO: checking for $ac_word" >&5
4922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926 if test -n "$ac_ct_RANLIB"; then
4927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_RANLIB="ranlib"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940done
4941done
4942
4943 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4944fi
4945fi
4946ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947if test -n "$ac_ct_RANLIB"; then
4948 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4949echo "${ECHO_T}$ac_ct_RANLIB" >&6
4950else
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953fi
4954
4955 RANLIB=$ac_ct_RANLIB
4956else
4957 RANLIB="$ac_cv_prog_RANLIB"
4958fi
4959
4960test -z "$RANLIB" && RANLIB=:
4961
4962
4963
4964
4965
4966
4967# Determine commands to create old-style static archives.
4968old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4969old_postinstall_cmds='chmod 644 $oldlib'
4970old_postuninstall_cmds=
4971
4972if test -n "$RANLIB"; then
4973 case $host_os in
4974 openbsd*)
4975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4976 ;;
4977 *)
4978 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4979 ;;
4980 esac
4981 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4982fi
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017# If no C compiler was specified, use CC.
5018LTCC=${LTCC-"$CC"}
5019
5020# If no C compiler flags were specified, use CFLAGS.
5021LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5022
5023# Allow CC to be a program name with arguments.
5024compiler=$CC
5025
5026
5027# Check for command to grab the raw symbol name followed by C symbol from nm.
5028echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5029echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5030if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032else
5033
5034# These are sane defaults that work on at least a few old systems.
5035# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5036
5037# Character class describing NM global symbol codes.
5038symcode='[BCDEGRST]'
5039
5040# Regexp to match symbols that can be accessed directly from C.
5041sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5042
5043# Define system-specific variables.
5044case $host_os in
5045aix*)
5046 symcode='[BCDT]'
5047 ;;
5048cygwin* | mingw* | pw32*)
5049 symcode='[ABCDGISTW]'
5050 ;;
5051hpux*)
5052 if test "$host_cpu" = ia64; then
5053 symcode='[ABCDEGRST]'
5054 fi
5055 ;;
5056irix* | nonstopux*)
5057 symcode='[BCDEGRST]'
5058 ;;
5059osf*)
5060 symcode='[BCDEGQRST]'
5061 ;;
5062solaris*)
5063 symcode='[BDRT]'
5064 ;;
5065sco3.2v5*)
5066 symcode='[DT]'
5067 ;;
5068sysv4.2uw2*)
5069 symcode='[DT]'
5070 ;;
5071sysv5* | sco5v6* | unixware* | OpenUNIX*)
5072 symcode='[ABDT]'
5073 ;;
5074sysv4)
5075 symcode='[DFNSTU]'
5076 ;;
5077esac
5078
5079# If we're using GNU nm, then use its standard symbol codes.
5080case `$NM -V 2>&1` in
5081*GNU* | *'with BFD'*)
5082 symcode='[ABCDGIRSTW]' ;;
5083esac
5084
5085# Transform an extracted symbol line into a proper C declaration.
5086# Some systems (esp. on ia64) link data and code symbols differently,
5087# so use this general approach.
5088lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5089
5090# Transform an extracted symbol line into symbol name and symbol address
5091lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5092
5093# Handle CRLF in mingw tool chain
5094opt_cr=
5095case $build_os in
5096mingw*)
5097 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5098 ;;
5099esac
5100
5101# Try without a prefix underscore, then with it.
5102for ac_symprfx in "" "_"; do
5103
5104 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5105 symxfrm="\\1 $ac_symprfx\\2 \\2"
5106
5107 # Write the raw and C identifiers.
5108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5109 # Fake it for dumpbin and say T for any non-static function
5110 # and D for any global variable.
5111 # Also find C++ and __fastcall symbols from MSVC++,
5112 # which start with @ or ?.
5113 lt_cv_sys_global_symbol_pipe="$AWK '"\
5114" {last_section=section; section=\$ 3};"\
5115" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5116" \$ 0!~/External *\|/{next};"\
5117" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5118" {if(hide[section]) next};"\
5119" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5120" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5121" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5122" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5123" ' prfx=^$ac_symprfx"
5124 else
5125 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5126 fi
5127
5128 # Check to see that the pipe works correctly.
5129 pipe_works=no
5130
5131 rm -f conftest*
5132 cat > conftest.$ac_ext <<_LT_EOF
5133#ifdef __cplusplus
5134extern "C" {
5135#endif
5136char nm_test_var;
5137void nm_test_func(void);
5138void nm_test_func(void){}
5139#ifdef __cplusplus
5140}
5141#endif
5142int main(){nm_test_var='a';nm_test_func();return(0);}
5143_LT_EOF
5144
5145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5146 (eval $ac_compile) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; then
5150 # Now try to grab the symbols.
5151 nlist=conftest.nm
5152 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5153 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && test -s "$nlist"; then
5157 # Try sorting and uniquifying the output.
5158 if sort "$nlist" | uniq > "$nlist"T; then
5159 mv -f "$nlist"T "$nlist"
5160 else
5161 rm -f "$nlist"T
5162 fi
5163
5164 # Make sure that we snagged all the symbols we need.
5165 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5166 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5167 cat <<_LT_EOF > conftest.$ac_ext
5168#ifdef __cplusplus
5169extern "C" {
5170#endif
5171
5172_LT_EOF
5173 # Now generate the symbol file.
5174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5175
5176 cat <<_LT_EOF >> conftest.$ac_ext
5177
5178/* The mapping between symbol names and symbols. */
5179const struct {
5180 const char *name;
5181 void *address;
5182}
5183lt__PROGRAM__LTX_preloaded_symbols[] =
5184{
5185 { "@PROGRAM@", (void *) 0 },
5186_LT_EOF
5187 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5188 cat <<\_LT_EOF >> conftest.$ac_ext
5189 {0, (void *) 0}
5190};
5191
5192/* This works around a problem in FreeBSD linker */
5193#ifdef FREEBSD_WORKAROUND
5194static const void *lt_preloaded_setup() {
5195 return lt__PROGRAM__LTX_preloaded_symbols;
5196}
5197#endif
5198
5199#ifdef __cplusplus
5200}
5201#endif
5202_LT_EOF
5203 # Now try linking the two files.
5204 mv conftest.$ac_objext conftstm.$ac_objext
5205 lt_save_LIBS="$LIBS"
5206 lt_save_CFLAGS="$CFLAGS"
5207 LIBS="conftstm.$ac_objext"
5208 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5214 pipe_works=yes
5215 fi
5216 LIBS="$lt_save_LIBS"
5217 CFLAGS="$lt_save_CFLAGS"
5218 else
5219 echo "cannot find nm_test_func in $nlist" >&5
5220 fi
5221 else
5222 echo "cannot find nm_test_var in $nlist" >&5
5223 fi
5224 else
5225 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5226 fi
5227 else
5228 echo "$progname: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 fi
5231 rm -f conftest* conftst*
5232
5233 # Do not use the global_symbol_pipe unless it works.
5234 if test "$pipe_works" = yes; then
5235 break
5236 else
5237 lt_cv_sys_global_symbol_pipe=
5238 fi
5239done
5240
5241fi
5242
5243if test -z "$lt_cv_sys_global_symbol_pipe"; then
5244 lt_cv_sys_global_symbol_to_cdecl=
5245fi
5246if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5247 echo "$as_me:$LINENO: result: failed" >&5
5248echo "${ECHO_T}failed" >&6
5249else
5250 echo "$as_me:$LINENO: result: ok" >&5
5251echo "${ECHO_T}ok" >&6
5252fi
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5272if test "${enable_libtool_lock+set}" = set; then
5273 enableval="$enable_libtool_lock"
5274
5275fi;
5276test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5277
5278# Some flags need to be propagated to the compiler or linker for good
953ff289
DN
5279# libtool support.
5280case $host in
1cf3d07d 5281ia64-*-hpux*)
953ff289 5282 # Find out which ABI we are using.
1cf3d07d 5283 echo 'int i;' > conftest.$ac_ext
953ff289
DN
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
5288 (exit $ac_status); }; then
5289 case `/usr/bin/file conftest.$ac_objext` in
5290 *ELF-32*)
5291 HPUX_IA64_MODE="32"
5292 ;;
5293 *ELF-64*)
5294 HPUX_IA64_MODE="64"
5295 ;;
5296 esac
5297 fi
5298 rm -rf conftest*
5299 ;;
5300*-*-irix6*)
5301 # Find out which ABI we are using.
5302 echo '#line 5302 "configure"' > conftest.$ac_ext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; then
5308 if test "$lt_cv_prog_gnu_ld" = yes; then
5309 case `/usr/bin/file conftest.$ac_objext` in
5310 *32-bit*)
5311 LD="${LD-ld} -melf32bsmip"
5312 ;;
5313 *N32*)
5314 LD="${LD-ld} -melf32bmipn32"
5315 ;;
5316 *64-bit*)
5317 LD="${LD-ld} -melf64bmip"
5318 ;;
5319 esac
5320 else
5321 case `/usr/bin/file conftest.$ac_objext` in
5322 *32-bit*)
5323 LD="${LD-ld} -32"
5324 ;;
5325 *N32*)
5326 LD="${LD-ld} -n32"
5327 ;;
5328 *64-bit*)
5329 LD="${LD-ld} -64"
5330 ;;
5331 esac
5332 fi
5333 fi
5334 rm -rf conftest*
5335 ;;
5336
5337x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5338s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5339 # Find out which ABI we are using.
5340 echo 'int i;' > conftest.$ac_ext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; then
5346 case `/usr/bin/file conftest.o` in
5347 *32-bit*)
5348 case $host in
5349 x86_64-*kfreebsd*-gnu)
5350 LD="${LD-ld} -m elf_i386_fbsd"
5351 ;;
5352 x86_64-*linux*)
5353 LD="${LD-ld} -m elf_i386"
5354 ;;
5355 ppc64-*linux*|powerpc64-*linux*)
5356 LD="${LD-ld} -m elf32ppclinux"
5357 ;;
5358 s390x-*linux*)
5359 LD="${LD-ld} -m elf_s390"
5360 ;;
5361 sparc64-*linux*)
5362 LD="${LD-ld} -m elf32_sparc"
5363 ;;
5364 esac
5365 ;;
5366 *64-bit*)
5367 case $host in
5368 x86_64-*kfreebsd*-gnu)
5369 LD="${LD-ld} -m elf_x86_64_fbsd"
5370 ;;
5371 x86_64-*linux*)
5372 LD="${LD-ld} -m elf_x86_64"
5373 ;;
5374 ppc*-*linux*|powerpc*-*linux*)
5375 LD="${LD-ld} -m elf64ppc"
5376 ;;
5377 s390*-*linux*|s390*-*tpf*)
5378 LD="${LD-ld} -m elf64_s390"
5379 ;;
5380 sparc*-*linux*)
5381 LD="${LD-ld} -m elf64_sparc"
5382 ;;
5383 esac
5384 ;;
5385 esac
5386 fi
5387 rm -rf conftest*
5388 ;;
5389
5390*-*-sco3.2v5*)
5391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5392 SAVE_CFLAGS="$CFLAGS"
5393 CFLAGS="$CFLAGS -belf"
5394 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5395echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5396if test "${lt_cv_cc_needs_belf+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405 cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h. */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h. */
5411
5412int
5413main ()
5414{
5415
5416 ;
5417 return 0;
5418}
5419_ACEOF
5420rm -f conftest.$ac_objext conftest$ac_exeext
5421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 lt_cv_cc_needs_belf=yes
5443else
5444 echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447lt_cv_cc_needs_belf=no
5448fi
5449rm -f conftest.err conftest.$ac_objext \
5450 conftest$ac_exeext conftest.$ac_ext
5451 ac_ext=c
5452ac_cpp='$CPP $CPPFLAGS'
5453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456
5457fi
5458echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5459echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5460 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5462 CFLAGS="$SAVE_CFLAGS"
5463 fi
5464 ;;
5465sparc*-*solaris*)
5466 # Find out which ABI we are using.
5467 echo 'int i;' > conftest.$ac_ext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; then
5473 case `/usr/bin/file conftest.o` in
5474 *64-bit*)
5475 case $lt_cv_prog_gnu_ld in
5476 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5477 *) LD="${LD-ld} -64" ;;
5478 esac
5479 ;;
5480 esac
5481 fi
5482 rm -rf conftest*
5483 ;;
5484esac
5485
5486need_locks="$enable_libtool_lock"
5487
5488ac_ext=c
5489ac_cpp='$CPP $CPPFLAGS'
5490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5494echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5495# On Suns, sometimes $CPP names a directory.
5496if test -n "$CPP" && test -d "$CPP"; then
5497 CPP=
5498fi
5499if test -z "$CPP"; then
5500 if test "${ac_cv_prog_CPP+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 # Double quotes because CPP needs to be expanded
5504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5505 do
5506 ac_preproc_ok=false
5507for ac_c_preproc_warn_flag in '' yes
5508do
5509 # Use a header file that comes with gcc, so configuring glibc
5510 # with a fresh cross-compiler works.
5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 # <limits.h> exists even on freestanding compilers.
5513 # On the NeXT, cc -E runs the code through the compiler's parser,
5514 # not just through cpp. "Syntax error" is here to catch this case.
5515 cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
5521#ifdef __STDC__
5522# include <limits.h>
5523#else
5524# include <assert.h>
5525#endif
5526 Syntax error
5527_ACEOF
5528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } >/dev/null; then
5536 if test -s conftest.err; then
5537 ac_cpp_err=$ac_c_preproc_warn_flag
5538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5539 else
5540 ac_cpp_err=
5541 fi
5542else
5543 ac_cpp_err=yes
5544fi
5545if test -z "$ac_cpp_err"; then
5546 :
5547else
5548 echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 # Broken: fails on valid input.
5552continue
5553fi
5554rm -f conftest.err conftest.$ac_ext
5555
5556 # OK, works on sane cases. Now check whether non-existent headers
5557 # can be detected and how.
5558 cat >conftest.$ac_ext <<_ACEOF
5559/* confdefs.h. */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h. */
5564#include <ac_nonexistent.h>
5565_ACEOF
5566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } >/dev/null; then
5574 if test -s conftest.err; then
5575 ac_cpp_err=$ac_c_preproc_warn_flag
5576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5577 else
5578 ac_cpp_err=
5579 fi
5580else
5581 ac_cpp_err=yes
5582fi
5583if test -z "$ac_cpp_err"; then
5584 # Broken: success on invalid input.
5585continue
5586else
5587 echo "$as_me: failed program was:" >&5
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
5590 # Passes both tests.
5591ac_preproc_ok=:
5592break
5593fi
5594rm -f conftest.err conftest.$ac_ext
5595
5596done
5597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5598rm -f conftest.err conftest.$ac_ext
5599if $ac_preproc_ok; then
5600 break
5601fi
5602
5603 done
5604 ac_cv_prog_CPP=$CPP
5605
5606fi
5607 CPP=$ac_cv_prog_CPP
5608else
5609 ac_cv_prog_CPP=$CPP
5610fi
5611echo "$as_me:$LINENO: result: $CPP" >&5
5612echo "${ECHO_T}$CPP" >&6
5613ac_preproc_ok=false
5614for ac_c_preproc_warn_flag in '' yes
5615do
5616 # Use a header file that comes with gcc, so configuring glibc
5617 # with a fresh cross-compiler works.
5618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5619 # <limits.h> exists even on freestanding compilers.
5620 # On the NeXT, cc -E runs the code through the compiler's parser,
5621 # not just through cpp. "Syntax error" is here to catch this case.
5622 cat >conftest.$ac_ext <<_ACEOF
5623/* confdefs.h. */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h. */
5628#ifdef __STDC__
5629# include <limits.h>
5630#else
5631# include <assert.h>
5632#endif
5633 Syntax error
5634_ACEOF
5635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } >/dev/null; then
5643 if test -s conftest.err; then
5644 ac_cpp_err=$ac_c_preproc_warn_flag
5645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5646 else
5647 ac_cpp_err=
5648 fi
5649else
5650 ac_cpp_err=yes
5651fi
5652if test -z "$ac_cpp_err"; then
5653 :
5654else
5655 echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658 # Broken: fails on valid input.
5659continue
5660fi
5661rm -f conftest.err conftest.$ac_ext
5662
5663 # OK, works on sane cases. Now check whether non-existent headers
5664 # can be detected and how.
5665 cat >conftest.$ac_ext <<_ACEOF
5666/* confdefs.h. */
5667_ACEOF
5668cat confdefs.h >>conftest.$ac_ext
5669cat >>conftest.$ac_ext <<_ACEOF
5670/* end confdefs.h. */
5671#include <ac_nonexistent.h>
5672_ACEOF
5673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null; then
5681 if test -s conftest.err; then
5682 ac_cpp_err=$ac_c_preproc_warn_flag
5683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684 else
5685 ac_cpp_err=
5686 fi
5687else
5688 ac_cpp_err=yes
5689fi
5690if test -z "$ac_cpp_err"; then
5691 # Broken: success on invalid input.
5692continue
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 # Passes both tests.
5698ac_preproc_ok=:
5699break
5700fi
5701rm -f conftest.err conftest.$ac_ext
5702
5703done
5704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705rm -f conftest.err conftest.$ac_ext
5706if $ac_preproc_ok; then
5707 :
5708else
5709 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5710See \`config.log' for more details." >&5
5711echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5712See \`config.log' for more details." >&2;}
5713 { (exit 1); exit 1; }; }
5714fi
5715
5716ac_ext=c
5717ac_cpp='$CPP $CPPFLAGS'
5718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722
5723echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5724echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5725if test "${ac_cv_header_stdc+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728 cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h. */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h. */
5734#include <stdlib.h>
5735#include <stdarg.h>
5736#include <string.h>
5737#include <float.h>
5738
5739int
5740main ()
5741{
5742
5743 ;
5744 return 0;
5745}
5746_ACEOF
5747rm -f conftest.$ac_objext
5748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>conftest.er1
5750 ac_status=$?
5751 grep -v '^ *+' conftest.er1 >conftest.err
5752 rm -f conftest.er1
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try='test -z "$ac_c_werror_flag"
5757 || test ! -s conftest.err'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; } &&
5763 { ac_try='test -s conftest.$ac_objext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_header_stdc=yes
5770else
5771 echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774ac_cv_header_stdc=no
5775fi
5776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777
5778if test $ac_cv_header_stdc = yes; then
5779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5780 cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786#include <string.h>
5787
5788_ACEOF
5789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5790 $EGREP "memchr" >/dev/null 2>&1; then
5791 :
5792else
5793 ac_cv_header_stdc=no
5794fi
5795rm -f conftest*
5796
5797fi
5798
5799if test $ac_cv_header_stdc = yes; then
5800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */
5807#include <stdlib.h>
5808
5809_ACEOF
5810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5811 $EGREP "free" >/dev/null 2>&1; then
5812 :
5813else
5814 ac_cv_header_stdc=no
5815fi
5816rm -f conftest*
5817
5818fi
5819
5820if test $ac_cv_header_stdc = yes; then
5821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5822 if test "$cross_compiling" = yes; then
5823 :
5824else
5825 cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
5831#include <ctype.h>
5832#if ((' ' & 0x0FF) == 0x020)
5833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5835#else
5836# define ISLOWER(c) \
5837 (('a' <= (c) && (c) <= 'i') \
5838 || ('j' <= (c) && (c) <= 'r') \
5839 || ('s' <= (c) && (c) <= 'z'))
5840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5841#endif
5842
5843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5844int
5845main ()
5846{
5847 int i;
5848 for (i = 0; i < 256; i++)
5849 if (XOR (islower (i), ISLOWER (i))
5850 || toupper (i) != TOUPPER (i))
5851 exit(2);
5852 exit (0);
5853}
5854_ACEOF
5855rm -f conftest$ac_exeext
5856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 :
5867else
5868 echo "$as_me: program exited with status $ac_status" >&5
5869echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872( exit $ac_status )
5873ac_cv_header_stdc=no
5874fi
5875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5876fi
5877fi
5878fi
5879echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5880echo "${ECHO_T}$ac_cv_header_stdc" >&6
5881if test $ac_cv_header_stdc = yes; then
5882
5883cat >>confdefs.h <<\_ACEOF
5884#define STDC_HEADERS 1
5885_ACEOF
5886
5887fi
5888
5889# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5900 inttypes.h stdint.h unistd.h
5901do
5902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5903echo "$as_me:$LINENO: checking for $ac_header" >&5
5904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5905if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908 cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
5914$ac_includes_default
5915
5916#include <$ac_header>
5917_ACEOF
5918rm -f conftest.$ac_objext
5919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 eval "$as_ac_Header=yes"
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945eval "$as_ac_Header=no"
5946fi
5947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948fi
5949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5951if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5954_ACEOF
5955
5956fi
5957
5958done
5959
5960
5961
5962for ac_header in dlfcn.h
5963do
5964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965echo "$as_me:$LINENO: checking for $ac_header" >&5
5966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976$ac_includes_default
5977
5978#include <$ac_header>
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 eval "$as_ac_Header=yes"
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007eval "$as_ac_Header=no"
6008fi
6009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016_ACEOF
6017
6018fi
6019
6020done
6021
6022
6023
6024# This can be used to rebuild libtool when needed
6025LIBTOOL_DEPS="$ltmain"
6026
6027# Always use our own libtool.
6028LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054test -z "$LN_S" && LN_S="ln -s"
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069if test -n "${ZSH_VERSION+set}" ; then
6070 setopt NO_GLOB_SUBST
6071fi
6072
6073echo "$as_me:$LINENO: checking for objdir" >&5
6074echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6075if test "${lt_cv_objdir+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 rm -f .libs 2>/dev/null
6079mkdir .libs 2>/dev/null
6080if test -d .libs; then
6081 lt_cv_objdir=.libs
6082else
6083 # MS-DOS does not allow filenames that begin with a dot.
6084 lt_cv_objdir=_libs
6085fi
6086rmdir .libs 2>/dev/null
6087fi
6088echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6089echo "${ECHO_T}$lt_cv_objdir" >&6
6090objdir=$lt_cv_objdir
6091
6092
6093
6094
6095
6096cat >>confdefs.h <<_ACEOF
6097#define LT_OBJDIR "$lt_cv_objdir/"
6098_ACEOF
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116case $host_os in
6117aix3*)
6118 # AIX sometimes has problems with the GCC collect2 program. For some
6119 # reason, if we set the COLLECT_NAMES environment variable, the problems
6120 # vanish in a puff of smoke.
6121 if test "X${COLLECT_NAMES+set}" != Xset; then
6122 COLLECT_NAMES=
6123 export COLLECT_NAMES
6124 fi
6125 ;;
6126esac
6127
6128# Sed substitution that helps us do robust quoting. It backslashifies
6129# metacharacters that are still active within double-quoted strings.
6130sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6131
6132# Same as above, but do not quote variable references.
6133double_quote_subst='s/\(["`\\]\)/\\\1/g'
6134
6135# Sed substitution to delay expansion of an escaped shell variable in a
6136# double_quote_subst'ed string.
6137delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6138
6139# Sed substitution to delay expansion of an escaped single quote.
6140delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6141
6142# Sed substitution to avoid accidental globbing in evaled expressions
6143no_glob_subst='s/\*/\\\*/g'
6144
6145# Global variables:
6146ofile=libtool
6147can_build_shared=yes
6148
6149# All known linkers require a `.a' archive for static linking (except MSVC,
6150# which needs '.lib').
6151libext=a
6152
6153with_gnu_ld="$lt_cv_prog_gnu_ld"
6154
6155old_CC="$CC"
6156old_CFLAGS="$CFLAGS"
6157
6158# Set sane defaults for various variables
6159test -z "$CC" && CC=cc
6160test -z "$LTCC" && LTCC=$CC
6161test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6162test -z "$LD" && LD=ld
6163test -z "$ac_objext" && ac_objext=o
6164
6165for cc_temp in $compiler""; do
6166 case $cc_temp in
6167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6169 \-*) ;;
6170 *) break;;
6171 esac
6172done
6173cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6174
6175
6176# Only perform the check for file, if the check method requires it
6177test -z "$MAGIC_CMD" && MAGIC_CMD=file
6178case $deplibs_check_method in
6179file_magic*)
6180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6181 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6182echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6183if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 case $MAGIC_CMD in
6187[\\/*] | ?:[\\/]*)
6188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6189 ;;
6190*)
6191 lt_save_MAGIC_CMD="$MAGIC_CMD"
6192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6194 for ac_dir in $ac_dummy; do
6195 IFS="$lt_save_ifs"
6196 test -z "$ac_dir" && ac_dir=.
6197 if test -f $ac_dir/${ac_tool_prefix}file; then
6198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6199 if test -n "$file_magic_test_file"; then
6200 case $deplibs_check_method in
6201 "file_magic "*)
6202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6205 $EGREP "$file_magic_regex" > /dev/null; then
6206 :
6207 else
6208 cat <<_LT_EOF 1>&2
6209
6210*** Warning: the command libtool uses to detect shared libraries,
6211*** $file_magic_cmd, produces output that libtool cannot recognize.
6212*** The result is that libtool may fail to recognize shared libraries
6213*** as such. This will affect the creation of libtool libraries that
6214*** depend on shared libraries, but programs linked with such libtool
6215*** libraries will work regardless of this problem. Nevertheless, you
6216*** may want to report the problem to your system manager and/or to
6217*** bug-libtool@gnu.org
6218
6219_LT_EOF
6220 fi ;;
6221 esac
6222 fi
6223 break
6224 fi
6225 done
6226 IFS="$lt_save_ifs"
6227 MAGIC_CMD="$lt_save_MAGIC_CMD"
6228 ;;
6229esac
6230fi
6231
6232MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6233if test -n "$MAGIC_CMD"; then
6234 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6235echo "${ECHO_T}$MAGIC_CMD" >&6
6236else
6237 echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6
6239fi
6240
6241
6242
6243
6244
6245if test -z "$lt_cv_path_MAGIC_CMD"; then
6246 if test -n "$ac_tool_prefix"; then
6247 echo "$as_me:$LINENO: checking for file" >&5
6248echo $ECHO_N "checking for file... $ECHO_C" >&6
6249if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252 case $MAGIC_CMD in
6253[\\/*] | ?:[\\/]*)
6254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6255 ;;
6256*)
6257 lt_save_MAGIC_CMD="$MAGIC_CMD"
6258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6260 for ac_dir in $ac_dummy; do
6261 IFS="$lt_save_ifs"
6262 test -z "$ac_dir" && ac_dir=.
6263 if test -f $ac_dir/file; then
6264 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6265 if test -n "$file_magic_test_file"; then
6266 case $deplibs_check_method in
6267 "file_magic "*)
6268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6271 $EGREP "$file_magic_regex" > /dev/null; then
6272 :
6273 else
6274 cat <<_LT_EOF 1>&2
6275
6276*** Warning: the command libtool uses to detect shared libraries,
6277*** $file_magic_cmd, produces output that libtool cannot recognize.
6278*** The result is that libtool may fail to recognize shared libraries
6279*** as such. This will affect the creation of libtool libraries that
6280*** depend on shared libraries, but programs linked with such libtool
6281*** libraries will work regardless of this problem. Nevertheless, you
6282*** may want to report the problem to your system manager and/or to
6283*** bug-libtool@gnu.org
6284
6285_LT_EOF
6286 fi ;;
6287 esac
6288 fi
6289 break
6290 fi
6291 done
6292 IFS="$lt_save_ifs"
6293 MAGIC_CMD="$lt_save_MAGIC_CMD"
6294 ;;
6295esac
6296fi
6297
6298MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6299if test -n "$MAGIC_CMD"; then
6300 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6301echo "${ECHO_T}$MAGIC_CMD" >&6
6302else
6303 echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6
6305fi
6306
6307
6308 else
6309 MAGIC_CMD=:
6310 fi
6311fi
6312
6313 fi
6314 ;;
6315esac
6316
6317# Use C for the default configuration in the libtool script
6318
6319lt_save_CC="$CC"
6320ac_ext=c
6321ac_cpp='$CPP $CPPFLAGS'
6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
6326
6327# Source file extension for C test sources.
6328ac_ext=c
6329
6330# Object file extension for compiled C test sources.
6331objext=o
6332objext=$objext
6333
6334# Code to be used in simple compile tests
6335lt_simple_compile_test_code="int some_variable = 0;"
6336
6337# Code to be used in simple link tests
6338lt_simple_link_test_code='int main(){return(0);}'
6339
6340
6341
6342
6343
6344
6345
6346# If no C compiler was specified, use CC.
6347LTCC=${LTCC-"$CC"}
6348
6349# If no C compiler flags were specified, use CFLAGS.
6350LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6351
6352# Allow CC to be a program name with arguments.
6353compiler=$CC
6354
6355# Save the default compiler, since it gets overwritten when the other
6356# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6357compiler_DEFAULT=$CC
6358
6359# save warnings/boilerplate of simple test code
6360ac_outfile=conftest.$ac_objext
6361echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6362eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6363_lt_compiler_boilerplate=`cat conftest.err`
6364$RM conftest*
6365
6366ac_outfile=conftest.$ac_objext
6367echo "$lt_simple_link_test_code" >conftest.$ac_ext
6368eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6369_lt_linker_boilerplate=`cat conftest.err`
6370$RM conftest*
6371
6372
6373## CAVEAT EMPTOR:
6374## There is no encapsulation within the following macros, do not change
6375## the running order or otherwise move them around unless you know exactly
6376## what you are doing...
6377if test -n "$compiler"; then
6378
6379lt_prog_compiler_no_builtin_flag=
6380
6381if test "$GCC" = yes; then
6382 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6383
6384 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6385echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6386if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389 lt_cv_prog_compiler_rtti_exceptions=no
6390 ac_outfile=conftest.$ac_objext
6391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6392 lt_compiler_flag="-fno-rtti -fno-exceptions"
6393 # Insert the option either (1) after the last *FLAGS variable, or
6394 # (2) before a word containing "conftest.", or (3) at the end.
6395 # Note that $ac_compile itself does not contain backslashes and begins
6396 # with a dollar sign (not a hyphen), so the echo should work correctly.
6397 # The option is referenced via a variable to avoid confusing sed.
6398 lt_compile=`echo "$ac_compile" | $SED \
6399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6401 -e 's:$: $lt_compiler_flag:'`
6402 (eval echo "\"\$as_me:6402: $lt_compile\"" >&5)
6403 (eval "$lt_compile" 2>conftest.err)
6404 ac_status=$?
6405 cat conftest.err >&5
6406 echo "$as_me:6406: \$? = $ac_status" >&5
6407 if (exit $ac_status) && test -s "$ac_outfile"; then
6408 # The compiler can only warn and ignore the option if not recognized
6409 # So say no if there are warnings other than the usual output.
6410 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6413 lt_cv_prog_compiler_rtti_exceptions=yes
6414 fi
6415 fi
6416 $RM conftest*
6417
6418fi
6419echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6420echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6421
6422if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6423 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6424else
6425 :
6426fi
6427
6428fi
6429
6430
6431
6432
6433
6434
6435 lt_prog_compiler_wl=
6436lt_prog_compiler_pic=
6437lt_prog_compiler_static=
6438
6439echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6440echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6441
6442 if test "$GCC" = yes; then
6443 lt_prog_compiler_wl='-Wl,'
6444 lt_prog_compiler_static='-static'
6445
6446 case $host_os in
6447 aix*)
6448 # All AIX code is PIC.
6449 if test "$host_cpu" = ia64; then
6450 # AIX 5 now supports IA64 processor
6451 lt_prog_compiler_static='-Bstatic'
6452 fi
6453 ;;
6454
6455 amigaos*)
6456 if test "$host_cpu" = m68k; then
6457 # FIXME: we need at least 68020 code to build shared libraries, but
6458 # adding the `-m68020' flag to GCC prevents building anything better,
6459 # like `-m68040'.
6460 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6461 fi
6462 ;;
6463
6464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6465 # PIC is the default for these OSes.
6466 ;;
6467
6468 mingw* | cygwin* | pw32* | os2*)
6469 # This hack is so that the source file can tell whether it is being
6470 # built for inclusion in a dll (and should export symbols for example).
6471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6472 # (--disable-auto-import) libraries
6473 lt_prog_compiler_pic='-DDLL_EXPORT'
6474 ;;
6475
6476 darwin* | rhapsody*)
6477 # PIC is the default on this platform
6478 # Common symbols not allowed in MH_DYLIB files
6479 lt_prog_compiler_pic='-fno-common'
6480 ;;
6481
6482 hpux*)
6483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6484 # not for PA HP-UX.
6485 case $host_cpu in
6486 hppa*64*|ia64*)
6487 # +Z the default
6488 ;;
6489 *)
6490 lt_prog_compiler_pic='-fPIC'
6491 ;;
6492 esac
6493 ;;
6494
6495 interix[3-9]*)
6496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6497 # Instead, we relocate shared libraries at runtime.
6498 ;;
6499
6500 msdosdjgpp*)
6501 # Just because we use GCC doesn't mean we suddenly get shared libraries
6502 # on systems that don't support them.
6503 lt_prog_compiler_can_build_shared=no
6504 enable_shared=no
6505 ;;
6506
6507 *nto* | *qnx*)
6508 # QNX uses GNU C++, but need to define -shared option too, otherwise
6509 # it will coredump.
6510 lt_prog_compiler_pic='-fPIC -shared'
6511 ;;
6512
6513 sysv4*MP*)
6514 if test -d /usr/nec; then
6515 lt_prog_compiler_pic=-Kconform_pic
6516 fi
6517 ;;
6518
6519 *)
6520 lt_prog_compiler_pic='-fPIC'
6521 ;;
6522 esac
6523 else
6524 # PORTME Check for flag to pass linker flags through the system compiler.
6525 case $host_os in
6526 aix*)
6527 lt_prog_compiler_wl='-Wl,'
6528 if test "$host_cpu" = ia64; then
6529 # AIX 5 now supports IA64 processor
6530 lt_prog_compiler_static='-Bstatic'
6531 else
6532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6533 fi
6534 ;;
6535 darwin*)
6536 # PIC is the default on this platform
6537 # Common symbols not allowed in MH_DYLIB files
6538 case $cc_basename in
6539 xlc*)
6540 lt_prog_compiler_pic='-qnocommon'
6541 lt_prog_compiler_wl='-Wl,'
6542 ;;
6543 esac
6544 ;;
6545
6546 mingw* | cygwin* | pw32* | os2*)
6547 # This hack is so that the source file can tell whether it is being
6548 # built for inclusion in a dll (and should export symbols for example).
6549 lt_prog_compiler_pic='-DDLL_EXPORT'
6550 ;;
6551
6552 hpux9* | hpux10* | hpux11*)
6553 lt_prog_compiler_wl='-Wl,'
6554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6555 # not for PA HP-UX.
6556 case $host_cpu in
6557 hppa*64*|ia64*)
6558 # +Z the default
6559 ;;
6560 *)
6561 lt_prog_compiler_pic='+Z'
6562 ;;
6563 esac
6564 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6565 lt_prog_compiler_static='${wl}-a ${wl}archive'
6566 ;;
6567
6568 irix5* | irix6* | nonstopux*)
6569 lt_prog_compiler_wl='-Wl,'
6570 # PIC (with -KPIC) is the default.
6571 lt_prog_compiler_static='-non_shared'
6572 ;;
6573
6574 linux* | k*bsd*-gnu)
6575 case $cc_basename in
6576 icc* | ecc*)
6577 lt_prog_compiler_wl='-Wl,'
6578 lt_prog_compiler_pic='-KPIC'
6579 lt_prog_compiler_static='-static'
6580 ;;
6581 pgcc* | pgf77* | pgf90* | pgf95*)
6582 # Portland Group compilers (*not* the Pentium gcc compiler,
6583 # which looks to be a dead project)
6584 lt_prog_compiler_wl='-Wl,'
6585 lt_prog_compiler_pic='-fpic'
6586 lt_prog_compiler_static='-Bstatic'
6587 ;;
6588 ccc*)
6589 lt_prog_compiler_wl='-Wl,'
6590 # All Alpha code is PIC.
6591 lt_prog_compiler_static='-non_shared'
6592 ;;
6593 *)
6594 case `$CC -V 2>&1 | sed 5q` in
6595 *Sun\ C*)
6596 # Sun C 5.9
6597 lt_prog_compiler_pic='-KPIC'
6598 lt_prog_compiler_static='-Bstatic'
6599 lt_prog_compiler_wl='-Wl,'
6600 ;;
6601 *Sun\ F*)
6602 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6603 lt_prog_compiler_pic='-KPIC'
6604 lt_prog_compiler_static='-Bstatic'
6605 lt_prog_compiler_wl=''
6606 ;;
6607 esac
6608 ;;
6609 esac
6610 ;;
6611
6612 newsos6)
6613 lt_prog_compiler_pic='-KPIC'
6614 lt_prog_compiler_static='-Bstatic'
6615 ;;
6616
6617 *nto* | *qnx*)
6618 # QNX uses GNU C++, but need to define -shared option too, otherwise
6619 # it will coredump.
6620 lt_prog_compiler_pic='-fPIC -shared'
6621 ;;
6622
6623 osf3* | osf4* | osf5*)
6624 lt_prog_compiler_wl='-Wl,'
6625 # All OSF/1 code is PIC.
6626 lt_prog_compiler_static='-non_shared'
6627 ;;
6628
6629 rdos*)
6630 lt_prog_compiler_static='-non_shared'
6631 ;;
6632
6633 solaris*)
6634 lt_prog_compiler_pic='-KPIC'
6635 lt_prog_compiler_static='-Bstatic'
6636 case $cc_basename in
6637 f77* | f90* | f95*)
6638 lt_prog_compiler_wl='-Qoption ld ';;
6639 *)
6640 lt_prog_compiler_wl='-Wl,';;
6641 esac
6642 ;;
6643
6644 sunos4*)
6645 lt_prog_compiler_wl='-Qoption ld '
6646 lt_prog_compiler_pic='-PIC'
6647 lt_prog_compiler_static='-Bstatic'
6648 ;;
6649
6650 sysv4 | sysv4.2uw2* | sysv4.3*)
6651 lt_prog_compiler_wl='-Wl,'
6652 lt_prog_compiler_pic='-KPIC'
6653 lt_prog_compiler_static='-Bstatic'
6654 ;;
6655
6656 sysv4*MP*)
6657 if test -d /usr/nec ;then
6658 lt_prog_compiler_pic='-Kconform_pic'
6659 lt_prog_compiler_static='-Bstatic'
6660 fi
6661 ;;
6662
6663 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6664 lt_prog_compiler_wl='-Wl,'
6665 lt_prog_compiler_pic='-KPIC'
6666 lt_prog_compiler_static='-Bstatic'
6667 ;;
6668
6669 unicos*)
6670 lt_prog_compiler_wl='-Wl,'
6671 lt_prog_compiler_can_build_shared=no
6672 ;;
6673
6674 uts4*)
6675 lt_prog_compiler_pic='-pic'
6676 lt_prog_compiler_static='-Bstatic'
6677 ;;
6678
6679 *)
6680 lt_prog_compiler_can_build_shared=no
6681 ;;
6682 esac
6683 fi
6684
6685case $host_os in
6686 # For platforms which do not support PIC, -DPIC is meaningless:
6687 *djgpp*)
6688 lt_prog_compiler_pic=
6689 ;;
6690 *)
6691 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6692 ;;
6693esac
6694echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6695echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6696
6697
6698
6699
6700
6701
6702#
6703# Check to make sure the PIC flag actually works.
6704#
6705if test -n "$lt_prog_compiler_pic"; then
6706 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6707echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6708if test "${lt_prog_compiler_pic_works+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 lt_prog_compiler_pic_works=no
6712 ac_outfile=conftest.$ac_objext
6713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6714 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6715 # Insert the option either (1) after the last *FLAGS variable, or
6716 # (2) before a word containing "conftest.", or (3) at the end.
6717 # Note that $ac_compile itself does not contain backslashes and begins
6718 # with a dollar sign (not a hyphen), so the echo should work correctly.
6719 # The option is referenced via a variable to avoid confusing sed.
6720 lt_compile=`echo "$ac_compile" | $SED \
6721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6723 -e 's:$: $lt_compiler_flag:'`
6724 (eval echo "\"\$as_me:6724: $lt_compile\"" >&5)
6725 (eval "$lt_compile" 2>conftest.err)
6726 ac_status=$?
6727 cat conftest.err >&5
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 if (exit $ac_status) && test -s "$ac_outfile"; then
6730 # The compiler can only warn and ignore the option if not recognized
6731 # So say no if there are warnings other than the usual output.
6732 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6735 lt_prog_compiler_pic_works=yes
6736 fi
6737 fi
6738 $RM conftest*
6739
6740fi
6741echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6742echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6743
6744if test x"$lt_prog_compiler_pic_works" = xyes; then
6745 case $lt_prog_compiler_pic in
6746 "" | " "*) ;;
6747 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6748 esac
6749else
6750 lt_prog_compiler_pic=
6751 lt_prog_compiler_can_build_shared=no
6752fi
6753
6754fi
6755
6756
6757
6758
6759
6760
6761#
6762# Check to make sure the static flag actually works.
6763#
6764wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6765echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6766echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6767if test "${lt_prog_compiler_static_works+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770 lt_prog_compiler_static_works=no
6771 save_LDFLAGS="$LDFLAGS"
6772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6775 # The linker can only warn and ignore the option if not recognized
6776 # So say no if there are warnings
6777 if test -s conftest.err; then
6778 # Append any errors to the config.log.
6779 cat conftest.err 1>&5
6780 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6782 if diff conftest.exp conftest.er2 >/dev/null; then
6783 lt_prog_compiler_static_works=yes
6784 fi
6785 else
6786 lt_prog_compiler_static_works=yes
6787 fi
6788 fi
6789 $RM conftest*
6790 LDFLAGS="$save_LDFLAGS"
6791
6792fi
6793echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6794echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6795
6796if test x"$lt_prog_compiler_static_works" = xyes; then
6797 :
6798else
6799 lt_prog_compiler_static=
6800fi
6801
6802
6803
6804
6805
6806
6807
6808 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6809echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6810if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 lt_cv_prog_compiler_c_o=no
6814 $RM -r conftest 2>/dev/null
6815 mkdir conftest
6816 cd conftest
6817 mkdir out
6818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6819
6820 lt_compiler_flag="-o out/conftest2.$ac_objext"
6821 # Insert the option either (1) after the last *FLAGS variable, or
6822 # (2) before a word containing "conftest.", or (3) at the end.
6823 # Note that $ac_compile itself does not contain backslashes and begins
6824 # with a dollar sign (not a hyphen), so the echo should work correctly.
6825 lt_compile=`echo "$ac_compile" | $SED \
6826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6828 -e 's:$: $lt_compiler_flag:'`
6829 (eval echo "\"\$as_me:6829: $lt_compile\"" >&5)
6830 (eval "$lt_compile" 2>out/conftest.err)
6831 ac_status=$?
6832 cat out/conftest.err >&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6835 then
6836 # The compiler can only warn and ignore the option if not recognized
6837 # So say no if there are warnings
6838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6841 lt_cv_prog_compiler_c_o=yes
6842 fi
6843 fi
6844 chmod u+w . 2>&5
6845 $RM conftest*
6846 # SGI C++ compiler will create directory out/ii_files/ for
6847 # template instantiation
6848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6849 $RM out/* && rmdir out
6850 cd ..
6851 $RM -r conftest
6852 $RM conftest*
6853
6854fi
6855echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6856echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6857
6858
6859
6860
6861
6862
6863 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6864echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6865if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 lt_cv_prog_compiler_c_o=no
6869 $RM -r conftest 2>/dev/null
6870 mkdir conftest
6871 cd conftest
6872 mkdir out
6873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6874
6875 lt_compiler_flag="-o out/conftest2.$ac_objext"
6876 # Insert the option either (1) after the last *FLAGS variable, or
6877 # (2) before a word containing "conftest.", or (3) at the end.
6878 # Note that $ac_compile itself does not contain backslashes and begins
6879 # with a dollar sign (not a hyphen), so the echo should work correctly.
6880 lt_compile=`echo "$ac_compile" | $SED \
6881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6883 -e 's:$: $lt_compiler_flag:'`
6884 (eval echo "\"\$as_me:6884: $lt_compile\"" >&5)
6885 (eval "$lt_compile" 2>out/conftest.err)
6886 ac_status=$?
6887 cat out/conftest.err >&5
6888 echo "$as_me:6888: \$? = $ac_status" >&5
6889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6890 then
6891 # The compiler can only warn and ignore the option if not recognized
6892 # So say no if there are warnings
6893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6896 lt_cv_prog_compiler_c_o=yes
6897 fi
6898 fi
6899 chmod u+w . 2>&5
6900 $RM conftest*
6901 # SGI C++ compiler will create directory out/ii_files/ for
6902 # template instantiation
6903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6904 $RM out/* && rmdir out
6905 cd ..
6906 $RM -r conftest
6907 $RM conftest*
6908
6909fi
6910echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6911echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6912
6913
6914
6915
6916hard_links="nottested"
6917if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6918 # do not overwrite the value of need_locks provided by the user
6919 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6920echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6921 hard_links=yes
6922 $RM conftest*
6923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6924 touch conftest.a
6925 ln conftest.a conftest.b 2>&5 || hard_links=no
6926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6927 echo "$as_me:$LINENO: result: $hard_links" >&5
6928echo "${ECHO_T}$hard_links" >&6
6929 if test "$hard_links" = no; then
6930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6931echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6932 need_locks=warn
6933 fi
6934else
6935 need_locks=no
6936fi
6937
6938
6939
6940
6941
6942
6943 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6944echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6945
6946 runpath_var=
6947 allow_undefined_flag=
6948 always_export_symbols=no
6949 archive_cmds=
6950 archive_expsym_cmds=
6951 compiler_needs_object=no
6952 enable_shared_with_static_runtimes=no
6953 export_dynamic_flag_spec=
6954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6955 hardcode_automatic=no
6956 hardcode_direct=no
6957 hardcode_direct_absolute=no
6958 hardcode_libdir_flag_spec=
6959 hardcode_libdir_flag_spec_ld=
6960 hardcode_libdir_separator=
6961 hardcode_minus_L=no
6962 hardcode_shlibpath_var=unsupported
6963 inherit_rpath=no
6964 link_all_deplibs=unknown
6965 module_cmds=
6966 module_expsym_cmds=
6967 old_archive_from_new_cmds=
6968 old_archive_from_expsyms_cmds=
6969 thread_safe_flag_spec=
6970 whole_archive_flag_spec=
6971 # include_expsyms should be a list of space-separated symbols to be *always*
6972 # included in the symbol list
6973 include_expsyms=
6974 # exclude_expsyms can be an extended regexp of symbols to exclude
6975 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6976 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6977 # as well as any symbol that contains `d'.
6978 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6980 # platforms (ab)use it in PIC code, but their linkers get confused if
6981 # the symbol is explicitly referenced. Since portable code cannot
6982 # rely on this symbol name, it's probably fine to never include it in
6983 # preloaded symbol tables.
6984 extract_expsyms_cmds=
6985
6986 case $host_os in
6987 cygwin* | mingw* | pw32*)
6988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6989 # When not using gcc, we currently assume that we are using
6990 # Microsoft Visual C++.
6991 if test "$GCC" != yes; then
6992 with_gnu_ld=no
6993 fi
6994 ;;
6995 interix*)
6996 # we just hope/assume this is gcc and not c89 (= MSVC++)
6997 with_gnu_ld=yes
6998 ;;
6999 openbsd*)
7000 with_gnu_ld=no
7001 ;;
7002 esac
7003
7004 ld_shlibs=yes
7005 if test "$with_gnu_ld" = yes; then
7006 # If archive_cmds runs LD, not CC, wlarc should be empty
7007 wlarc='${wl}'
7008
7009 # Set some defaults for GNU ld with shared library support. These
7010 # are reset later if shared libraries are not supported. Putting them
7011 # here allows them to be overridden if necessary.
7012 runpath_var=LD_RUN_PATH
7013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7014 export_dynamic_flag_spec='${wl}--export-dynamic'
7015 # ancient GNU ld didn't support --whole-archive et. al.
7016 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7017 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7018 else
7019 whole_archive_flag_spec=
7020 fi
7021 supports_anon_versioning=no
7022 case `$LD -v 2>&1` in
7023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7026 *\ 2.11.*) ;; # other 2.11 versions
7027 *) supports_anon_versioning=yes ;;
7028 esac
7029
7030 # See if GNU ld supports shared libraries.
7031 case $host_os in
7032 aix3* | aix4* | aix5*)
7033 # On AIX/PPC, the GNU linker is very broken
7034 if test "$host_cpu" != ia64; then
7035 ld_shlibs=no
7036 cat <<_LT_EOF 1>&2
7037
7038*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7039*** to be unable to reliably create shared libraries on AIX.
7040*** Therefore, libtool is disabling shared libraries support. If you
7041*** really care for shared libraries, you may want to modify your PATH
7042*** so that a non-GNU linker is found, and then restart.
7043
7044_LT_EOF
7045 fi
7046 ;;
7047
7048 amigaos*)
7049 if test "$host_cpu" = m68k; then
7050 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)'
7051 hardcode_libdir_flag_spec='-L$libdir'
7052 hardcode_minus_L=yes
7053 fi
7054
7055 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7056 # that the semantics of dynamic libraries on AmigaOS, at least up
7057 # to version 4, is to share data among multiple programs linked
7058 # with the same dynamic library. Since this doesn't match the
7059 # behavior of shared libraries on other platforms, we can't use
7060 # them.
7061 ld_shlibs=no
7062 ;;
7063
7064 beos*)
7065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7066 allow_undefined_flag=unsupported
7067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7068 # support --undefined. This deserves some investigation. FIXME
7069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7070 else
7071 ld_shlibs=no
7072 fi
7073 ;;
7074
7075 cygwin* | mingw* | pw32*)
7076 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7077 # as there is no search path for DLLs.
7078 hardcode_libdir_flag_spec='-L$libdir'
7079 allow_undefined_flag=unsupported
7080 always_export_symbols=no
7081 enable_shared_with_static_runtimes=yes
7082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7083
7084 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7086 # If the export-symbols file already is a .def file (1st line
7087 # is EXPORTS), use it as is; otherwise, prepend...
7088 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7089 cp $export_symbols $output_objdir/$soname.def;
7090 else
7091 echo EXPORTS > $output_objdir/$soname.def;
7092 cat $export_symbols >> $output_objdir/$soname.def;
7093 fi~
7094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7095 else
7096 ld_shlibs=no
7097 fi
7098 ;;
7099
7100 interix[3-9]*)
7101 hardcode_direct=no
7102 hardcode_shlibpath_var=no
7103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7104 export_dynamic_flag_spec='${wl}-E'
7105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7106 # Instead, shared libraries are loaded at an image base (0x10000000 by
7107 # default) and relocated if they conflict, which is a slow very memory
7108 # consuming and fragmenting process. To avoid this, we pick a random,
7109 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7110 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7112 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'
7113 ;;
7114
7115 gnu* | linux* | tpf* | k*bsd*-gnu)
7116 tmp_diet=no
7117 if test "$host_os" = linux-dietlibc; then
7118 case $cc_basename in
7119 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7120 esac
7121 fi
7122 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7123 && test "$tmp_diet" = no
7124 then
7125 tmp_addflag=
7126 case $cc_basename,$host_cpu in
7127 pgcc*) # Portland Group C compiler
7128 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'
7129 tmp_addflag=' $pic_flag'
7130 ;;
7131 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7132 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'
7133 tmp_addflag=' $pic_flag -Mnomain' ;;
7134 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7135 tmp_addflag=' -i_dynamic' ;;
7136 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7137 tmp_addflag=' -i_dynamic -nofor_main' ;;
7138 ifc* | ifort*) # Intel Fortran compiler
7139 tmp_addflag=' -nofor_main' ;;
7140 esac
7141 case `$CC -V 2>&1 | sed 5q` in
7142 *Sun\ C*) # Sun C 5.9
7143 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'
7144 compiler_needs_object=yes
7145 tmp_sharedflag='-G' ;;
7146 *Sun\ F*) # Sun Fortran 8.3
7147 tmp_sharedflag='-G' ;;
7148 *)
7149 tmp_sharedflag='-shared' ;;
7150 esac
7151 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7152
7153 if test "x$supports_anon_versioning" = xyes; then
7154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7156 echo "local: *; };" >> $output_objdir/$libname.ver~
7157 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7158 fi
7159 else
7160 ld_shlibs=no
7161 fi
7162 ;;
7163
7164 netbsd*)
7165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7167 wlarc=
7168 else
7169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7171 fi
7172 ;;
7173
7174 solaris*)
7175 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7176 ld_shlibs=no
7177 cat <<_LT_EOF 1>&2
7178
7179*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7180*** create shared libraries on Solaris systems. Therefore, libtool
7181*** is disabling shared libraries support. We urge you to upgrade GNU
7182*** binutils to release 2.9.1 or newer. Another option is to modify
7183*** your PATH or compiler configuration so that the native linker is
7184*** used, and then restart.
7185
7186_LT_EOF
7187 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7190 else
7191 ld_shlibs=no
7192 fi
7193 ;;
7194
7195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7196 case `$LD -v 2>&1` in
7197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7198 ld_shlibs=no
7199 cat <<_LT_EOF 1>&2
7200
7201*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7202*** reliably create shared libraries on SCO systems. Therefore, libtool
7203*** is disabling shared libraries support. We urge you to upgrade GNU
7204*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7205*** your PATH or compiler configuration so that the native linker is
7206*** used, and then restart.
7207
7208_LT_EOF
7209 ;;
7210 *)
7211 # For security reasons, it is highly recommended that you always
7212 # use absolute paths for naming shared libraries, and exclude the
7213 # DT_RUNPATH tag from executables and libraries. But doing so
7214 # requires that you compile everything twice, which is a pain.
7215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7219 else
7220 ld_shlibs=no
7221 fi
7222 ;;
7223 esac
7224 ;;
7225
7226 sunos4*)
7227 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7228 wlarc=
7229 hardcode_direct=yes
7230 hardcode_shlibpath_var=no
7231 ;;
7232
7233 *)
7234 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7237 else
7238 ld_shlibs=no
7239 fi
7240 ;;
7241 esac
7242
7243 if test "$ld_shlibs" = no; then
7244 runpath_var=
7245 hardcode_libdir_flag_spec=
7246 export_dynamic_flag_spec=
7247 whole_archive_flag_spec=
7248 fi
7249 else
7250 # PORTME fill in a description of your system's linker (not GNU ld)
7251 case $host_os in
7252 aix3*)
7253 allow_undefined_flag=unsupported
7254 always_export_symbols=yes
7255 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'
7256 # Note: this linker hardcodes the directories in LIBPATH if there
7257 # are no directories specified by -L.
7258 hardcode_minus_L=yes
7259 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7260 # Neither direct hardcoding nor static linking is supported with a
7261 # broken collect2.
7262 hardcode_direct=unsupported
7263 fi
7264 ;;
7265
7266 aix4* | aix5*)
7267 if test "$host_cpu" = ia64; then
7268 # On IA64, the linker does run time linking by default, so we don't
7269 # have to do anything special.
7270 aix_use_runtimelinking=no
7271 exp_sym_flag='-Bexport'
7272 no_entry_flag=""
7273 else
7274 # If we're using GNU nm, then we don't want the "-C" option.
7275 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7277 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'
7278 else
7279 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'
7280 fi
7281 aix_use_runtimelinking=no
7282
7283 # Test if we are trying to use run time linking or normal
7284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7285 # need to do runtime linking.
7286 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7287 for ld_flag in $LDFLAGS; do
7288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7289 aix_use_runtimelinking=yes
7290 break
7291 fi
7292 done
7293 ;;
7294 esac
7295
7296 exp_sym_flag='-bexport'
7297 no_entry_flag='-bnoentry'
7298 fi
7299
7300 # When large executables or shared objects are built, AIX ld can
7301 # have problems creating the table of contents. If linking a library
7302 # or program results in "error TOC overflow" add -mminimal-toc to
7303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7305
7306 archive_cmds=''
7307 hardcode_direct=yes
7308 hardcode_direct_absolute=yes
7309 hardcode_libdir_separator=':'
7310 link_all_deplibs=yes
7311 file_list_spec='${wl}-f,'
7312
7313 if test "$GCC" = yes; then
7314 case $host_os in aix4.[012]|aix4.[012].*)
7315 # We only want to do this on AIX 4.2 and lower, the check
7316 # below for broken collect2 doesn't work under 4.3+
7317 collect2name=`${CC} -print-prog-name=collect2`
7318 if test -f "$collect2name" &&
7319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7320 then
7321 # We have reworked collect2
7322 :
7323 else
7324 # We have old collect2
7325 hardcode_direct=unsupported
7326 # It fails to find uninstalled libraries when the uninstalled
7327 # path is not listed in the libpath. Setting hardcode_minus_L
7328 # to unsupported forces relinking
7329 hardcode_minus_L=yes
7330 hardcode_libdir_flag_spec='-L$libdir'
7331 hardcode_libdir_separator=
7332 fi
7333 ;;
7334 esac
7335 shared_flag='-shared'
7336 if test "$aix_use_runtimelinking" = yes; then
7337 shared_flag="$shared_flag "'${wl}-G'
7338 fi
7339 else
7340 # not using gcc
7341 if test "$host_cpu" = ia64; then
7342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7343 # chokes on -Wl,-G. The following line is correct:
7344 shared_flag='-G'
7345 else
7346 if test "$aix_use_runtimelinking" = yes; then
7347 shared_flag='${wl}-G'
7348 else
7349 shared_flag='${wl}-bM:SRE'
7350 fi
7351 fi
7352 fi
7353
7354 # It seems that -bexpall does not export symbols beginning with
7355 # underscore (_), so it is better to generate a list of symbols to export.
7356 always_export_symbols=yes
7357 if test "$aix_use_runtimelinking" = yes; then
7358 # Warning - without using the other runtime loading flags (-brtl),
7359 # -berok will link without error, but may produce a broken library.
7360 allow_undefined_flag='-berok'
7361 # Determine the default libpath from the value encoded in an
7362 # empty executable.
7363 cat >conftest.$ac_ext <<_ACEOF
7364/* confdefs.h. */
7365_ACEOF
7366cat confdefs.h >>conftest.$ac_ext
7367cat >>conftest.$ac_ext <<_ACEOF
7368/* end confdefs.h. */
7369
7370int
7371main ()
7372{
7373
7374 ;
7375 return 0;
7376}
7377_ACEOF
7378rm -f conftest.$ac_objext conftest$ac_exeext
7379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380 (eval $ac_link) 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400
7401lt_aix_libpath_sed='
7402 /Import File Strings/,/^$/ {
7403 /^0/ {
7404 s/^0 *\(.*\)$/\1/
7405 p
7406 }
7407 }'
7408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7409# Check for a 64-bit object if we didn't find anything.
7410if test -z "$aix_libpath"; then
7411 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7412fi
7413else
7414 echo "$as_me: failed program was:" >&5
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
7417fi
7418rm -f conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7421
7422 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7423 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7424 else
7425 if test "$host_cpu" = ia64; then
7426 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7427 allow_undefined_flag="-z nodefs"
7428 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"
7429 else
7430 # Determine the default libpath from the value encoded in an
7431 # empty executable.
7432 cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h. */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h. */
7438
7439int
7440main ()
7441{
7442
7443 ;
7444 return 0;
7445}
7446_ACEOF
7447rm -f conftest.$ac_objext conftest$ac_exeext
7448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469
7470lt_aix_libpath_sed='
7471 /Import File Strings/,/^$/ {
7472 /^0/ {
7473 s/^0 *\(.*\)$/\1/
7474 p
7475 }
7476 }'
7477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7478# Check for a 64-bit object if we didn't find anything.
7479if test -z "$aix_libpath"; then
7480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7481fi
7482else
7483 echo "$as_me: failed program was:" >&5
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
7486fi
7487rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7490
7491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7492 # Warning - without using the other run time loading flags,
7493 # -berok will link without error, but may produce a broken library.
7494 no_undefined_flag=' ${wl}-bernotok'
7495 allow_undefined_flag=' ${wl}-berok'
7496 # Exported symbols can be pulled into shared objects from archives
7497 whole_archive_flag_spec='$convenience'
7498 archive_cmds_need_lc=yes
7499 # This is similar to how AIX traditionally builds its shared libraries.
7500 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'
7501 fi
7502 fi
7503 ;;
7504
7505 amigaos*)
7506 if test "$host_cpu" = m68k; then
7507 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)'
7508 hardcode_libdir_flag_spec='-L$libdir'
7509 hardcode_minus_L=yes
7510 fi
7511 # see comment about different semantics on the GNU ld section
7512 ld_shlibs=no
7513 ;;
7514
7515 bsdi[45]*)
7516 export_dynamic_flag_spec=-rdynamic
7517 ;;
7518
7519 cygwin* | mingw* | pw32*)
7520 # When not using gcc, we currently assume that we are using
7521 # Microsoft Visual C++.
7522 # hardcode_libdir_flag_spec is actually meaningless, as there is
7523 # no search path for DLLs.
7524 hardcode_libdir_flag_spec=' '
7525 allow_undefined_flag=unsupported
7526 # Tell ltmain to make .lib files, not .a files.
7527 libext=lib
7528 # Tell ltmain to make .dll files, not .so files.
7529 shrext_cmds=".dll"
7530 # FIXME: Setting linknames here is a bad hack.
7531 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7532 # The linker will automatically build a .lib file if we build a DLL.
7533 old_archive_from_new_cmds='true'
7534 # FIXME: Should let the user specify the lib program.
7535 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7536 fix_srcfile_path='`cygpath -w "$srcfile"`'
7537 enable_shared_with_static_runtimes=yes
7538 ;;
7539
7540 darwin* | rhapsody*)
7541 case $host_os in
7542 rhapsody* | darwin1.[012])
7543 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7544 ;;
7545 *) # Darwin 1.3 on
7546 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7547 10.[012])
7548 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7549 ;;
7550 10.*)
7551 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7552 ;;
7553 esac
7554 ;;
7555 esac
7556 archive_cmds_need_lc=no
7557 hardcode_direct=no
7558 hardcode_automatic=yes
7559 hardcode_shlibpath_var=unsupported
7560 whole_archive_flag_spec=''
7561 link_all_deplibs=yes
7562 if test "$GCC" = yes ; then
7563 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566 lt_cv_apple_cc_single_mod=no
7567 if test -z "${LT_MULTI_MODULE}"; then
7568 # By default we will add the -single_module flag. You can override
7569 # by either setting the environment variable LT_MULTI_MODULE
7570 # non-empty at configure time, or by adding -multi-module to the
7571 # link flags.
7572 echo "int foo(void){return 1;}" > conftest.c
7573 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7574 -dynamiclib ${wl}-single_module conftest.c
7575 if test -f libconftest.dylib; then
7576 lt_cv_apple_cc_single_mod=yes
7577 rm libconftest.dylib
7578 fi
7579 rm conftest.$ac_ext
7580 fi
7581fi
7582
7583 output_verbose_link_cmd=echo
7584 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7585 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7586 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7587 else
7588 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7589 archive_expsym_cmds='sed "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}'
7590 fi
7591 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7592 module_expsym_cmds='sed -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}'
7593 else
7594 case $cc_basename in
7595 xlc*)
7596 output_verbose_link_cmd=echo
7597 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7598 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7599 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7600 archive_expsym_cmds='sed "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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7601 module_expsym_cmds='sed "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}'
7602 ;;
7603 *)
7604 ld_shlibs=no
7605 ;;
7606 esac
7607 fi
7608 ;;
7609
7610 dgux*)
7611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7612 hardcode_libdir_flag_spec='-L$libdir'
7613 hardcode_shlibpath_var=no
7614 ;;
7615
7616 freebsd1*)
7617 ld_shlibs=no
7618 ;;
7619
7620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7621 # support. Future versions do this automatically, but an explicit c++rt0.o
7622 # does not break anything, and helps significantly (at the cost of a little
7623 # extra space).
7624 freebsd2.2*)
7625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7626 hardcode_libdir_flag_spec='-R$libdir'
7627 hardcode_direct=yes
7628 hardcode_shlibpath_var=no
7629 ;;
7630
7631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7632 freebsd2*)
7633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7634 hardcode_direct=yes
7635 hardcode_minus_L=yes
7636 hardcode_shlibpath_var=no
7637 ;;
7638
7639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7640 freebsd* | dragonfly*)
7641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7642 hardcode_libdir_flag_spec='-R$libdir'
7643 hardcode_direct=yes
7644 hardcode_shlibpath_var=no
7645 ;;
7646
7647 hpux9*)
7648 if test "$GCC" = yes; then
7649 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'
7650 else
7651 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'
7652 fi
7653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7654 hardcode_libdir_separator=:
7655 hardcode_direct=yes
7656
7657 # hardcode_minus_L: Not really in the search PATH,
7658 # but as the default location of the library.
7659 hardcode_minus_L=yes
7660 export_dynamic_flag_spec='${wl}-E'
7661 ;;
7662
7663 hpux10*)
7664 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7666 else
7667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7668 fi
7669 if test "$with_gnu_ld" = no; then
7670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7671 hardcode_libdir_flag_spec_ld='+b $libdir'
7672 hardcode_libdir_separator=:
7673 hardcode_direct=yes
7674 hardcode_direct_absolute=yes
7675 export_dynamic_flag_spec='${wl}-E'
7676 # hardcode_minus_L: Not really in the search PATH,
7677 # but as the default location of the library.
7678 hardcode_minus_L=yes
7679 fi
7680 ;;
7681
7682 hpux11*)
7683 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7684 case $host_cpu in
7685 hppa*64*)
7686 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7687 ;;
7688 ia64*)
7689 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7690 ;;
7691 *)
7692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7693 ;;
7694 esac
7695 else
7696 case $host_cpu in
7697 hppa*64*)
7698 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7699 ;;
7700 ia64*)
7701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7702 ;;
7703 *)
7704 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7705 ;;
7706 esac
7707 fi
7708 if test "$with_gnu_ld" = no; then
7709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7710 hardcode_libdir_separator=:
7711
7712 case $host_cpu in
7713 hppa*64*|ia64*)
7714 hardcode_direct=no
7715 hardcode_shlibpath_var=no
7716 ;;
7717 *)
7718 hardcode_direct=yes
7719 hardcode_direct_absolute=yes
7720 export_dynamic_flag_spec='${wl}-E'
7721
7722 # hardcode_minus_L: Not really in the search PATH,
7723 # but as the default location of the library.
7724 hardcode_minus_L=yes
7725 ;;
7726 esac
7727 fi
7728 ;;
7729
7730 irix5* | irix6* | nonstopux*)
7731 if test "$GCC" = yes; then
7732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7733 # Try to use the -exported_symbol ld option, if it does not
7734 # work, assume that -exports_file does not work either and
7735 # implicitly export all symbols.
7736 save_LDFLAGS="$LDFLAGS"
7737 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7738 cat >conftest.$ac_ext <<_ACEOF
7739int foo(void) {}
7740_ACEOF
7741rm -f conftest.$ac_objext conftest$ac_exeext
7742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7764
7765else
7766 echo "$as_me: failed program was:" >&5
7767sed 's/^/| /' conftest.$ac_ext >&5
7768
7769fi
7770rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 LDFLAGS="$save_LDFLAGS"
7773 else
7774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7776 fi
7777 archive_cmds_need_lc='no'
7778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7779 hardcode_libdir_separator=:
7780 inherit_rpath=yes
7781 link_all_deplibs=yes
7782 ;;
7783
7784 netbsd*)
7785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7787 else
7788 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7789 fi
7790 hardcode_libdir_flag_spec='-R$libdir'
7791 hardcode_direct=yes
7792 hardcode_shlibpath_var=no
7793 ;;
7794
7795 newsos6)
7796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7797 hardcode_direct=yes
7798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7799 hardcode_libdir_separator=:
7800 hardcode_shlibpath_var=no
7801 ;;
7802
7803 *nto* | *qnx*)
7804 ;;
7805
7806 openbsd*)
7807 hardcode_direct=yes
7808 hardcode_shlibpath_var=no
7809 hardcode_direct_absolute=yes
7810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7812 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7814 export_dynamic_flag_spec='${wl}-E'
7815 else
7816 case $host_os in
7817 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7819 hardcode_libdir_flag_spec='-R$libdir'
7820 ;;
7821 *)
7822 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7824 ;;
7825 esac
7826 fi
7827 ;;
7828
7829 os2*)
7830 hardcode_libdir_flag_spec='-L$libdir'
7831 hardcode_minus_L=yes
7832 allow_undefined_flag=unsupported
7833 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'
7834 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7835 ;;
7836
7837 osf3*)
7838 if test "$GCC" = yes; then
7839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7840 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7841 else
7842 allow_undefined_flag=' -expect_unresolved \*'
7843 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7844 fi
7845 archive_cmds_need_lc='no'
7846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7847 hardcode_libdir_separator=:
7848 ;;
7849
7850 osf4* | osf5*) # as osf3* with the addition of -msym flag
7851 if test "$GCC" = yes; then
7852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7853 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7855 else
7856 allow_undefined_flag=' -expect_unresolved \*'
7857 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7858 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7859 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7860
7861 # Both c and cxx compiler support -rpath directly
7862 hardcode_libdir_flag_spec='-rpath $libdir'
7863 fi
7864 archive_cmds_need_lc='no'
7865 hardcode_libdir_separator=:
7866 ;;
7867
7868 solaris*)
7869 no_undefined_flag=' -z defs'
7870 if test "$GCC" = yes; then
7871 wlarc='${wl}'
7872 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7874 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7875 else
7876 case `$CC -V 2>&1` in
7877 *"Compilers 5.0"*)
7878 wlarc=''
7879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7882 ;;
7883 *)
7884 wlarc='${wl}'
7885 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7887 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7888 ;;
7889 esac
7890 fi
7891 hardcode_libdir_flag_spec='-R$libdir'
7892 hardcode_shlibpath_var=no
7893 case $host_os in
7894 solaris2.[0-5] | solaris2.[0-5].*) ;;
7895 *)
7896 # The compiler driver will combine and reorder linker options,
7897 # but understands `-z linker_flag'. GCC discards it without `$wl',
7898 # but is careful enough not to reorder.
7899 # Supported since Solaris 2.6 (maybe 2.5.1?)
7900 if test "$GCC" = yes; then
7901 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7902 else
7903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7904 fi
7905 ;;
7906 esac
7907 link_all_deplibs=yes
7908 ;;
7909
7910 sunos4*)
7911 if test "x$host_vendor" = xsequent; then
7912 # Use $CC to link under sequent, because it throws in some extra .o
7913 # files that make .init and .fini sections work.
7914 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7915 else
7916 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7917 fi
7918 hardcode_libdir_flag_spec='-L$libdir'
7919 hardcode_direct=yes
7920 hardcode_minus_L=yes
7921 hardcode_shlibpath_var=no
7922 ;;
7923
7924 sysv4)
7925 case $host_vendor in
7926 sni)
7927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_direct=yes # is this really true???
7929 ;;
7930 siemens)
7931 ## LD is ld it makes a PLAMLIB
7932 ## CC just makes a GrossModule.
7933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7934 reload_cmds='$CC -r -o $output$reload_objs'
7935 hardcode_direct=no
7936 ;;
7937 motorola)
7938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7940 ;;
7941 esac
7942 runpath_var='LD_RUN_PATH'
7943 hardcode_shlibpath_var=no
7944 ;;
7945
7946 sysv4.3*)
7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_shlibpath_var=no
7949 export_dynamic_flag_spec='-Bexport'
7950 ;;
7951
7952 sysv4*MP*)
7953 if test -d /usr/nec; then
7954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7955 hardcode_shlibpath_var=no
7956 runpath_var=LD_RUN_PATH
7957 hardcode_runpath_var=yes
7958 ld_shlibs=yes
7959 fi
7960 ;;
7961
7962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7963 no_undefined_flag='${wl}-z,text'
7964 archive_cmds_need_lc=no
7965 hardcode_shlibpath_var=no
7966 runpath_var='LD_RUN_PATH'
7967
7968 if test "$GCC" = yes; then
7969 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7970 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7971 else
7972 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7973 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974 fi
7975 ;;
7976
7977 sysv5* | sco3.2v5* | sco5v6*)
7978 # Note: We can NOT use -z defs as we might desire, because we do not
7979 # link with -lc, and that would cause any symbols used from libc to
7980 # always be unresolved, which means just about no library would
7981 # ever link correctly. If we're not using GNU ld we use -z text
7982 # though, which does catch some bad symbols but isn't as heavy-handed
7983 # as -z defs.
7984 no_undefined_flag='${wl}-z,text'
7985 allow_undefined_flag='${wl}-z,nodefs'
7986 archive_cmds_need_lc=no
7987 hardcode_shlibpath_var=no
7988 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7989 hardcode_libdir_separator=':'
7990 link_all_deplibs=yes
7991 export_dynamic_flag_spec='${wl}-Bexport'
7992 runpath_var='LD_RUN_PATH'
7993
7994 if test "$GCC" = yes; then
7995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7997 else
7998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8000 fi
8001 ;;
8002
8003 uts4*)
8004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8005 hardcode_libdir_flag_spec='-L$libdir'
8006 hardcode_shlibpath_var=no
8007 ;;
8008
8009 *)
8010 ld_shlibs=no
8011 ;;
8012 esac
8013
8014 if test x$host_vendor = xsni; then
8015 case $host in
8016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8017 export_dynamic_flag_spec='${wl}-Blargedynsym'
8018 ;;
8019 esac
8020 fi
8021 fi
8022
8023echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8024echo "${ECHO_T}$ld_shlibs" >&6
8025test "$ld_shlibs" = no && can_build_shared=no
8026
8027with_gnu_ld=$with_gnu_ld
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043#
8044# Do we need to explicitly link libc?
8045#
8046case "x$archive_cmds_need_lc" in
8047x|xyes)
8048 # Assume -lc should be added
8049 archive_cmds_need_lc=yes
8050
8051 if test "$enable_shared" = yes && test "$GCC" = yes; then
8052 case $archive_cmds in
8053 *'~'*)
8054 # FIXME: we may have to deal with multi-command sequences.
8055 ;;
8056 '$CC '*)
8057 # Test whether the compiler implicitly links with -lc since on some
8058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8059 # to ld, don't add -lc before -lgcc.
8060 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8061echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8062 $RM conftest*
8063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8064
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } 2>conftest.err; then
8070 soname=conftest
8071 lib=conftest
8072 libobjs=conftest.$ac_objext
8073 deplibs=
8074 wl=$lt_prog_compiler_wl
8075 pic_flag=$lt_prog_compiler_pic
8076 compiler_flags=-v
8077 linker_flags=-v
8078 verstring=
8079 output_objdir=.
8080 libname=conftest
8081 lt_save_allow_undefined_flag=$allow_undefined_flag
8082 allow_undefined_flag=
8083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8084 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }
8088 then
8089 archive_cmds_need_lc=no
8090 else
8091 archive_cmds_need_lc=yes
8092 fi
8093 allow_undefined_flag=$lt_save_allow_undefined_flag
8094 else
8095 cat conftest.err 1>&5
8096 fi
8097 $RM conftest*
8098 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8099echo "${ECHO_T}$archive_cmds_need_lc" >&6
8100 ;;
8101 esac
8102 fi
8103 ;;
8104esac
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8263echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8264withGCC=$GCC
8265if test "$withGCC" = yes; then
8266 case $host_os in
8267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8268 *) lt_awk_arg="/^libraries:/" ;;
8269 esac
8270 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8271 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8272 # if the path contains ";" then we assume it to be the separator
8273 # otherwise default to the standard path separator (i.e. ":") - it is
8274 # assumed that no part of a normal pathname contains ";" but that should
8275 # okay in the real world where ";" in dirpaths is itself problematic.
8276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8277 else
8278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8279 fi
8280 # Ok, now we have the path, separated by spaces, we can step through it
8281 # and add multilib dir if necessary.
8282 lt_tmp_lt_search_path_spec=
8283 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8284 for lt_sys_path in $lt_search_path_spec; do
8285 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8287 else
8288 test -d "$lt_sys_path" && \
8289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8290 fi
8291 done
8292 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8293BEGIN {RS=" "; FS="/|\n";} {
8294 lt_foo="";
8295 lt_count=0;
8296 for (lt_i = NF; lt_i > 0; lt_i--) {
8297 if ($lt_i != "" && $lt_i != ".") {
8298 if ($lt_i == "..") {
8299 lt_count++;
8300 } else {
8301 if (lt_count == 0) {
8302 lt_foo="/" $lt_i lt_foo;
8303 } else {
8304 lt_count--;
8305 }
8306 }
8307 }
8308 }
8309 if (lt_foo != "") { lt_freq[lt_foo]++; }
8310 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8311}'`
8312 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8313else
8314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8315fi
8316library_names_spec=
8317libname_spec='lib$name'
8318soname_spec=
8319shrext_cmds=".so"
8320postinstall_cmds=
8321postuninstall_cmds=
8322finish_cmds=
8323finish_eval=
8324shlibpath_var=
8325shlibpath_overrides_runpath=unknown
8326version_type=none
8327dynamic_linker="$host_os ld.so"
8328sys_lib_dlsearch_path_spec="/lib /usr/lib"
8329need_lib_prefix=unknown
8330hardcode_into_libs=no
8331
8332# when you set need_version to no, make sure it does not cause -set_version
8333# flags to be left without arguments
8334need_version=unknown
8335
8336case $host_os in
8337aix3*)
8338 version_type=linux
8339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8340 shlibpath_var=LIBPATH
8341
8342 # AIX 3 has no versioning support, so we append a major version to the name.
8343 soname_spec='${libname}${release}${shared_ext}$major'
8344 ;;
8345
8346aix4* | aix5*)
8347 version_type=linux
8348 need_lib_prefix=no
8349 need_version=no
8350 hardcode_into_libs=yes
8351 if test "$host_cpu" = ia64; then
8352 # AIX 5 supports IA64
8353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 else
8356 # With GCC up to 2.95.x, collect2 would create an import file
8357 # for dependence libraries. The import file would start with
8358 # the line `#! .'. This would cause the generated library to
8359 # depend on `.', always an invalid library. This was fixed in
8360 # development snapshots of GCC prior to 3.0.
8361 case $host_os in
8362 aix4 | aix4.[01] | aix4.[01].*)
8363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8364 echo ' yes '
8365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8366 :
8367 else
8368 can_build_shared=no
8369 fi
8370 ;;
8371 esac
8372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8373 # soname into executable. Probably we can add versioning support to
8374 # collect2, so additional links can be useful in future.
8375 if test "$aix_use_runtimelinking" = yes; then
8376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8377 # instead of lib<name>.a to let people know that these are not
8378 # typical AIX shared libraries.
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380 else
8381 # We preserve .a as extension for shared libraries through AIX4.2
8382 # and later when we are not doing run time linking.
8383 library_names_spec='${libname}${release}.a $libname.a'
8384 soname_spec='${libname}${release}${shared_ext}$major'
8385 fi
8386 shlibpath_var=LIBPATH
8387 fi
8388 ;;
8389
8390amigaos*)
8391 if test "$host_cpu" = m68k; then
8392 library_names_spec='$libname.ixlibrary $libname.a'
8393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8394 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'
8395 else
8396 dynamic_linker=no
8397 fi
8398 ;;
8399
8400beos*)
8401 library_names_spec='${libname}${shared_ext}'
8402 dynamic_linker="$host_os ld.so"
8403 shlibpath_var=LIBRARY_PATH
8404 ;;
8405
8406bsdi[45]*)
8407 version_type=linux
8408 need_version=no
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8410 soname_spec='${libname}${release}${shared_ext}$major'
8411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8415 # the default ld.so.conf also contains /usr/contrib/lib and
8416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8417 # libtool to hard-code these into programs
8418 ;;
8419
8420cygwin* | mingw* | pw32*)
8421 version_type=windows
8422 shrext_cmds=".dll"
8423 need_version=no
8424 need_lib_prefix=no
8425
8426 case $withGCC,$host_os in
8427 yes,cygwin* | yes,mingw* | yes,pw32*)
8428 library_names_spec='$libname.dll.a'
8429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8430 postinstall_cmds='base_file=`basename \${file}`~
8431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8432 dldir=$destdir/`dirname \$dlpath`~
8433 test -d \$dldir || mkdir -p \$dldir~
8434 $install_prog $dir/$dlname \$dldir/$dlname~
8435 chmod a+x \$dldir/$dlname~
8436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8438 fi'
8439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8440 dlpath=$dir/\$dldll~
8441 $RM \$dlpath'
8442 shlibpath_overrides_runpath=yes
8443
8444 case $host_os in
8445 cygwin*)
8446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8448 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8449 ;;
8450 mingw*)
8451 # MinGW DLLs use traditional 'lib' prefix
8452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8453 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8454 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8455 # It is most probably a Windows format PATH printed by
8456 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8457 # path with ; separators, and with drive letters. We can handle the
8458 # drive letters (cygwin fileutils understands them), so leave them,
8459 # especially as we might pass files found there to a mingw objdump,
8460 # which wouldn't understand a cygwinified path. Ahh.
8461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8462 else
8463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8464 fi
8465 ;;
8466 pw32*)
8467 # pw32 DLLs use 'pw' prefix rather than 'lib'
8468 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8469 ;;
8470 esac
8471 ;;
8472
8473 *)
8474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8475 ;;
8476 esac
8477 dynamic_linker='Win32 ld.exe'
8478 # FIXME: first we should search . and the directory the executable is in
8479 shlibpath_var=PATH
8480 ;;
8481
8482darwin* | rhapsody*)
8483 dynamic_linker="$host_os dyld"
8484 version_type=darwin
8485 need_lib_prefix=no
8486 need_version=no
8487 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8488 soname_spec='${libname}${release}${major}$shared_ext'
8489 shlibpath_overrides_runpath=yes
8490 shlibpath_var=DYLD_LIBRARY_PATH
8491 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8492
8493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8494 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8495 ;;
8496
8497dgux*)
8498 version_type=linux
8499 need_lib_prefix=no
8500 need_version=no
8501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8502 soname_spec='${libname}${release}${shared_ext}$major'
8503 shlibpath_var=LD_LIBRARY_PATH
8504 ;;
8505
8506freebsd1*)
8507 dynamic_linker=no
8508 ;;
8509
8510freebsd* | dragonfly*)
8511 # DragonFly does not have aout. When/if they implement a new
8512 # versioning mechanism, adjust this.
8513 if test -x /usr/bin/objformat; then
8514 objformat=`/usr/bin/objformat`
8515 else
8516 case $host_os in
8517 freebsd[123]*) objformat=aout ;;
8518 *) objformat=elf ;;
8519 esac
8520 fi
8521 version_type=freebsd-$objformat
8522 case $version_type in
8523 freebsd-elf*)
8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8525 need_version=no
8526 need_lib_prefix=no
8527 ;;
8528 freebsd-*)
8529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8530 need_version=yes
8531 ;;
8532 esac
8533 shlibpath_var=LD_LIBRARY_PATH
8534 case $host_os in
8535 freebsd2*)
8536 shlibpath_overrides_runpath=yes
8537 ;;
8538 freebsd3.[01]* | freebsdelf3.[01]*)
8539 shlibpath_overrides_runpath=yes
8540 hardcode_into_libs=yes
8541 ;;
8542 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8543 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8544 shlibpath_overrides_runpath=no
8545 hardcode_into_libs=yes
8546 ;;
8547 *) # from 4.6 on, and DragonFly
8548 shlibpath_overrides_runpath=yes
8549 hardcode_into_libs=yes
8550 ;;
8551 esac
8552 ;;
8553
8554gnu*)
8555 version_type=linux
8556 need_lib_prefix=no
8557 need_version=no
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8559 soname_spec='${libname}${release}${shared_ext}$major'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 hardcode_into_libs=yes
8562 ;;
8563
8564hpux9* | hpux10* | hpux11*)
8565 # Give a soname corresponding to the major version so that dld.sl refuses to
8566 # link against other versions.
8567 version_type=sunos
8568 need_lib_prefix=no
8569 need_version=no
8570 case $host_cpu in
8571 ia64*)
8572 shrext_cmds='.so'
8573 hardcode_into_libs=yes
8574 dynamic_linker="$host_os dld.so"
8575 shlibpath_var=LD_LIBRARY_PATH
8576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 if test "X$HPUX_IA64_MODE" = X32; then
8580 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8581 else
8582 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8583 fi
8584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8585 ;;
8586 hppa*64*)
8587 shrext_cmds='.sl'
8588 hardcode_into_libs=yes
8589 dynamic_linker="$host_os dld.sl"
8590 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8596 ;;
8597 *)
8598 shrext_cmds='.sl'
8599 dynamic_linker="$host_os dld.sl"
8600 shlibpath_var=SHLIB_PATH
8601 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8603 soname_spec='${libname}${release}${shared_ext}$major'
8604 ;;
8605 esac
8606 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8607 postinstall_cmds='chmod 555 $lib'
8608 ;;
8609
8610interix[3-9]*)
8611 version_type=linux
8612 need_lib_prefix=no
8613 need_version=no
8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8615 soname_spec='${libname}${release}${shared_ext}$major'
8616 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8617 shlibpath_var=LD_LIBRARY_PATH
8618 shlibpath_overrides_runpath=no
8619 hardcode_into_libs=yes
8620 ;;
8621
8622irix5* | irix6* | nonstopux*)
8623 case $host_os in
8624 nonstopux*) version_type=nonstopux ;;
8625 *)
8626 if test "$lt_cv_prog_gnu_ld" = yes; then
8627 version_type=linux
8628 else
8629 version_type=irix
8630 fi ;;
8631 esac
8632 need_lib_prefix=no
8633 need_version=no
8634 soname_spec='${libname}${release}${shared_ext}$major'
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8636 case $host_os in
8637 irix5* | nonstopux*)
8638 libsuff= shlibsuff=
8639 ;;
8640 *)
8641 case $LD in # libtool.m4 will add one of these switches to LD
8642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8643 libsuff= shlibsuff= libmagic=32-bit;;
8644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8645 libsuff=32 shlibsuff=N32 libmagic=N32;;
8646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8648 *) libsuff= shlibsuff= libmagic=never-match;;
8649 esac
8650 ;;
8651 esac
8652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8653 shlibpath_overrides_runpath=no
8654 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8655 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8656 hardcode_into_libs=yes
8657 ;;
8658
8659# No shared lib support for Linux oldld, aout, or coff.
8660linux*oldld* | linux*aout* | linux*coff*)
8661 dynamic_linker=no
8662 ;;
8663
8664# This must be Linux ELF.
8665linux* | k*bsd*-gnu)
8666 version_type=linux
8667 need_lib_prefix=no
8668 need_version=no
8669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8672 shlibpath_var=LD_LIBRARY_PATH
8673 shlibpath_overrides_runpath=no
8674 # Some binutils ld are patched to set DT_RUNPATH
8675 save_LDFLAGS=$LDFLAGS
8676 save_libdir=$libdir
8677 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8678 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8679 cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h. */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
8685
8686int
8687main ()
8688{
8689
8690 ;
8691 return 0;
8692}
8693_ACEOF
8694rm -f conftest.$ac_objext conftest$ac_exeext
8695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag"
8704 || test ! -s conftest.err'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8717 shlibpath_overrides_runpath=yes
8718fi
8719
8720else
8721 echo "$as_me: failed program was:" >&5
8722sed 's/^/| /' conftest.$ac_ext >&5
8723
8724fi
8725rm -f conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 LDFLAGS=$save_LDFLAGS
8728 libdir=$save_libdir
8729
8730 # This implies no fast_install, which is unacceptable.
8731 # Some rework will be needed to allow for fast_install
8732 # before this can be enabled.
8733 hardcode_into_libs=yes
8734
8735 # Append ld.so.conf contents to the search path
8736 if test -f /etc/ld.so.conf; then
8737 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8739 fi
8740
8741 # We used to test for /lib/ld.so.1 and disable shared libraries on
8742 # powerpc, because MkLinux only supported shared libraries with the
8743 # GNU dynamic linker. Since this was broken with cross compilers,
8744 # most powerpc-linux boxes support dynamic linking these days and
8745 # people can always --disable-shared, the test was removed, and we
8746 # assume the GNU/Linux dynamic linker is in use.
8747 dynamic_linker='GNU/Linux ld.so'
8748 ;;
8749
8750netbsd*)
8751 version_type=sunos
8752 need_lib_prefix=no
8753 need_version=no
8754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8757 dynamic_linker='NetBSD (a.out) ld.so'
8758 else
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 dynamic_linker='NetBSD ld.elf_so'
8762 fi
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=yes
8765 hardcode_into_libs=yes
8766 ;;
8767
8768newsos6)
8769 version_type=linux
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 shlibpath_overrides_runpath=yes
8773 ;;
8774
8775*nto* | *qnx*)
8776 version_type=qnx
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=no
8783 hardcode_into_libs=yes
8784 dynamic_linker='ldqnx.so'
8785 ;;
8786
8787openbsd*)
8788 version_type=sunos
8789 sys_lib_dlsearch_path_spec="/usr/lib"
8790 need_lib_prefix=no
8791 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8792 case $host_os in
8793 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8794 *) need_version=no ;;
8795 esac
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8800 case $host_os in
8801 openbsd2.[89] | openbsd2.[89].*)
8802 shlibpath_overrides_runpath=no
8803 ;;
8804 *)
8805 shlibpath_overrides_runpath=yes
8806 ;;
8807 esac
8808 else
8809 shlibpath_overrides_runpath=yes
8810 fi
8811 ;;
8812
8813os2*)
8814 libname_spec='$name'
8815 shrext_cmds=".dll"
8816 need_lib_prefix=no
8817 library_names_spec='$libname${shared_ext} $libname.a'
8818 dynamic_linker='OS/2 ld.exe'
8819 shlibpath_var=LIBPATH
8820 ;;
8821
8822osf3* | osf4* | osf5*)
8823 version_type=osf
8824 need_lib_prefix=no
8825 need_version=no
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8830 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8831 ;;
8832
8833rdos*)
8834 dynamic_linker=no
8835 ;;
8836
8837solaris*)
8838 version_type=linux
8839 need_lib_prefix=no
8840 need_version=no
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=yes
8845 hardcode_into_libs=yes
8846 # ldd complains unless libraries are executable
8847 postinstall_cmds='chmod +x $lib'
8848 ;;
8849
8850sunos4*)
8851 version_type=sunos
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=yes
8856 if test "$with_gnu_ld" = yes; then
8857 need_lib_prefix=no
8858 fi
8859 need_version=yes
8860 ;;
8861
8862sysv4 | sysv4.3*)
8863 version_type=linux
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 shlibpath_var=LD_LIBRARY_PATH
8867 case $host_vendor in
8868 sni)
8869 shlibpath_overrides_runpath=no
8870 need_lib_prefix=no
8871 runpath_var=LD_RUN_PATH
8872 ;;
8873 siemens)
8874 need_lib_prefix=no
8875 ;;
8876 motorola)
8877 need_lib_prefix=no
8878 need_version=no
8879 shlibpath_overrides_runpath=no
8880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8881 ;;
8882 esac
8883 ;;
8884
8885sysv4*MP*)
8886 if test -d /usr/nec ;then
8887 version_type=linux
8888 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8889 soname_spec='$libname${shared_ext}.$major'
8890 shlibpath_var=LD_LIBRARY_PATH
8891 fi
8892 ;;
8893
8894sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8895 version_type=freebsd-elf
8896 need_lib_prefix=no
8897 need_version=no
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 shlibpath_overrides_runpath=yes
8902 hardcode_into_libs=yes
8903 if test "$with_gnu_ld" = yes; then
8904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8905 else
8906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8907 case $host_os in
8908 sco3.2v5*)
8909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8910 ;;
8911 esac
8912 fi
8913 sys_lib_dlsearch_path_spec='/usr/lib'
8914 ;;
8915
8916tpf*)
8917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 ;;
8926
8927uts4*)
8928 version_type=linux
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 ;;
8933
8934*)
8935 dynamic_linker=no
8936 ;;
8937esac
8938echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8939echo "${ECHO_T}$dynamic_linker" >&6
8940test "$dynamic_linker" = no && can_build_shared=no
8941
8942variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8943if test "$GCC" = yes; then
8944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8945fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9034echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9035hardcode_action=
9036if test -n "$hardcode_libdir_flag_spec" ||
9037 test -n "$runpath_var" ||
9038 test "X$hardcode_automatic" = "Xyes" ; then
9039
9040 # We can hardcode non-existent directories.
9041 if test "$hardcode_direct" != no &&
9042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9043 # have to relink, otherwise we might link with an installed library
9044 # when we should be linking with a yet-to-be-installed one
9045 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9046 test "$hardcode_minus_L" != no; then
9047 # Linking always hardcodes the temporary library directory.
9048 hardcode_action=relink
9049 else
9050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9051 hardcode_action=immediate
9052 fi
9053else
9054 # We cannot hardcode anything, or else we can only hardcode existing
9055 # directories.
9056 hardcode_action=unsupported
9057fi
9058echo "$as_me:$LINENO: result: $hardcode_action" >&5
9059echo "${ECHO_T}$hardcode_action" >&6
9060
9061if test "$hardcode_action" = relink ||
9062 test "$inherit_rpath" = yes; then
9063 # Fast installation is not supported
9064 enable_fast_install=no
9065elif test "$shlibpath_overrides_runpath" = yes ||
9066 test "$enable_shared" = no; then
9067 # Fast installation is not necessary
9068 enable_fast_install=needless
9069fi
9070
9071
9072
9073
9074
9075
9076 if test "x$enable_dlopen" != xyes; then
9077 enable_dlopen=unknown
9078 enable_dlopen_self=unknown
9079 enable_dlopen_self_static=unknown
9080else
9081 lt_cv_dlopen=no
9082 lt_cv_dlopen_libs=
9083
9084 case $host_os in
9085 beos*)
9086 lt_cv_dlopen="load_add_on"
9087 lt_cv_dlopen_libs=
9088 lt_cv_dlopen_self=yes
9089 ;;
9090
9091 mingw* | pw32*)
9092 lt_cv_dlopen="LoadLibrary"
9093 lt_cv_dlopen_libs=
9094 ;;
9095
9096 cygwin*)
9097 lt_cv_dlopen="dlopen"
9098 lt_cv_dlopen_libs=
9099 ;;
9100
9101 darwin*)
9102 # if libdl is installed we need to link against it
9103 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9104echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9105if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107else
9108 ac_check_lib_save_LIBS=$LIBS
9109LIBS="-ldl $LIBS"
9110cat >conftest.$ac_ext <<_ACEOF
9111/* confdefs.h. */
9112_ACEOF
9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
9115/* end confdefs.h. */
9116
9117/* Override any gcc2 internal prototype to avoid an error. */
9118#ifdef __cplusplus
9119extern "C"
9120#endif
9121/* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9123char dlopen ();
9124int
9125main ()
9126{
9127dlopen ();
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext conftest$ac_exeext
9133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_lib_dl_dlopen=yes
9155else
9156 echo "$as_me: failed program was:" >&5
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
9159ac_cv_lib_dl_dlopen=no
9160fi
9161rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163LIBS=$ac_check_lib_save_LIBS
9164fi
9165echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9166echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9167if test $ac_cv_lib_dl_dlopen = yes; then
9168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9169else
9170
9171 lt_cv_dlopen="dyld"
9172 lt_cv_dlopen_libs=
9173 lt_cv_dlopen_self=yes
9174
9175fi
9176
9177 ;;
9178
9179 *)
9180 echo "$as_me:$LINENO: checking for shl_load" >&5
9181echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9182if test "${ac_cv_func_shl_load+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184else
9185 cat >conftest.$ac_ext <<_ACEOF
9186/* confdefs.h. */
9187_ACEOF
9188cat confdefs.h >>conftest.$ac_ext
9189cat >>conftest.$ac_ext <<_ACEOF
9190/* end confdefs.h. */
9191/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9193#define shl_load innocuous_shl_load
9194
9195/* System header to define __stub macros and hopefully few prototypes,
9196 which can conflict with char shl_load (); below.
9197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9198 <limits.h> exists even on freestanding compilers. */
9199
9200#ifdef __STDC__
9201# include <limits.h>
9202#else
9203# include <assert.h>
9204#endif
9205
9206#undef shl_load
9207
9208/* Override any gcc2 internal prototype to avoid an error. */
9209#ifdef __cplusplus
9210extern "C"
9211{
9212#endif
9213/* We use char because int might match the return type of a gcc2
9214 builtin and then its argument prototype would still apply. */
9215char shl_load ();
9216/* The GNU C library defines this for functions which it implements
9217 to always fail with ENOSYS. Some functions are actually named
9218 something starting with __ and the normal name is an alias. */
9219#if defined (__stub_shl_load) || defined (__stub___shl_load)
9220choke me
9221#else
9222char (*f) () = shl_load;
9223#endif
9224#ifdef __cplusplus
9225}
9226#endif
9227
9228int
9229main ()
9230{
9231return f != shl_load;
9232 ;
9233 return 0;
9234}
9235_ACEOF
9236rm -f conftest.$ac_objext conftest$ac_exeext
9237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag"
9246 || test ! -s conftest.err'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 (eval $ac_try) 2>&5
9249 ac_status=$?
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 ac_cv_func_shl_load=yes
9259else
9260 echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
9263ac_cv_func_shl_load=no
9264fi
9265rm -f conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267fi
9268echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9269echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9270if test $ac_cv_func_shl_load = yes; then
9271 lt_cv_dlopen="shl_load"
9272else
9273 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9274echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9275if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278 ac_check_lib_save_LIBS=$LIBS
9279LIBS="-ldld $LIBS"
9280cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h. */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
9285/* end confdefs.h. */
9286
9287/* Override any gcc2 internal prototype to avoid an error. */
9288#ifdef __cplusplus
9289extern "C"
9290#endif
9291/* We use char because int might match the return type of a gcc2
9292 builtin and then its argument prototype would still apply. */
9293char shl_load ();
9294int
9295main ()
9296{
9297shl_load ();
9298 ;
9299 return 0;
9300}
9301_ACEOF
9302rm -f conftest.$ac_objext conftest$ac_exeext
9303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_lib_dld_shl_load=yes
9325else
9326 echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329ac_cv_lib_dld_shl_load=no
9330fi
9331rm -f conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333LIBS=$ac_check_lib_save_LIBS
9334fi
9335echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9336echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9337if test $ac_cv_lib_dld_shl_load = yes; then
9338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9339else
9340 echo "$as_me:$LINENO: checking for dlopen" >&5
9341echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9342if test "${ac_cv_func_dlopen+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345 cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h. */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h. */
9351/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9353#define dlopen innocuous_dlopen
9354
9355/* System header to define __stub macros and hopefully few prototypes,
9356 which can conflict with char dlopen (); below.
9357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9358 <limits.h> exists even on freestanding compilers. */
9359
9360#ifdef __STDC__
9361# include <limits.h>
9362#else
9363# include <assert.h>
9364#endif
9365
9366#undef dlopen
9367
9368/* Override any gcc2 internal prototype to avoid an error. */
9369#ifdef __cplusplus
9370extern "C"
9371{
9372#endif
9373/* We use char because int might match the return type of a gcc2
9374 builtin and then its argument prototype would still apply. */
9375char dlopen ();
9376/* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379#if defined (__stub_dlopen) || defined (__stub___dlopen)
9380choke me
9381#else
9382char (*f) () = dlopen;
9383#endif
9384#ifdef __cplusplus
9385}
9386#endif
9387
9388int
9389main ()
9390{
9391return f != dlopen;
9392 ;
9393 return 0;
9394}
9395_ACEOF
9396rm -f conftest.$ac_objext conftest$ac_exeext
9397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398 (eval $ac_link) 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_func_dlopen=yes
9419else
9420 echo "$as_me: failed program was:" >&5
9421sed 's/^/| /' conftest.$ac_ext >&5
9422
9423ac_cv_func_dlopen=no
9424fi
9425rm -f conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9427fi
9428echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9429echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9430if test $ac_cv_func_dlopen = yes; then
9431 lt_cv_dlopen="dlopen"
9432else
9433 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9434echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9435if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437else
9438 ac_check_lib_save_LIBS=$LIBS
9439LIBS="-ldl $LIBS"
9440cat >conftest.$ac_ext <<_ACEOF
9441/* confdefs.h. */
9442_ACEOF
9443cat confdefs.h >>conftest.$ac_ext
9444cat >>conftest.$ac_ext <<_ACEOF
9445/* end confdefs.h. */
9446
9447/* Override any gcc2 internal prototype to avoid an error. */
9448#ifdef __cplusplus
9449extern "C"
9450#endif
9451/* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9453char dlopen ();
9454int
9455main ()
9456{
9457dlopen ();
9458 ;
9459 return 0;
9460}
9461_ACEOF
9462rm -f conftest.$ac_objext conftest$ac_exeext
9463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag"
9472 || test ! -s conftest.err'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_lib_dl_dlopen=yes
9485else
9486 echo "$as_me: failed program was:" >&5
9487sed 's/^/| /' conftest.$ac_ext >&5
9488
9489ac_cv_lib_dl_dlopen=no
9490fi
9491rm -f conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493LIBS=$ac_check_lib_save_LIBS
9494fi
9495echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9496echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9497if test $ac_cv_lib_dl_dlopen = yes; then
9498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9499else
9500 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9501echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9502if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505 ac_check_lib_save_LIBS=$LIBS
9506LIBS="-lsvld $LIBS"
9507cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h. */
9513
9514/* Override any gcc2 internal prototype to avoid an error. */
9515#ifdef __cplusplus
9516extern "C"
9517#endif
9518/* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
9520char dlopen ();
9521int
9522main ()
9523{
9524dlopen ();
9525 ;
9526 return 0;
9527}
9528_ACEOF
9529rm -f conftest.$ac_objext conftest$ac_exeext
9530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -z "$ac_c_werror_flag"
9539 || test ! -s conftest.err'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; } &&
9545 { ac_try='test -s conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_lib_svld_dlopen=yes
9552else
9553 echo "$as_me: failed program was:" >&5
9554sed 's/^/| /' conftest.$ac_ext >&5
9555
9556ac_cv_lib_svld_dlopen=no
9557fi
9558rm -f conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560LIBS=$ac_check_lib_save_LIBS
9561fi
9562echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9563echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9564if test $ac_cv_lib_svld_dlopen = yes; then
9565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9566else
9567 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9568echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9569if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571else
9572 ac_check_lib_save_LIBS=$LIBS
9573LIBS="-ldld $LIBS"
9574cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580
9581/* Override any gcc2 internal prototype to avoid an error. */
9582#ifdef __cplusplus
9583extern "C"
9584#endif
9585/* We use char because int might match the return type of a gcc2
9586 builtin and then its argument prototype would still apply. */
9587char dld_link ();
9588int
9589main ()
9590{
9591dld_link ();
9592 ;
9593 return 0;
9594}
9595_ACEOF
9596rm -f conftest.$ac_objext conftest$ac_exeext
9597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>conftest.er1
9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -z "$ac_c_werror_flag"
9606 || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_lib_dld_dld_link=yes
9619else
9620 echo "$as_me: failed program was:" >&5
9621sed 's/^/| /' conftest.$ac_ext >&5
9622
9623ac_cv_lib_dld_dld_link=no
9624fi
9625rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627LIBS=$ac_check_lib_save_LIBS
9628fi
9629echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9630echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9631if test $ac_cv_lib_dld_dld_link = yes; then
9632 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9633fi
9634
9635
9636fi
9637
9638
9639fi
9640
9641
9642fi
9643
9644
9645fi
9646
9647
9648fi
9649
9650 ;;
9651 esac
9652
9653 if test "x$lt_cv_dlopen" != xno; then
9654 enable_dlopen=yes
9655 else
9656 enable_dlopen=no
9657 fi
9658
9659 case $lt_cv_dlopen in
9660 dlopen)
9661 save_CPPFLAGS="$CPPFLAGS"
9662 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9663
9664 save_LDFLAGS="$LDFLAGS"
9665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9666
9667 save_LIBS="$LIBS"
9668 LIBS="$lt_cv_dlopen_libs $LIBS"
9669
9670 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9671echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9672if test "${lt_cv_dlopen_self+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674else
9675 if test "$cross_compiling" = yes; then :
9676 lt_cv_dlopen_self=cross
9677else
9678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9679 lt_status=$lt_dlunknown
9680 cat > conftest.$ac_ext <<_LT_EOF
9681#line 9681 "configure"
9682#include "confdefs.h"
9683
9684#if HAVE_DLFCN_H
9685#include <dlfcn.h>
9686#endif
9687
9688#include <stdio.h>
9689
9690#ifdef RTLD_GLOBAL
9691# define LT_DLGLOBAL RTLD_GLOBAL
9692#else
9693# ifdef DL_GLOBAL
9694# define LT_DLGLOBAL DL_GLOBAL
9695# else
9696# define LT_DLGLOBAL 0
9697# endif
9698#endif
9699
9700/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9701 find out it does not work in some platform. */
9702#ifndef LT_DLLAZY_OR_NOW
9703# ifdef RTLD_LAZY
9704# define LT_DLLAZY_OR_NOW RTLD_LAZY
9705# else
9706# ifdef DL_LAZY
9707# define LT_DLLAZY_OR_NOW DL_LAZY
9708# else
9709# ifdef RTLD_NOW
9710# define LT_DLLAZY_OR_NOW RTLD_NOW
9711# else
9712# ifdef DL_NOW
9713# define LT_DLLAZY_OR_NOW DL_NOW
9714# else
9715# define LT_DLLAZY_OR_NOW 0
9716# endif
9717# endif
9718# endif
9719# endif
9720#endif
9721
9722#ifdef __cplusplus
9723extern "C" void exit (int);
9724#endif
9725
9726void fnord() { int i=42;}
9727int main ()
9728{
9729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9730 int status = $lt_dlunknown;
9731
9732 if (self)
9733 {
9734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9736 /* dlclose (self); */
9737 }
9738 else
9739 puts (dlerror ());
9740
9741 exit (status);
9742}
9743_LT_EOF
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9749 (./conftest; exit; ) >&5 2>/dev/null
9750 lt_status=$?
9751 case x$lt_status in
9752 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9753 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9754 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9755 esac
9756 else :
9757 # compilation failed
9758 lt_cv_dlopen_self=no
9759 fi
9760fi
9761rm -fr conftest*
9762
9763
9764fi
9765echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9766echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9767
9768 if test "x$lt_cv_dlopen_self" = xyes; then
9769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9770 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9771echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9772if test "${lt_cv_dlopen_self_static+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774else
9775 if test "$cross_compiling" = yes; then :
9776 lt_cv_dlopen_self_static=cross
9777else
9778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9779 lt_status=$lt_dlunknown
9780 cat > conftest.$ac_ext <<_LT_EOF
9781#line 9781 "configure"
9782#include "confdefs.h"
9783
9784#if HAVE_DLFCN_H
9785#include <dlfcn.h>
9786#endif
9787
9788#include <stdio.h>
9789
9790#ifdef RTLD_GLOBAL
9791# define LT_DLGLOBAL RTLD_GLOBAL
9792#else
9793# ifdef DL_GLOBAL
9794# define LT_DLGLOBAL DL_GLOBAL
9795# else
9796# define LT_DLGLOBAL 0
9797# endif
9798#endif
9799
9800/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9801 find out it does not work in some platform. */
9802#ifndef LT_DLLAZY_OR_NOW
9803# ifdef RTLD_LAZY
9804# define LT_DLLAZY_OR_NOW RTLD_LAZY
9805# else
9806# ifdef DL_LAZY
9807# define LT_DLLAZY_OR_NOW DL_LAZY
9808# else
9809# ifdef RTLD_NOW
9810# define LT_DLLAZY_OR_NOW RTLD_NOW
9811# else
9812# ifdef DL_NOW
9813# define LT_DLLAZY_OR_NOW DL_NOW
9814# else
9815# define LT_DLLAZY_OR_NOW 0
9816# endif
9817# endif
9818# endif
9819# endif
9820#endif
9821
9822#ifdef __cplusplus
9823extern "C" void exit (int);
9824#endif
9825
9826void fnord() { int i=42;}
9827int main ()
9828{
9829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9830 int status = $lt_dlunknown;
9831
9832 if (self)
9833 {
9834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9836 /* dlclose (self); */
9837 }
9838 else
9839 puts (dlerror ());
9840
9841 exit (status);
9842}
9843_LT_EOF
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9849 (./conftest; exit; ) >&5 2>/dev/null
9850 lt_status=$?
9851 case x$lt_status in
9852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9855 esac
9856 else :
9857 # compilation failed
9858 lt_cv_dlopen_self_static=no
9859 fi
9860fi
9861rm -fr conftest*
9862
9863
9864fi
9865echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9866echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9867 fi
9868
9869 CPPFLAGS="$save_CPPFLAGS"
9870 LDFLAGS="$save_LDFLAGS"
9871 LIBS="$save_LIBS"
9872 ;;
9873 esac
9874
9875 case $lt_cv_dlopen_self in
9876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9877 *) enable_dlopen_self=unknown ;;
9878 esac
9879
9880 case $lt_cv_dlopen_self_static in
9881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9882 *) enable_dlopen_self_static=unknown ;;
9883 esac
9884fi
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902striplib=
9903old_striplib=
9904echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9905echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9906if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9909 echo "$as_me:$LINENO: result: yes" >&5
9910echo "${ECHO_T}yes" >&6
9911else
9912# FIXME - insert some real tests, host_os isn't really good enough
9913 case $host_os in
9914 darwin*)
9915 if test -n "$STRIP" ; then
9916 striplib="$STRIP -x"
9917 old_striplib="$STRIP -S"
9918 echo "$as_me:$LINENO: result: yes" >&5
9919echo "${ECHO_T}yes" >&6
9920 else
9921 echo "$as_me:$LINENO: result: no" >&5
9922echo "${ECHO_T}no" >&6
9923 fi
9924 ;;
9925 *)
9926 echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928 ;;
9929 esac
9930fi
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943 # Report which library types will actually be built
9944 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9945echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9946 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9947echo "${ECHO_T}$can_build_shared" >&6
9948
9949 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9950echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9951 test "$can_build_shared" = "no" && enable_shared=no
9952
9953 # On AIX, shared libraries and static libraries use the same namespace, and
9954 # are all built from PIC.
9955 case $host_os in
9956 aix3*)
9957 test "$enable_shared" = yes && enable_static=no
9958 if test -n "$RANLIB"; then
9959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9960 postinstall_cmds='$RANLIB $lib'
9961 fi
9962 ;;
9963
9964 aix4* | aix5*)
9965 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9966 test "$enable_shared" = yes && enable_static=no
9967 fi
9968 ;;
9969 esac
9970 echo "$as_me:$LINENO: result: $enable_shared" >&5
9971echo "${ECHO_T}$enable_shared" >&6
9972
9973 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9974echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9975 # Make sure either enable_shared or enable_static is yes.
9976 test "$enable_shared" = yes || enable_static=yes
9977 echo "$as_me:$LINENO: result: $enable_static" >&5
9978echo "${ECHO_T}$enable_static" >&6
9979
9980
9981
9982
9983fi
9984ac_ext=c
9985ac_cpp='$CPP $CPPFLAGS'
9986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988ac_compiler_gnu=$ac_cv_c_compiler_gnu
9989
9990CC="$lt_save_CC"
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004 ac_config_commands="$ac_config_commands libtool"
10005
10006
10007
10008
10009# Only expand once:
10010
10011
10012
10013
10014
10015echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10016echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10017 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10018if test "${enable_maintainer_mode+set}" = set; then
10019 enableval="$enable_maintainer_mode"
10020 USE_MAINTAINER_MODE=$enableval
10021else
10022 USE_MAINTAINER_MODE=no
10023fi;
10024 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10025echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10026
10027
10028if test $USE_MAINTAINER_MODE = yes; then
10029 MAINTAINER_MODE_TRUE=
10030 MAINTAINER_MODE_FALSE='#'
10031else
10032 MAINTAINER_MODE_TRUE='#'
10033 MAINTAINER_MODE_FALSE=
10034fi
10035
10036 MAINT=$MAINTAINER_MODE_TRUE
10037
10038
10039
10040# We need gfortran to compile parts of the library
10041# We can't use AC_PROG_FC because it expects a fully working gfortran.
10042#AC_PROG_FC(gfortran)
10043FC="$GFORTRAN"
10044ac_ext=${FC_SRCEXT-f}
10045ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10046ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10047ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10048if test -n "$ac_tool_prefix"; then
10049 for ac_prog in gfortran
10050 do
10051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10052set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10053echo "$as_me:$LINENO: checking for $ac_word" >&5
10054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10055if test "${ac_cv_prog_FC+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058 if test -n "$FC"; then
10059 ac_cv_prog_FC="$FC" # Let the user override the test.
10060else
10061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10068 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10071 fi
10072done
10073done
10074
10075fi
10076fi
10077FC=$ac_cv_prog_FC
10078if test -n "$FC"; then
10079 echo "$as_me:$LINENO: result: $FC" >&5
10080echo "${ECHO_T}$FC" >&6
10081else
10082 echo "$as_me:$LINENO: result: no" >&5
10083echo "${ECHO_T}no" >&6
10084fi
10085
10086 test -n "$FC" && break
10087 done
10088fi
10089if test -z "$FC"; then
10090 ac_ct_FC=$FC
10091 for ac_prog in gfortran
10092do
10093 # Extract the first word of "$ac_prog", so it can be a program name with args.
10094set dummy $ac_prog; ac_word=$2
10095echo "$as_me:$LINENO: checking for $ac_word" >&5
10096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10097if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100 if test -n "$ac_ct_FC"; then
10101 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10102else
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_ac_ct_FC="$ac_prog"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114done
10115done
10116
10117fi
10118fi
10119ac_ct_FC=$ac_cv_prog_ac_ct_FC
10120if test -n "$ac_ct_FC"; then
10121 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10122echo "${ECHO_T}$ac_ct_FC" >&6
10123else
10124 echo "$as_me:$LINENO: result: no" >&5
10125echo "${ECHO_T}no" >&6
10126fi
10127
10128 test -n "$ac_ct_FC" && break
10129done
10130
10131 FC=$ac_ct_FC
10132fi
10133
10134
10135# Provide some information about the compiler.
10136echo "$as_me:10136:" \
10137 "checking for Fortran compiler version" >&5
10138ac_compiler=`set X $ac_compile; echo $2`
10139{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10140 (eval $ac_compiler --version </dev/null >&5) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }
10144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10145 (eval $ac_compiler -v </dev/null >&5) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }
10149{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10150 (eval $ac_compiler -V </dev/null >&5) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }
10154rm -f a.out
10155
10156# If we don't use `.F' as extension, the preprocessor is not run on the
10157# input file. (Note that this only needs to work for GNU compilers.)
10158ac_save_ext=$ac_ext
10159ac_ext=F
10160echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10161echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10162if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164else
10165 cat >conftest.$ac_ext <<_ACEOF
10166 program main
10167#ifndef __GNUC__
10168 choke me
10169#endif
10170
10171 end
10172_ACEOF
10173rm -f conftest.$ac_objext
10174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_fc_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_compiler_gnu=yes
10196else
10197 echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200ac_compiler_gnu=no
10201fi
10202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10203ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10204
10205fi
10206echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10207echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10208ac_ext=$ac_save_ext
10209ac_test_FFLAGS=${FCFLAGS+set}
10210ac_save_FFLAGS=$FCFLAGS
10211FCFLAGS=
10212echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10213echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10214if test "${ac_cv_prog_fc_g+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216else
10217 FCFLAGS=-g
10218cat >conftest.$ac_ext <<_ACEOF
10219 program main
10220
10221 end
10222_ACEOF
10223rm -f conftest.$ac_objext
10224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225 (eval $ac_compile) 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_fc_werror_flag"
10233 || test ! -s conftest.err'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10236 ac_status=$?
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; } &&
10239 { ac_try='test -s conftest.$ac_objext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_prog_fc_g=yes
10246else
10247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250ac_cv_prog_fc_g=no
10251fi
10252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10253
10254fi
10255echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10256echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10257if test "$ac_test_FFLAGS" = set; then
10258 FCFLAGS=$ac_save_FFLAGS
10259elif test $ac_cv_prog_fc_g = yes; then
10260 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10261 FCFLAGS="-g -O2"
10262 else
10263 FCFLAGS="-g"
10264 fi
10265else
10266 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10267 FCFLAGS="-O2"
10268 else
10269 FCFLAGS=
10270 fi
10271fi
10272
10273ac_ext=c
10274ac_cpp='$CPP $CPPFLAGS'
10275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277ac_compiler_gnu=$ac_cv_c_compiler_gnu
10278
10279
10280ac_ext=${FC_SRCEXT-f}
10281ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10282ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10283ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10284if test -n "$ac_tool_prefix"; then
10285 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10286 do
10287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10289echo "$as_me:$LINENO: checking for $ac_word" >&5
10290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10291if test "${ac_cv_prog_FC+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294 if test -n "$FC"; then
10295 ac_cv_prog_FC="$FC" # Let the user override the test.
10296else
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309done
10310
10311fi
10312fi
10313FC=$ac_cv_prog_FC
10314if test -n "$FC"; then
10315 echo "$as_me:$LINENO: result: $FC" >&5
10316echo "${ECHO_T}$FC" >&6
10317else
10318 echo "$as_me:$LINENO: result: no" >&5
10319echo "${ECHO_T}no" >&6
10320fi
10321
10322 test -n "$FC" && break
10323 done
10324fi
10325if test -z "$FC"; then
10326 ac_ct_FC=$FC
10327 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10328do
10329 # Extract the first word of "$ac_prog", so it can be a program name with args.
10330set dummy $ac_prog; ac_word=$2
10331echo "$as_me:$LINENO: checking for $ac_word" >&5
10332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10333if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335else
10336 if test -n "$ac_ct_FC"; then
10337 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10338else
10339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340for as_dir in $PATH
10341do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_prog_ac_ct_FC="$ac_prog"
10347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10349 fi
10350done
10351done
10352
10353fi
10354fi
10355ac_ct_FC=$ac_cv_prog_ac_ct_FC
10356if test -n "$ac_ct_FC"; then
10357 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10358echo "${ECHO_T}$ac_ct_FC" >&6
10359else
10360 echo "$as_me:$LINENO: result: no" >&5
10361echo "${ECHO_T}no" >&6
10362fi
10363
10364 test -n "$ac_ct_FC" && break
10365done
10366
10367 FC=$ac_ct_FC
10368fi
10369
10370
10371# Provide some information about the compiler.
10372echo "$as_me:10372:" \
10373 "checking for Fortran compiler version" >&5
10374ac_compiler=`set X $ac_compile; echo $2`
10375{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10376 (eval $ac_compiler --version </dev/null >&5) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }
10380{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10381 (eval $ac_compiler -v </dev/null >&5) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }
10385{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10386 (eval $ac_compiler -V </dev/null >&5) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }
10390rm -f a.out
10391
10392# If we don't use `.F' as extension, the preprocessor is not run on the
10393# input file. (Note that this only needs to work for GNU compilers.)
10394ac_save_ext=$ac_ext
10395ac_ext=F
10396echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10397echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10398if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400else
10401 cat >conftest.$ac_ext <<_ACEOF
10402 program main
10403#ifndef __GNUC__
10404 choke me
10405#endif
10406
10407 end
10408_ACEOF
10409rm -f conftest.$ac_objext
10410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411 (eval $ac_compile) 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_fc_werror_flag"
10419 || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest.$ac_objext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_compiler_gnu=yes
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
10436ac_compiler_gnu=no
10437fi
10438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10439ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10440
10441fi
10442echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10443echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10444ac_ext=$ac_save_ext
10445ac_test_FFLAGS=${FCFLAGS+set}
10446ac_save_FFLAGS=$FCFLAGS
10447FCFLAGS=
10448echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10449echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10450if test "${ac_cv_prog_fc_g+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10452else
10453 FCFLAGS=-g
10454cat >conftest.$ac_ext <<_ACEOF
10455 program main
10456
10457 end
10458_ACEOF
10459rm -f conftest.$ac_objext
10460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_fc_werror_flag"
10469 || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest.$ac_objext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 ac_cv_prog_fc_g=yes
10482else
10483 echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486ac_cv_prog_fc_g=no
10487fi
10488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10489
10490fi
10491echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10492echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10493if test "$ac_test_FFLAGS" = set; then
10494 FCFLAGS=$ac_save_FFLAGS
10495elif test $ac_cv_prog_fc_g = yes; then
10496 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10497 FCFLAGS="-g -O2"
10498 else
10499 FCFLAGS="-g"
10500 fi
10501else
10502 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10503 FCFLAGS="-O2"
10504 else
10505 FCFLAGS=
10506 fi
10507fi
10508
10509ac_ext=c
10510ac_cpp='$CPP $CPPFLAGS'
10511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513ac_compiler_gnu=$ac_cv_c_compiler_gnu
10514
10515if test -z "$FC" || test "X$FC" = "Xno"; then
10516 _lt_disable_FC=yes
10517fi
10518
10519
10520
10521 ac_ext=${FC_SRCEXT-f}
10522ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10523ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10524ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10525
10526
10527archive_cmds_need_lc_FC=no
10528allow_undefined_flag_FC=
10529always_export_symbols_FC=no
10530archive_expsym_cmds_FC=
10531export_dynamic_flag_spec_FC=
10532hardcode_direct_FC=no
10533hardcode_direct_absolute_FC=no
10534hardcode_libdir_flag_spec_FC=
10535hardcode_libdir_flag_spec_ld_FC=
10536hardcode_libdir_separator_FC=
10537hardcode_minus_L_FC=no
10538hardcode_automatic_FC=no
10539inherit_rpath_FC=no
10540module_cmds_FC=
10541module_expsym_cmds_FC=
10542link_all_deplibs_FC=unknown
10543old_archive_cmds_FC=$old_archive_cmds
10544no_undefined_flag_FC=
10545whole_archive_flag_spec_FC=
10546enable_shared_with_static_runtimes_FC=no
10547
10548# Source file extension for fc test sources.
10549ac_ext=${ac_fc_srcext-f}
10550
10551# Object file extension for compiled fc test sources.
10552objext=o
10553objext_FC=$objext
10554
10555# No sense in running all these tests if we already determined that
10556# the FC compiler isn't working. Some variables (like enable_shared)
10557# are currently assumed to apply to all compilers on this platform,
10558# and will be corrupted by setting them based on a non-working compiler.
10559if test "$_lt_disable_FC" != yes; then
10560 # Code to be used in simple compile tests
10561 lt_simple_compile_test_code="\
10562 subroutine t
10563 return
10564 end
10565"
10566
10567 # Code to be used in simple link tests
10568 lt_simple_link_test_code="\
10569 program t
10570 end
10571"
10572
10573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10574
10575
10576
10577
10578
10579
10580# If no C compiler was specified, use CC.
10581LTCC=${LTCC-"$CC"}
10582
10583# If no C compiler flags were specified, use CFLAGS.
10584LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10585
10586# Allow CC to be a program name with arguments.
10587compiler=$CC
10588
10589
10590 # save warnings/boilerplate of simple test code
10591 ac_outfile=conftest.$ac_objext
10592echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10593eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10594_lt_compiler_boilerplate=`cat conftest.err`
10595$RM conftest*
10596
10597 ac_outfile=conftest.$ac_objext
10598echo "$lt_simple_link_test_code" >conftest.$ac_ext
10599eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10600_lt_linker_boilerplate=`cat conftest.err`
10601$RM conftest*
10602
10603
10604 # Allow CC to be a program name with arguments.
10605 lt_save_CC="$CC"
10606 CC=${FC-"f95"}
10607 compiler=$CC
10608 compiler_FC=$CC
10609 for cc_temp in $compiler""; do
10610 case $cc_temp in
10611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10613 \-*) ;;
10614 *) break;;
10615 esac
10616done
10617cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10618
10619
10620 if test -n "$compiler"; then
10621 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10622echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10623 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10624echo "${ECHO_T}$can_build_shared" >&6
10625
10626 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10627echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10628 test "$can_build_shared" = "no" && enable_shared=no
10629
10630 # On AIX, shared libraries and static libraries use the same namespace, and
10631 # are all built from PIC.
10632 case $host_os in
10633 aix3*)
10634 test "$enable_shared" = yes && enable_static=no
10635 if test -n "$RANLIB"; then
10636 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10637 postinstall_cmds='$RANLIB $lib'
10638 fi
10639 ;;
10640 aix4* | aix5*)
10641 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10642 test "$enable_shared" = yes && enable_static=no
10643 fi
10644 ;;
10645 esac
10646 echo "$as_me:$LINENO: result: $enable_shared" >&5
10647echo "${ECHO_T}$enable_shared" >&6
10648
10649 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10650echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10651 # Make sure either enable_shared or enable_static is yes.
10652 test "$enable_shared" = yes || enable_static=yes
10653 echo "$as_me:$LINENO: result: $enable_static" >&5
10654echo "${ECHO_T}$enable_static" >&6
10655
10656 GCC_FC="$ac_cv_fc_compiler_gnu"
10657 LD_FC="$LD"
10658
10659 ## CAVEAT EMPTOR:
10660 ## There is no encapsulation within the following macros, do not change
10661 ## the running order or otherwise move them around unless you know exactly
10662 ## what you are doing...
10663 # Dependencies to place before and after the object being linked:
10664predep_objects_FC=
10665postdep_objects_FC=
10666predeps_FC=
10667postdeps_FC=
10668compiler_lib_search_path_FC=
10669
10670cat > conftest.$ac_ext <<_LT_EOF
10671 subroutine foo
10672 implicit none
10673 integer a
10674 a=0
10675 return
10676 end
10677_LT_EOF
10678
10679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680 (eval $ac_compile) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; then
10684 # Parse the compiler output and extract the necessary
10685 # objects, libraries and library flags.
10686
10687 # Sentinel used to keep track of whether or not we are before
10688 # the conftest object file.
10689 pre_test_object_deps_done=no
10690
10691 # The `*' in the case matches for architectures that use `case' in
10692 # $output_verbose_cmd can trigger glob expansion during the loop
10693 # eval without this substitution.
10694 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10695
10696 for p in `eval $output_verbose_link_cmd`; do
10697 case $p in
10698
10699 -L* | -R* | -l*)
10700 # Some compilers place space between "-{L,R}" and the path.
10701 # Remove the space.
10702 if test $p = "-L" ||
10703 test $p = "-R"; then
10704 prev=$p
10705 continue
10706 else
10707 prev=
10708 fi
10709
10710 if test "$pre_test_object_deps_done" = no; then
10711 case $p in
10712 -L* | -R*)
10713 # Internal compiler library paths should come after those
10714 # provided the user. The postdeps already come after the
10715 # user supplied libs so there is no need to process them.
10716 if test -z "$compiler_lib_search_path_FC"; then
10717 compiler_lib_search_path_FC="${prev}${p}"
10718 else
10719 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10720 fi
10721 ;;
10722 # The "-l" case would never come before the object being
10723 # linked, so don't bother handling this case.
10724 esac
10725 else
10726 if test -z "$postdeps_FC"; then
10727 postdeps_FC="${prev}${p}"
10728 else
10729 postdeps_FC="${postdeps_FC} ${prev}${p}"
10730 fi
10731 fi
10732 ;;
10733
10734 *.$objext)
10735 # This assumes that the test object file only shows up
10736 # once in the compiler output.
10737 if test "$p" = "conftest.$objext"; then
10738 pre_test_object_deps_done=yes
10739 continue
10740 fi
10741
10742 if test "$pre_test_object_deps_done" = no; then
10743 if test -z "$predep_objects_FC"; then
10744 predep_objects_FC="$p"
10745 else
10746 predep_objects_FC="$predep_objects_FC $p"
10747 fi
10748 else
10749 if test -z "$postdep_objects_FC"; then
10750 postdep_objects_FC="$p"
10751 else
10752 postdep_objects_FC="$postdep_objects_FC $p"
10753 fi
10754 fi
10755 ;;
10756
10757 *) ;; # Ignore the rest.
10758
10759 esac
10760 done
10761
10762 # Clean up.
10763 rm -f a.out a.exe
10764else
10765 echo "libtool.m4: error: problem compiling FC test program"
10766fi
10767
10768$RM -f confest.$objext
10769
10770# PORTME: override above test on systems where it is broken
10771
10772
10773case " $postdeps_FC " in
10774*" -lc "*) archive_cmds_need_lc_FC=no ;;
10775esac
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802 lt_prog_compiler_wl_FC=
10803lt_prog_compiler_pic_FC=
10804lt_prog_compiler_static_FC=
10805
10806echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10807echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10808
10809 if test "$GCC" = yes; then
10810 lt_prog_compiler_wl_FC='-Wl,'
10811 lt_prog_compiler_static_FC='-static'
10812
10813 case $host_os in
10814 aix*)
10815 # All AIX code is PIC.
10816 if test "$host_cpu" = ia64; then
10817 # AIX 5 now supports IA64 processor
10818 lt_prog_compiler_static_FC='-Bstatic'
10819 fi
10820 ;;
10821
10822 amigaos*)
10823 if test "$host_cpu" = m68k; then
10824 # FIXME: we need at least 68020 code to build shared libraries, but
10825 # adding the `-m68020' flag to GCC prevents building anything better,
10826 # like `-m68040'.
10827 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10828 fi
10829 ;;
10830
10831 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10832 # PIC is the default for these OSes.
10833 ;;
10834
10835 mingw* | cygwin* | pw32* | os2*)
10836 # This hack is so that the source file can tell whether it is being
10837 # built for inclusion in a dll (and should export symbols for example).
10838 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10839 # (--disable-auto-import) libraries
10840 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10841 ;;
10842
10843 darwin* | rhapsody*)
10844 # PIC is the default on this platform
10845 # Common symbols not allowed in MH_DYLIB files
10846 lt_prog_compiler_pic_FC='-fno-common'
10847 ;;
10848
10849 hpux*)
10850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10851 # not for PA HP-UX.
10852 case $host_cpu in
10853 hppa*64*|ia64*)
10854 # +Z the default
10855 ;;
10856 *)
10857 lt_prog_compiler_pic_FC='-fPIC'
10858 ;;
10859 esac
10860 ;;
10861
10862 interix[3-9]*)
10863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10864 # Instead, we relocate shared libraries at runtime.
10865 ;;
10866
10867 msdosdjgpp*)
10868 # Just because we use GCC doesn't mean we suddenly get shared libraries
10869 # on systems that don't support them.
10870 lt_prog_compiler_can_build_shared_FC=no
10871 enable_shared=no
10872 ;;
10873
10874 *nto* | *qnx*)
10875 # QNX uses GNU C++, but need to define -shared option too, otherwise
10876 # it will coredump.
10877 lt_prog_compiler_pic_FC='-fPIC -shared'
10878 ;;
10879
10880 sysv4*MP*)
10881 if test -d /usr/nec; then
10882 lt_prog_compiler_pic_FC=-Kconform_pic
10883 fi
10884 ;;
10885
10886 *)
10887 lt_prog_compiler_pic_FC='-fPIC'
10888 ;;
10889 esac
10890 else
10891 # PORTME Check for flag to pass linker flags through the system compiler.
10892 case $host_os in
10893 aix*)
10894 lt_prog_compiler_wl_FC='-Wl,'
10895 if test "$host_cpu" = ia64; then
10896 # AIX 5 now supports IA64 processor
10897 lt_prog_compiler_static_FC='-Bstatic'
10898 else
10899 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10900 fi
10901 ;;
10902 darwin*)
10903 # PIC is the default on this platform
10904 # Common symbols not allowed in MH_DYLIB files
10905 case $cc_basename in
10906 xlc*)
10907 lt_prog_compiler_pic_FC='-qnocommon'
10908 lt_prog_compiler_wl_FC='-Wl,'
10909 ;;
10910 esac
10911 ;;
10912
10913 mingw* | cygwin* | pw32* | os2*)
10914 # This hack is so that the source file can tell whether it is being
10915 # built for inclusion in a dll (and should export symbols for example).
10916 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10917 ;;
10918
10919 hpux9* | hpux10* | hpux11*)
10920 lt_prog_compiler_wl_FC='-Wl,'
10921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10922 # not for PA HP-UX.
10923 case $host_cpu in
10924 hppa*64*|ia64*)
10925 # +Z the default
10926 ;;
10927 *)
10928 lt_prog_compiler_pic_FC='+Z'
10929 ;;
10930 esac
10931 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10932 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10933 ;;
10934
10935 irix5* | irix6* | nonstopux*)
10936 lt_prog_compiler_wl_FC='-Wl,'
10937 # PIC (with -KPIC) is the default.
10938 lt_prog_compiler_static_FC='-non_shared'
10939 ;;
10940
10941 linux* | k*bsd*-gnu)
10942 case $cc_basename in
10943 icc* | ecc*)
10944 lt_prog_compiler_wl_FC='-Wl,'
10945 lt_prog_compiler_pic_FC='-KPIC'
10946 lt_prog_compiler_static_FC='-static'
10947 ;;
10948 pgcc* | pgf77* | pgf90* | pgf95*)
10949 # Portland Group compilers (*not* the Pentium gcc compiler,
10950 # which looks to be a dead project)
10951 lt_prog_compiler_wl_FC='-Wl,'
10952 lt_prog_compiler_pic_FC='-fpic'
10953 lt_prog_compiler_static_FC='-Bstatic'
10954 ;;
10955 ccc*)
10956 lt_prog_compiler_wl_FC='-Wl,'
10957 # All Alpha code is PIC.
10958 lt_prog_compiler_static_FC='-non_shared'
10959 ;;
10960 *)
10961 case `$CC -V 2>&1 | sed 5q` in
10962 *Sun\ C*)
10963 # Sun C 5.9
10964 lt_prog_compiler_pic_FC='-KPIC'
10965 lt_prog_compiler_static_FC='-Bstatic'
10966 lt_prog_compiler_wl_FC='-Wl,'
10967 ;;
10968 *Sun\ F*)
10969 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10970 lt_prog_compiler_pic_FC='-KPIC'
10971 lt_prog_compiler_static_FC='-Bstatic'
10972 lt_prog_compiler_wl_FC=''
10973 ;;
10974 esac
10975 ;;
10976 esac
10977 ;;
10978
10979 newsos6)
10980 lt_prog_compiler_pic_FC='-KPIC'
10981 lt_prog_compiler_static_FC='-Bstatic'
10982 ;;
10983
10984 *nto* | *qnx*)
10985 # QNX uses GNU C++, but need to define -shared option too, otherwise
10986 # it will coredump.
10987 lt_prog_compiler_pic_FC='-fPIC -shared'
10988 ;;
10989
10990 osf3* | osf4* | osf5*)
10991 lt_prog_compiler_wl_FC='-Wl,'
10992 # All OSF/1 code is PIC.
10993 lt_prog_compiler_static_FC='-non_shared'
10994 ;;
10995
10996 rdos*)
10997 lt_prog_compiler_static_FC='-non_shared'
10998 ;;
10999
11000 solaris*)
11001 lt_prog_compiler_pic_FC='-KPIC'
11002 lt_prog_compiler_static_FC='-Bstatic'
11003 case $cc_basename in
11004 f77* | f90* | f95*)
11005 lt_prog_compiler_wl_FC='-Qoption ld ';;
11006 *)
11007 lt_prog_compiler_wl_FC='-Wl,';;
11008 esac
11009 ;;
11010
11011 sunos4*)
11012 lt_prog_compiler_wl_FC='-Qoption ld '
11013 lt_prog_compiler_pic_FC='-PIC'
11014 lt_prog_compiler_static_FC='-Bstatic'
11015 ;;
11016
11017 sysv4 | sysv4.2uw2* | sysv4.3*)
11018 lt_prog_compiler_wl_FC='-Wl,'
11019 lt_prog_compiler_pic_FC='-KPIC'
11020 lt_prog_compiler_static_FC='-Bstatic'
11021 ;;
11022
11023 sysv4*MP*)
11024 if test -d /usr/nec ;then
11025 lt_prog_compiler_pic_FC='-Kconform_pic'
11026 lt_prog_compiler_static_FC='-Bstatic'
11027 fi
11028 ;;
11029
11030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11031 lt_prog_compiler_wl_FC='-Wl,'
11032 lt_prog_compiler_pic_FC='-KPIC'
11033 lt_prog_compiler_static_FC='-Bstatic'
11034 ;;
11035
11036 unicos*)
11037 lt_prog_compiler_wl_FC='-Wl,'
11038 lt_prog_compiler_can_build_shared_FC=no
11039 ;;
11040
11041 uts4*)
11042 lt_prog_compiler_pic_FC='-pic'
11043 lt_prog_compiler_static_FC='-Bstatic'
11044 ;;
11045
11046 *)
11047 lt_prog_compiler_can_build_shared_FC=no
11048 ;;
11049 esac
11050 fi
11051
11052case $host_os in
11053 # For platforms which do not support PIC, -DPIC is meaningless:
11054 *djgpp*)
11055 lt_prog_compiler_pic_FC=
11056 ;;
11057 *)
11058 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11059 ;;
11060esac
11061echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11062echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11063
11064
11065
11066#
11067# Check to make sure the PIC flag actually works.
11068#
11069if test -n "$lt_prog_compiler_pic_FC"; then
11070 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11071echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11072if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074else
11075 lt_prog_compiler_pic_works_FC=no
11076 ac_outfile=conftest.$ac_objext
11077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11078 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11079 # Insert the option either (1) after the last *FLAGS variable, or
11080 # (2) before a word containing "conftest.", or (3) at the end.
11081 # Note that $ac_compile itself does not contain backslashes and begins
11082 # with a dollar sign (not a hyphen), so the echo should work correctly.
11083 # The option is referenced via a variable to avoid confusing sed.
11084 lt_compile=`echo "$ac_compile" | $SED \
11085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11087 -e 's:$: $lt_compiler_flag:'`
11088 (eval echo "\"\$as_me:11088: $lt_compile\"" >&5)
11089 (eval "$lt_compile" 2>conftest.err)
11090 ac_status=$?
11091 cat conftest.err >&5
11092 echo "$as_me:11092: \$? = $ac_status" >&5
11093 if (exit $ac_status) && test -s "$ac_outfile"; then
11094 # The compiler can only warn and ignore the option if not recognized
11095 # So say no if there are warnings other than the usual output.
11096 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11099 lt_prog_compiler_pic_works_FC=yes
11100 fi
11101 fi
11102 $RM conftest*
11103
11104fi
11105echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11106echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11107
11108if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11109 case $lt_prog_compiler_pic_FC in
11110 "" | " "*) ;;
11111 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11112 esac
11113else
11114 lt_prog_compiler_pic_FC=
11115 lt_prog_compiler_can_build_shared_FC=no
11116fi
11117
11118fi
11119
11120
11121
11122#
11123# Check to make sure the static flag actually works.
11124#
11125wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11126echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11127echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11128if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130else
11131 lt_prog_compiler_static_works_FC=no
11132 save_LDFLAGS="$LDFLAGS"
11133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11136 # The linker can only warn and ignore the option if not recognized
11137 # So say no if there are warnings
11138 if test -s conftest.err; then
11139 # Append any errors to the config.log.
11140 cat conftest.err 1>&5
11141 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11143 if diff conftest.exp conftest.er2 >/dev/null; then
11144 lt_prog_compiler_static_works_FC=yes
11145 fi
11146 else
11147 lt_prog_compiler_static_works_FC=yes
11148 fi
11149 fi
11150 $RM conftest*
11151 LDFLAGS="$save_LDFLAGS"
11152
11153fi
11154echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11155echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11156
11157if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11158 :
11159else
11160 lt_prog_compiler_static_FC=
11161fi
11162
11163
11164
11165
11166 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11167echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11168if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170else
11171 lt_cv_prog_compiler_c_o_FC=no
11172 $RM -r conftest 2>/dev/null
11173 mkdir conftest
11174 cd conftest
11175 mkdir out
11176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11177
11178 lt_compiler_flag="-o out/conftest2.$ac_objext"
11179 # Insert the option either (1) after the last *FLAGS variable, or
11180 # (2) before a word containing "conftest.", or (3) at the end.
11181 # Note that $ac_compile itself does not contain backslashes and begins
11182 # with a dollar sign (not a hyphen), so the echo should work correctly.
11183 lt_compile=`echo "$ac_compile" | $SED \
11184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11186 -e 's:$: $lt_compiler_flag:'`
11187 (eval echo "\"\$as_me:11187: $lt_compile\"" >&5)
11188 (eval "$lt_compile" 2>out/conftest.err)
11189 ac_status=$?
11190 cat out/conftest.err >&5
11191 echo "$as_me:11191: \$? = $ac_status" >&5
11192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11193 then
11194 # The compiler can only warn and ignore the option if not recognized
11195 # So say no if there are warnings
11196 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11199 lt_cv_prog_compiler_c_o_FC=yes
11200 fi
11201 fi
11202 chmod u+w . 2>&5
11203 $RM conftest*
11204 # SGI C++ compiler will create directory out/ii_files/ for
11205 # template instantiation
11206 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11207 $RM out/* && rmdir out
11208 cd ..
11209 $RM -r conftest
11210 $RM conftest*
11211
11212fi
11213echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11214echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11215
11216
11217
11218 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11219echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11220if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222else
11223 lt_cv_prog_compiler_c_o_FC=no
11224 $RM -r conftest 2>/dev/null
11225 mkdir conftest
11226 cd conftest
11227 mkdir out
11228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11229
11230 lt_compiler_flag="-o out/conftest2.$ac_objext"
11231 # Insert the option either (1) after the last *FLAGS variable, or
11232 # (2) before a word containing "conftest.", or (3) at the end.
11233 # Note that $ac_compile itself does not contain backslashes and begins
11234 # with a dollar sign (not a hyphen), so the echo should work correctly.
11235 lt_compile=`echo "$ac_compile" | $SED \
11236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11238 -e 's:$: $lt_compiler_flag:'`
11239 (eval echo "\"\$as_me:11239: $lt_compile\"" >&5)
11240 (eval "$lt_compile" 2>out/conftest.err)
11241 ac_status=$?
11242 cat out/conftest.err >&5
11243 echo "$as_me:11243: \$? = $ac_status" >&5
11244 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11245 then
11246 # The compiler can only warn and ignore the option if not recognized
11247 # So say no if there are warnings
11248 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11249 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11250 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11251 lt_cv_prog_compiler_c_o_FC=yes
11252 fi
11253 fi
11254 chmod u+w . 2>&5
11255 $RM conftest*
11256 # SGI C++ compiler will create directory out/ii_files/ for
11257 # template instantiation
11258 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11259 $RM out/* && rmdir out
11260 cd ..
11261 $RM -r conftest
11262 $RM conftest*
11263
11264fi
11265echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11266echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11267
11268
11269
11270
11271hard_links="nottested"
11272if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11273 # do not overwrite the value of need_locks provided by the user
11274 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11275echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11276 hard_links=yes
11277 $RM conftest*
11278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11279 touch conftest.a
11280 ln conftest.a conftest.b 2>&5 || hard_links=no
11281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11282 echo "$as_me:$LINENO: result: $hard_links" >&5
11283echo "${ECHO_T}$hard_links" >&6
11284 if test "$hard_links" = no; then
11285 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11286echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11287 need_locks=warn
11288 fi
11289else
11290 need_locks=no
11291fi
11292
11293
11294
11295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11297
11298 runpath_var=
11299 allow_undefined_flag_FC=
11300 always_export_symbols_FC=no
11301 archive_cmds_FC=
11302 archive_expsym_cmds_FC=
11303 compiler_needs_object_FC=no
11304 enable_shared_with_static_runtimes_FC=no
11305 export_dynamic_flag_spec_FC=
11306 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11307 hardcode_automatic_FC=no
11308 hardcode_direct_FC=no
11309 hardcode_direct_absolute_FC=no
11310 hardcode_libdir_flag_spec_FC=
11311 hardcode_libdir_flag_spec_ld_FC=
11312 hardcode_libdir_separator_FC=
11313 hardcode_minus_L_FC=no
11314 hardcode_shlibpath_var_FC=unsupported
11315 inherit_rpath_FC=no
11316 link_all_deplibs_FC=unknown
11317 module_cmds_FC=
11318 module_expsym_cmds_FC=
11319 old_archive_from_new_cmds_FC=
11320 old_archive_from_expsyms_cmds_FC=
11321 thread_safe_flag_spec_FC=
11322 whole_archive_flag_spec_FC=
11323 # include_expsyms should be a list of space-separated symbols to be *always*
11324 # included in the symbol list
11325 include_expsyms_FC=
11326 # exclude_expsyms can be an extended regexp of symbols to exclude
11327 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11328 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11329 # as well as any symbol that contains `d'.
11330 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11332 # platforms (ab)use it in PIC code, but their linkers get confused if
11333 # the symbol is explicitly referenced. Since portable code cannot
11334 # rely on this symbol name, it's probably fine to never include it in
11335 # preloaded symbol tables.
11336 extract_expsyms_cmds=
11337
11338 case $host_os in
11339 cygwin* | mingw* | pw32*)
11340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11341 # When not using gcc, we currently assume that we are using
11342 # Microsoft Visual C++.
11343 if test "$GCC" != yes; then
11344 with_gnu_ld=no
11345 fi
11346 ;;
11347 interix*)
11348 # we just hope/assume this is gcc and not c89 (= MSVC++)
11349 with_gnu_ld=yes
11350 ;;
11351 openbsd*)
11352 with_gnu_ld=no
11353 ;;
11354 esac
11355
11356 ld_shlibs_FC=yes
11357 if test "$with_gnu_ld" = yes; then
11358 # If archive_cmds runs LD, not CC, wlarc should be empty
11359 wlarc='${wl}'
11360
11361 # Set some defaults for GNU ld with shared library support. These
11362 # are reset later if shared libraries are not supported. Putting them
11363 # here allows them to be overridden if necessary.
11364 runpath_var=LD_RUN_PATH
11365 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11366 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11367 # ancient GNU ld didn't support --whole-archive et. al.
11368 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11369 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11370 else
11371 whole_archive_flag_spec_FC=
11372 fi
11373 supports_anon_versioning=no
11374 case `$LD -v 2>&1` in
11375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11378 *\ 2.11.*) ;; # other 2.11 versions
11379 *) supports_anon_versioning=yes ;;
11380 esac
11381
11382 # See if GNU ld supports shared libraries.
11383 case $host_os in
11384 aix3* | aix4* | aix5*)
11385 # On AIX/PPC, the GNU linker is very broken
11386 if test "$host_cpu" != ia64; then
11387 ld_shlibs_FC=no
11388 cat <<_LT_EOF 1>&2
11389
11390*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11391*** to be unable to reliably create shared libraries on AIX.
11392*** Therefore, libtool is disabling shared libraries support. If you
11393*** really care for shared libraries, you may want to modify your PATH
11394*** so that a non-GNU linker is found, and then restart.
11395
11396_LT_EOF
11397 fi
11398 ;;
11399
11400 amigaos*)
11401 if test "$host_cpu" = m68k; then
11402 archive_cmds_FC='$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)'
11403 hardcode_libdir_flag_spec_FC='-L$libdir'
11404 hardcode_minus_L_FC=yes
11405 fi
11406
11407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11408 # that the semantics of dynamic libraries on AmigaOS, at least up
11409 # to version 4, is to share data among multiple programs linked
11410 # with the same dynamic library. Since this doesn't match the
11411 # behavior of shared libraries on other platforms, we can't use
11412 # them.
11413 ld_shlibs_FC=no
11414 ;;
11415
11416 beos*)
11417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11418 allow_undefined_flag_FC=unsupported
11419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11420 # support --undefined. This deserves some investigation. FIXME
11421 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11422 else
11423 ld_shlibs_FC=no
11424 fi
11425 ;;
11426
11427 cygwin* | mingw* | pw32*)
11428 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11429 # as there is no search path for DLLs.
11430 hardcode_libdir_flag_spec_FC='-L$libdir'
11431 allow_undefined_flag_FC=unsupported
11432 always_export_symbols_FC=no
11433 enable_shared_with_static_runtimes_FC=yes
11434 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11435
11436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11437 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11438 # If the export-symbols file already is a .def file (1st line
11439 # is EXPORTS), use it as is; otherwise, prepend...
11440 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11441 cp $export_symbols $output_objdir/$soname.def;
11442 else
11443 echo EXPORTS > $output_objdir/$soname.def;
11444 cat $export_symbols >> $output_objdir/$soname.def;
11445 fi~
11446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11447 else
11448 ld_shlibs_FC=no
11449 fi
11450 ;;
11451
11452 interix[3-9]*)
11453 hardcode_direct_FC=no
11454 hardcode_shlibpath_var_FC=no
11455 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11456 export_dynamic_flag_spec_FC='${wl}-E'
11457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11458 # Instead, shared libraries are loaded at an image base (0x10000000 by
11459 # default) and relocated if they conflict, which is a slow very memory
11460 # consuming and fragmenting process. To avoid this, we pick a random,
11461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11463 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11464 archive_expsym_cmds_FC='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'
11465 ;;
11466
11467 gnu* | linux* | tpf* | k*bsd*-gnu)
11468 tmp_diet=no
11469 if test "$host_os" = linux-dietlibc; then
11470 case $cc_basename in
11471 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11472 esac
11473 fi
11474 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11475 && test "$tmp_diet" = no
11476 then
11477 tmp_addflag=
11478 case $cc_basename,$host_cpu in
11479 pgcc*) # Portland Group C compiler
11480 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11481 tmp_addflag=' $pic_flag'
11482 ;;
11483 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11484 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11485 tmp_addflag=' $pic_flag -Mnomain' ;;
11486 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11487 tmp_addflag=' -i_dynamic' ;;
11488 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11489 tmp_addflag=' -i_dynamic -nofor_main' ;;
11490 ifc* | ifort*) # Intel Fortran compiler
11491 tmp_addflag=' -nofor_main' ;;
11492 esac
11493 case `$CC -V 2>&1 | sed 5q` in
11494 *Sun\ C*) # Sun C 5.9
11495 whole_archive_flag_spec_FC='${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'
11496 compiler_needs_object_FC=yes
11497 tmp_sharedflag='-G' ;;
11498 *Sun\ F*) # Sun Fortran 8.3
11499 tmp_sharedflag='-G' ;;
11500 *)
11501 tmp_sharedflag='-shared' ;;
11502 esac
11503 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504
11505 if test "x$supports_anon_versioning" = xyes; then
11506 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11508 echo "local: *; };" >> $output_objdir/$libname.ver~
11509 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11510 fi
11511 else
11512 ld_shlibs_FC=no
11513 fi
11514 ;;
11515
11516 netbsd*)
11517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11518 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11519 wlarc=
11520 else
11521 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11522 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11523 fi
11524 ;;
11525
11526 solaris*)
11527 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11528 ld_shlibs_FC=no
11529 cat <<_LT_EOF 1>&2
11530
11531*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11532*** create shared libraries on Solaris systems. Therefore, libtool
11533*** is disabling shared libraries support. We urge you to upgrade GNU
11534*** binutils to release 2.9.1 or newer. Another option is to modify
11535*** your PATH or compiler configuration so that the native linker is
11536*** used, and then restart.
11537
11538_LT_EOF
11539 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11540 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11541 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11542 else
11543 ld_shlibs_FC=no
11544 fi
11545 ;;
11546
11547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11548 case `$LD -v 2>&1` in
11549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11550 ld_shlibs_FC=no
11551 cat <<_LT_EOF 1>&2
11552
11553*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11554*** reliably create shared libraries on SCO systems. Therefore, libtool
11555*** is disabling shared libraries support. We urge you to upgrade GNU
11556*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11557*** your PATH or compiler configuration so that the native linker is
11558*** used, and then restart.
11559
11560_LT_EOF
11561 ;;
11562 *)
11563 # For security reasons, it is highly recommended that you always
11564 # use absolute paths for naming shared libraries, and exclude the
11565 # DT_RUNPATH tag from executables and libraries. But doing so
11566 # requires that you compile everything twice, which is a pain.
11567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11568 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11569 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11571 else
11572 ld_shlibs_FC=no
11573 fi
11574 ;;
11575 esac
11576 ;;
11577
11578 sunos4*)
11579 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11580 wlarc=
11581 hardcode_direct_FC=yes
11582 hardcode_shlibpath_var_FC=no
11583 ;;
11584
11585 *)
11586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11587 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11588 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11589 else
11590 ld_shlibs_FC=no
11591 fi
11592 ;;
11593 esac
11594
11595 if test "$ld_shlibs_FC" = no; then
11596 runpath_var=
11597 hardcode_libdir_flag_spec_FC=
11598 export_dynamic_flag_spec_FC=
11599 whole_archive_flag_spec_FC=
11600 fi
11601 else
11602 # PORTME fill in a description of your system's linker (not GNU ld)
11603 case $host_os in
11604 aix3*)
11605 allow_undefined_flag_FC=unsupported
11606 always_export_symbols_FC=yes
11607 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11608 # Note: this linker hardcodes the directories in LIBPATH if there
11609 # are no directories specified by -L.
11610 hardcode_minus_L_FC=yes
11611 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11612 # Neither direct hardcoding nor static linking is supported with a
11613 # broken collect2.
11614 hardcode_direct_FC=unsupported
11615 fi
11616 ;;
11617
11618 aix4* | aix5*)
11619 if test "$host_cpu" = ia64; then
11620 # On IA64, the linker does run time linking by default, so we don't
11621 # have to do anything special.
11622 aix_use_runtimelinking=no
11623 exp_sym_flag='-Bexport'
11624 no_entry_flag=""
11625 else
11626 # If we're using GNU nm, then we don't want the "-C" option.
11627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11628 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11629 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11630 else
11631 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11632 fi
11633 aix_use_runtimelinking=no
11634
11635 # Test if we are trying to use run time linking or normal
11636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11637 # need to do runtime linking.
11638 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11639 for ld_flag in $LDFLAGS; do
11640 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11641 aix_use_runtimelinking=yes
11642 break
11643 fi
11644 done
11645 ;;
11646 esac
11647
11648 exp_sym_flag='-bexport'
11649 no_entry_flag='-bnoentry'
11650 fi
11651
11652 # When large executables or shared objects are built, AIX ld can
11653 # have problems creating the table of contents. If linking a library
11654 # or program results in "error TOC overflow" add -mminimal-toc to
11655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11657
11658 archive_cmds_FC=''
11659 hardcode_direct_FC=yes
11660 hardcode_direct_absolute_FC=yes
11661 hardcode_libdir_separator_FC=':'
11662 link_all_deplibs_FC=yes
11663 file_list_spec_FC='${wl}-f,'
11664
11665 if test "$GCC" = yes; then
11666 case $host_os in aix4.[012]|aix4.[012].*)
11667 # We only want to do this on AIX 4.2 and lower, the check
11668 # below for broken collect2 doesn't work under 4.3+
11669 collect2name=`${CC} -print-prog-name=collect2`
11670 if test -f "$collect2name" &&
11671 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11672 then
11673 # We have reworked collect2
11674 :
11675 else
11676 # We have old collect2
11677 hardcode_direct_FC=unsupported
11678 # It fails to find uninstalled libraries when the uninstalled
11679 # path is not listed in the libpath. Setting hardcode_minus_L
11680 # to unsupported forces relinking
11681 hardcode_minus_L_FC=yes
11682 hardcode_libdir_flag_spec_FC='-L$libdir'
11683 hardcode_libdir_separator_FC=
11684 fi
11685 ;;
11686 esac
11687 shared_flag='-shared'
11688 if test "$aix_use_runtimelinking" = yes; then
11689 shared_flag="$shared_flag "'${wl}-G'
11690 fi
11691 else
11692 # not using gcc
11693 if test "$host_cpu" = ia64; then
11694 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11695 # chokes on -Wl,-G. The following line is correct:
11696 shared_flag='-G'
11697 else
11698 if test "$aix_use_runtimelinking" = yes; then
11699 shared_flag='${wl}-G'
11700 else
11701 shared_flag='${wl}-bM:SRE'
11702 fi
11703 fi
11704 fi
11705
11706 # It seems that -bexpall does not export symbols beginning with
11707 # underscore (_), so it is better to generate a list of symbols to export.
11708 always_export_symbols_FC=yes
11709 if test "$aix_use_runtimelinking" = yes; then
11710 # Warning - without using the other runtime loading flags (-brtl),
11711 # -berok will link without error, but may produce a broken library.
11712 allow_undefined_flag_FC='-berok'
11713 # Determine the default libpath from the value encoded in an
11714 # empty executable.
11715 cat >conftest.$ac_ext <<_ACEOF
11716 program main
11717
11718 end
11719_ACEOF
11720rm -f conftest.$ac_objext conftest$ac_exeext
11721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_fc_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742
11743lt_aix_libpath_sed='
11744 /Import File Strings/,/^$/ {
11745 /^0/ {
11746 s/^0 *\(.*\)$/\1/
11747 p
11748 }
11749 }'
11750aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11751# Check for a 64-bit object if we didn't find anything.
11752if test -z "$aix_libpath"; then
11753 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11754fi
11755else
11756 echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759fi
11760rm -f conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11762if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11763
11764 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11765 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11766 else
11767 if test "$host_cpu" = ia64; then
11768 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11769 allow_undefined_flag_FC="-z nodefs"
11770 archive_expsym_cmds_FC="\$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"
11771 else
11772 # Determine the default libpath from the value encoded in an
11773 # empty executable.
11774 cat >conftest.$ac_ext <<_ACEOF
11775 program main
11776
11777 end
11778_ACEOF
11779rm -f conftest.$ac_objext conftest$ac_exeext
11780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_fc_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801
11802lt_aix_libpath_sed='
11803 /Import File Strings/,/^$/ {
11804 /^0/ {
11805 s/^0 *\(.*\)$/\1/
11806 p
11807 }
11808 }'
11809aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11810# Check for a 64-bit object if we didn't find anything.
11811if test -z "$aix_libpath"; then
11812 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11813fi
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818fi
11819rm -f conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11822
11823 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11824 # Warning - without using the other run time loading flags,
11825 # -berok will link without error, but may produce a broken library.
11826 no_undefined_flag_FC=' ${wl}-bernotok'
11827 allow_undefined_flag_FC=' ${wl}-berok'
11828 # Exported symbols can be pulled into shared objects from archives
11829 whole_archive_flag_spec_FC='$convenience'
11830 archive_cmds_need_lc_FC=yes
11831 # This is similar to how AIX traditionally builds its shared libraries.
11832 archive_expsym_cmds_FC="\$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'
11833 fi
11834 fi
953ff289 11835 ;;
1cf3d07d
SE
11836
11837 amigaos*)
11838 if test "$host_cpu" = m68k; then
11839 archive_cmds_FC='$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)'
11840 hardcode_libdir_flag_spec_FC='-L$libdir'
11841 hardcode_minus_L_FC=yes
11842 fi
11843 # see comment about different semantics on the GNU ld section
11844 ld_shlibs_FC=no
953ff289 11845 ;;
1cf3d07d
SE
11846
11847 bsdi[45]*)
11848 export_dynamic_flag_spec_FC=-rdynamic
953ff289 11849 ;;
1cf3d07d
SE
11850
11851 cygwin* | mingw* | pw32*)
11852 # When not using gcc, we currently assume that we are using
11853 # Microsoft Visual C++.
11854 # hardcode_libdir_flag_spec is actually meaningless, as there is
11855 # no search path for DLLs.
11856 hardcode_libdir_flag_spec_FC=' '
11857 allow_undefined_flag_FC=unsupported
11858 # Tell ltmain to make .lib files, not .a files.
11859 libext=lib
11860 # Tell ltmain to make .dll files, not .so files.
11861 shrext_cmds=".dll"
11862 # FIXME: Setting linknames here is a bad hack.
11863 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11864 # The linker will automatically build a .lib file if we build a DLL.
11865 old_archive_from_new_cmds_FC='true'
11866 # FIXME: Should let the user specify the lib program.
11867 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11868 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11869 enable_shared_with_static_runtimes_FC=yes
953ff289 11870 ;;
1cf3d07d
SE
11871
11872 darwin* | rhapsody*)
11873 case $host_os in
11874 rhapsody* | darwin1.[012])
11875 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11876 ;;
11877 *) # Darwin 1.3 on
11878 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11879 10.[012])
11880 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11881 ;;
11882 10.*)
11883 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11884 ;;
11885 esac
11886 ;;
11887 esac
11888 archive_cmds_need_lc_FC=no
11889 hardcode_direct_FC=no
11890 hardcode_automatic_FC=yes
11891 hardcode_shlibpath_var_FC=unsupported
11892 whole_archive_flag_spec_FC=''
11893 link_all_deplibs_FC=yes
11894 if test "$GCC" = yes ; then
11895 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897else
11898 lt_cv_apple_cc_single_mod=no
11899 if test -z "${LT_MULTI_MODULE}"; then
11900 # By default we will add the -single_module flag. You can override
11901 # by either setting the environment variable LT_MULTI_MODULE
11902 # non-empty at configure time, or by adding -multi-module to the
11903 # link flags.
11904 echo "int foo(void){return 1;}" > conftest.c
11905 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11906 -dynamiclib ${wl}-single_module conftest.c
11907 if test -f libconftest.dylib; then
11908 lt_cv_apple_cc_single_mod=yes
11909 rm libconftest.dylib
11910 fi
11911 rm conftest.$ac_ext
11912 fi
11913fi
11914
11915 output_verbose_link_cmd=echo
11916 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11917 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11918 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11919 else
11920 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11921 archive_expsym_cmds_FC='sed "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}'
11922 fi
11923 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11924 module_expsym_cmds_FC='sed -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}'
11925 else
11926 case $cc_basename in
11927 xlc*)
11928 output_verbose_link_cmd=echo
11929 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11930 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11932 archive_expsym_cmds_FC='sed "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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11933 module_expsym_cmds_FC='sed "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}'
11934 ;;
11935 *)
11936 ld_shlibs_FC=no
11937 ;;
11938 esac
11939 fi
953ff289 11940 ;;
1cf3d07d
SE
11941
11942 dgux*)
11943 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944 hardcode_libdir_flag_spec_FC='-L$libdir'
11945 hardcode_shlibpath_var_FC=no
953ff289 11946 ;;
953ff289 11947
1cf3d07d
SE
11948 freebsd1*)
11949 ld_shlibs_FC=no
953ff289 11950 ;;
1cf3d07d
SE
11951
11952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11953 # support. Future versions do this automatically, but an explicit c++rt0.o
11954 # does not break anything, and helps significantly (at the cost of a little
11955 # extra space).
11956 freebsd2.2*)
11957 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11958 hardcode_libdir_flag_spec_FC='-R$libdir'
11959 hardcode_direct_FC=yes
11960 hardcode_shlibpath_var_FC=no
953ff289 11961 ;;
953ff289 11962
1cf3d07d
SE
11963 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11964 freebsd2*)
11965 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11966 hardcode_direct_FC=yes
11967 hardcode_minus_L_FC=yes
11968 hardcode_shlibpath_var_FC=no
11969 ;;
11970
11971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11972 freebsd* | dragonfly*)
11973 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11974 hardcode_libdir_flag_spec_FC='-R$libdir'
11975 hardcode_direct_FC=yes
11976 hardcode_shlibpath_var_FC=no
11977 ;;
11978
11979 hpux9*)
11980 if test "$GCC" = yes; then
11981 archive_cmds_FC='$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'
11982 else
11983 archive_cmds_FC='$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'
11984 fi
11985 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11986 hardcode_libdir_separator_FC=:
11987 hardcode_direct_FC=yes
11988
11989 # hardcode_minus_L: Not really in the search PATH,
11990 # but as the default location of the library.
11991 hardcode_minus_L_FC=yes
11992 export_dynamic_flag_spec_FC='${wl}-E'
11993 ;;
11994
11995 hpux10*)
11996 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11997 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11998 else
11999 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12000 fi
12001 if test "$with_gnu_ld" = no; then
12002 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12003 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12004 hardcode_libdir_separator_FC=:
12005 hardcode_direct_FC=yes
12006 hardcode_direct_absolute_FC=yes
12007 export_dynamic_flag_spec_FC='${wl}-E'
12008 # hardcode_minus_L: Not really in the search PATH,
12009 # but as the default location of the library.
12010 hardcode_minus_L_FC=yes
12011 fi
12012 ;;
12013
12014 hpux11*)
12015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12016 case $host_cpu in
12017 hppa*64*)
12018 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12019 ;;
12020 ia64*)
12021 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12022 ;;
12023 *)
12024 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12025 ;;
12026 esac
12027 else
12028 case $host_cpu in
12029 hppa*64*)
12030 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12031 ;;
12032 ia64*)
12033 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12034 ;;
12035 *)
12036 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12037 ;;
12038 esac
12039 fi
12040 if test "$with_gnu_ld" = no; then
12041 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12042 hardcode_libdir_separator_FC=:
12043
12044 case $host_cpu in
12045 hppa*64*|ia64*)
12046 hardcode_direct_FC=no
12047 hardcode_shlibpath_var_FC=no
12048 ;;
12049 *)
12050 hardcode_direct_FC=yes
12051 hardcode_direct_absolute_FC=yes
12052 export_dynamic_flag_spec_FC='${wl}-E'
12053
12054 # hardcode_minus_L: Not really in the search PATH,
12055 # but as the default location of the library.
12056 hardcode_minus_L_FC=yes
12057 ;;
12058 esac
12059 fi
12060 ;;
12061
12062 irix5* | irix6* | nonstopux*)
12063 if test "$GCC" = yes; then
12064 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12065 # Try to use the -exported_symbol ld option, if it does not
12066 # work, assume that -exports_file does not work either and
12067 # implicitly export all symbols.
12068 save_LDFLAGS="$LDFLAGS"
12069 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12070 cat >conftest.$ac_ext <<_ACEOF
12071int foo(void) {}
12072_ACEOF
12073rm -f conftest.$ac_objext conftest$ac_exeext
12074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
953ff289 12076 ac_status=$?
1cf3d07d
SE
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
953ff289 12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_fc_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12096
12097else
12098 echo "$as_me: failed program was:" >&5
12099sed 's/^/| /' conftest.$ac_ext >&5
12100
12101fi
12102rm -f conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LDFLAGS="$save_LDFLAGS"
12105 else
12106 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12107 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12108 fi
12109 archive_cmds_need_lc_FC='no'
12110 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12111 hardcode_libdir_separator_FC=:
12112 inherit_rpath_FC=yes
12113 link_all_deplibs_FC=yes
12114 ;;
12115
12116 netbsd*)
12117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12118 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12119 else
12120 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12121 fi
12122 hardcode_libdir_flag_spec_FC='-R$libdir'
12123 hardcode_direct_FC=yes
12124 hardcode_shlibpath_var_FC=no
12125 ;;
12126
12127 newsos6)
12128 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12129 hardcode_direct_FC=yes
12130 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12131 hardcode_libdir_separator_FC=:
12132 hardcode_shlibpath_var_FC=no
12133 ;;
12134
12135 *nto* | *qnx*)
12136 ;;
12137
12138 openbsd*)
12139 hardcode_direct_FC=yes
12140 hardcode_shlibpath_var_FC=no
12141 hardcode_direct_absolute_FC=yes
12142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12143 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12145 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12146 export_dynamic_flag_spec_FC='${wl}-E'
12147 else
12148 case $host_os in
12149 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12150 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12151 hardcode_libdir_flag_spec_FC='-R$libdir'
12152 ;;
12153 *)
12154 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12155 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12156 ;;
12157 esac
12158 fi
12159 ;;
12160
12161 os2*)
12162 hardcode_libdir_flag_spec_FC='-L$libdir'
12163 hardcode_minus_L_FC=yes
12164 allow_undefined_flag_FC=unsupported
12165 archive_cmds_FC='$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'
12166 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12167 ;;
12168
12169 osf3*)
12170 if test "$GCC" = yes; then
12171 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12172 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12173 else
12174 allow_undefined_flag_FC=' -expect_unresolved \*'
12175 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12176 fi
12177 archive_cmds_need_lc_FC='no'
12178 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12179 hardcode_libdir_separator_FC=:
12180 ;;
12181
12182 osf4* | osf5*) # as osf3* with the addition of -msym flag
12183 if test "$GCC" = yes; then
12184 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12185 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12186 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12187 else
12188 allow_undefined_flag_FC=' -expect_unresolved \*'
12189 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12190 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12191 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12192
12193 # Both c and cxx compiler support -rpath directly
12194 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12195 fi
12196 archive_cmds_need_lc_FC='no'
12197 hardcode_libdir_separator_FC=:
12198 ;;
12199
12200 solaris*)
12201 no_undefined_flag_FC=' -z defs'
12202 if test "$GCC" = yes; then
12203 wlarc='${wl}'
12204 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12206 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12207 else
12208 case `$CC -V 2>&1` in
12209 *"Compilers 5.0"*)
12210 wlarc=''
12211 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12212 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12214 ;;
12215 *)
12216 wlarc='${wl}'
12217 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12218 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12219 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12220 ;;
12221 esac
12222 fi
12223 hardcode_libdir_flag_spec_FC='-R$libdir'
12224 hardcode_shlibpath_var_FC=no
12225 case $host_os in
12226 solaris2.[0-5] | solaris2.[0-5].*) ;;
12227 *)
12228 # The compiler driver will combine and reorder linker options,
12229 # but understands `-z linker_flag'. GCC discards it without `$wl',
12230 # but is careful enough not to reorder.
12231 # Supported since Solaris 2.6 (maybe 2.5.1?)
12232 if test "$GCC" = yes; then
12233 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12234 else
12235 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12236 fi
12237 ;;
12238 esac
12239 link_all_deplibs_FC=yes
12240 ;;
12241
12242 sunos4*)
12243 if test "x$host_vendor" = xsequent; then
12244 # Use $CC to link under sequent, because it throws in some extra .o
12245 # files that make .init and .fini sections work.
12246 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12247 else
12248 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12249 fi
12250 hardcode_libdir_flag_spec_FC='-L$libdir'
12251 hardcode_direct_FC=yes
12252 hardcode_minus_L_FC=yes
12253 hardcode_shlibpath_var_FC=no
12254 ;;
12255
12256 sysv4)
12257 case $host_vendor in
12258 sni)
12259 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12260 hardcode_direct_FC=yes # is this really true???
12261 ;;
12262 siemens)
12263 ## LD is ld it makes a PLAMLIB
12264 ## CC just makes a GrossModule.
12265 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12266 reload_cmds_FC='$CC -r -o $output$reload_objs'
12267 hardcode_direct_FC=no
12268 ;;
12269 motorola)
12270 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12271 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12272 ;;
953ff289 12273 esac
1cf3d07d
SE
12274 runpath_var='LD_RUN_PATH'
12275 hardcode_shlibpath_var_FC=no
12276 ;;
12277
12278 sysv4.3*)
12279 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12280 hardcode_shlibpath_var_FC=no
12281 export_dynamic_flag_spec_FC='-Bexport'
12282 ;;
12283
12284 sysv4*MP*)
12285 if test -d /usr/nec; then
12286 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12287 hardcode_shlibpath_var_FC=no
12288 runpath_var=LD_RUN_PATH
12289 hardcode_runpath_var=yes
12290 ld_shlibs_FC=yes
12291 fi
12292 ;;
12293
12294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12295 no_undefined_flag_FC='${wl}-z,text'
12296 archive_cmds_need_lc_FC=no
12297 hardcode_shlibpath_var_FC=no
12298 runpath_var='LD_RUN_PATH'
12299
12300 if test "$GCC" = yes; then
12301 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12302 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12303 else
12304 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12305 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12306 fi
12307 ;;
12308
12309 sysv5* | sco3.2v5* | sco5v6*)
12310 # Note: We can NOT use -z defs as we might desire, because we do not
12311 # link with -lc, and that would cause any symbols used from libc to
12312 # always be unresolved, which means just about no library would
12313 # ever link correctly. If we're not using GNU ld we use -z text
12314 # though, which does catch some bad symbols but isn't as heavy-handed
12315 # as -z defs.
12316 no_undefined_flag_FC='${wl}-z,text'
12317 allow_undefined_flag_FC='${wl}-z,nodefs'
12318 archive_cmds_need_lc_FC=no
12319 hardcode_shlibpath_var_FC=no
12320 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12321 hardcode_libdir_separator_FC=':'
12322 link_all_deplibs_FC=yes
12323 export_dynamic_flag_spec_FC='${wl}-Bexport'
12324 runpath_var='LD_RUN_PATH'
12325
12326 if test "$GCC" = yes; then
12327 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12328 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 else
12330 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12332 fi
12333 ;;
12334
12335 uts4*)
12336 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12337 hardcode_libdir_flag_spec_FC='-L$libdir'
12338 hardcode_shlibpath_var_FC=no
12339 ;;
12340
12341 *)
12342 ld_shlibs_FC=no
953ff289 12343 ;;
1cf3d07d
SE
12344 esac
12345
12346 if test x$host_vendor = xsni; then
953ff289 12347 case $host in
1cf3d07d
SE
12348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12349 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12350 ;;
953ff289 12351 esac
1cf3d07d 12352 fi
953ff289 12353 fi
953ff289 12354
1cf3d07d
SE
12355echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12356echo "${ECHO_T}$ld_shlibs_FC" >&6
12357test "$ld_shlibs_FC" = no && can_build_shared=no
953ff289 12358
1cf3d07d 12359with_gnu_ld_FC=$with_gnu_ld
953ff289 12360
953ff289 12361
953ff289 12362
953ff289 12363
1cf3d07d
SE
12364
12365
12366#
12367# Do we need to explicitly link libc?
12368#
12369case "x$archive_cmds_need_lc_FC" in
12370x|xyes)
12371 # Assume -lc should be added
12372 archive_cmds_need_lc_FC=yes
12373
12374 if test "$enable_shared" = yes && test "$GCC" = yes; then
12375 case $archive_cmds_FC in
12376 *'~'*)
12377 # FIXME: we may have to deal with multi-command sequences.
12378 ;;
12379 '$CC '*)
12380 # Test whether the compiler implicitly links with -lc since on some
12381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12382 # to ld, don't add -lc before -lgcc.
12383 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12384echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12385 $RM conftest*
12386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12387
12388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12389 (eval $ac_compile) 2>&5
953ff289
DN
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12392 (exit $ac_status); } 2>conftest.err; then
12393 soname=conftest
12394 lib=conftest
12395 libobjs=conftest.$ac_objext
12396 deplibs=
12397 wl=$lt_prog_compiler_wl_FC
12398 pic_flag=$lt_prog_compiler_pic_FC
12399 compiler_flags=-v
12400 linker_flags=-v
12401 verstring=
12402 output_objdir=.
12403 libname=conftest
12404 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12405 allow_undefined_flag_FC=
12406 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12407 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
953ff289
DN
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12410 (exit $ac_status); }
12411 then
12412 archive_cmds_need_lc_FC=no
12413 else
12414 archive_cmds_need_lc_FC=yes
12415 fi
12416 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12417 else
12418 cat conftest.err 1>&5
12419 fi
12420 $RM conftest*
12421 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12422echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12423 ;;
12424 esac
953ff289
DN
12425 fi
12426 ;;
1cf3d07d
SE
12427esac
12428
953ff289
DN
12429
12430
953ff289
DN
12431
12432
953ff289 12433
953ff289 12434
953ff289 12435
953ff289 12436
953ff289
DN
12437
12438
953ff289 12439
953ff289 12440
953ff289
DN
12441
12442
12443
12444
12445
12446
12447
12448
12449
c41303c6
RH
12450
12451
c41303c6 12452
c41303c6
RH
12453
12454
12455
953ff289 12456
953ff289 12457
953ff289 12458
953ff289 12459
953ff289 12460
953ff289
DN
12461
12462
953ff289 12463
953ff289 12464
953ff289 12465
953ff289 12466
953ff289 12467
953ff289 12468
953ff289 12469
1cf3d07d
SE
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12493echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12494withGCC=$ac_cv_fc_compiler_gnu
12495library_names_spec=
12496libname_spec='lib$name'
12497soname_spec=
12498shrext_cmds=".so"
12499postinstall_cmds=
12500postuninstall_cmds=
12501finish_cmds=
12502finish_eval=
12503shlibpath_var=
12504shlibpath_overrides_runpath=unknown
12505version_type=none
12506dynamic_linker="$host_os ld.so"
12507sys_lib_dlsearch_path_spec="/lib /usr/lib"
12508need_lib_prefix=unknown
12509hardcode_into_libs=no
12510
12511# when you set need_version to no, make sure it does not cause -set_version
12512# flags to be left without arguments
12513need_version=unknown
12514
12515case $host_os in
12516aix3*)
12517 version_type=linux
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12519 shlibpath_var=LIBPATH
12520
12521 # AIX 3 has no versioning support, so we append a major version to the name.
12522 soname_spec='${libname}${release}${shared_ext}$major'
12523 ;;
12524
12525aix4* | aix5*)
12526 version_type=linux
12527 need_lib_prefix=no
12528 need_version=no
12529 hardcode_into_libs=yes
12530 if test "$host_cpu" = ia64; then
12531 # AIX 5 supports IA64
12532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12533 shlibpath_var=LD_LIBRARY_PATH
953ff289 12534 else
1cf3d07d
SE
12535 # With GCC up to 2.95.x, collect2 would create an import file
12536 # for dependence libraries. The import file would start with
12537 # the line `#! .'. This would cause the generated library to
12538 # depend on `.', always an invalid library. This was fixed in
12539 # development snapshots of GCC prior to 3.0.
12540 case $host_os in
12541 aix4 | aix4.[01] | aix4.[01].*)
12542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12543 echo ' yes '
12544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12545 :
12546 else
12547 can_build_shared=no
12548 fi
12549 ;;
12550 esac
12551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12552 # soname into executable. Probably we can add versioning support to
12553 # collect2, so additional links can be useful in future.
12554 if test "$aix_use_runtimelinking" = yes; then
12555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12556 # instead of lib<name>.a to let people know that these are not
12557 # typical AIX shared libraries.
12558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12559 else
12560 # We preserve .a as extension for shared libraries through AIX4.2
12561 # and later when we are not doing run time linking.
12562 library_names_spec='${libname}${release}.a $libname.a'
12563 soname_spec='${libname}${release}${shared_ext}$major'
12564 fi
12565 shlibpath_var=LIBPATH
953ff289 12566 fi
1cf3d07d
SE
12567 ;;
12568
12569amigaos*)
12570 if test "$host_cpu" = m68k; then
12571 library_names_spec='$libname.ixlibrary $libname.a'
12572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12573 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'
953ff289 12574 else
1cf3d07d 12575 dynamic_linker=no
953ff289 12576 fi
1cf3d07d 12577 ;;
953ff289 12578
1cf3d07d
SE
12579beos*)
12580 library_names_spec='${libname}${shared_ext}'
12581 dynamic_linker="$host_os ld.so"
12582 shlibpath_var=LIBRARY_PATH
12583 ;;
953ff289 12584
1cf3d07d
SE
12585bsdi[45]*)
12586 version_type=linux
12587 need_version=no
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589 soname_spec='${libname}${release}${shared_ext}$major'
12590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12594 # the default ld.so.conf also contains /usr/contrib/lib and
12595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12596 # libtool to hard-code these into programs
12597 ;;
953ff289 12598
1cf3d07d
SE
12599cygwin* | mingw* | pw32*)
12600 version_type=windows
12601 shrext_cmds=".dll"
12602 need_version=no
12603 need_lib_prefix=no
12604
12605 case $withGCC,$host_os in
12606 yes,cygwin* | yes,mingw* | yes,pw32*)
12607 library_names_spec='$libname.dll.a'
12608 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12609 postinstall_cmds='base_file=`basename \${file}`~
12610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12611 dldir=$destdir/`dirname \$dlpath`~
12612 test -d \$dldir || mkdir -p \$dldir~
12613 $install_prog $dir/$dlname \$dldir/$dlname~
12614 chmod a+x \$dldir/$dlname~
12615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12617 fi'
12618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12619 dlpath=$dir/\$dldll~
12620 $RM \$dlpath'
12621 shlibpath_overrides_runpath=yes
12622
12623 case $host_os in
12624 cygwin*)
12625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12626 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12627 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12628 ;;
12629 mingw*)
12630 # MinGW DLLs use traditional 'lib' prefix
12631 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12632 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12633 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12634 # It is most probably a Windows format PATH printed by
12635 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12636 # path with ; separators, and with drive letters. We can handle the
12637 # drive letters (cygwin fileutils understands them), so leave them,
12638 # especially as we might pass files found there to a mingw objdump,
12639 # which wouldn't understand a cygwinified path. Ahh.
12640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12641 else
12642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12643 fi
12644 ;;
12645 pw32*)
12646 # pw32 DLLs use 'pw' prefix rather than 'lib'
12647 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12648 ;;
12649 esac
12650 ;;
953ff289 12651
1cf3d07d
SE
12652 *)
12653 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12654 ;;
12655 esac
12656 dynamic_linker='Win32 ld.exe'
12657 # FIXME: first we should search . and the directory the executable is in
12658 shlibpath_var=PATH
12659 ;;
953ff289 12660
1cf3d07d
SE
12661darwin* | rhapsody*)
12662 dynamic_linker="$host_os dyld"
12663 version_type=darwin
12664 need_lib_prefix=no
12665 need_version=no
12666 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12667 soname_spec='${libname}${release}${major}$shared_ext'
12668 shlibpath_overrides_runpath=yes
12669 shlibpath_var=DYLD_LIBRARY_PATH
12670 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12671
12672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12673 ;;
12674
12675dgux*)
12676 version_type=linux
12677 need_lib_prefix=no
12678 need_version=no
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12680 soname_spec='${libname}${release}${shared_ext}$major'
12681 shlibpath_var=LD_LIBRARY_PATH
12682 ;;
12683
12684freebsd1*)
12685 dynamic_linker=no
12686 ;;
12687
12688freebsd* | dragonfly*)
12689 # DragonFly does not have aout. When/if they implement a new
12690 # versioning mechanism, adjust this.
12691 if test -x /usr/bin/objformat; then
12692 objformat=`/usr/bin/objformat`
953ff289 12693 else
1cf3d07d
SE
12694 case $host_os in
12695 freebsd[123]*) objformat=aout ;;
12696 *) objformat=elf ;;
12697 esac
953ff289 12698 fi
1cf3d07d
SE
12699 version_type=freebsd-$objformat
12700 case $version_type in
12701 freebsd-elf*)
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12703 need_version=no
12704 need_lib_prefix=no
12705 ;;
12706 freebsd-*)
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12708 need_version=yes
12709 ;;
12710 esac
12711 shlibpath_var=LD_LIBRARY_PATH
12712 case $host_os in
12713 freebsd2*)
12714 shlibpath_overrides_runpath=yes
12715 ;;
12716 freebsd3.[01]* | freebsdelf3.[01]*)
12717 shlibpath_overrides_runpath=yes
12718 hardcode_into_libs=yes
12719 ;;
12720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12722 shlibpath_overrides_runpath=no
12723 hardcode_into_libs=yes
12724 ;;
12725 *) # from 4.6 on, and DragonFly
12726 shlibpath_overrides_runpath=yes
12727 hardcode_into_libs=yes
12728 ;;
12729 esac
12730 ;;
953ff289 12731
1cf3d07d
SE
12732gnu*)
12733 version_type=linux
12734 need_lib_prefix=no
12735 need_version=no
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12737 soname_spec='${libname}${release}${shared_ext}$major'
12738 shlibpath_var=LD_LIBRARY_PATH
12739 hardcode_into_libs=yes
12740 ;;
953ff289 12741
1cf3d07d
SE
12742hpux9* | hpux10* | hpux11*)
12743 # Give a soname corresponding to the major version so that dld.sl refuses to
12744 # link against other versions.
12745 version_type=sunos
12746 need_lib_prefix=no
12747 need_version=no
12748 case $host_cpu in
12749 ia64*)
12750 shrext_cmds='.so'
12751 hardcode_into_libs=yes
12752 dynamic_linker="$host_os dld.so"
12753 shlibpath_var=LD_LIBRARY_PATH
12754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756 soname_spec='${libname}${release}${shared_ext}$major'
12757 if test "X$HPUX_IA64_MODE" = X32; then
12758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12759 else
12760 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12761 fi
12762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12763 ;;
12764 hppa*64*)
12765 shrext_cmds='.sl'
12766 hardcode_into_libs=yes
12767 dynamic_linker="$host_os dld.sl"
12768 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771 soname_spec='${libname}${release}${shared_ext}$major'
12772 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12774 ;;
12775 *)
12776 shrext_cmds='.sl'
12777 dynamic_linker="$host_os dld.sl"
12778 shlibpath_var=SHLIB_PATH
12779 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 ;;
12783 esac
12784 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12785 postinstall_cmds='chmod 555 $lib'
12786 ;;
12787
12788interix[3-9]*)
12789 version_type=linux
12790 need_lib_prefix=no
12791 need_version=no
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=no
12797 hardcode_into_libs=yes
12798 ;;
12799
12800irix5* | irix6* | nonstopux*)
12801 case $host_os in
12802 nonstopux*) version_type=nonstopux ;;
12803 *)
12804 if test "$lt_cv_prog_gnu_ld" = yes; then
12805 version_type=linux
12806 else
12807 version_type=irix
12808 fi ;;
12809 esac
12810 need_lib_prefix=no
12811 need_version=no
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12814 case $host_os in
12815 irix5* | nonstopux*)
12816 libsuff= shlibsuff=
12817 ;;
12818 *)
12819 case $LD in # libtool.m4 will add one of these switches to LD
12820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12821 libsuff= shlibsuff= libmagic=32-bit;;
12822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12823 libsuff=32 shlibsuff=N32 libmagic=N32;;
12824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12826 *) libsuff= shlibsuff= libmagic=never-match;;
12827 esac
12828 ;;
12829 esac
12830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12831 shlibpath_overrides_runpath=no
12832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12834 hardcode_into_libs=yes
12835 ;;
12836
12837# No shared lib support for Linux oldld, aout, or coff.
12838linux*oldld* | linux*aout* | linux*coff*)
12839 dynamic_linker=no
12840 ;;
12841
12842# This must be Linux ELF.
12843linux* | k*bsd*-gnu)
12844 version_type=linux
12845 need_lib_prefix=no
12846 need_version=no
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12848 soname_spec='${libname}${release}${shared_ext}$major'
12849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 shlibpath_overrides_runpath=no
12852 # Some binutils ld are patched to set DT_RUNPATH
12853 save_LDFLAGS=$LDFLAGS
12854 save_libdir=$libdir
12855 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12856 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
953ff289 12857 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12858 program main
12859
12860 end
953ff289 12861_ACEOF
1cf3d07d
SE
12862rm -f conftest.$ac_objext conftest$ac_exeext
12863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12864 (eval $ac_link) 2>conftest.er1
953ff289
DN
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_fc_werror_flag"
12872 || test ! -s conftest.err'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try='test -s conftest$ac_exeext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12885 shlibpath_overrides_runpath=yes
953ff289 12886fi
1cf3d07d 12887
953ff289
DN
12888else
12889 echo "$as_me: failed program was:" >&5
12890sed 's/^/| /' conftest.$ac_ext >&5
12891
953ff289 12892fi
1cf3d07d
SE
12893rm -f conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LDFLAGS=$save_LDFLAGS
12896 libdir=$save_libdir
12897
12898 # This implies no fast_install, which is unacceptable.
12899 # Some rework will be needed to allow for fast_install
12900 # before this can be enabled.
12901 hardcode_into_libs=yes
12902
12903 # Append ld.so.conf contents to the search path
12904 if test -f /etc/ld.so.conf; then
12905 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12907 fi
953ff289 12908
1cf3d07d
SE
12909 # We used to test for /lib/ld.so.1 and disable shared libraries on
12910 # powerpc, because MkLinux only supported shared libraries with the
12911 # GNU dynamic linker. Since this was broken with cross compilers,
12912 # most powerpc-linux boxes support dynamic linking these days and
12913 # people can always --disable-shared, the test was removed, and we
12914 # assume the GNU/Linux dynamic linker is in use.
12915 dynamic_linker='GNU/Linux ld.so'
12916 ;;
953ff289 12917
1cf3d07d
SE
12918netbsd*)
12919 version_type=sunos
12920 need_lib_prefix=no
12921 need_version=no
12922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12925 dynamic_linker='NetBSD (a.out) ld.so'
12926 else
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12929 dynamic_linker='NetBSD ld.elf_so'
12930 fi
12931 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=yes
12933 hardcode_into_libs=yes
12934 ;;
953ff289 12935
1cf3d07d
SE
12936newsos6)
12937 version_type=linux
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12939 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=yes
12941 ;;
12942
12943*nto* | *qnx*)
12944 version_type=qnx
12945 need_lib_prefix=no
12946 need_version=no
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=no
12951 hardcode_into_libs=yes
12952 dynamic_linker='ldqnx.so'
12953 ;;
12954
12955openbsd*)
12956 version_type=sunos
12957 sys_lib_dlsearch_path_spec="/usr/lib"
12958 need_lib_prefix=no
12959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12960 case $host_os in
12961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12962 *) need_version=no ;;
12963 esac
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12968 case $host_os in
12969 openbsd2.[89] | openbsd2.[89].*)
12970 shlibpath_overrides_runpath=no
12971 ;;
12972 *)
12973 shlibpath_overrides_runpath=yes
12974 ;;
12975 esac
953ff289 12976 else
1cf3d07d 12977 shlibpath_overrides_runpath=yes
953ff289 12978 fi
1cf3d07d 12979 ;;
953ff289 12980
1cf3d07d
SE
12981os2*)
12982 libname_spec='$name'
12983 shrext_cmds=".dll"
12984 need_lib_prefix=no
12985 library_names_spec='$libname${shared_ext} $libname.a'
12986 dynamic_linker='OS/2 ld.exe'
12987 shlibpath_var=LIBPATH
12988 ;;
12989
12990osf3* | osf4* | osf5*)
12991 version_type=osf
12992 need_lib_prefix=no
12993 need_version=no
12994 soname_spec='${libname}${release}${shared_ext}$major'
12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12999 ;;
13000
13001rdos*)
13002 dynamic_linker=no
13003 ;;
13004
13005solaris*)
13006 version_type=linux
13007 need_lib_prefix=no
13008 need_version=no
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 shlibpath_overrides_runpath=yes
13013 hardcode_into_libs=yes
13014 # ldd complains unless libraries are executable
13015 postinstall_cmds='chmod +x $lib'
13016 ;;
13017
13018sunos4*)
13019 version_type=sunos
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 shlibpath_overrides_runpath=yes
13024 if test "$with_gnu_ld" = yes; then
13025 need_lib_prefix=no
13026 fi
13027 need_version=yes
13028 ;;
13029
13030sysv4 | sysv4.3*)
13031 version_type=linux
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 case $host_vendor in
13036 sni)
13037 shlibpath_overrides_runpath=no
13038 need_lib_prefix=no
13039 runpath_var=LD_RUN_PATH
13040 ;;
13041 siemens)
13042 need_lib_prefix=no
13043 ;;
13044 motorola)
13045 need_lib_prefix=no
13046 need_version=no
13047 shlibpath_overrides_runpath=no
13048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13049 ;;
13050 esac
13051 ;;
13052
13053sysv4*MP*)
13054 if test -d /usr/nec ;then
13055 version_type=linux
13056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13057 soname_spec='$libname${shared_ext}.$major'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 fi
13060 ;;
13061
13062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13063 version_type=freebsd-elf
13064 need_lib_prefix=no
13065 need_version=no
13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13067 soname_spec='${libname}${release}${shared_ext}$major'
13068 shlibpath_var=LD_LIBRARY_PATH
13069 shlibpath_overrides_runpath=yes
13070 hardcode_into_libs=yes
13071 if test "$with_gnu_ld" = yes; then
13072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13073 else
13074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13075 case $host_os in
13076 sco3.2v5*)
13077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13078 ;;
13079 esac
13080 fi
13081 sys_lib_dlsearch_path_spec='/usr/lib'
13082 ;;
13083
13084tpf*)
13085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13086 version_type=linux
13087 need_lib_prefix=no
13088 need_version=no
13089 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 shlibpath_var=LD_LIBRARY_PATH
13091 shlibpath_overrides_runpath=no
13092 hardcode_into_libs=yes
13093 ;;
13094
13095uts4*)
13096 version_type=linux
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 shlibpath_var=LD_LIBRARY_PATH
13100 ;;
13101
13102*)
13103 dynamic_linker=no
13104 ;;
13105esac
13106echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13107echo "${ECHO_T}$dynamic_linker" >&6
13108test "$dynamic_linker" = no && can_build_shared=no
13109
13110variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13111if test "$GCC" = yes; then
13112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
953ff289 13113fi
953ff289 13114
1cf3d07d
SE
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13151echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13152hardcode_action_FC=
13153if test -n "$hardcode_libdir_flag_spec_FC" ||
13154 test -n "$runpath_var_FC" ||
13155 test "X$hardcode_automatic_FC" = "Xyes" ; then
13156
13157 # We can hardcode non-existent directories.
13158 if test "$hardcode_direct_FC" != no &&
13159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13160 # have to relink, otherwise we might link with an installed library
13161 # when we should be linking with a yet-to-be-installed one
13162 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13163 test "$hardcode_minus_L_FC" != no; then
13164 # Linking always hardcodes the temporary library directory.
13165 hardcode_action_FC=relink
953ff289 13166 else
1cf3d07d
SE
13167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13168 hardcode_action_FC=immediate
953ff289
DN
13169 fi
13170else
1cf3d07d
SE
13171 # We cannot hardcode anything, or else we can only hardcode existing
13172 # directories.
13173 hardcode_action_FC=unsupported
953ff289 13174fi
1cf3d07d
SE
13175echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13176echo "${ECHO_T}$hardcode_action_FC" >&6
953ff289 13177
1cf3d07d
SE
13178if test "$hardcode_action_FC" = relink ||
13179 test "$inherit_rpath_FC" = yes; then
13180 # Fast installation is not supported
13181 enable_fast_install=no
13182elif test "$shlibpath_overrides_runpath" = yes ||
13183 test "$enable_shared" = no; then
13184 # Fast installation is not necessary
13185 enable_fast_install=needless
953ff289 13186fi
953ff289 13187
1cf3d07d
SE
13188
13189
13190
13191
13192
13193
13194 fi # test -n "$compiler"
13195
13196 CC="$lt_save_CC"
13197fi # test "$_lt_disable_FC" != yes
953ff289
DN
13198
13199ac_ext=c
13200ac_cpp='$CPP $CPPFLAGS'
13201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204
13205
1cf3d07d 13206FCFLAGS="$FCFLAGS -Wall"
953ff289 13207
1cf3d07d
SE
13208# For libtool versioning info, format is CURRENT:REVISION:AGE
13209libtool_VERSION=1:0:0
953ff289 13210
1cf3d07d
SE
13211
13212# Check header files.
953ff289
DN
13213echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13214echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13215if test "${ac_cv_header_stdc+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217else
13218 cat >conftest.$ac_ext <<_ACEOF
13219/* confdefs.h. */
13220_ACEOF
13221cat confdefs.h >>conftest.$ac_ext
13222cat >>conftest.$ac_ext <<_ACEOF
13223/* end confdefs.h. */
13224#include <stdlib.h>
13225#include <stdarg.h>
13226#include <string.h>
13227#include <float.h>
13228
13229int
13230main ()
13231{
13232
13233 ;
13234 return 0;
13235}
13236_ACEOF
13237rm -f conftest.$ac_objext
13238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239 (eval $ac_compile) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
d349482e
AT
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
953ff289
DN
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest.$ac_objext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_header_stdc=yes
13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264ac_cv_header_stdc=no
13265fi
13266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267
13268if test $ac_cv_header_stdc = yes; then
13269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13270 cat >conftest.$ac_ext <<_ACEOF
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276#include <string.h>
13277
13278_ACEOF
13279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280 $EGREP "memchr" >/dev/null 2>&1; then
13281 :
13282else
13283 ac_cv_header_stdc=no
13284fi
13285rm -f conftest*
13286
13287fi
13288
13289if test $ac_cv_header_stdc = yes; then
13290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13291 cat >conftest.$ac_ext <<_ACEOF
13292/* confdefs.h. */
13293_ACEOF
13294cat confdefs.h >>conftest.$ac_ext
13295cat >>conftest.$ac_ext <<_ACEOF
13296/* end confdefs.h. */
13297#include <stdlib.h>
13298
13299_ACEOF
13300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13301 $EGREP "free" >/dev/null 2>&1; then
13302 :
13303else
13304 ac_cv_header_stdc=no
13305fi
13306rm -f conftest*
13307
13308fi
13309
13310if test $ac_cv_header_stdc = yes; then
13311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13312 if test "$cross_compiling" = yes; then
13313 :
13314else
13315 cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321#include <ctype.h>
13322#if ((' ' & 0x0FF) == 0x020)
13323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13325#else
13326# define ISLOWER(c) \
13327 (('a' <= (c) && (c) <= 'i') \
13328 || ('j' <= (c) && (c) <= 'r') \
13329 || ('s' <= (c) && (c) <= 'z'))
13330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13331#endif
13332
13333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13334int
13335main ()
13336{
13337 int i;
13338 for (i = 0; i < 256; i++)
13339 if (XOR (islower (i), ISLOWER (i))
13340 || toupper (i) != TOUPPER (i))
13341 exit(2);
13342 exit (0);
13343}
13344_ACEOF
13345rm -f conftest$ac_exeext
13346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13347 (eval $ac_link) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 :
13357else
13358 echo "$as_me: program exited with status $ac_status" >&5
13359echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
13362( exit $ac_status )
13363ac_cv_header_stdc=no
13364fi
13365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13366fi
13367fi
13368fi
13369echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13370echo "${ECHO_T}$ac_cv_header_stdc" >&6
13371if test $ac_cv_header_stdc = yes; then
13372
13373cat >>confdefs.h <<\_ACEOF
13374#define STDC_HEADERS 1
13375_ACEOF
13376
13377fi
13378
13379echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13380echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13381if test "${ac_cv_header_time+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383else
13384 cat >conftest.$ac_ext <<_ACEOF
13385/* confdefs.h. */
13386_ACEOF
13387cat confdefs.h >>conftest.$ac_ext
13388cat >>conftest.$ac_ext <<_ACEOF
13389/* end confdefs.h. */
13390#include <sys/types.h>
13391#include <sys/time.h>
13392#include <time.h>
13393
13394int
13395main ()
13396{
13397if ((struct tm *) 0)
13398return 0;
13399 ;
13400 return 0;
13401}
13402_ACEOF
13403rm -f conftest.$ac_objext
13404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
d349482e
AT
13412 { ac_try='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
953ff289
DN
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_header_time=yes
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
13430ac_cv_header_time=no
13431fi
13432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13433fi
13434echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13435echo "${ECHO_T}$ac_cv_header_time" >&6
13436if test $ac_cv_header_time = yes; then
13437
13438cat >>confdefs.h <<\_ACEOF
13439#define TIME_WITH_SYS_TIME 1
13440_ACEOF
13441
13442fi
13443
953ff289
DN
13444
13445
13446
192a50ad
AT
13447
13448for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
953ff289
DN
13449do
13450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13451if eval "test \"\${$as_ac_Header+set}\" = set"; then
13452 echo "$as_me:$LINENO: checking for $ac_header" >&5
13453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13454if eval "test \"\${$as_ac_Header+set}\" = set"; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456fi
13457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13459else
13460 # Is the header compilable?
13461echo "$as_me:$LINENO: checking $ac_header usability" >&5
13462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13463cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
13469$ac_includes_default
13470#include <$ac_header>
13471_ACEOF
13472rm -f conftest.$ac_objext
13473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
d349482e
AT
13481 { ac_try='test -z "$ac_c_werror_flag"
13482 || test ! -s conftest.err'
953ff289
DN
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_header_compiler=yes
13495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499ac_header_compiler=no
13500fi
13501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13503echo "${ECHO_T}$ac_header_compiler" >&6
13504
13505# Is the header present?
13506echo "$as_me:$LINENO: checking $ac_header presence" >&5
13507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13508cat >conftest.$ac_ext <<_ACEOF
13509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
13513/* end confdefs.h. */
13514#include <$ac_header>
13515_ACEOF
13516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } >/dev/null; then
13524 if test -s conftest.err; then
13525 ac_cpp_err=$ac_c_preproc_warn_flag
13526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13527 else
13528 ac_cpp_err=
13529 fi
13530else
13531 ac_cpp_err=yes
13532fi
13533if test -z "$ac_cpp_err"; then
13534 ac_header_preproc=yes
13535else
13536 echo "$as_me: failed program was:" >&5
13537sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 ac_header_preproc=no
13540fi
13541rm -f conftest.err conftest.$ac_ext
13542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13543echo "${ECHO_T}$ac_header_preproc" >&6
13544
13545# So? What about this header?
13546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13547 yes:no: )
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13552 ac_header_preproc=yes
13553 ;;
13554 no:yes:* )
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13567 (
13568 cat <<\_ASBOX
13569## ----------------------------------------------------- ##
13570## Report this to the GNU OpenMP Runtime Library lists. ##
13571## ----------------------------------------------------- ##
13572_ASBOX
13573 ) |
13574 sed "s/^/$as_me: WARNING: /" >&2
13575 ;;
13576esac
13577echo "$as_me:$LINENO: checking for $ac_header" >&5
13578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13579if eval "test \"\${$as_ac_Header+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581else
13582 eval "$as_ac_Header=\$ac_header_preproc"
13583fi
13584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13586
13587fi
13588if test `eval echo '${'$as_ac_Header'}'` = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13591_ACEOF
13592
13593fi
13594
13595done
13596
953ff289 13597
18cbfd85
PB
13598
13599
13600inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13601
13602acx_cv_header_stdint=stddef.h
13603acx_cv_header_stdint_kind="(already complete)"
13604for i in stdint.h $inttype_headers; do
13605 unset ac_cv_type_uintptr_t
13606 unset ac_cv_type_uintmax_t
13607 unset ac_cv_type_int_least32_t
13608 unset ac_cv_type_int_fast32_t
13609 unset ac_cv_type_uint64_t
13610 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13611 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13612echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13613if test "${ac_cv_type_uintmax_t+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622#include <sys/types.h>
13623#include <$i>
13624
13625int
13626main ()
13627{
13628if ((uintmax_t *) 0)
13629 return 0;
13630if (sizeof (uintmax_t))
13631 return 0;
13632 ;
13633 return 0;
13634}
13635_ACEOF
13636rm -f conftest.$ac_objext
13637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>conftest.er1
13639 ac_status=$?
13640 grep -v '^ *+' conftest.er1 >conftest.err
13641 rm -f conftest.er1
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
d349482e
AT
13645 { ac_try='test -z "$ac_c_werror_flag"
13646 || test ! -s conftest.err'
18cbfd85
PB
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 ac_cv_type_uintmax_t=yes
13659else
13660 echo "$as_me: failed program was:" >&5
13661sed 's/^/| /' conftest.$ac_ext >&5
13662
13663ac_cv_type_uintmax_t=no
13664fi
13665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13666fi
13667echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13668echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13669if test $ac_cv_type_uintmax_t = yes; then
13670 acx_cv_header_stdint=$i
13671else
13672 continue
13673fi
13674
13675 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13676echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13677if test "${ac_cv_type_uintptr_t+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679else
13680 cat >conftest.$ac_ext <<_ACEOF
13681/* confdefs.h. */
13682_ACEOF
13683cat confdefs.h >>conftest.$ac_ext
13684cat >>conftest.$ac_ext <<_ACEOF
13685/* end confdefs.h. */
13686#include <sys/types.h>
13687#include <$i>
13688
13689int
13690main ()
13691{
13692if ((uintptr_t *) 0)
13693 return 0;
13694if (sizeof (uintptr_t))
13695 return 0;
13696 ;
13697 return 0;
13698}
13699_ACEOF
13700rm -f conftest.$ac_objext
13701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
d349482e
AT
13709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
18cbfd85
PB
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_type_uintptr_t=yes
13723else
13724 echo "$as_me: failed program was:" >&5
13725sed 's/^/| /' conftest.$ac_ext >&5
13726
13727ac_cv_type_uintptr_t=no
13728fi
13729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13730fi
13731echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13732echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13733if test $ac_cv_type_uintptr_t = yes; then
13734 :
13735else
13736 acx_cv_header_stdint_kind="(mostly complete)"
13737fi
13738
13739 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13740echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13741if test "${ac_cv_type_int_least32_t+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743else
13744 cat >conftest.$ac_ext <<_ACEOF
13745/* confdefs.h. */
13746_ACEOF
13747cat confdefs.h >>conftest.$ac_ext
13748cat >>conftest.$ac_ext <<_ACEOF
13749/* end confdefs.h. */
13750#include <sys/types.h>
13751#include <$i>
13752
13753int
13754main ()
13755{
13756if ((int_least32_t *) 0)
13757 return 0;
13758if (sizeof (int_least32_t))
13759 return 0;
13760 ;
13761 return 0;
13762}
13763_ACEOF
13764rm -f conftest.$ac_objext
13765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
d349482e
AT
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
18cbfd85
PB
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_type_int_least32_t=yes
13787else
13788 echo "$as_me: failed program was:" >&5
13789sed 's/^/| /' conftest.$ac_ext >&5
13790
13791ac_cv_type_int_least32_t=no
13792fi
13793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794fi
13795echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13796echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13797if test $ac_cv_type_int_least32_t = yes; then
13798 :
13799else
13800 acx_cv_header_stdint_kind="(mostly complete)"
13801fi
13802
13803 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13804echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13805if test "${ac_cv_type_int_fast32_t+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808 cat >conftest.$ac_ext <<_ACEOF
13809/* confdefs.h. */
13810_ACEOF
13811cat confdefs.h >>conftest.$ac_ext
13812cat >>conftest.$ac_ext <<_ACEOF
13813/* end confdefs.h. */
13814#include <sys/types.h>
13815#include <$i>
13816
13817int
13818main ()
13819{
13820if ((int_fast32_t *) 0)
13821 return 0;
13822if (sizeof (int_fast32_t))
13823 return 0;
13824 ;
13825 return 0;
13826}
13827_ACEOF
13828rm -f conftest.$ac_objext
13829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
d349482e
AT
13837 { ac_try='test -z "$ac_c_werror_flag"
13838 || test ! -s conftest.err'
18cbfd85
PB
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest.$ac_objext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_type_int_fast32_t=yes
13851else
13852 echo "$as_me: failed program was:" >&5
13853sed 's/^/| /' conftest.$ac_ext >&5
13854
13855ac_cv_type_int_fast32_t=no
13856fi
13857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13858fi
13859echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13860echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13861if test $ac_cv_type_int_fast32_t = yes; then
13862 :
13863else
13864 acx_cv_header_stdint_kind="(mostly complete)"
13865fi
13866
13867 echo "$as_me:$LINENO: checking for uint64_t" >&5
13868echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13869if test "${ac_cv_type_uint64_t+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871else
13872 cat >conftest.$ac_ext <<_ACEOF
13873/* confdefs.h. */
13874_ACEOF
13875cat confdefs.h >>conftest.$ac_ext
13876cat >>conftest.$ac_ext <<_ACEOF
13877/* end confdefs.h. */
13878#include <sys/types.h>
13879#include <$i>
13880
13881int
13882main ()
13883{
13884if ((uint64_t *) 0)
13885 return 0;
13886if (sizeof (uint64_t))
13887 return 0;
13888 ;
13889 return 0;
13890}
13891_ACEOF
13892rm -f conftest.$ac_objext
13893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
d349482e
AT
13901 { ac_try='test -z "$ac_c_werror_flag"
13902 || test ! -s conftest.err'
18cbfd85
PB
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_type_uint64_t=yes
13915else
13916 echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919ac_cv_type_uint64_t=no
13920fi
13921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13922fi
13923echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13924echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13925if test $ac_cv_type_uint64_t = yes; then
13926 :
13927else
13928 acx_cv_header_stdint_kind="(lacks uint64_t)"
13929fi
13930
13931 break
13932done
13933if test "$acx_cv_header_stdint" = stddef.h; then
c663e301 13934 acx_cv_header_stdint_kind="(lacks uintmax_t)"
18cbfd85 13935 for i in stdint.h $inttype_headers; do
c663e301 13936 unset ac_cv_type_uintptr_t
18cbfd85
PB
13937 unset ac_cv_type_uint32_t
13938 unset ac_cv_type_uint64_t
13939 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13940 echo "$as_me:$LINENO: checking for uint32_t" >&5
13941echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13942if test "${ac_cv_type_uint32_t+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944else
13945 cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
13951#include <sys/types.h>
13952#include <$i>
13953
13954int
13955main ()
13956{
13957if ((uint32_t *) 0)
13958 return 0;
13959if (sizeof (uint32_t))
13960 return 0;
13961 ;
13962 return 0;
13963}
13964_ACEOF
13965rm -f conftest.$ac_objext
13966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13967 (eval $ac_compile) 2>conftest.er1
13968 ac_status=$?
13969 grep -v '^ *+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
d349482e
AT
13974 { ac_try='test -z "$ac_c_werror_flag"
13975 || test ! -s conftest.err'
18cbfd85
PB
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; } &&
13981 { ac_try='test -s conftest.$ac_objext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 ac_cv_type_uint32_t=yes
13988else
13989 echo "$as_me: failed program was:" >&5
13990sed 's/^/| /' conftest.$ac_ext >&5
13991
13992ac_cv_type_uint32_t=no
13993fi
13994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13995fi
13996echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13997echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13998if test $ac_cv_type_uint32_t = yes; then
13999 acx_cv_header_stdint=$i
14000else
14001 continue
14002fi
14003
14004 echo "$as_me:$LINENO: checking for uint64_t" >&5
14005echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14006if test "${ac_cv_type_uint64_t+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008else
14009 cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015#include <sys/types.h>
14016#include <$i>
14017
14018int
14019main ()
14020{
14021if ((uint64_t *) 0)
14022 return 0;
14023if (sizeof (uint64_t))
14024 return 0;
14025 ;
14026 return 0;
14027}
14028_ACEOF
14029rm -f conftest.$ac_objext
14030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
d349482e
AT
14038 { ac_try='test -z "$ac_c_werror_flag"
14039 || test ! -s conftest.err'
18cbfd85
PB
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest.$ac_objext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_type_uint64_t=yes
14052else
14053 echo "$as_me: failed program was:" >&5
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
14056ac_cv_type_uint64_t=no
14057fi
14058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14059fi
14060echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14061echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
c663e301
JM
14062
14063 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14064echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14065if test "${ac_cv_type_uintptr_t+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
18cbfd85 14067else
c663e301
JM
14068 cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h. */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h. */
14074#include <sys/types.h>
14075#include <$i>
14076
14077int
14078main ()
14079{
14080if ((uintptr_t *) 0)
14081 return 0;
14082if (sizeof (uintptr_t))
14083 return 0;
14084 ;
14085 return 0;
14086}
14087_ACEOF
14088rm -f conftest.$ac_objext
14089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14090 (eval $ac_compile) 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest.$ac_objext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_type_uintptr_t=yes
14111else
14112 echo "$as_me: failed program was:" >&5
14113sed 's/^/| /' conftest.$ac_ext >&5
14114
14115ac_cv_type_uintptr_t=no
14116fi
14117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18cbfd85 14118fi
c663e301
JM
14119echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14120echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
18cbfd85
PB
14121
14122 break
14123 done
14124fi
14125if test "$acx_cv_header_stdint" = stddef.h; then
14126 acx_cv_header_stdint_kind="(u_intXX_t style)"
14127 for i in sys/types.h $inttype_headers; do
14128 unset ac_cv_type_u_int32_t
14129 unset ac_cv_type_u_int64_t
14130 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14131 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14132echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14133if test "${ac_cv_type_u_int32_t+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135else
14136 cat >conftest.$ac_ext <<_ACEOF
14137/* confdefs.h. */
14138_ACEOF
14139cat confdefs.h >>conftest.$ac_ext
14140cat >>conftest.$ac_ext <<_ACEOF
14141/* end confdefs.h. */
14142#include <sys/types.h>
14143#include <$i>
14144
14145int
14146main ()
14147{
14148if ((u_int32_t *) 0)
14149 return 0;
14150if (sizeof (u_int32_t))
14151 return 0;
14152 ;
14153 return 0;
14154}
14155_ACEOF
14156rm -f conftest.$ac_objext
14157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
d349482e
AT
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
18cbfd85
PB
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest.$ac_objext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_type_u_int32_t=yes
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183ac_cv_type_u_int32_t=no
14184fi
14185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14186fi
14187echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14188echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14189if test $ac_cv_type_u_int32_t = yes; then
14190 acx_cv_header_stdint=$i
14191else
14192 continue
14193fi
14194
14195 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14196echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14197if test "${ac_cv_type_u_int64_t+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199else
14200 cat >conftest.$ac_ext <<_ACEOF
14201/* confdefs.h. */
14202_ACEOF
14203cat confdefs.h >>conftest.$ac_ext
14204cat >>conftest.$ac_ext <<_ACEOF
14205/* end confdefs.h. */
14206#include <sys/types.h>
14207#include <$i>
14208
14209int
14210main ()
14211{
14212if ((u_int64_t *) 0)
14213 return 0;
14214if (sizeof (u_int64_t))
14215 return 0;
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext
14221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222 (eval $ac_compile) 2>conftest.er1
14223 ac_status=$?
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
d349482e
AT
14229 { ac_try='test -z "$ac_c_werror_flag"
14230 || test ! -s conftest.err'
18cbfd85
PB
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_type_u_int64_t=yes
14243else
14244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247ac_cv_type_u_int64_t=no
14248fi
14249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14250fi
14251echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14252echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
18cbfd85
PB
14253
14254 break
14255 done
14256fi
14257if test "$acx_cv_header_stdint" = stddef.h; then
14258 acx_cv_header_stdint_kind="(using manual detection)"
14259fi
14260
14261test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14262test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14263test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14264test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14265test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14266
14267# ----------------- Summarize what we found so far
14268
14269echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14270echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14271
14272case `$as_basename gstdint.h ||
14273$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14274 Xgstdint.h : 'X\(//\)$' \| \
14275 Xgstdint.h : 'X\(/\)$' \| \
14276 . : '\(.\)' 2>/dev/null ||
14277echo X/gstdint.h |
14278 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14279 /^X\/\(\/\/\)$/{ s//\1/; q; }
14280 /^X\/\(\/\).*/{ s//\1/; q; }
14281 s/.*/./; q'` in
14282 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14283echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14284 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14285echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14286 *) ;;
14287esac
14288
14289echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14290echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14291
14292# ----------------- done included file, check C basic types --------
14293
14294# Lacking an uintptr_t? Test size of void *
14295case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14296 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14297echo $ECHO_N "checking for void *... $ECHO_C" >&6
14298if test "${ac_cv_type_void_p+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 cat >conftest.$ac_ext <<_ACEOF
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307$ac_includes_default
14308int
14309main ()
14310{
14311if ((void * *) 0)
14312 return 0;
14313if (sizeof (void *))
14314 return 0;
14315 ;
14316 return 0;
14317}
14318_ACEOF
14319rm -f conftest.$ac_objext
14320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
d349482e
AT
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
18cbfd85
PB
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_type_void_p=yes
14342else
14343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
14346ac_cv_type_void_p=no
14347fi
14348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349fi
14350echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14351echo "${ECHO_T}$ac_cv_type_void_p" >&6
14352
14353echo "$as_me:$LINENO: checking size of void *" >&5
14354echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14355if test "${ac_cv_sizeof_void_p+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357else
14358 if test "$ac_cv_type_void_p" = yes; then
14359 # The cast to unsigned long works around a bug in the HP C Compiler
14360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14362 # This bug is HP SR number 8606223364.
14363 if test "$cross_compiling" = yes; then
14364 # Depending upon the size, compute the lo and hi bounds.
14365cat >conftest.$ac_ext <<_ACEOF
14366/* confdefs.h. */
14367_ACEOF
14368cat confdefs.h >>conftest.$ac_ext
14369cat >>conftest.$ac_ext <<_ACEOF
14370/* end confdefs.h. */
14371$ac_includes_default
14372int
14373main ()
14374{
14375static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14376test_array [0] = 0
14377
14378 ;
14379 return 0;
14380}
14381_ACEOF
14382rm -f conftest.$ac_objext
14383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
d349482e
AT
14391 { ac_try='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
18cbfd85
PB
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest.$ac_objext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_lo=0 ac_mid=0
14405 while :; do
14406 cat >conftest.$ac_ext <<_ACEOF
14407/* confdefs.h. */
14408_ACEOF
14409cat confdefs.h >>conftest.$ac_ext
14410cat >>conftest.$ac_ext <<_ACEOF
14411/* end confdefs.h. */
14412$ac_includes_default
14413int
14414main ()
14415{
14416static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14417test_array [0] = 0
14418
14419 ;
14420 return 0;
14421}
14422_ACEOF
14423rm -f conftest.$ac_objext
14424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
d349482e
AT
14432 { ac_try='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
18cbfd85
PB
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest.$ac_objext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_hi=$ac_mid; break
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
14450ac_lo=`expr $ac_mid + 1`
14451 if test $ac_lo -le $ac_mid; then
14452 ac_lo= ac_hi=
14453 break
14454 fi
14455 ac_mid=`expr 2 '*' $ac_mid + 1`
14456fi
14457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14458 done
14459else
14460 echo "$as_me: failed program was:" >&5
14461sed 's/^/| /' conftest.$ac_ext >&5
14462
14463cat >conftest.$ac_ext <<_ACEOF
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
14469$ac_includes_default
14470int
14471main ()
14472{
14473static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14474test_array [0] = 0
14475
14476 ;
14477 return 0;
14478}
14479_ACEOF
14480rm -f conftest.$ac_objext
14481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
d349482e
AT
14489 { ac_try='test -z "$ac_c_werror_flag"
14490 || test ! -s conftest.err'
18cbfd85
PB
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_hi=-1 ac_mid=-1
14503 while :; do
14504 cat >conftest.$ac_ext <<_ACEOF
14505/* confdefs.h. */
14506_ACEOF
14507cat confdefs.h >>conftest.$ac_ext
14508cat >>conftest.$ac_ext <<_ACEOF
14509/* end confdefs.h. */
14510$ac_includes_default
14511int
14512main ()
14513{
14514static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14515test_array [0] = 0
14516
14517 ;
14518 return 0;
14519}
14520_ACEOF
14521rm -f conftest.$ac_objext
14522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
d349482e
AT
14530 { ac_try='test -z "$ac_c_werror_flag"
14531 || test ! -s conftest.err'
18cbfd85
PB
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_lo=$ac_mid; break
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548ac_hi=`expr '(' $ac_mid ')' - 1`
14549 if test $ac_mid -le $ac_hi; then
14550 ac_lo= ac_hi=
14551 break
14552 fi
14553 ac_mid=`expr 2 '*' $ac_mid`
14554fi
14555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14556 done
14557else
14558 echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561ac_lo= ac_hi=
14562fi
14563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564fi
14565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14566# Binary search between lo and hi bounds.
14567while test "x$ac_lo" != "x$ac_hi"; do
14568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14569 cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575$ac_includes_default
14576int
14577main ()
14578{
14579static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14580test_array [0] = 0
14581
14582 ;
14583 return 0;
14584}
14585_ACEOF
14586rm -f conftest.$ac_objext
14587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>conftest.er1
14589 ac_status=$?
14590 grep -v '^ *+' conftest.er1 >conftest.err
14591 rm -f conftest.er1
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
d349482e
AT
14595 { ac_try='test -z "$ac_c_werror_flag"
14596 || test ! -s conftest.err'
18cbfd85
PB
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14608 ac_hi=$ac_mid
14609else
14610 echo "$as_me: failed program was:" >&5
14611sed 's/^/| /' conftest.$ac_ext >&5
14612
14613ac_lo=`expr '(' $ac_mid ')' + 1`
14614fi
14615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14616done
14617case $ac_lo in
14618?*) ac_cv_sizeof_void_p=$ac_lo;;
14619'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14620See \`config.log' for more details." >&5
14621echo "$as_me: error: cannot compute sizeof (void *), 77
14622See \`config.log' for more details." >&2;}
14623 { (exit 1); exit 1; }; } ;;
14624esac
14625else
14626 if test "$cross_compiling" = yes; then
d349482e
AT
14627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14628See \`config.log' for more details." >&5
14629echo "$as_me: error: cannot run test program while cross compiling
14630See \`config.log' for more details." >&2;}
18cbfd85
PB
14631 { (exit 1); exit 1; }; }
14632else
14633 cat >conftest.$ac_ext <<_ACEOF
14634/* confdefs.h. */
14635_ACEOF
14636cat confdefs.h >>conftest.$ac_ext
14637cat >>conftest.$ac_ext <<_ACEOF
14638/* end confdefs.h. */
14639$ac_includes_default
14640long longval () { return (long) (sizeof (void *)); }
14641unsigned long ulongval () { return (long) (sizeof (void *)); }
14642#include <stdio.h>
14643#include <stdlib.h>
14644int
14645main ()
14646{
14647
14648 FILE *f = fopen ("conftest.val", "w");
14649 if (! f)
14650 exit (1);
14651 if (((long) (sizeof (void *))) < 0)
14652 {
14653 long i = longval ();
14654 if (i != ((long) (sizeof (void *))))
14655 exit (1);
14656 fprintf (f, "%ld\n", i);
14657 }
14658 else
14659 {
14660 unsigned long i = ulongval ();
14661 if (i != ((long) (sizeof (void *))))
14662 exit (1);
14663 fprintf (f, "%lu\n", i);
14664 }
14665 exit (ferror (f) || fclose (f) != 0);
14666
14667 ;
14668 return 0;
14669}
14670_ACEOF
14671rm -f conftest$ac_exeext
14672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_cv_sizeof_void_p=`cat conftest.val`
14683else
14684 echo "$as_me: program exited with status $ac_status" >&5
14685echo "$as_me: failed program was:" >&5
14686sed 's/^/| /' conftest.$ac_ext >&5
14687
14688( exit $ac_status )
14689{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14690See \`config.log' for more details." >&5
14691echo "$as_me: error: cannot compute sizeof (void *), 77
14692See \`config.log' for more details." >&2;}
14693 { (exit 1); exit 1; }; }
14694fi
14695rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14696fi
14697fi
14698rm -f conftest.val
14699else
14700 ac_cv_sizeof_void_p=0
14701fi
14702fi
14703echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14704echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14705cat >>confdefs.h <<_ACEOF
14706#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14707_ACEOF
14708
14709 ;;
14710esac
14711
14712# Lacking an uint64_t? Test size of long
14713case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14714 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14715echo $ECHO_N "checking for long... $ECHO_C" >&6
14716if test "${ac_cv_type_long+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718else
14719 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725$ac_includes_default
14726int
14727main ()
14728{
14729if ((long *) 0)
14730 return 0;
14731if (sizeof (long))
14732 return 0;
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext
14738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
d349482e
AT
14746 { ac_try='test -z "$ac_c_werror_flag"
14747 || test ! -s conftest.err'
18cbfd85
PB
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest.$ac_objext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_type_long=yes
14760else
14761 echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764ac_cv_type_long=no
14765fi
14766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14767fi
14768echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14769echo "${ECHO_T}$ac_cv_type_long" >&6
14770
14771echo "$as_me:$LINENO: checking size of long" >&5
14772echo $ECHO_N "checking size of long... $ECHO_C" >&6
14773if test "${ac_cv_sizeof_long+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14775else
14776 if test "$ac_cv_type_long" = yes; then
14777 # The cast to unsigned long works around a bug in the HP C Compiler
14778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14780 # This bug is HP SR number 8606223364.
14781 if test "$cross_compiling" = yes; then
14782 # Depending upon the size, compute the lo and hi bounds.
14783cat >conftest.$ac_ext <<_ACEOF
14784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
14789$ac_includes_default
14790int
14791main ()
14792{
14793static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14794test_array [0] = 0
14795
14796 ;
14797 return 0;
14798}
14799_ACEOF
14800rm -f conftest.$ac_objext
14801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802 (eval $ac_compile) 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
d349482e
AT
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
18cbfd85
PB
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest.$ac_objext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_lo=0 ac_mid=0
14823 while :; do
14824 cat >conftest.$ac_ext <<_ACEOF
14825/* confdefs.h. */
14826_ACEOF
14827cat confdefs.h >>conftest.$ac_ext
14828cat >>conftest.$ac_ext <<_ACEOF
14829/* end confdefs.h. */
14830$ac_includes_default
14831int
14832main ()
14833{
14834static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14835test_array [0] = 0
14836
14837 ;
14838 return 0;
14839}
14840_ACEOF
14841rm -f conftest.$ac_objext
14842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14843 (eval $ac_compile) 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
d349482e
AT
14850 { ac_try='test -z "$ac_c_werror_flag"
14851 || test ! -s conftest.err'
18cbfd85
PB
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest.$ac_objext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_hi=$ac_mid; break
14864else
14865 echo "$as_me: failed program was:" >&5
14866sed 's/^/| /' conftest.$ac_ext >&5
14867
14868ac_lo=`expr $ac_mid + 1`
14869 if test $ac_lo -le $ac_mid; then
14870 ac_lo= ac_hi=
14871 break
14872 fi
14873 ac_mid=`expr 2 '*' $ac_mid + 1`
14874fi
14875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14876 done
14877else
14878 echo "$as_me: failed program was:" >&5
14879sed 's/^/| /' conftest.$ac_ext >&5
14880
14881cat >conftest.$ac_ext <<_ACEOF
14882/* confdefs.h. */
14883_ACEOF
14884cat confdefs.h >>conftest.$ac_ext
14885cat >>conftest.$ac_ext <<_ACEOF
14886/* end confdefs.h. */
14887$ac_includes_default
14888int
14889main ()
14890{
14891static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14892test_array [0] = 0
14893
14894 ;
14895 return 0;
14896}
14897_ACEOF
14898rm -f conftest.$ac_objext
14899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
d349482e
AT
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
18cbfd85
PB
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_hi=-1 ac_mid=-1
14921 while :; do
14922 cat >conftest.$ac_ext <<_ACEOF
14923/* confdefs.h. */
14924_ACEOF
14925cat confdefs.h >>conftest.$ac_ext
14926cat >>conftest.$ac_ext <<_ACEOF
14927/* end confdefs.h. */
14928$ac_includes_default
14929int
14930main ()
14931{
14932static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14933test_array [0] = 0
14934
14935 ;
14936 return 0;
14937}
14938_ACEOF
14939rm -f conftest.$ac_objext
14940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
d349482e
AT
14948 { ac_try='test -z "$ac_c_werror_flag"
14949 || test ! -s conftest.err'
18cbfd85
PB
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; } &&
14955 { ac_try='test -s conftest.$ac_objext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_lo=$ac_mid; break
14962else
14963 echo "$as_me: failed program was:" >&5
14964sed 's/^/| /' conftest.$ac_ext >&5
14965
14966ac_hi=`expr '(' $ac_mid ')' - 1`
14967 if test $ac_mid -le $ac_hi; then
14968 ac_lo= ac_hi=
14969 break
14970 fi
14971 ac_mid=`expr 2 '*' $ac_mid`
14972fi
14973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14974 done
14975else
14976 echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979ac_lo= ac_hi=
14980fi
14981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14982fi
14983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14984# Binary search between lo and hi bounds.
14985while test "x$ac_lo" != "x$ac_hi"; do
14986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14987 cat >conftest.$ac_ext <<_ACEOF
14988/* confdefs.h. */
14989_ACEOF
14990cat confdefs.h >>conftest.$ac_ext
14991cat >>conftest.$ac_ext <<_ACEOF
14992/* end confdefs.h. */
14993$ac_includes_default
14994int
14995main ()
14996{
14997static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14998test_array [0] = 0
14999
15000 ;
15001 return 0;
15002}
15003_ACEOF
15004rm -f conftest.$ac_objext
15005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
d349482e
AT
15013 { ac_try='test -z "$ac_c_werror_flag"
15014 || test ! -s conftest.err'
18cbfd85
PB
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest.$ac_objext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_hi=$ac_mid
15027else
15028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
15031ac_lo=`expr '(' $ac_mid ')' + 1`
15032fi
15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15034done
15035case $ac_lo in
15036?*) ac_cv_sizeof_long=$ac_lo;;
15037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15038See \`config.log' for more details." >&5
15039echo "$as_me: error: cannot compute sizeof (long), 77
15040See \`config.log' for more details." >&2;}
15041 { (exit 1); exit 1; }; } ;;
15042esac
15043else
15044 if test "$cross_compiling" = yes; then
d349482e
AT
15045 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15046See \`config.log' for more details." >&5
15047echo "$as_me: error: cannot run test program while cross compiling
15048See \`config.log' for more details." >&2;}
18cbfd85
PB
15049 { (exit 1); exit 1; }; }
15050else
15051 cat >conftest.$ac_ext <<_ACEOF
15052/* confdefs.h. */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
15056/* end confdefs.h. */
15057$ac_includes_default
15058long longval () { return (long) (sizeof (long)); }
15059unsigned long ulongval () { return (long) (sizeof (long)); }
15060#include <stdio.h>
15061#include <stdlib.h>
15062int
15063main ()
15064{
15065
15066 FILE *f = fopen ("conftest.val", "w");
15067 if (! f)
15068 exit (1);
15069 if (((long) (sizeof (long))) < 0)
15070 {
15071 long i = longval ();
15072 if (i != ((long) (sizeof (long))))
15073 exit (1);
15074 fprintf (f, "%ld\n", i);
15075 }
15076 else
15077 {
15078 unsigned long i = ulongval ();
15079 if (i != ((long) (sizeof (long))))
15080 exit (1);
15081 fprintf (f, "%lu\n", i);
15082 }
15083 exit (ferror (f) || fclose (f) != 0);
15084
15085 ;
15086 return 0;
15087}
15088_ACEOF
15089rm -f conftest$ac_exeext
15090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091 (eval $ac_link) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_sizeof_long=`cat conftest.val`
15101else
15102 echo "$as_me: program exited with status $ac_status" >&5
15103echo "$as_me: failed program was:" >&5
15104sed 's/^/| /' conftest.$ac_ext >&5
15105
15106( exit $ac_status )
15107{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15108See \`config.log' for more details." >&5
15109echo "$as_me: error: cannot compute sizeof (long), 77
15110See \`config.log' for more details." >&2;}
15111 { (exit 1); exit 1; }; }
15112fi
15113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15114fi
15115fi
15116rm -f conftest.val
15117else
15118 ac_cv_sizeof_long=0
15119fi
15120fi
15121echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15122echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15123cat >>confdefs.h <<_ACEOF
15124#define SIZEOF_LONG $ac_cv_sizeof_long
15125_ACEOF
15126
15127 ;;
15128esac
15129
15130if test $acx_cv_header_stdint = stddef.h; then
15131 # Lacking a good header? Test size of everything and deduce all types.
15132 echo "$as_me:$LINENO: checking for int" >&5
15133echo $ECHO_N "checking for int... $ECHO_C" >&6
15134if test "${ac_cv_type_int+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136else
15137 cat >conftest.$ac_ext <<_ACEOF
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143$ac_includes_default
15144int
15145main ()
15146{
15147if ((int *) 0)
15148 return 0;
15149if (sizeof (int))
15150 return 0;
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155rm -f conftest.$ac_objext
15156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15157 (eval $ac_compile) 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
d349482e
AT
15164 { ac_try='test -z "$ac_c_werror_flag"
15165 || test ! -s conftest.err'
18cbfd85
PB
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try='test -s conftest.$ac_objext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_type_int=yes
15178else
15179 echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181
15182ac_cv_type_int=no
15183fi
15184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15185fi
15186echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15187echo "${ECHO_T}$ac_cv_type_int" >&6
15188
15189echo "$as_me:$LINENO: checking size of int" >&5
15190echo $ECHO_N "checking size of int... $ECHO_C" >&6
15191if test "${ac_cv_sizeof_int+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193else
15194 if test "$ac_cv_type_int" = yes; then
15195 # The cast to unsigned long works around a bug in the HP C Compiler
15196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15198 # This bug is HP SR number 8606223364.
15199 if test "$cross_compiling" = yes; then
15200 # Depending upon the size, compute the lo and hi bounds.
15201cat >conftest.$ac_ext <<_ACEOF
15202/* confdefs.h. */
15203_ACEOF
15204cat confdefs.h >>conftest.$ac_ext
15205cat >>conftest.$ac_ext <<_ACEOF
15206/* end confdefs.h. */
15207$ac_includes_default
15208int
15209main ()
15210{
15211static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15212test_array [0] = 0
15213
15214 ;
15215 return 0;
15216}
15217_ACEOF
15218rm -f conftest.$ac_objext
15219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
d349482e
AT
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
18cbfd85
PB
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_lo=0 ac_mid=0
15241 while :; do
15242 cat >conftest.$ac_ext <<_ACEOF
15243/* confdefs.h. */
15244_ACEOF
15245cat confdefs.h >>conftest.$ac_ext
15246cat >>conftest.$ac_ext <<_ACEOF
15247/* end confdefs.h. */
15248$ac_includes_default
15249int
15250main ()
15251{
15252static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15253test_array [0] = 0
15254
15255 ;
15256 return 0;
15257}
15258_ACEOF
15259rm -f conftest.$ac_objext
15260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
d349482e
AT
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
18cbfd85
PB
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_hi=$ac_mid; break
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286ac_lo=`expr $ac_mid + 1`
15287 if test $ac_lo -le $ac_mid; then
15288 ac_lo= ac_hi=
15289 break
15290 fi
15291 ac_mid=`expr 2 '*' $ac_mid + 1`
15292fi
15293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15294 done
15295else
15296 echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
15299cat >conftest.$ac_ext <<_ACEOF
15300/* confdefs.h. */
15301_ACEOF
15302cat confdefs.h >>conftest.$ac_ext
15303cat >>conftest.$ac_ext <<_ACEOF
15304/* end confdefs.h. */
15305$ac_includes_default
15306int
15307main ()
15308{
15309static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15310test_array [0] = 0
15311
15312 ;
15313 return 0;
15314}
15315_ACEOF
15316rm -f conftest.$ac_objext
15317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318 (eval $ac_compile) 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
d349482e
AT
15325 { ac_try='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
18cbfd85
PB
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_hi=-1 ac_mid=-1
15339 while :; do
15340 cat >conftest.$ac_ext <<_ACEOF
15341/* confdefs.h. */
15342_ACEOF
15343cat confdefs.h >>conftest.$ac_ext
15344cat >>conftest.$ac_ext <<_ACEOF
15345/* end confdefs.h. */
15346$ac_includes_default
15347int
15348main ()
15349{
15350static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15351test_array [0] = 0
15352
15353 ;
15354 return 0;
15355}
15356_ACEOF
15357rm -f conftest.$ac_objext
15358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359 (eval $ac_compile) 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
d349482e
AT
15366 { ac_try='test -z "$ac_c_werror_flag"
15367 || test ! -s conftest.err'
18cbfd85
PB
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_lo=$ac_mid; break
15380else
15381 echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384ac_hi=`expr '(' $ac_mid ')' - 1`
15385 if test $ac_mid -le $ac_hi; then
15386 ac_lo= ac_hi=
15387 break
15388 fi
15389 ac_mid=`expr 2 '*' $ac_mid`
15390fi
15391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15392 done
15393else
15394 echo "$as_me: failed program was:" >&5
15395sed 's/^/| /' conftest.$ac_ext >&5
15396
15397ac_lo= ac_hi=
15398fi
15399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400fi
15401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402# Binary search between lo and hi bounds.
15403while test "x$ac_lo" != "x$ac_hi"; do
15404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15405 cat >conftest.$ac_ext <<_ACEOF
15406/* confdefs.h. */
15407_ACEOF
15408cat confdefs.h >>conftest.$ac_ext
15409cat >>conftest.$ac_ext <<_ACEOF
15410/* end confdefs.h. */
15411$ac_includes_default
15412int
15413main ()
15414{
15415static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15416test_array [0] = 0
15417
15418 ;
15419 return 0;
15420}
15421_ACEOF
15422rm -f conftest.$ac_objext
15423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15424 (eval $ac_compile) 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
d349482e
AT
15431 { ac_try='test -z "$ac_c_werror_flag"
15432 || test ! -s conftest.err'
18cbfd85
PB
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_hi=$ac_mid
15445else
15446 echo "$as_me: failed program was:" >&5
15447sed 's/^/| /' conftest.$ac_ext >&5
15448
15449ac_lo=`expr '(' $ac_mid ')' + 1`
15450fi
15451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15452done
15453case $ac_lo in
15454?*) ac_cv_sizeof_int=$ac_lo;;
15455'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15456See \`config.log' for more details." >&5
15457echo "$as_me: error: cannot compute sizeof (int), 77
15458See \`config.log' for more details." >&2;}
15459 { (exit 1); exit 1; }; } ;;
15460esac
15461else
15462 if test "$cross_compiling" = yes; then
d349482e
AT
15463 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15464See \`config.log' for more details." >&5
15465echo "$as_me: error: cannot run test program while cross compiling
15466See \`config.log' for more details." >&2;}
18cbfd85
PB
15467 { (exit 1); exit 1; }; }
15468else
15469 cat >conftest.$ac_ext <<_ACEOF
15470/* confdefs.h. */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
15474/* end confdefs.h. */
15475$ac_includes_default
15476long longval () { return (long) (sizeof (int)); }
15477unsigned long ulongval () { return (long) (sizeof (int)); }
15478#include <stdio.h>
15479#include <stdlib.h>
15480int
15481main ()
15482{
15483
15484 FILE *f = fopen ("conftest.val", "w");
15485 if (! f)
15486 exit (1);
15487 if (((long) (sizeof (int))) < 0)
15488 {
15489 long i = longval ();
15490 if (i != ((long) (sizeof (int))))
15491 exit (1);
15492 fprintf (f, "%ld\n", i);
15493 }
15494 else
15495 {
15496 unsigned long i = ulongval ();
15497 if (i != ((long) (sizeof (int))))
15498 exit (1);
15499 fprintf (f, "%lu\n", i);
15500 }
15501 exit (ferror (f) || fclose (f) != 0);
15502
15503 ;
15504 return 0;
15505}
15506_ACEOF
15507rm -f conftest$ac_exeext
15508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_cv_sizeof_int=`cat conftest.val`
15519else
15520 echo "$as_me: program exited with status $ac_status" >&5
15521echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524( exit $ac_status )
15525{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15526See \`config.log' for more details." >&5
15527echo "$as_me: error: cannot compute sizeof (int), 77
15528See \`config.log' for more details." >&2;}
15529 { (exit 1); exit 1; }; }
15530fi
15531rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15532fi
15533fi
15534rm -f conftest.val
15535else
15536 ac_cv_sizeof_int=0
15537fi
15538fi
15539echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15540echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15541cat >>confdefs.h <<_ACEOF
15542#define SIZEOF_INT $ac_cv_sizeof_int
15543_ACEOF
15544
15545
15546 echo "$as_me:$LINENO: checking for short" >&5
15547echo $ECHO_N "checking for short... $ECHO_C" >&6
15548if test "${ac_cv_type_short+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557$ac_includes_default
15558int
15559main ()
15560{
15561if ((short *) 0)
15562 return 0;
15563if (sizeof (short))
15564 return 0;
15565 ;
15566 return 0;
15567}
15568_ACEOF
15569rm -f conftest.$ac_objext
15570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571 (eval $ac_compile) 2>conftest.er1
15572 ac_status=$?
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
d349482e
AT
15578 { ac_try='test -z "$ac_c_werror_flag"
15579 || test ! -s conftest.err'
18cbfd85
PB
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_type_short=yes
15592else
15593 echo "$as_me: failed program was:" >&5
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
15596ac_cv_type_short=no
15597fi
15598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15599fi
15600echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15601echo "${ECHO_T}$ac_cv_type_short" >&6
15602
15603echo "$as_me:$LINENO: checking size of short" >&5
15604echo $ECHO_N "checking size of short... $ECHO_C" >&6
15605if test "${ac_cv_sizeof_short+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607else
15608 if test "$ac_cv_type_short" = yes; then
15609 # The cast to unsigned long works around a bug in the HP C Compiler
15610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15612 # This bug is HP SR number 8606223364.
15613 if test "$cross_compiling" = yes; then
15614 # Depending upon the size, compute the lo and hi bounds.
15615cat >conftest.$ac_ext <<_ACEOF
15616/* confdefs.h. */
15617_ACEOF
15618cat confdefs.h >>conftest.$ac_ext
15619cat >>conftest.$ac_ext <<_ACEOF
15620/* end confdefs.h. */
15621$ac_includes_default
15622int
15623main ()
15624{
15625static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15626test_array [0] = 0
15627
15628 ;
15629 return 0;
15630}
15631_ACEOF
15632rm -f conftest.$ac_objext
15633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634 (eval $ac_compile) 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
d349482e
AT
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
18cbfd85
PB
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest.$ac_objext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_lo=0 ac_mid=0
15655 while :; do
15656 cat >conftest.$ac_ext <<_ACEOF
15657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
15662$ac_includes_default
15663int
15664main ()
15665{
15666static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15667test_array [0] = 0
15668
15669 ;
15670 return 0;
15671}
15672_ACEOF
15673rm -f conftest.$ac_objext
15674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
d349482e
AT
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
18cbfd85
PB
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_hi=$ac_mid; break
15696else
15697 echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
15700ac_lo=`expr $ac_mid + 1`
15701 if test $ac_lo -le $ac_mid; then
15702 ac_lo= ac_hi=
15703 break
15704 fi
15705 ac_mid=`expr 2 '*' $ac_mid + 1`
15706fi
15707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15708 done
15709else
15710 echo "$as_me: failed program was:" >&5
15711sed 's/^/| /' conftest.$ac_ext >&5
15712
15713cat >conftest.$ac_ext <<_ACEOF
15714/* confdefs.h. */
15715_ACEOF
15716cat confdefs.h >>conftest.$ac_ext
15717cat >>conftest.$ac_ext <<_ACEOF
15718/* end confdefs.h. */
15719$ac_includes_default
15720int
15721main ()
15722{
15723static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15724test_array [0] = 0
15725
15726 ;
15727 return 0;
15728}
15729_ACEOF
15730rm -f conftest.$ac_objext
15731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
d349482e
AT
15739 { ac_try='test -z "$ac_c_werror_flag"
15740 || test ! -s conftest.err'
18cbfd85
PB
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest.$ac_objext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_hi=-1 ac_mid=-1
15753 while :; do
15754 cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761int
15762main ()
15763{
15764static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15765test_array [0] = 0
15766
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext
15772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15773 (eval $ac_compile) 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
d349482e
AT
15780 { ac_try='test -z "$ac_c_werror_flag"
15781 || test ! -s conftest.err'
18cbfd85
PB
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_lo=$ac_mid; break
15794else
15795 echo "$as_me: failed program was:" >&5
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
15798ac_hi=`expr '(' $ac_mid ')' - 1`
15799 if test $ac_mid -le $ac_hi; then
15800 ac_lo= ac_hi=
15801 break
15802 fi
15803 ac_mid=`expr 2 '*' $ac_mid`
15804fi
15805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 done
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811ac_lo= ac_hi=
15812fi
15813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814fi
15815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15816# Binary search between lo and hi bounds.
15817while test "x$ac_lo" != "x$ac_hi"; do
15818 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15819 cat >conftest.$ac_ext <<_ACEOF
15820/* confdefs.h. */
15821_ACEOF
15822cat confdefs.h >>conftest.$ac_ext
15823cat >>conftest.$ac_ext <<_ACEOF
15824/* end confdefs.h. */
15825$ac_includes_default
15826int
15827main ()
15828{
15829static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15830test_array [0] = 0
15831
15832 ;
15833 return 0;
15834}
15835_ACEOF
15836rm -f conftest.$ac_objext
15837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838 (eval $ac_compile) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
d349482e
AT
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
18cbfd85
PB
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest.$ac_objext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_hi=$ac_mid
15859else
15860 echo "$as_me: failed program was:" >&5
15861sed 's/^/| /' conftest.$ac_ext >&5
15862
15863ac_lo=`expr '(' $ac_mid ')' + 1`
15864fi
15865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15866done
15867case $ac_lo in
15868?*) ac_cv_sizeof_short=$ac_lo;;
15869'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15870See \`config.log' for more details." >&5
15871echo "$as_me: error: cannot compute sizeof (short), 77
15872See \`config.log' for more details." >&2;}
15873 { (exit 1); exit 1; }; } ;;
15874esac
15875else
15876 if test "$cross_compiling" = yes; then
d349482e
AT
15877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15878See \`config.log' for more details." >&5
15879echo "$as_me: error: cannot run test program while cross compiling
15880See \`config.log' for more details." >&2;}
18cbfd85
PB
15881 { (exit 1); exit 1; }; }
15882else
15883 cat >conftest.$ac_ext <<_ACEOF
15884/* confdefs.h. */
15885_ACEOF
15886cat confdefs.h >>conftest.$ac_ext
15887cat >>conftest.$ac_ext <<_ACEOF
15888/* end confdefs.h. */
15889$ac_includes_default
15890long longval () { return (long) (sizeof (short)); }
15891unsigned long ulongval () { return (long) (sizeof (short)); }
15892#include <stdio.h>
15893#include <stdlib.h>
15894int
15895main ()
15896{
15897
15898 FILE *f = fopen ("conftest.val", "w");
15899 if (! f)
15900 exit (1);
15901 if (((long) (sizeof (short))) < 0)
15902 {
15903 long i = longval ();
15904 if (i != ((long) (sizeof (short))))
15905 exit (1);
15906 fprintf (f, "%ld\n", i);
15907 }
15908 else
15909 {
15910 unsigned long i = ulongval ();
15911 if (i != ((long) (sizeof (short))))
15912 exit (1);
15913 fprintf (f, "%lu\n", i);
15914 }
15915 exit (ferror (f) || fclose (f) != 0);
15916
15917 ;
15918 return 0;
15919}
15920_ACEOF
15921rm -f conftest$ac_exeext
15922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15923 (eval $ac_link) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 ac_cv_sizeof_short=`cat conftest.val`
15933else
15934 echo "$as_me: program exited with status $ac_status" >&5
15935echo "$as_me: failed program was:" >&5
15936sed 's/^/| /' conftest.$ac_ext >&5
15937
15938( exit $ac_status )
15939{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15940See \`config.log' for more details." >&5
15941echo "$as_me: error: cannot compute sizeof (short), 77
15942See \`config.log' for more details." >&2;}
15943 { (exit 1); exit 1; }; }
15944fi
15945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15946fi
15947fi
15948rm -f conftest.val
15949else
15950 ac_cv_sizeof_short=0
15951fi
15952fi
15953echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15954echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15955cat >>confdefs.h <<_ACEOF
15956#define SIZEOF_SHORT $ac_cv_sizeof_short
15957_ACEOF
15958
15959
15960 echo "$as_me:$LINENO: checking for char" >&5
15961echo $ECHO_N "checking for char... $ECHO_C" >&6
15962if test "${ac_cv_type_char+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964else
15965 cat >conftest.$ac_ext <<_ACEOF
15966/* confdefs.h. */
15967_ACEOF
15968cat confdefs.h >>conftest.$ac_ext
15969cat >>conftest.$ac_ext <<_ACEOF
15970/* end confdefs.h. */
15971$ac_includes_default
15972int
15973main ()
15974{
15975if ((char *) 0)
15976 return 0;
15977if (sizeof (char))
15978 return 0;
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest.$ac_objext
15984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>conftest.er1
15986 ac_status=$?
15987 grep -v '^ *+' conftest.er1 >conftest.err
15988 rm -f conftest.er1
15989 cat conftest.err >&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
d349482e
AT
15992 { ac_try='test -z "$ac_c_werror_flag"
15993 || test ! -s conftest.err'
18cbfd85
PB
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_cv_type_char=yes
16006else
16007 echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010ac_cv_type_char=no
16011fi
16012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013fi
16014echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16015echo "${ECHO_T}$ac_cv_type_char" >&6
16016
16017echo "$as_me:$LINENO: checking size of char" >&5
16018echo $ECHO_N "checking size of char... $ECHO_C" >&6
16019if test "${ac_cv_sizeof_char+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16021else
16022 if test "$ac_cv_type_char" = yes; then
16023 # The cast to unsigned long works around a bug in the HP C Compiler
16024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16026 # This bug is HP SR number 8606223364.
16027 if test "$cross_compiling" = yes; then
16028 # Depending upon the size, compute the lo and hi bounds.
16029cat >conftest.$ac_ext <<_ACEOF
16030/* confdefs.h. */
16031_ACEOF
16032cat confdefs.h >>conftest.$ac_ext
16033cat >>conftest.$ac_ext <<_ACEOF
16034/* end confdefs.h. */
16035$ac_includes_default
16036int
16037main ()
16038{
16039static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16040test_array [0] = 0
16041
16042 ;
16043 return 0;
16044}
16045_ACEOF
16046rm -f conftest.$ac_objext
16047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>conftest.er1
16049 ac_status=$?
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
d349482e
AT
16055 { ac_try='test -z "$ac_c_werror_flag"
16056 || test ! -s conftest.err'
18cbfd85
PB
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try='test -s conftest.$ac_objext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_lo=0 ac_mid=0
16069 while :; do
16070 cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076$ac_includes_default
16077int
16078main ()
16079{
16080static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16081test_array [0] = 0
16082
16083 ;
16084 return 0;
16085}
16086_ACEOF
16087rm -f conftest.$ac_objext
16088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
d349482e
AT
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
18cbfd85
PB
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_hi=$ac_mid; break
16110else
16111 echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114ac_lo=`expr $ac_mid + 1`
16115 if test $ac_lo -le $ac_mid; then
16116 ac_lo= ac_hi=
16117 break
16118 fi
16119 ac_mid=`expr 2 '*' $ac_mid + 1`
16120fi
16121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122 done
16123else
16124 echo "$as_me: failed program was:" >&5
16125sed 's/^/| /' conftest.$ac_ext >&5
16126
16127cat >conftest.$ac_ext <<_ACEOF
16128/* confdefs.h. */
16129_ACEOF
16130cat confdefs.h >>conftest.$ac_ext
16131cat >>conftest.$ac_ext <<_ACEOF
16132/* end confdefs.h. */
16133$ac_includes_default
16134int
16135main ()
16136{
16137static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16138test_array [0] = 0
16139
16140 ;
16141 return 0;
16142}
16143_ACEOF
16144rm -f conftest.$ac_objext
16145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146 (eval $ac_compile) 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
d349482e
AT
16153 { ac_try='test -z "$ac_c_werror_flag"
16154 || test ! -s conftest.err'
18cbfd85
PB
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; } &&
16160 { ac_try='test -s conftest.$ac_objext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_hi=-1 ac_mid=-1
16167 while :; do
16168 cat >conftest.$ac_ext <<_ACEOF
16169/* confdefs.h. */
16170_ACEOF
16171cat confdefs.h >>conftest.$ac_ext
16172cat >>conftest.$ac_ext <<_ACEOF
16173/* end confdefs.h. */
16174$ac_includes_default
16175int
16176main ()
16177{
16178static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16179test_array [0] = 0
16180
16181 ;
16182 return 0;
16183}
16184_ACEOF
16185rm -f conftest.$ac_objext
16186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187 (eval $ac_compile) 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
d349482e
AT
16194 { ac_try='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
18cbfd85
PB
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_lo=$ac_mid; break
16208else
16209 echo "$as_me: failed program was:" >&5
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
16212ac_hi=`expr '(' $ac_mid ')' - 1`
16213 if test $ac_mid -le $ac_hi; then
16214 ac_lo= ac_hi=
16215 break
16216 fi
16217 ac_mid=`expr 2 '*' $ac_mid`
16218fi
16219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16220 done
16221else
16222 echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225ac_lo= ac_hi=
16226fi
16227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16228fi
16229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16230# Binary search between lo and hi bounds.
16231while test "x$ac_lo" != "x$ac_hi"; do
16232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16233 cat >conftest.$ac_ext <<_ACEOF
16234/* confdefs.h. */
16235_ACEOF
16236cat confdefs.h >>conftest.$ac_ext
16237cat >>conftest.$ac_ext <<_ACEOF
16238/* end confdefs.h. */
16239$ac_includes_default
16240int
16241main ()
16242{
16243static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16244test_array [0] = 0
16245
16246 ;
16247 return 0;
16248}
16249_ACEOF
16250rm -f conftest.$ac_objext
16251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252 (eval $ac_compile) 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
d349482e
AT
16259 { ac_try='test -z "$ac_c_werror_flag"
16260 || test ! -s conftest.err'
18cbfd85
PB
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_hi=$ac_mid
16273else
16274 echo "$as_me: failed program was:" >&5
16275sed 's/^/| /' conftest.$ac_ext >&5
16276
16277ac_lo=`expr '(' $ac_mid ')' + 1`
16278fi
16279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16280done
16281case $ac_lo in
16282?*) ac_cv_sizeof_char=$ac_lo;;
16283'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16284See \`config.log' for more details." >&5
16285echo "$as_me: error: cannot compute sizeof (char), 77
16286See \`config.log' for more details." >&2;}
16287 { (exit 1); exit 1; }; } ;;
16288esac
16289else
16290 if test "$cross_compiling" = yes; then
d349482e
AT
16291 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16292See \`config.log' for more details." >&5
16293echo "$as_me: error: cannot run test program while cross compiling
16294See \`config.log' for more details." >&2;}
18cbfd85
PB
16295 { (exit 1); exit 1; }; }
16296else
16297 cat >conftest.$ac_ext <<_ACEOF
16298/* confdefs.h. */
16299_ACEOF
16300cat confdefs.h >>conftest.$ac_ext
16301cat >>conftest.$ac_ext <<_ACEOF
16302/* end confdefs.h. */
16303$ac_includes_default
16304long longval () { return (long) (sizeof (char)); }
16305unsigned long ulongval () { return (long) (sizeof (char)); }
16306#include <stdio.h>
16307#include <stdlib.h>
16308int
16309main ()
16310{
16311
16312 FILE *f = fopen ("conftest.val", "w");
16313 if (! f)
16314 exit (1);
16315 if (((long) (sizeof (char))) < 0)
16316 {
16317 long i = longval ();
16318 if (i != ((long) (sizeof (char))))
16319 exit (1);
16320 fprintf (f, "%ld\n", i);
16321 }
16322 else
16323 {
16324 unsigned long i = ulongval ();
16325 if (i != ((long) (sizeof (char))))
16326 exit (1);
16327 fprintf (f, "%lu\n", i);
16328 }
16329 exit (ferror (f) || fclose (f) != 0);
16330
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest$ac_exeext
16336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_cv_sizeof_char=`cat conftest.val`
16347else
16348 echo "$as_me: program exited with status $ac_status" >&5
16349echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352( exit $ac_status )
16353{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16354See \`config.log' for more details." >&5
16355echo "$as_me: error: cannot compute sizeof (char), 77
16356See \`config.log' for more details." >&2;}
16357 { (exit 1); exit 1; }; }
16358fi
16359rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16360fi
16361fi
16362rm -f conftest.val
16363else
16364 ac_cv_sizeof_char=0
16365fi
16366fi
16367echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16368echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16369cat >>confdefs.h <<_ACEOF
16370#define SIZEOF_CHAR $ac_cv_sizeof_char
16371_ACEOF
16372
16373
16374
16375 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16376echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16377 case "$ac_cv_sizeof_char" in
16378 1) acx_cv_type_int8_t=char ;;
16379 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16380echo "$as_me: error: no 8-bit type" >&2;}
16381 { (exit please report a bug); exit please report a bug; }; }
16382 esac
16383 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16384echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16385
16386 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16387echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16388 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16389 2:*) acx_cv_type_int16_t=int ;;
16390 *:2) acx_cv_type_int16_t=short ;;
16391 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16392echo "$as_me: error: no 16-bit type" >&2;}
16393 { (exit please report a bug); exit please report a bug; }; }
16394 esac
16395 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16396echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16397
16398 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16399echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16400 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16401 4:*) acx_cv_type_int32_t=int ;;
16402 *:4) acx_cv_type_int32_t=long ;;
16403 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16404echo "$as_me: error: no 32-bit type" >&2;}
16405 { (exit please report a bug); exit please report a bug; }; }
16406 esac
16407 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16408echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16409fi
16410
16411# These tests are here to make the output prettier
16412
16413if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16414 case "$ac_cv_sizeof_long" in
16415 8) acx_cv_type_int64_t=long ;;
16416 esac
16417 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16418echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16419 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16420echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16421fi
16422
16423# Now we can use the above types
16424
16425if test "$ac_cv_type_uintptr_t" != yes; then
16426 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16427echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16428 case $ac_cv_sizeof_void_p in
16429 2) acx_cv_type_intptr_t=int16_t ;;
16430 4) acx_cv_type_intptr_t=int32_t ;;
16431 8) acx_cv_type_intptr_t=int64_t ;;
16432 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16433echo "$as_me: error: no equivalent for intptr_t" >&2;}
16434 { (exit please report a bug); exit please report a bug; }; }
16435 esac
16436 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16437echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16438fi
16439
16440# ----------------- done all checks, emit header -------------
16441 ac_config_commands="$ac_config_commands gstdint.h"
16442
16443
16444
16445
953ff289 16446# Check to see if -pthread or -lpthread is needed. Prefer the former.
124452c9 16447# In case the pthread.h system header is not found, this test will fail.
953ff289 16448XPCFLAGS=""
60def7ed 16449CFLAGS="$CFLAGS -pthread"
953ff289
DN
16450cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h. */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h. */
16456#include <pthread.h>
16457 void *g(void *d) { return NULL; }
16458int
16459main ()
16460{
16461pthread_t t; pthread_create(&t,NULL,g,NULL);
16462 ;
16463 return 0;
16464}
16465_ACEOF
16466rm -f conftest.$ac_objext conftest$ac_exeext
16467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468 (eval $ac_link) 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
d349482e
AT
16475 { ac_try='test -z "$ac_c_werror_flag"
16476 || test ! -s conftest.err'
953ff289
DN
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; } &&
16482 { ac_try='test -s conftest$ac_exeext'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
60def7ed 16488 XPCFLAGS=" -Wc,-pthread"
953ff289
DN
16489else
16490 echo "$as_me: failed program was:" >&5
16491sed 's/^/| /' conftest.$ac_ext >&5
16492
16493CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16494 cat >conftest.$ac_ext <<_ACEOF
16495/* confdefs.h. */
16496_ACEOF
16497cat confdefs.h >>conftest.$ac_ext
16498cat >>conftest.$ac_ext <<_ACEOF
16499/* end confdefs.h. */
16500#include <pthread.h>
16501 void *g(void *d) { return NULL; }
16502int
16503main ()
16504{
16505pthread_t t; pthread_create(&t,NULL,g,NULL);
16506 ;
16507 return 0;
16508}
16509_ACEOF
16510rm -f conftest.$ac_objext conftest$ac_exeext
16511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
d349482e
AT
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
953ff289
DN
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 :
16533else
16534 echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
16536
16537{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16538echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16539 { (exit 1); exit 1; }; }
16540fi
16541rm -f conftest.err conftest.$ac_objext \
16542 conftest$ac_exeext conftest.$ac_ext
16543fi
16544rm -f conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16546
16547# Check for functions needed.
16548
16549
16550for ac_func in getloadavg clock_gettime
16551do
16552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16553echo "$as_me:$LINENO: checking for $ac_func" >&5
16554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16555if eval "test \"\${$as_ac_var+set}\" = set"; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557else
16558 cat >conftest.$ac_ext <<_ACEOF
16559/* confdefs.h. */
16560_ACEOF
16561cat confdefs.h >>conftest.$ac_ext
16562cat >>conftest.$ac_ext <<_ACEOF
16563/* end confdefs.h. */
16564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16566#define $ac_func innocuous_$ac_func
16567
16568/* System header to define __stub macros and hopefully few prototypes,
16569 which can conflict with char $ac_func (); below.
16570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16571 <limits.h> exists even on freestanding compilers. */
16572
16573#ifdef __STDC__
16574# include <limits.h>
16575#else
16576# include <assert.h>
16577#endif
16578
16579#undef $ac_func
16580
16581/* Override any gcc2 internal prototype to avoid an error. */
16582#ifdef __cplusplus
16583extern "C"
16584{
16585#endif
16586/* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588char $ac_func ();
16589/* The GNU C library defines this for functions which it implements
16590 to always fail with ENOSYS. Some functions are actually named
16591 something starting with __ and the normal name is an alias. */
16592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16593choke me
16594#else
16595char (*f) () = $ac_func;
16596#endif
16597#ifdef __cplusplus
16598}
16599#endif
16600
16601int
16602main ()
16603{
16604return f != $ac_func;
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609rm -f conftest.$ac_objext conftest$ac_exeext
16610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16611 (eval $ac_link) 2>conftest.er1
16612 ac_status=$?
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
d349482e
AT
16618 { ac_try='test -z "$ac_c_werror_flag"
16619 || test ! -s conftest.err'
953ff289
DN
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest$ac_exeext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 eval "$as_ac_var=yes"
16632else
16633 echo "$as_me: failed program was:" >&5
16634sed 's/^/| /' conftest.$ac_ext >&5
16635
16636eval "$as_ac_var=no"
16637fi
16638rm -f conftest.err conftest.$ac_objext \
16639 conftest$ac_exeext conftest.$ac_ext
16640fi
16641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16642echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16643if test `eval echo '${'$as_ac_var'}'` = yes; then
16644 cat >>confdefs.h <<_ACEOF
16645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16646_ACEOF
16647
16648fi
16649done
16650
16651
d349482e
AT
16652# Check for broken semaphore implementation on darwin.
16653# sem_init returns: sem_init error: Function not implemented.
16654case "$host" in
16655 *-darwin*)
16656
16657cat >>confdefs.h <<\_ACEOF
16658#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16659_ACEOF
16660
fe5568e9
JJ
16661 ;;
16662 *-linux*)
16663 case "$enable_linux_futex" in
16664 default)
16665 # If headers don't have gettid/futex syscalls definition, then
16666 # default to no, otherwise there will be compile time failures.
16667 # Otherwise, default to yes. If we don't detect we are
16668 # compiled/linked against NPTL and not cross-compiling, check
16669 # if programs are run by default against NPTL and if not, issue
16670 # a warning.
16671 enable_linux_futex=no
16672 cat >conftest.$ac_ext <<_ACEOF
16673/* confdefs.h. */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h. */
16678#include <sys/syscall.h>
16679 int lk;
16680int
16681main ()
16682{
16683syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16684 ;
16685 return 0;
16686}
16687_ACEOF
16688rm -f conftest.$ac_objext conftest$ac_exeext
16689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716#ifndef _GNU_SOURCE
16717 #define _GNU_SOURCE 1
16718 #endif
16719 #include <pthread.h>
16720 pthread_t th; void *status;
16721int
16722main ()
16723{
16724pthread_tryjoin_np (th, &status);
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext conftest$ac_exeext
16730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16731 (eval $ac_link) 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag"
16739 || test ! -s conftest.err'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest$ac_exeext'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 enable_linux_futex=yes
16752else
16753 echo "$as_me: failed program was:" >&5
16754sed 's/^/| /' conftest.$ac_ext >&5
16755
16756if test x$cross_compiling = xno; then
16757 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16758 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
16759 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16760If so, please configure with --disable-linux-futex" >&5
16761echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16762If so, please configure with --disable-linux-futex" >&2;}
16763 fi
16764 fi
16765 enable_linux_futex=yes
16766fi
16767rm -f conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769else
16770 echo "$as_me: failed program was:" >&5
16771sed 's/^/| /' conftest.$ac_ext >&5
16772
16773fi
16774rm -f conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16776 ;;
16777 yes)
16778 cat >conftest.$ac_ext <<_ACEOF
16779/* confdefs.h. */
16780_ACEOF
16781cat confdefs.h >>conftest.$ac_ext
16782cat >>conftest.$ac_ext <<_ACEOF
16783/* end confdefs.h. */
16784#include <sys/syscall.h>
16785 int lk;
16786int
16787main ()
16788{
16789syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16790 ;
16791 return 0;
16792}
16793_ACEOF
16794rm -f conftest.$ac_objext conftest$ac_exeext
16795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796 (eval $ac_link) 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag"
16804 || test ! -s conftest.err'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest$ac_exeext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 :
16817else
16818 echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16822echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16823 { (exit 1); exit 1; }; }
16824fi
16825rm -f conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16827 ;;
16828 esac
d349482e
AT
16829 ;;
16830esac
16831
a0884cf0
JJ
16832# Check for pthread_{,attr_}[sg]etaffinity_np.
16833cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
16839#define _GNU_SOURCE
16840 #include <pthread.h>
16841int
16842main ()
16843{
16844cpu_set_t cpuset;
16845 pthread_attr_t attr;
16846 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16847 if (CPU_ISSET (0, &cpuset))
16848 CPU_SET (1, &cpuset);
16849 else
16850 CPU_ZERO (&cpuset);
16851 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16852 pthread_attr_init (&attr);
16853 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16854 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext conftest$ac_exeext
16860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag"
16869 || test ! -s conftest.err'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16881
16882cat >>confdefs.h <<\_ACEOF
16883#define HAVE_PTHREAD_AFFINITY_NP 1
16884_ACEOF
16885
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890fi
16891rm -f conftest.err conftest.$ac_objext \
16892 conftest$ac_exeext conftest.$ac_ext
16893
953ff289
DN
16894# At least for glibc, clock_gettime is in librt. But don't pull that
16895# in if it still doesn't give us the function we want.
16896if test $ac_cv_func_clock_gettime = no; then
16897 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16898echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16899if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901else
16902 ac_check_lib_save_LIBS=$LIBS
16903LIBS="-lrt $LIBS"
16904cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
16910
16911/* Override any gcc2 internal prototype to avoid an error. */
16912#ifdef __cplusplus
16913extern "C"
16914#endif
16915/* We use char because int might match the return type of a gcc2
16916 builtin and then its argument prototype would still apply. */
16917char clock_gettime ();
16918int
16919main ()
16920{
16921clock_gettime ();
16922 ;
16923 return 0;
16924}
16925_ACEOF
16926rm -f conftest.$ac_objext conftest$ac_exeext
16927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16928 (eval $ac_link) 2>conftest.er1
16929 ac_status=$?
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
d349482e
AT
16935 { ac_try='test -z "$ac_c_werror_flag"
16936 || test ! -s conftest.err'
953ff289
DN
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest$ac_exeext'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_lib_rt_clock_gettime=yes
16949else
16950 echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953ac_cv_lib_rt_clock_gettime=no
16954fi
16955rm -f conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16957LIBS=$ac_check_lib_save_LIBS
16958fi
16959echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
16960echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
16961if test $ac_cv_lib_rt_clock_gettime = yes; then
16962 LIBS="-lrt $LIBS"
c663e301
JM
16963
16964cat >>confdefs.h <<\_ACEOF
16965#define HAVE_CLOCK_GETTIME 1
953ff289
DN
16966_ACEOF
16967
16968fi
16969
16970fi
16971
16972# See if we support thread-local storage.
16973
16974 # Check whether --enable-tls or --disable-tls was given.
16975if test "${enable_tls+set}" = set; then
16976 enableval="$enable_tls"
16977
16978 case "$enableval" in
16979 yes|no) ;;
16980 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16981echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16982 { (exit 1); exit 1; }; } ;;
16983 esac
16984
16985else
16986 enable_tls=yes
16987fi;
16988
16989 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16990echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16991if test "${have_tls+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993else
16994
60e1758f 16995 if test "$cross_compiling" = yes; then
1cf3d07d 16996 cat >conftest.$ac_ext <<_ACEOF
597c25e6 16997__thread int a; int b; int main() { return a = b; }
953ff289 16998_ACEOF
597c25e6
DJ
16999rm -f conftest.$ac_objext conftest$ac_exeext
17000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17001 (eval $ac_link) 2>conftest.er1
953ff289
DN
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
d349482e
AT
17008 { ac_try='test -z "$ac_c_werror_flag"
17009 || test ! -s conftest.err'
953ff289
DN
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
597c25e6 17015 { ac_try='test -s conftest$ac_exeext'
953ff289
DN
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
60e1758f 17021 have_tls=yes
953ff289
DN
17022else
17023 echo "$as_me: failed program was:" >&5
17024sed 's/^/| /' conftest.$ac_ext >&5
17025
17026have_tls=no
17027fi
597c25e6
DJ
17028rm -f conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
60e1758f 17030
1cf3d07d 17031
60e1758f
RH
17032else
17033 cat >conftest.$ac_ext <<_ACEOF
17034__thread int a; int b; int main() { return a = b; }
17035_ACEOF
17036rm -f conftest$ac_exeext
17037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17038 (eval $ac_link) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
78e075d4 17047 chktls_save_LDFLAGS="$LDFLAGS"
60e1758f 17048 LDFLAGS="-static $LDFLAGS"
aad741f4
EB
17049 cat >conftest.$ac_ext <<_ACEOF
17050int main() { return 0; }
17051_ACEOF
17052rm -f conftest.$ac_objext conftest$ac_exeext
17053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054 (eval $ac_link) 2>conftest.er1
17055 ac_status=$?
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } &&
17061 { ac_try='test -z "$ac_c_werror_flag"
17062 || test ! -s conftest.err'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; } &&
17068 { ac_try='test -s conftest$ac_exeext'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 if test "$cross_compiling" = yes; then
60e1758f
RH
17075 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17076See \`config.log' for more details." >&5
17077echo "$as_me: error: cannot run test program while cross compiling
17078See \`config.log' for more details." >&2;}
17079 { (exit 1); exit 1; }; }
17080else
17081 cat >conftest.$ac_ext <<_ACEOF
17082__thread int a; int b; int main() { return a = b; }
17083_ACEOF
17084rm -f conftest$ac_exeext
17085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086 (eval $ac_link) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 have_tls=yes
17096else
17097 echo "$as_me: program exited with status $ac_status" >&5
17098echo "$as_me: failed program was:" >&5
17099sed 's/^/| /' conftest.$ac_ext >&5
17100
17101( exit $ac_status )
17102have_tls=no
17103fi
17104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17105fi
aad741f4
EB
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
17110have_tls=yes
17111fi
17112rm -f conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
78e075d4
JJ
17114 LDFLAGS="$chktls_save_LDFLAGS"
17115 if test $have_tls = yes; then
17116 chktls_save_CFLAGS="$CFLAGS"
17117 thread_CFLAGS=failed
17118 for flag in '' '-pthread' '-lpthread'; do
17119 CFLAGS="$flag $chktls_save_CFLAGS"
17120 cat >conftest.$ac_ext <<_ACEOF
17121/* confdefs.h. */
17122_ACEOF
17123cat confdefs.h >>conftest.$ac_ext
17124cat >>conftest.$ac_ext <<_ACEOF
17125/* end confdefs.h. */
17126#include <pthread.h>
17127 void *g(void *d) { return NULL; }
17128int
17129main ()
17130{
17131pthread_t t; pthread_create(&t,NULL,g,NULL);
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 thread_CFLAGS="$flag"
17159else
17160 echo "$as_me: failed program was:" >&5
17161sed 's/^/| /' conftest.$ac_ext >&5
17162
17163fi
17164rm -f conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17166 if test "X$thread_CFLAGS" != Xfailed; then
17167 break
17168 fi
17169 done
17170 CFLAGS="$chktls_save_CFLAGS"
17171 if test "X$thread_CFLAGS" != Xfailed; then
17172 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17173 if test "$cross_compiling" = yes; then
17174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17175See \`config.log' for more details." >&5
17176echo "$as_me: error: cannot run test program while cross compiling
17177See \`config.log' for more details." >&2;}
17178 { (exit 1); exit 1; }; }
17179else
17180 cat >conftest.$ac_ext <<_ACEOF
17181/* confdefs.h. */
17182_ACEOF
17183cat confdefs.h >>conftest.$ac_ext
17184cat >>conftest.$ac_ext <<_ACEOF
17185/* end confdefs.h. */
17186#include <pthread.h>
17187 __thread int a;
17188 static int *a_in_other_thread;
17189 static void *
17190 thread_func (void *arg)
17191 {
17192 a_in_other_thread = &a;
17193 return (void *)0;
17194 }
17195int
17196main ()
17197{
17198pthread_t thread;
17199 void *thread_retval;
17200 int *a_in_main_thread;
17201 if (pthread_create (&thread, (pthread_attr_t *)0,
17202 thread_func, (void *)0))
17203 return 0;
17204 a_in_main_thread = &a;
17205 if (pthread_join (thread, &thread_retval))
17206 return 0;
17207 return (a_in_other_thread == a_in_main_thread);
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212rm -f conftest$ac_exeext
17213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 have_tls=yes
17224else
17225 echo "$as_me: program exited with status $ac_status" >&5
17226echo "$as_me: failed program was:" >&5
17227sed 's/^/| /' conftest.$ac_ext >&5
17228
17229( exit $ac_status )
17230have_tls=no
17231fi
17232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17233fi
17234 CFLAGS="$chktls_save_CFLAGS"
17235 fi
17236 fi
60e1758f
RH
17237else
17238 echo "$as_me: program exited with status $ac_status" >&5
17239echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242( exit $ac_status )
17243have_tls=no
17244fi
17245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17246fi
953ff289
DN
17247fi
17248echo "$as_me:$LINENO: result: $have_tls" >&5
17249echo "${ECHO_T}$have_tls" >&6
60e1758f 17250 if test "$enable_tls $have_tls" = "yes yes"; then
953ff289
DN
17251
17252cat >>confdefs.h <<\_ACEOF
17253#define HAVE_TLS 1
17254_ACEOF
17255
17256 fi
17257
17258# See what sort of export controls are availible.
17259
17260 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17261echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17262if test "${have_attribute_visibility+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265
17266 save_CFLAGS="$CFLAGS"
17267 CFLAGS="$CFLAGS -Werror"
17268 cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274void __attribute__((visibility("hidden"))) foo(void) { }
17275int
17276main ()
17277{
17278
17279 ;
17280 return 0;
17281}
17282_ACEOF
17283rm -f conftest.$ac_objext
17284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
d349482e
AT
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
953ff289
DN
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 have_attribute_visibility=yes
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310have_attribute_visibility=no
17311fi
17312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17313 CFLAGS="$save_CFLAGS"
17314fi
17315echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17316echo "${ECHO_T}$have_attribute_visibility" >&6
17317 if test $have_attribute_visibility = yes; then
17318
17319cat >>confdefs.h <<\_ACEOF
17320#define HAVE_ATTRIBUTE_VISIBILITY 1
17321_ACEOF
17322
17323 fi
17324
17325 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17326echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17327if test "${have_attribute_dllexport+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329else
17330
17331 save_CFLAGS="$CFLAGS"
17332 CFLAGS="$CFLAGS -Werror"
17333 cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339void __attribute__((dllexport)) foo(void) { }
17340int
17341main ()
17342{
17343
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext
17349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350 (eval $ac_compile) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
d349482e
AT
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
953ff289
DN
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 have_attribute_dllexport=yes
17371else
17372 echo "$as_me: failed program was:" >&5
17373sed 's/^/| /' conftest.$ac_ext >&5
17374
17375have_attribute_dllexport=no
17376fi
17377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378 CFLAGS="$save_CFLAGS"
17379fi
17380echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17381echo "${ECHO_T}$have_attribute_dllexport" >&6
17382 if test $have_attribute_dllexport = yes; then
17383
17384cat >>confdefs.h <<\_ACEOF
17385#define HAVE_ATTRIBUTE_DLLEXPORT 1
17386_ACEOF
17387
17388 fi
17389
17390 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17391echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17392if test "${have_attribute_alias+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394else
17395
17396 cat >conftest.$ac_ext <<_ACEOF
17397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
17402
953ff289 17403void foo(void) { }
8887708e 17404extern void bar(void) __attribute__((alias("foo")));
953ff289
DN
17405int
17406main ()
17407{
17408bar();
17409 ;
17410 return 0;
17411}
17412_ACEOF
17413rm -f conftest.$ac_objext conftest$ac_exeext
17414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
d349482e
AT
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
953ff289
DN
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 have_attribute_alias=yes
17436else
17437 echo "$as_me: failed program was:" >&5
17438sed 's/^/| /' conftest.$ac_ext >&5
17439
17440have_attribute_alias=no
17441fi
17442rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444fi
17445echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17446echo "${ECHO_T}$have_attribute_alias" >&6
17447 if test $have_attribute_alias = yes; then
17448
17449cat >>confdefs.h <<\_ACEOF
17450#define HAVE_ATTRIBUTE_ALIAS 1
17451_ACEOF
17452
17453 fi
17454
1cf3d07d
SE
17455
17456# Check whether --with-gnu-ld or --without-gnu-ld was given.
17457if test "${with_gnu_ld+set}" = set; then
17458 withval="$with_gnu_ld"
17459 test "$withval" = no || with_gnu_ld=yes
17460else
17461 with_gnu_ld=no
17462fi;
17463ac_prog=ld
17464if test "$GCC" = yes; then
17465 # Check if gcc -print-prog-name=ld gives a path.
17466 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17467echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17468 case $host in
17469 *-*-mingw*)
17470 # gcc leaves a trailing carriage return which upsets mingw
17471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17472 *)
17473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17474 esac
17475 case $ac_prog in
17476 # Accept absolute paths.
17477 [\\/]* | ?:[\\/]*)
17478 re_direlt='/[^/][^/]*/\.\./'
17479 # Canonicalize the pathname of ld
17480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17483 done
17484 test -z "$LD" && LD="$ac_prog"
17485 ;;
17486 "")
17487 # If it fails, then pretend we aren't using GCC.
17488 ac_prog=ld
17489 ;;
17490 *)
17491 # If it is relative, then search for the first ld in PATH.
17492 with_gnu_ld=unknown
17493 ;;
17494 esac
17495elif test "$with_gnu_ld" = yes; then
17496 echo "$as_me:$LINENO: checking for GNU ld" >&5
17497echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17498else
17499 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17500echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17501fi
17502if test "${lt_cv_path_LD+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504else
17505 if test -z "$LD"; then
17506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17507 for ac_dir in $PATH; do
17508 IFS="$lt_save_ifs"
17509 test -z "$ac_dir" && ac_dir=.
17510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17511 lt_cv_path_LD="$ac_dir/$ac_prog"
17512 # Check to see if the program is GNU ld. I'd rather use --version,
17513 # but apparently some variants of GNU ld only accept -v.
17514 # Break only if it was the GNU/non-GNU ld that we prefer.
17515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17516 *GNU* | *'with BFD'*)
17517 test "$with_gnu_ld" != no && break
17518 ;;
17519 *)
17520 test "$with_gnu_ld" != yes && break
17521 ;;
17522 esac
17523 fi
17524 done
17525 IFS="$lt_save_ifs"
17526else
17527 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17528fi
17529fi
17530
17531LD="$lt_cv_path_LD"
17532if test -n "$LD"; then
17533 echo "$as_me:$LINENO: result: $LD" >&5
17534echo "${ECHO_T}$LD" >&6
17535else
17536 echo "$as_me:$LINENO: result: no" >&5
17537echo "${ECHO_T}no" >&6
17538fi
17539test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17540echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17541 { (exit 1); exit 1; }; }
17542echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17543echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17544if test "${lt_cv_prog_gnu_ld+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546else
17547 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17548case `$LD -v 2>&1 </dev/null` in
17549*GNU* | *'with BFD'*)
17550 lt_cv_prog_gnu_ld=yes
17551 ;;
17552*)
17553 lt_cv_prog_gnu_ld=no
17554 ;;
17555esac
17556fi
17557echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17558echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17559with_gnu_ld=$lt_cv_prog_gnu_ld
17560
17561
17562
17563
17564
17565
17566
953ff289
DN
17567 # If we're not using GNU ld, then there's no point in even trying these
17568 # tests. Check for that first. We should have already tested for gld
17569 # by now (in libtool), but require it now just to be safe...
17570 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17571 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17572
17573
17574
17575 # The name set by libtool depends on the version of libtool. Shame on us
17576 # for depending on an impl detail, but c'est la vie. Older versions used
17577 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17578 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17579 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17580 # set (hence we're using an older libtool), then set it.
17581 if test x${with_gnu_ld+set} != xset; then
17582 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17583 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17584 with_gnu_ld=no
17585 else
17586 with_gnu_ld=$ac_cv_prog_gnu_ld
17587 fi
17588 fi
17589
17590 # Start by getting the version number. I think the libtool test already
17591 # does some of this, but throws away the result.
17592
17593 ldver=`$LD --version 2>/dev/null | head -1 | \
f210f1cd 17594 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
953ff289
DN
17595
17596 libgomp_gnu_ld_version=`echo $ldver | \
17597 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17598
17599 # Set --gc-sections.
17600 if test "$with_gnu_ld" = "notbroken"; then
17601 # GNU ld it is! Joy and bunny rabbits!
17602
17603 # All these tests are for C++; save the language and the compiler flags.
17604 # Need to do this so that g++ won't try to link in libstdc++
17605 ac_test_CFLAGS="${CFLAGS+set}"
17606 ac_save_CFLAGS="$CFLAGS"
17607 CFLAGS='-x c++ -Wl,--gc-sections'
17608
17609 # Check for -Wl,--gc-sections
17610 # XXX This test is broken at the moment, as symbols required for linking
17611 # are now in libsupc++ (not built yet). In addition, this test has
17612 # cored on solaris in the past. In addition, --gc-sections doesn't
17613 # really work at the moment (keeps on discarding used sections, first
17614 # .eh_frame and now some of the glibc sections for iconv).
17615 # Bzzzzt. Thanks for playing, maybe next time.
17616 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17617echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17618 if test "$cross_compiling" = yes; then
17619 ac_sectionLDflags=yes
17620else
17621 cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
17627
17628 int main(void)
17629 {
17630 try { throw 1; }
17631 catch (...) { };
17632 return 0;
17633 }
17634
17635_ACEOF
17636rm -f conftest$ac_exeext
17637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 ac_sectionLDflags=yes
17648else
17649 echo "$as_me: program exited with status $ac_status" >&5
17650echo "$as_me: failed program was:" >&5
17651sed 's/^/| /' conftest.$ac_ext >&5
17652
17653( exit $ac_status )
17654ac_sectionLDflags=no
17655fi
17656rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17657fi
17658 if test "$ac_test_CFLAGS" = set; then
17659 CFLAGS="$ac_save_CFLAGS"
17660 else
17661 # this is the suspicious part
17662 CFLAGS=''
17663 fi
17664 if test "$ac_sectionLDflags" = "yes"; then
17665 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17666 fi
17667 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17668echo "${ECHO_T}$ac_sectionLDflags" >&6
17669 fi
17670
17671 # Set linker optimization flags.
17672 if test x"$with_gnu_ld" = x"yes"; then
17673 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17674 fi
17675
17676
17677
17678
17679
17680
17681 # Check whether --enable-symvers or --disable-symvers was given.
17682if test "${enable_symvers+set}" = set; then
17683 enableval="$enable_symvers"
17684
17685 case "$enableval" in
17686 yes|no|gnu) ;;
17687 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17688echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17689 { (exit 1); exit 1; }; } ;;
17690 esac
17691
17692else
17693 enable_symvers=yes
17694fi;
17695
17696
17697# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17698# don't know enough about $LD to do tricks...
17699
17700# FIXME The following test is too strict, in theory.
17701if test $enable_shared = no ||
17702 test "x$LD" = x ||
17703 test x$libgomp_gnu_ld_version = x; then
17704 enable_symvers=no
17705fi
17706
17707# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17708if test $enable_symvers != no; then
17709 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17710echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17711 ac_save_CFLAGS="$CFLAGS"
17712 CFLAGS=' -lgcc_s'
17713 cat >conftest.$ac_ext <<_ACEOF
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
17719
17720int
17721main ()
17722{
17723return 0;
17724 ;
17725 return 0;
17726}
17727_ACEOF
17728rm -f conftest.$ac_objext conftest$ac_exeext
17729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
d349482e
AT
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
953ff289
DN
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 libgomp_shared_libgcc=yes
17751else
17752 echo "$as_me: failed program was:" >&5
17753sed 's/^/| /' conftest.$ac_ext >&5
17754
17755libgomp_shared_libgcc=no
17756fi
17757rm -f conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17759 CFLAGS="$ac_save_CFLAGS"
17760 if test $libgomp_shared_libgcc = no; then
17761 cat > conftest.c <<EOF
17762int main (void) { return 0; }
17763EOF
17764 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17765 -shared -shared-libgcc -o conftest.so \
17766 conftest.c -v 2>&1 >/dev/null \
17767 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17768 rm -f conftest.c conftest.so
17769 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17770 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17771 cat >conftest.$ac_ext <<_ACEOF
17772/* confdefs.h. */
17773_ACEOF
17774cat confdefs.h >>conftest.$ac_ext
17775cat >>conftest.$ac_ext <<_ACEOF
17776/* end confdefs.h. */
17777
17778int
17779main ()
17780{
17781return 0;
17782 ;
17783 return 0;
17784}
17785_ACEOF
17786rm -f conftest.$ac_objext conftest$ac_exeext
17787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
d349482e
AT
17795 { ac_try='test -z "$ac_c_werror_flag"
17796 || test ! -s conftest.err'
953ff289
DN
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; } &&
17802 { ac_try='test -s conftest$ac_exeext'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17808 libgomp_shared_libgcc=yes
17809else
17810 echo "$as_me: failed program was:" >&5
17811sed 's/^/| /' conftest.$ac_ext >&5
17812
17813fi
17814rm -f conftest.err conftest.$ac_objext \
17815 conftest$ac_exeext conftest.$ac_ext
17816 CFLAGS="$ac_save_CFLAGS"
17817 fi
17818 fi
17819 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17820echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17821fi
17822
17823# For GNU ld, we need at least this version. The format is described in
17824# LIBGOMP_CHECK_LINKER_FEATURES above.
17825libgomp_min_gnu_ld_version=21400
17826# XXXXXXXXXXX libgomp_gnu_ld_version=21390
17827
17828# Check to see if unspecified "yes" value can win, given results above.
17829# Change "yes" into either "no" or a style name.
17830if test $enable_symvers = yes; then
17831 if test $with_gnu_ld = yes &&
17832 test $libgomp_shared_libgcc = yes;
17833 then
17834 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17835 enable_symvers=gnu
17836 else
17837 # The right tools, the right setup, but too old. Fallbacks?
17838 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17839echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17841echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17842 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17843echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17844 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17845echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17846 if test $libgomp_gnu_ld_version -ge 21200 ; then
17847 # Globbing fix is present, proper block support is not.
17848 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17849echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17850 enable_symvers=no
17851 else
17852 # 2.11 or older.
17853 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17854echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17855 enable_symvers=no
17856 fi
17857 fi
17858 else
17859 # just fail for now
17860 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17861echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17863echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17865echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17866 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17867echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17868 enable_symvers=no
17869 fi
17870fi
17871
17872
17873
17874if test $enable_symvers != no; then
17875 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17876 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17877else
17878 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17879 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17880fi
17881
17882{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17883echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17884
17885
17886# Get target configury.
17887. ${srcdir}/configure.tgt
17888CFLAGS="$save_CFLAGS $XCFLAGS"
17889
17890# Check for __sync_val_compare_and_swap, but only after the target has
17891# had a chance to set XCFLAGS.
17892
17893 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17894echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17895if test "${have_sync_builtins+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897else
17898
17899 cat >conftest.$ac_ext <<_ACEOF
17900/* confdefs.h. */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h. */
17905
17906int
17907main ()
17908{
17909int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext conftest$ac_exeext
17915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17916 (eval $ac_link) 2>conftest.er1
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
d349482e
AT
17923 { ac_try='test -z "$ac_c_werror_flag"
17924 || test ! -s conftest.err'
953ff289
DN
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest$ac_exeext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 have_sync_builtins=yes
17937else
17938 echo "$as_me: failed program was:" >&5
17939sed 's/^/| /' conftest.$ac_ext >&5
17940
17941have_sync_builtins=no
17942fi
17943rm -f conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17945fi
17946echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
17947echo "${ECHO_T}$have_sync_builtins" >&6
17948 if test $have_sync_builtins = yes; then
17949
17950cat >>confdefs.h <<\_ACEOF
17951#define HAVE_SYNC_BUILTINS 1
17952_ACEOF
17953
17954 fi
17955
17956XCFLAGS="$XCFLAGS$XPCFLAGS"
17957
17958
17959
17960
17961
17962# Cleanup and exit.
17963CFLAGS="$save_CFLAGS"
17964cat >confcache <<\_ACEOF
17965# This file is a shell script that caches the results of configure
17966# tests run on this system so they can be shared between configure
17967# scripts and configure runs, see configure's option --config-cache.
17968# It is not useful on other systems. If it contains results you don't
17969# want to keep, you may remove or edit it.
17970#
17971# config.status only pays attention to the cache file if you give it
17972# the --recheck option to rerun configure.
17973#
17974# `ac_cv_env_foo' variables (set or unset) will be overridden when
17975# loading this file, other *unset* `ac_cv_foo' will be assigned the
17976# following values.
17977
17978_ACEOF
17979
17980# The following way of writing the cache mishandles newlines in values,
17981# but we know of no workaround that is simple, portable, and efficient.
17982# So, don't put newlines in cache variables' values.
17983# Ultrix sh set writes to stderr and can't be redirected directly,
17984# and sets the high bit in the cache file unless we assign to the vars.
17985{
17986 (set) 2>&1 |
17987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17988 *ac_space=\ *)
17989 # `set' does not quote correctly, so add quotes (double-quote
17990 # substitution turns \\\\ into \\, and sed turns \\ into \).
17991 sed -n \
17992 "s/'/'\\\\''/g;
17993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17994 ;;
17995 *)
17996 # `set' quotes correctly as required by POSIX, so do not add quotes.
17997 sed -n \
17998 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17999 ;;
18000 esac;
18001} |
18002 sed '
18003 t clear
18004 : clear
18005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18006 t end
18007 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18008 : end' >>confcache
18009if diff $cache_file confcache >/dev/null 2>&1; then :; else
18010 if test -w $cache_file; then
18011 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18012 cat confcache >$cache_file
18013 else
18014 echo "not updating unwritable cache $cache_file"
18015 fi
18016fi
18017rm -f confcache
18018
18019if test ${multilib} = yes; then
18020 multilib_arg="--enable-multilib"
18021else
18022 multilib_arg=
18023fi
18024
18025# Set up the set of libraries that we need to link against for libgomp.
192a50ad 18026# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
953ff289
DN
18027# which will force linkage against -lpthread (or equivalent for the system).
18028# That's not 100% ideal, but about the best we can do easily.
18029if test $enable_shared = yes; then
18030 link_gomp="-lgomp %{static: $LIBS}"
18031else
18032 link_gomp="-lgomp $LIBS"
18033fi
18034
18035
18036
18037
18038if test "$ac_cv_fc_compiler_gnu" = yes; then
18039 USE_FORTRAN_TRUE=
18040 USE_FORTRAN_FALSE='#'
18041else
18042 USE_FORTRAN_TRUE='#'
18043 USE_FORTRAN_FALSE=
18044fi
18045
18046
03b8fe49
PB
18047# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18048# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18049# the underscore here and update the PREREQ. If it doesn't, then we'll
18050# need to copy this macro to our acinclude.m4.
18051save_CFLAGS="$CFLAGS"
18052for i in $config_path; do
18053 if test -f $srcdir/config/$i/omp-lock.h; then
18054 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18055 break
18056 fi
18057done
18058
18059if test "$cross_compiling" = yes; then
18060 # Depending upon the size, compute the lo and hi bounds.
18061cat >conftest.$ac_ext <<_ACEOF
18062/* confdefs.h. */
18063_ACEOF
18064cat confdefs.h >>conftest.$ac_ext
18065cat >>conftest.$ac_ext <<_ACEOF
18066/* end confdefs.h. */
18067
18068int
18069main ()
18070{
18071static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18072test_array [0] = 0
18073
18074 ;
18075 return 0;
18076}
18077_ACEOF
18078rm -f conftest.$ac_objext
18079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080 (eval $ac_compile) 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
d349482e
AT
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
03b8fe49
PB
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_lo=0 ac_mid=0
18101 while :; do
18102 cat >conftest.$ac_ext <<_ACEOF
18103/* confdefs.h. */
18104_ACEOF
18105cat confdefs.h >>conftest.$ac_ext
18106cat >>conftest.$ac_ext <<_ACEOF
18107/* end confdefs.h. */
18108
18109int
18110main ()
18111{
18112static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18113test_array [0] = 0
18114
18115 ;
18116 return 0;
18117}
18118_ACEOF
18119rm -f conftest.$ac_objext
18120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121 (eval $ac_compile) 2>conftest.er1
18122 ac_status=$?
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
d349482e
AT
18128 { ac_try='test -z "$ac_c_werror_flag"
18129 || test ! -s conftest.err'
03b8fe49
PB
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try='test -s conftest.$ac_objext'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 ac_hi=$ac_mid; break
18142else
18143 echo "$as_me: failed program was:" >&5
18144sed 's/^/| /' conftest.$ac_ext >&5
18145
18146ac_lo=`expr $ac_mid + 1`
18147 if test $ac_lo -le $ac_mid; then
18148 ac_lo= ac_hi=
18149 break
18150 fi
18151 ac_mid=`expr 2 '*' $ac_mid + 1`
18152fi
18153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18154 done
18155else
18156 echo "$as_me: failed program was:" >&5
18157sed 's/^/| /' conftest.$ac_ext >&5
18158
18159cat >conftest.$ac_ext <<_ACEOF
18160/* confdefs.h. */
18161_ACEOF
18162cat confdefs.h >>conftest.$ac_ext
18163cat >>conftest.$ac_ext <<_ACEOF
18164/* end confdefs.h. */
18165
18166int
18167main ()
18168{
18169static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18170test_array [0] = 0
18171
18172 ;
18173 return 0;
18174}
18175_ACEOF
18176rm -f conftest.$ac_objext
18177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18178 (eval $ac_compile) 2>conftest.er1
18179 ac_status=$?
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
d349482e
AT
18185 { ac_try='test -z "$ac_c_werror_flag"
18186 || test ! -s conftest.err'
03b8fe49
PB
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest.$ac_objext'
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18198 ac_hi=-1 ac_mid=-1
18199 while :; do
18200 cat >conftest.$ac_ext <<_ACEOF
18201/* confdefs.h. */
18202_ACEOF
18203cat confdefs.h >>conftest.$ac_ext
18204cat >>conftest.$ac_ext <<_ACEOF
18205/* end confdefs.h. */
18206
18207int
18208main ()
18209{
18210static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18211test_array [0] = 0
18212
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext
18218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18219 (eval $ac_compile) 2>conftest.er1
18220 ac_status=$?
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
d349482e
AT
18226 { ac_try='test -z "$ac_c_werror_flag"
18227 || test ! -s conftest.err'
03b8fe49
PB
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest.$ac_objext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 ac_lo=$ac_mid; break
18240else
18241 echo "$as_me: failed program was:" >&5
18242sed 's/^/| /' conftest.$ac_ext >&5
18243
18244ac_hi=`expr '(' $ac_mid ')' - 1`
18245 if test $ac_mid -le $ac_hi; then
18246 ac_lo= ac_hi=
18247 break
18248 fi
18249 ac_mid=`expr 2 '*' $ac_mid`
18250fi
18251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18252 done
18253else
18254 echo "$as_me: failed program was:" >&5
18255sed 's/^/| /' conftest.$ac_ext >&5
18256
18257ac_lo= ac_hi=
18258fi
18259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18260fi
18261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18262# Binary search between lo and hi bounds.
18263while test "x$ac_lo" != "x$ac_hi"; do
18264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18265 cat >conftest.$ac_ext <<_ACEOF
18266/* confdefs.h. */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h. */
18271
18272int
18273main ()
18274{
18275static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18276test_array [0] = 0
18277
18278 ;
18279 return 0;
18280}
18281_ACEOF
18282rm -f conftest.$ac_objext
18283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18284 (eval $ac_compile) 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
d349482e
AT
18291 { ac_try='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
03b8fe49
PB
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest.$ac_objext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_hi=$ac_mid
18305else
18306 echo "$as_me: failed program was:" >&5
18307sed 's/^/| /' conftest.$ac_ext >&5
18308
18309ac_lo=`expr '(' $ac_mid ')' + 1`
18310fi
18311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18312done
18313case $ac_lo in
18314?*) OMP_LOCK_SIZE=$ac_lo;;
18315'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18316echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18317 { (exit 1); exit 1; }; } ;;
18318esac
18319else
18320 if test "$cross_compiling" = yes; then
d349482e
AT
18321 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18322See \`config.log' for more details." >&5
18323echo "$as_me: error: cannot run test program while cross compiling
18324See \`config.log' for more details." >&2;}
03b8fe49
PB
18325 { (exit 1); exit 1; }; }
18326else
18327 cat >conftest.$ac_ext <<_ACEOF
18328/* confdefs.h. */
18329_ACEOF
18330cat confdefs.h >>conftest.$ac_ext
18331cat >>conftest.$ac_ext <<_ACEOF
18332/* end confdefs.h. */
18333
18334long longval () { return sizeof (omp_lock_t); }
18335unsigned long ulongval () { return sizeof (omp_lock_t); }
18336#include <stdio.h>
18337#include <stdlib.h>
18338int
18339main ()
18340{
18341
18342 FILE *f = fopen ("conftest.val", "w");
18343 if (! f)
18344 exit (1);
18345 if ((sizeof (omp_lock_t)) < 0)
18346 {
18347 long i = longval ();
18348 if (i != (sizeof (omp_lock_t)))
18349 exit (1);
18350 fprintf (f, "%ld\n", i);
18351 }
18352 else
18353 {
18354 unsigned long i = ulongval ();
18355 if (i != (sizeof (omp_lock_t)))
18356 exit (1);
18357 fprintf (f, "%lu\n", i);
18358 }
18359 exit (ferror (f) || fclose (f) != 0);
18360
18361 ;
18362 return 0;
18363}
18364_ACEOF
18365rm -f conftest$ac_exeext
18366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 OMP_LOCK_SIZE=`cat conftest.val`
18377else
18378 echo "$as_me: program exited with status $ac_status" >&5
18379echo "$as_me: failed program was:" >&5
18380sed 's/^/| /' conftest.$ac_ext >&5
18381
18382( exit $ac_status )
18383{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18384echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18385 { (exit 1); exit 1; }; }
18386fi
18387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18388fi
18389fi
18390rm -f conftest.val
18391if test "$cross_compiling" = yes; then
18392 # Depending upon the size, compute the lo and hi bounds.
18393cat >conftest.$ac_ext <<_ACEOF
18394/* confdefs.h. */
18395_ACEOF
18396cat confdefs.h >>conftest.$ac_ext
18397cat >>conftest.$ac_ext <<_ACEOF
18398/* end confdefs.h. */
18399
18400int
18401main ()
18402{
18403static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18404test_array [0] = 0
18405
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext
18411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18412 (eval $ac_compile) 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
d349482e
AT
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
03b8fe49
PB
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_lo=0 ac_mid=0
18433 while :; do
18434 cat >conftest.$ac_ext <<_ACEOF
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
18440
18441int
18442main ()
18443{
18444static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18445test_array [0] = 0
18446
18447 ;
18448 return 0;
18449}
18450_ACEOF
18451rm -f conftest.$ac_objext
18452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
d349482e
AT
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
03b8fe49
PB
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_hi=$ac_mid; break
18474else
18475 echo "$as_me: failed program was:" >&5
18476sed 's/^/| /' conftest.$ac_ext >&5
18477
18478ac_lo=`expr $ac_mid + 1`
18479 if test $ac_lo -le $ac_mid; then
18480 ac_lo= ac_hi=
18481 break
18482 fi
18483 ac_mid=`expr 2 '*' $ac_mid + 1`
18484fi
18485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18486 done
18487else
18488 echo "$as_me: failed program was:" >&5
18489sed 's/^/| /' conftest.$ac_ext >&5
18490
18491cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h. */
18497
18498int
18499main ()
18500{
18501static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18502test_array [0] = 0
18503
18504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext
18509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18510 (eval $ac_compile) 2>conftest.er1
18511 ac_status=$?
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
d349482e
AT
18517 { ac_try='test -z "$ac_c_werror_flag"
18518 || test ! -s conftest.err'
03b8fe49
PB
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; } &&
18524 { ac_try='test -s conftest.$ac_objext'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 ac_hi=-1 ac_mid=-1
18531 while :; do
18532 cat >conftest.$ac_ext <<_ACEOF
18533/* confdefs.h. */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
18537/* end confdefs.h. */
18538
18539int
18540main ()
18541{
18542static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18543test_array [0] = 0
18544
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549rm -f conftest.$ac_objext
18550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18551 (eval $ac_compile) 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
d349482e
AT
18558 { ac_try='test -z "$ac_c_werror_flag"
18559 || test ! -s conftest.err'
03b8fe49
PB
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; } &&
18565 { ac_try='test -s conftest.$ac_objext'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 ac_lo=$ac_mid; break
18572else
18573 echo "$as_me: failed program was:" >&5
18574sed 's/^/| /' conftest.$ac_ext >&5
18575
18576ac_hi=`expr '(' $ac_mid ')' - 1`
18577 if test $ac_mid -le $ac_hi; then
18578 ac_lo= ac_hi=
18579 break
18580 fi
18581 ac_mid=`expr 2 '*' $ac_mid`
18582fi
18583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18584 done
18585else
18586 echo "$as_me: failed program was:" >&5
18587sed 's/^/| /' conftest.$ac_ext >&5
18588
18589ac_lo= ac_hi=
18590fi
18591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18592fi
18593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18594# Binary search between lo and hi bounds.
18595while test "x$ac_lo" != "x$ac_hi"; do
18596 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18597 cat >conftest.$ac_ext <<_ACEOF
18598/* confdefs.h. */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
18602/* end confdefs.h. */
18603
18604int
18605main ()
18606{
18607static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18608test_array [0] = 0
18609
18610 ;
18611 return 0;
18612}
18613_ACEOF
18614rm -f conftest.$ac_objext
18615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18616 (eval $ac_compile) 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
d349482e
AT
18623 { ac_try='test -z "$ac_c_werror_flag"
18624 || test ! -s conftest.err'
03b8fe49
PB
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } &&
18630 { ac_try='test -s conftest.$ac_objext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_hi=$ac_mid
18637else
18638 echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641ac_lo=`expr '(' $ac_mid ')' + 1`
18642fi
18643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18644done
18645case $ac_lo in
18646?*) OMP_LOCK_ALIGN=$ac_lo;;
18647'') ;;
18648esac
18649else
18650 if test "$cross_compiling" = yes; then
d349482e
AT
18651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18652See \`config.log' for more details." >&5
18653echo "$as_me: error: cannot run test program while cross compiling
18654See \`config.log' for more details." >&2;}
03b8fe49
PB
18655 { (exit 1); exit 1; }; }
18656else
18657 cat >conftest.$ac_ext <<_ACEOF
18658/* confdefs.h. */
18659_ACEOF
18660cat confdefs.h >>conftest.$ac_ext
18661cat >>conftest.$ac_ext <<_ACEOF
18662/* end confdefs.h. */
18663
18664long longval () { return __alignof (omp_lock_t); }
18665unsigned long ulongval () { return __alignof (omp_lock_t); }
18666#include <stdio.h>
18667#include <stdlib.h>
18668int
18669main ()
18670{
18671
18672 FILE *f = fopen ("conftest.val", "w");
18673 if (! f)
18674 exit (1);
18675 if ((__alignof (omp_lock_t)) < 0)
18676 {
18677 long i = longval ();
18678 if (i != (__alignof (omp_lock_t)))
18679 exit (1);
18680 fprintf (f, "%ld\n", i);
18681 }
18682 else
18683 {
18684 unsigned long i = ulongval ();
18685 if (i != (__alignof (omp_lock_t)))
18686 exit (1);
18687 fprintf (f, "%lu\n", i);
18688 }
18689 exit (ferror (f) || fclose (f) != 0);
18690
18691 ;
18692 return 0;
18693}
18694_ACEOF
18695rm -f conftest$ac_exeext
18696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697 (eval $ac_link) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 OMP_LOCK_ALIGN=`cat conftest.val`
18707else
18708 echo "$as_me: program exited with status $ac_status" >&5
18709echo "$as_me: failed program was:" >&5
18710sed 's/^/| /' conftest.$ac_ext >&5
18711
18712fi
18713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18714fi
18715fi
18716rm -f conftest.val
18717if test "$cross_compiling" = yes; then
18718 # Depending upon the size, compute the lo and hi bounds.
18719cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725
18726int
18727main ()
18728{
18729static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18730test_array [0] = 0
18731
18732 ;
18733 return 0;
18734}
18735_ACEOF
18736rm -f conftest.$ac_objext
18737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18738 (eval $ac_compile) 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } &&
d349482e
AT
18745 { ac_try='test -z "$ac_c_werror_flag"
18746 || test ! -s conftest.err'
03b8fe49
PB
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try='test -s conftest.$ac_objext'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 ac_lo=0 ac_mid=0
18759 while :; do
18760 cat >conftest.$ac_ext <<_ACEOF
18761/* confdefs.h. */
18762_ACEOF
18763cat confdefs.h >>conftest.$ac_ext
18764cat >>conftest.$ac_ext <<_ACEOF
18765/* end confdefs.h. */
18766
18767int
18768main ()
18769{
18770static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18771test_array [0] = 0
18772
18773 ;
18774 return 0;
18775}
18776_ACEOF
18777rm -f conftest.$ac_objext
18778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18779 (eval $ac_compile) 2>conftest.er1
18780 ac_status=$?
18781 grep -v '^ *+' conftest.er1 >conftest.err
18782 rm -f conftest.er1
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
d349482e
AT
18786 { ac_try='test -z "$ac_c_werror_flag"
18787 || test ! -s conftest.err'
03b8fe49
PB
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try='test -s conftest.$ac_objext'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_hi=$ac_mid; break
18800else
18801 echo "$as_me: failed program was:" >&5
18802sed 's/^/| /' conftest.$ac_ext >&5
18803
18804ac_lo=`expr $ac_mid + 1`
18805 if test $ac_lo -le $ac_mid; then
18806 ac_lo= ac_hi=
18807 break
18808 fi
18809 ac_mid=`expr 2 '*' $ac_mid + 1`
18810fi
18811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 done
18813else
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817cat >conftest.$ac_ext <<_ACEOF
18818/* confdefs.h. */
18819_ACEOF
18820cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */
18823
18824int
18825main ()
18826{
18827static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18828test_array [0] = 0
18829
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext
18835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18836 (eval $ac_compile) 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
d349482e
AT
18843 { ac_try='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
03b8fe49
PB
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_hi=-1 ac_mid=-1
18857 while :; do
18858 cat >conftest.$ac_ext <<_ACEOF
18859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
18864
18865int
18866main ()
18867{
18868static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18869test_array [0] = 0
18870
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext
18876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>conftest.er1
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
d349482e
AT
18884 { ac_try='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
03b8fe49
PB
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_lo=$ac_mid; break
18898else
18899 echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
18902ac_hi=`expr '(' $ac_mid ')' - 1`
18903 if test $ac_mid -le $ac_hi; then
18904 ac_lo= ac_hi=
18905 break
18906 fi
18907 ac_mid=`expr 2 '*' $ac_mid`
18908fi
18909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18910 done
18911else
18912 echo "$as_me: failed program was:" >&5
18913sed 's/^/| /' conftest.$ac_ext >&5
18914
18915ac_lo= ac_hi=
18916fi
18917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18918fi
18919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920# Binary search between lo and hi bounds.
18921while test "x$ac_lo" != "x$ac_hi"; do
18922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18923 cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929
18930int
18931main ()
18932{
18933static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18934test_array [0] = 0
18935
18936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext
18941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
d349482e
AT
18949 { ac_try='test -z "$ac_c_werror_flag"
18950 || test ! -s conftest.err'
03b8fe49
PB
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_hi=$ac_mid
18963else
18964 echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967ac_lo=`expr '(' $ac_mid ')' + 1`
18968fi
18969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18970done
18971case $ac_lo in
18972?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
18973'') ;;
18974esac
18975else
18976 if test "$cross_compiling" = yes; then
d349482e
AT
18977 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18978See \`config.log' for more details." >&5
18979echo "$as_me: error: cannot run test program while cross compiling
18980See \`config.log' for more details." >&2;}
03b8fe49
PB
18981 { (exit 1); exit 1; }; }
18982else
18983 cat >conftest.$ac_ext <<_ACEOF
18984/* confdefs.h. */
18985_ACEOF
18986cat confdefs.h >>conftest.$ac_ext
18987cat >>conftest.$ac_ext <<_ACEOF
18988/* end confdefs.h. */
18989
18990long longval () { return sizeof (omp_nest_lock_t); }
18991unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
18992#include <stdio.h>
18993#include <stdlib.h>
18994int
18995main ()
18996{
18997
18998 FILE *f = fopen ("conftest.val", "w");
18999 if (! f)
19000 exit (1);
19001 if ((sizeof (omp_nest_lock_t)) < 0)
19002 {
19003 long i = longval ();
19004 if (i != (sizeof (omp_nest_lock_t)))
19005 exit (1);
19006 fprintf (f, "%ld\n", i);
19007 }
19008 else
19009 {
19010 unsigned long i = ulongval ();
19011 if (i != (sizeof (omp_nest_lock_t)))
19012 exit (1);
19013 fprintf (f, "%lu\n", i);
19014 }
19015 exit (ferror (f) || fclose (f) != 0);
19016
19017 ;
19018 return 0;
19019}
19020_ACEOF
19021rm -f conftest$ac_exeext
19022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19023 (eval $ac_link) 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19033else
19034 echo "$as_me: program exited with status $ac_status" >&5
19035echo "$as_me: failed program was:" >&5
19036sed 's/^/| /' conftest.$ac_ext >&5
19037
19038fi
19039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19040fi
19041fi
19042rm -f conftest.val
19043if test "$cross_compiling" = yes; then
19044 # Depending upon the size, compute the lo and hi bounds.
19045cat >conftest.$ac_ext <<_ACEOF
19046/* confdefs.h. */
19047_ACEOF
19048cat confdefs.h >>conftest.$ac_ext
19049cat >>conftest.$ac_ext <<_ACEOF
19050/* end confdefs.h. */
19051
19052int
19053main ()
19054{
19055static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19056test_array [0] = 0
19057
19058 ;
19059 return 0;
19060}
19061_ACEOF
19062rm -f conftest.$ac_objext
19063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
d349482e
AT
19071 { ac_try='test -z "$ac_c_werror_flag"
19072 || test ! -s conftest.err'
03b8fe49
PB
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest.$ac_objext'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084 ac_lo=0 ac_mid=0
19085 while :; do
19086 cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092
19093int
19094main ()
19095{
19096static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19097test_array [0] = 0
19098
19099 ;
19100 return 0;
19101}
19102_ACEOF
19103rm -f conftest.$ac_objext
19104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
d349482e
AT
19112 { ac_try='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
03b8fe49
PB
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_hi=$ac_mid; break
19126else
19127 echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130ac_lo=`expr $ac_mid + 1`
19131 if test $ac_lo -le $ac_mid; then
19132 ac_lo= ac_hi=
19133 break
19134 fi
19135 ac_mid=`expr 2 '*' $ac_mid + 1`
19136fi
19137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19138 done
19139else
19140 echo "$as_me: failed program was:" >&5
19141sed 's/^/| /' conftest.$ac_ext >&5
19142
19143cat >conftest.$ac_ext <<_ACEOF
19144/* confdefs.h. */
19145_ACEOF
19146cat confdefs.h >>conftest.$ac_ext
19147cat >>conftest.$ac_ext <<_ACEOF
19148/* end confdefs.h. */
19149
19150int
19151main ()
19152{
19153static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19154test_array [0] = 0
19155
19156 ;
19157 return 0;
19158}
19159_ACEOF
19160rm -f conftest.$ac_objext
19161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162 (eval $ac_compile) 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
d349482e
AT
19169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
03b8fe49
PB
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_hi=-1 ac_mid=-1
19183 while :; do
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190
19191int
19192main ()
19193{
19194static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19195test_array [0] = 0
19196
19197 ;
19198 return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext
19202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203 (eval $ac_compile) 2>conftest.er1
19204 ac_status=$?
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
d349482e
AT
19210 { ac_try='test -z "$ac_c_werror_flag"
19211 || test ! -s conftest.err'
03b8fe49
PB
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 ac_lo=$ac_mid; break
19224else
19225 echo "$as_me: failed program was:" >&5
19226sed 's/^/| /' conftest.$ac_ext >&5
19227
19228ac_hi=`expr '(' $ac_mid ')' - 1`
19229 if test $ac_mid -le $ac_hi; then
19230 ac_lo= ac_hi=
19231 break
19232 fi
19233 ac_mid=`expr 2 '*' $ac_mid`
19234fi
19235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19236 done
19237else
19238 echo "$as_me: failed program was:" >&5
19239sed 's/^/| /' conftest.$ac_ext >&5
19240
19241ac_lo= ac_hi=
19242fi
19243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244fi
19245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19246# Binary search between lo and hi bounds.
19247while test "x$ac_lo" != "x$ac_hi"; do
19248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19249 cat >conftest.$ac_ext <<_ACEOF
19250/* confdefs.h. */
19251_ACEOF
19252cat confdefs.h >>conftest.$ac_ext
19253cat >>conftest.$ac_ext <<_ACEOF
19254/* end confdefs.h. */
19255
19256int
19257main ()
19258{
19259static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19260test_array [0] = 0
19261
19262 ;
19263 return 0;
19264}
19265_ACEOF
19266rm -f conftest.$ac_objext
19267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19268 (eval $ac_compile) 2>conftest.er1
19269 ac_status=$?
19270 grep -v '^ *+' conftest.er1 >conftest.err
19271 rm -f conftest.er1
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
d349482e
AT
19275 { ac_try='test -z "$ac_c_werror_flag"
19276 || test ! -s conftest.err'
03b8fe49
PB
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_hi=$ac_mid
19289else
19290 echo "$as_me: failed program was:" >&5
19291sed 's/^/| /' conftest.$ac_ext >&5
19292
19293ac_lo=`expr '(' $ac_mid ')' + 1`
19294fi
19295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19296done
19297case $ac_lo in
19298?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19299'') ;;
19300esac
19301else
19302 if test "$cross_compiling" = yes; then
d349482e
AT
19303 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19304See \`config.log' for more details." >&5
19305echo "$as_me: error: cannot run test program while cross compiling
19306See \`config.log' for more details." >&2;}
03b8fe49
PB
19307 { (exit 1); exit 1; }; }
19308else
19309 cat >conftest.$ac_ext <<_ACEOF
19310/* confdefs.h. */
19311_ACEOF
19312cat confdefs.h >>conftest.$ac_ext
19313cat >>conftest.$ac_ext <<_ACEOF
19314/* end confdefs.h. */
19315
19316long longval () { return __alignof (omp_nest_lock_t); }
19317unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19318#include <stdio.h>
19319#include <stdlib.h>
19320int
19321main ()
19322{
19323
19324 FILE *f = fopen ("conftest.val", "w");
19325 if (! f)
19326 exit (1);
19327 if ((__alignof (omp_nest_lock_t)) < 0)
19328 {
19329 long i = longval ();
19330 if (i != (__alignof (omp_nest_lock_t)))
19331 exit (1);
19332 fprintf (f, "%ld\n", i);
19333 }
19334 else
19335 {
19336 unsigned long i = ulongval ();
19337 if (i != (__alignof (omp_nest_lock_t)))
19338 exit (1);
19339 fprintf (f, "%lu\n", i);
19340 }
19341 exit (ferror (f) || fclose (f) != 0);
19342
19343 ;
19344 return 0;
19345}
19346_ACEOF
19347rm -f conftest$ac_exeext
19348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19359else
19360 echo "$as_me: program exited with status $ac_status" >&5
19361echo "$as_me: failed program was:" >&5
19362sed 's/^/| /' conftest.$ac_ext >&5
19363
19364fi
19365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19366fi
19367fi
19368rm -f conftest.val
19369
19370# If the lock fits in an integer, then arrange for Fortran to use that
19371# integer. If it doesn't, then arrange for Fortran to use a pointer.
19372# Except that we don't have a way at present to multi-lib the installed
19373# Fortran modules, so we assume 8 bytes for pointers, regardless of the
19374# actual target.
19375OMP_LOCK_KIND=$OMP_LOCK_SIZE
19376OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19377if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19378 OMP_LOCK_KIND=8
19379fi
19380if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19381 OMP_NEST_LOCK_KIND=8
19382fi
19383
19384
19385
19386
19387
19388
19389
19390CFLAGS="$save_CFLAGS"
19391
19392 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19393
953ff289
DN
19394 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19395
19396cat >confcache <<\_ACEOF
19397# This file is a shell script that caches the results of configure
19398# tests run on this system so they can be shared between configure
19399# scripts and configure runs, see configure's option --config-cache.
19400# It is not useful on other systems. If it contains results you don't
19401# want to keep, you may remove or edit it.
19402#
19403# config.status only pays attention to the cache file if you give it
19404# the --recheck option to rerun configure.
19405#
19406# `ac_cv_env_foo' variables (set or unset) will be overridden when
19407# loading this file, other *unset* `ac_cv_foo' will be assigned the
19408# following values.
19409
19410_ACEOF
19411
19412# The following way of writing the cache mishandles newlines in values,
19413# but we know of no workaround that is simple, portable, and efficient.
19414# So, don't put newlines in cache variables' values.
19415# Ultrix sh set writes to stderr and can't be redirected directly,
19416# and sets the high bit in the cache file unless we assign to the vars.
19417{
19418 (set) 2>&1 |
19419 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19420 *ac_space=\ *)
19421 # `set' does not quote correctly, so add quotes (double-quote
19422 # substitution turns \\\\ into \\, and sed turns \\ into \).
19423 sed -n \
19424 "s/'/'\\\\''/g;
19425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19426 ;;
19427 *)
19428 # `set' quotes correctly as required by POSIX, so do not add quotes.
19429 sed -n \
19430 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19431 ;;
19432 esac;
19433} |
19434 sed '
19435 t clear
19436 : clear
19437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19438 t end
19439 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19440 : end' >>confcache
19441if diff $cache_file confcache >/dev/null 2>&1; then :; else
19442 if test -w $cache_file; then
19443 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19444 cat confcache >$cache_file
19445 else
19446 echo "not updating unwritable cache $cache_file"
19447 fi
19448fi
19449rm -f confcache
19450
19451test "x$prefix" = xNONE && prefix=$ac_default_prefix
19452# Let make expand exec_prefix.
19453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19454
19455# VPATH may cause trouble with some makes, so we remove $(srcdir),
19456# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19457# trailing colons and then remove the whole line if VPATH becomes empty
19458# (actually we leave an empty line to preserve line numbers).
19459if test "x$srcdir" = x.; then
19460 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19461s/:*\$(srcdir):*/:/;
19462s/:*\${srcdir}:*/:/;
19463s/:*@srcdir@:*/:/;
19464s/^\([^=]*=[ ]*\):*/\1/;
19465s/:*$//;
19466s/^[^=]*=[ ]*$//;
19467}'
19468fi
19469
19470DEFS=-DHAVE_CONFIG_H
19471
19472ac_libobjs=
19473ac_ltlibobjs=
19474for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19475 # 1. Remove the extension, and $U if already installed.
19476 ac_i=`echo "$ac_i" |
19477 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19478 # 2. Add them.
19479 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19480 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19481done
19482LIBOBJS=$ac_libobjs
19483
19484LTLIBOBJS=$ac_ltlibobjs
19485
19486
627ab4b8
TT
19487if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19488 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19489Usually this means the macro was only invoked conditionally." >&5
19490echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19491Usually this means the macro was only invoked conditionally." >&2;}
19492 { (exit 1); exit 1; }; }
19493fi
953ff289
DN
19494if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19495 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19496Usually this means the macro was only invoked conditionally." >&5
19497echo "$as_me: error: conditional \"AMDEP\" was never defined.
19498Usually this means the macro was only invoked conditionally." >&2;}
19499 { (exit 1); exit 1; }; }
19500fi
19501if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19502 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19503Usually this means the macro was only invoked conditionally." >&5
19504echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19505Usually this means the macro was only invoked conditionally." >&2;}
19506 { (exit 1); exit 1; }; }
19507fi
748b9d7c
DF
19508if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19509 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19510Usually this means the macro was only invoked conditionally." >&5
19511echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19512Usually this means the macro was only invoked conditionally." >&2;}
19513 { (exit 1); exit 1; }; }
19514fi
c41303c6
RH
19515if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19516 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19517Usually this means the macro was only invoked conditionally." >&5
19518echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19519Usually this means the macro was only invoked conditionally." >&2;}
19520 { (exit 1); exit 1; }; }
19521fi
953ff289
DN
19522if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19523 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19524Usually this means the macro was only invoked conditionally." >&5
19525echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19526Usually this means the macro was only invoked conditionally." >&2;}
19527 { (exit 1); exit 1; }; }
19528fi
19529if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19530 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19531Usually this means the macro was only invoked conditionally." >&5
19532echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19533Usually this means the macro was only invoked conditionally." >&2;}
19534 { (exit 1); exit 1; }; }
19535fi
19536
19537: ${CONFIG_STATUS=./config.status}
19538ac_clean_files_save=$ac_clean_files
19539ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19540{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19541echo "$as_me: creating $CONFIG_STATUS" >&6;}
19542cat >$CONFIG_STATUS <<_ACEOF
19543#! $SHELL
19544# Generated by $as_me.
19545# Run this file to recreate the current configuration.
19546# Compiler output produced by configure, useful for debugging
19547# configure, is in config.log if it exists.
19548
19549debug=false
19550ac_cs_recheck=false
19551ac_cs_silent=false
19552SHELL=\${CONFIG_SHELL-$SHELL}
19553_ACEOF
19554
19555cat >>$CONFIG_STATUS <<\_ACEOF
19556## --------------------- ##
19557## M4sh Initialization. ##
19558## --------------------- ##
19559
19560# Be Bourne compatible
19561if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19562 emulate sh
19563 NULLCMD=:
19564 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19565 # is contrary to our usage. Disable this feature.
19566 alias -g '${1+"$@"}'='"$@"'
19567elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19568 set -o posix
19569fi
19570DUALCASE=1; export DUALCASE # for MKS sh
19571
19572# Support unset when possible.
19573if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19574 as_unset=unset
19575else
19576 as_unset=false
19577fi
19578
19579
19580# Work around bugs in pre-3.0 UWIN ksh.
19581$as_unset ENV MAIL MAILPATH
19582PS1='$ '
19583PS2='> '
19584PS4='+ '
19585
19586# NLS nuisances.
19587for as_var in \
19588 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19589 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19590 LC_TELEPHONE LC_TIME
19591do
19592 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19593 eval $as_var=C; export $as_var
19594 else
19595 $as_unset $as_var
19596 fi
19597done
19598
19599# Required to use basename.
19600if expr a : '\(a\)' >/dev/null 2>&1; then
19601 as_expr=expr
19602else
19603 as_expr=false
19604fi
19605
19606if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19607 as_basename=basename
19608else
19609 as_basename=false
19610fi
19611
19612
19613# Name of the executable.
19614as_me=`$as_basename "$0" ||
19615$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19616 X"$0" : 'X\(//\)$' \| \
19617 X"$0" : 'X\(/\)$' \| \
19618 . : '\(.\)' 2>/dev/null ||
19619echo X/"$0" |
19620 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19621 /^X\/\(\/\/\)$/{ s//\1/; q; }
19622 /^X\/\(\/\).*/{ s//\1/; q; }
19623 s/.*/./; q'`
19624
19625
19626# PATH needs CR, and LINENO needs CR and PATH.
19627# Avoid depending upon Character Ranges.
19628as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19629as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19630as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19631as_cr_digits='0123456789'
19632as_cr_alnum=$as_cr_Letters$as_cr_digits
19633
19634# The user is always right.
19635if test "${PATH_SEPARATOR+set}" != set; then
19636 echo "#! /bin/sh" >conf$$.sh
19637 echo "exit 0" >>conf$$.sh
19638 chmod +x conf$$.sh
19639 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19640 PATH_SEPARATOR=';'
19641 else
19642 PATH_SEPARATOR=:
19643 fi
19644 rm -f conf$$.sh
19645fi
19646
19647
19648 as_lineno_1=$LINENO
19649 as_lineno_2=$LINENO
19650 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19651 test "x$as_lineno_1" != "x$as_lineno_2" &&
19652 test "x$as_lineno_3" = "x$as_lineno_2" || {
19653 # Find who we are. Look in the path if we contain no path at all
19654 # relative or not.
19655 case $0 in
19656 *[\\/]* ) as_myself=$0 ;;
19657 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19658for as_dir in $PATH
19659do
19660 IFS=$as_save_IFS
19661 test -z "$as_dir" && as_dir=.
19662 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19663done
19664
19665 ;;
19666 esac
19667 # We did not find ourselves, most probably we were run as `sh COMMAND'
19668 # in which case we are not to be found in the path.
19669 if test "x$as_myself" = x; then
19670 as_myself=$0
19671 fi
19672 if test ! -f "$as_myself"; then
19673 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19674echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19675 { (exit 1); exit 1; }; }
19676 fi
19677 case $CONFIG_SHELL in
19678 '')
19679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19681do
19682 IFS=$as_save_IFS
19683 test -z "$as_dir" && as_dir=.
19684 for as_base in sh bash ksh sh5; do
19685 case $as_dir in
19686 /*)
19687 if ("$as_dir/$as_base" -c '
19688 as_lineno_1=$LINENO
19689 as_lineno_2=$LINENO
19690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19691 test "x$as_lineno_1" != "x$as_lineno_2" &&
19692 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19693 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19694 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19695 CONFIG_SHELL=$as_dir/$as_base
19696 export CONFIG_SHELL
19697 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19698 fi;;
19699 esac
19700 done
19701done
19702;;
19703 esac
19704
19705 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19706 # uniformly replaced by the line number. The first 'sed' inserts a
19707 # line-number line before each line; the second 'sed' does the real
19708 # work. The second script uses 'N' to pair each line-number line
19709 # with the numbered line, and appends trailing '-' during
19710 # substitution so that $LINENO is not a special case at line end.
19711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19712 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19713 sed '=' <$as_myself |
19714 sed '
19715 N
19716 s,$,-,
19717 : loop
19718 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19719 t loop
19720 s,-$,,
19721 s,^['$as_cr_digits']*\n,,
19722 ' >$as_me.lineno &&
19723 chmod +x $as_me.lineno ||
19724 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19725echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19726 { (exit 1); exit 1; }; }
19727
19728 # Don't try to exec as it changes $[0], causing all sort of problems
19729 # (the dirname of $[0] is not the place where we might find the
19730 # original and so on. Autoconf is especially sensible to this).
19731 . ./$as_me.lineno
19732 # Exit status is that of the last command.
19733 exit
19734}
19735
19736
19737case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19738 *c*,-n*) ECHO_N= ECHO_C='
19739' ECHO_T=' ' ;;
19740 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19741 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19742esac
19743
19744if expr a : '\(a\)' >/dev/null 2>&1; then
19745 as_expr=expr
19746else
19747 as_expr=false
19748fi
19749
19750rm -f conf$$ conf$$.exe conf$$.file
19751echo >conf$$.file
19752if ln -s conf$$.file conf$$ 2>/dev/null; then
19753 # We could just check for DJGPP; but this test a) works b) is more generic
19754 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19755 if test -f conf$$.exe; then
19756 # Don't use ln at all; we don't have any links
19757 as_ln_s='cp -p'
19758 else
19759 as_ln_s='ln -s'
19760 fi
19761elif ln conf$$.file conf$$ 2>/dev/null; then
19762 as_ln_s=ln
19763else
19764 as_ln_s='cp -p'
19765fi
19766rm -f conf$$ conf$$.exe conf$$.file
19767
19768if mkdir -p . 2>/dev/null; then
19769 as_mkdir_p=:
19770else
19771 test -d ./-p && rmdir ./-p
19772 as_mkdir_p=false
19773fi
19774
19775as_executable_p="test -f"
19776
19777# Sed expression to map a string onto a valid CPP name.
19778as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19779
19780# Sed expression to map a string onto a valid variable name.
19781as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19782
19783
19784# IFS
19785# We need space, tab and new line, in precisely that order.
19786as_nl='
19787'
19788IFS=" $as_nl"
19789
19790# CDPATH.
19791$as_unset CDPATH
19792
19793exec 6>&1
19794
19795# Open the log real soon, to keep \$[0] and so on meaningful, and to
19796# report actual input values of CONFIG_FILES etc. instead of their
19797# values after options handling. Logging --version etc. is OK.
19798exec 5>>config.log
19799{
19800 echo
19801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19802## Running $as_me. ##
19803_ASBOX
19804} >&5
19805cat >&5 <<_CSEOF
19806
19807This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19808generated by GNU Autoconf 2.59. Invocation command line was
19809
19810 CONFIG_FILES = $CONFIG_FILES
19811 CONFIG_HEADERS = $CONFIG_HEADERS
19812 CONFIG_LINKS = $CONFIG_LINKS
19813 CONFIG_COMMANDS = $CONFIG_COMMANDS
19814 $ $0 $@
19815
19816_CSEOF
19817echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19818echo >&5
19819_ACEOF
19820
19821# Files that config.status was made for.
19822if test -n "$ac_config_files"; then
19823 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19824fi
19825
19826if test -n "$ac_config_headers"; then
19827 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19828fi
19829
19830if test -n "$ac_config_links"; then
19831 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19832fi
19833
19834if test -n "$ac_config_commands"; then
19835 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19836fi
19837
19838cat >>$CONFIG_STATUS <<\_ACEOF
19839
19840ac_cs_usage="\
19841\`$as_me' instantiates files from templates according to the
19842current configuration.
19843
19844Usage: $0 [OPTIONS] [FILE]...
19845
19846 -h, --help print this help, then exit
19847 -V, --version print version number, then exit
19848 -q, --quiet do not print progress messages
19849 -d, --debug don't remove temporary files
19850 --recheck update $as_me by reconfiguring in the same conditions
19851 --file=FILE[:TEMPLATE]
19852 instantiate the configuration file FILE
19853 --header=FILE[:TEMPLATE]
19854 instantiate the configuration header FILE
19855
19856Configuration files:
19857$config_files
19858
19859Configuration headers:
19860$config_headers
19861
19862Configuration commands:
19863$config_commands
19864
19865Report bugs to <bug-autoconf@gnu.org>."
19866_ACEOF
19867
19868cat >>$CONFIG_STATUS <<_ACEOF
19869ac_cs_version="\\
19870GNU OpenMP Runtime Library config.status 1.0
19871configured by $0, generated by GNU Autoconf 2.59,
19872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19873
19874Copyright (C) 2003 Free Software Foundation, Inc.
19875This config.status script is free software; the Free Software Foundation
19876gives unlimited permission to copy, distribute and modify it."
19877srcdir=$srcdir
19878INSTALL="$INSTALL"
19879_ACEOF
19880
19881cat >>$CONFIG_STATUS <<\_ACEOF
19882# If no file are specified by the user, then we need to provide default
19883# value. By we need to know if files were specified by the user.
19884ac_need_defaults=:
19885while test $# != 0
19886do
19887 case $1 in
19888 --*=*)
19889 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19890 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19891 ac_shift=:
19892 ;;
19893 -*)
19894 ac_option=$1
19895 ac_optarg=$2
19896 ac_shift=shift
19897 ;;
19898 *) # This is not an option, so the user has probably given explicit
19899 # arguments.
19900 ac_option=$1
19901 ac_need_defaults=false;;
19902 esac
19903
19904 case $ac_option in
19905 # Handling of the options.
19906_ACEOF
19907cat >>$CONFIG_STATUS <<\_ACEOF
19908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19909 ac_cs_recheck=: ;;
19910 --version | --vers* | -V )
19911 echo "$ac_cs_version"; exit 0 ;;
19912 --he | --h)
19913 # Conflict between --help and --header
19914 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19915Try \`$0 --help' for more information." >&5
19916echo "$as_me: error: ambiguous option: $1
19917Try \`$0 --help' for more information." >&2;}
19918 { (exit 1); exit 1; }; };;
19919 --help | --hel | -h )
19920 echo "$ac_cs_usage"; exit 0 ;;
19921 --debug | --d* | -d )
19922 debug=: ;;
19923 --file | --fil | --fi | --f )
19924 $ac_shift
19925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19926 ac_need_defaults=false;;
19927 --header | --heade | --head | --hea )
19928 $ac_shift
19929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19930 ac_need_defaults=false;;
19931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19933 ac_cs_silent=: ;;
19934
19935 # This is an error.
19936 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19937Try \`$0 --help' for more information." >&5
19938echo "$as_me: error: unrecognized option: $1
19939Try \`$0 --help' for more information." >&2;}
19940 { (exit 1); exit 1; }; } ;;
19941
19942 *) ac_config_targets="$ac_config_targets $1" ;;
19943
19944 esac
19945 shift
19946done
19947
19948ac_configure_extra_args=
19949
19950if $ac_cs_silent; then
19951 exec 6>/dev/null
19952 ac_configure_extra_args="$ac_configure_extra_args --silent"
19953fi
19954
19955_ACEOF
19956cat >>$CONFIG_STATUS <<_ACEOF
19957if \$ac_cs_recheck; then
19958 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19959 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19960fi
19961
19962_ACEOF
19963
19964cat >>$CONFIG_STATUS <<_ACEOF
19965#
19966# INIT-COMMANDS section.
19967#
19968
19969
19970srcdir="$srcdir"
19971host="$host"
19972target="$target"
19973with_multisubdir="$with_multisubdir"
19974with_multisrctop="$with_multisrctop"
19975with_target_subdir="$with_target_subdir"
19976ac_configure_args="${multilib_arg} ${ac_configure_args}"
19977multi_basedir="$multi_basedir"
19978CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19979CC="$CC"
19980AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19981
1cf3d07d
SE
19982
19983# The HP-UX ksh and POSIX shell print the target directory to stdout
19984# if CDPATH is set.
19985(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19986
19987sed_quote_subst='$sed_quote_subst'
19988double_quote_subst='$double_quote_subst'
19989delay_variable_subst='$delay_variable_subst'
19990macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19991macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19992enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19993enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19994pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19995enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19996host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19997host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19998host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19999build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20000build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20001build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20002SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20003Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20004GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20005EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20006FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20007LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20008NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20009LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20010max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20011ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20012exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20013lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20014lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20015lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20016reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20017reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20018deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20019file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20020AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20021AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20022STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20023RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20024old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20025old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20026old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20027CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20028CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20029compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20030GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20031lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20032lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20033lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20034objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20035SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20036ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20037MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20038lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20039lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20040lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20041lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20042lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20043need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20044libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20045shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20046extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20047archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20048enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20049export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20050whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20051compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20052old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20053old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20054archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20055archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20056module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20057module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20058with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20059allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20060no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20061hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20062hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20063hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20064hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20065hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20066hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20067hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20068hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20069inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20070link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20071fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20072always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20073export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20074exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20075include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20076prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20077file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20078variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20079need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20080need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20081version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20082runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20083shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20084shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20085libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20086library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20087soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20088postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20089postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20090finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20091finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20092hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20093sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20094sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20095hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20096enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20097enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20098enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20099old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20100striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20101predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20102postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20103predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20104postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20105compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20106LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20107old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20108compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20109GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20110lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20111lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20112lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20113lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20114lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20115archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20116enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20117export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20118whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20119compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20120old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20121old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20122archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20123archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20124module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20125module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20126with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20127allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20128no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20129hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20130hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20131hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20132hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20133hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20134hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20135hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20136hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20137inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20138link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20139fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20140always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20141export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20142exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20143include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20144prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20145file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20146hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20147predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20148postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20149predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20150postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20151compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20152
20153LTCC='$LTCC'
20154LTCFLAGS='$LTCFLAGS'
20155compiler='$compiler_DEFAULT'
20156
20157# Quote evaled strings.
20158for var in SED \
20159GREP \
20160EGREP \
20161FGREP \
20162LD \
20163NM \
20164LN_S \
20165lt_SP2NL \
20166lt_NL2SP \
20167reload_flag \
20168deplibs_check_method \
20169file_magic_cmd \
20170AR \
20171AR_FLAGS \
20172STRIP \
20173RANLIB \
20174CC \
20175CFLAGS \
20176compiler \
20177lt_cv_sys_global_symbol_pipe \
20178lt_cv_sys_global_symbol_to_cdecl \
20179lt_cv_sys_global_symbol_to_c_name_address \
20180SHELL \
20181ECHO \
20182lt_prog_compiler_no_builtin_flag \
20183lt_prog_compiler_wl \
20184lt_prog_compiler_pic \
20185lt_prog_compiler_static \
20186lt_cv_prog_compiler_c_o \
20187need_locks \
20188shrext_cmds \
20189export_dynamic_flag_spec \
20190whole_archive_flag_spec \
20191compiler_needs_object \
20192with_gnu_ld \
20193allow_undefined_flag \
20194no_undefined_flag \
20195hardcode_libdir_flag_spec \
20196hardcode_libdir_flag_spec_ld \
20197hardcode_libdir_separator \
20198fix_srcfile_path \
20199exclude_expsyms \
20200include_expsyms \
20201file_list_spec \
20202variables_saved_for_relink \
20203libname_spec \
20204library_names_spec \
20205soname_spec \
20206finish_eval \
20207old_striplib \
20208striplib \
20209predep_objects \
20210postdep_objects \
20211predeps \
20212postdeps \
20213compiler_lib_search_path \
20214LD_FC \
20215compiler_FC \
20216lt_prog_compiler_no_builtin_flag_FC \
20217lt_prog_compiler_wl_FC \
20218lt_prog_compiler_pic_FC \
20219lt_prog_compiler_static_FC \
20220lt_cv_prog_compiler_c_o_FC \
20221export_dynamic_flag_spec_FC \
20222whole_archive_flag_spec_FC \
20223compiler_needs_object_FC \
20224with_gnu_ld_FC \
20225allow_undefined_flag_FC \
20226no_undefined_flag_FC \
20227hardcode_libdir_flag_spec_FC \
20228hardcode_libdir_flag_spec_ld_FC \
20229hardcode_libdir_separator_FC \
20230fix_srcfile_path_FC \
20231exclude_expsyms_FC \
20232include_expsyms_FC \
20233file_list_spec_FC \
20234predep_objects_FC \
20235postdep_objects_FC \
20236predeps_FC \
20237postdeps_FC \
20238compiler_lib_search_path_FC; do
20239 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20240 *[\\\\\\\`\\"\\\$]*)
20241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20242 ;;
20243 *)
20244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20245 ;;
20246 esac
20247done
20248
20249# Double-quote double-evaled strings.
20250for var in reload_cmds \
20251old_postinstall_cmds \
20252old_postuninstall_cmds \
20253old_archive_cmds \
20254extract_expsyms_cmds \
20255old_archive_from_new_cmds \
20256old_archive_from_expsyms_cmds \
20257archive_cmds \
20258archive_expsym_cmds \
20259module_cmds \
20260module_expsym_cmds \
20261export_symbols_cmds \
20262prelink_cmds \
20263postinstall_cmds \
20264postuninstall_cmds \
20265finish_cmds \
20266sys_lib_search_path_spec \
20267sys_lib_dlsearch_path_spec \
20268old_archive_cmds_FC \
20269old_archive_from_new_cmds_FC \
20270old_archive_from_expsyms_cmds_FC \
20271archive_cmds_FC \
20272archive_expsym_cmds_FC \
20273module_cmds_FC \
20274module_expsym_cmds_FC \
20275export_symbols_cmds_FC \
20276prelink_cmds_FC; do
20277 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20278 *[\\\\\\\`\\"\\\$]*)
20279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20280 ;;
20281 *)
20282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20283 ;;
20284 esac
20285done
20286
20287# Fix-up fallback echo if it was mangled by the above quoting rules.
20288case \$lt_ECHO in
20289*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20290 ;;
20291esac
20292
20293ac_aux_dir='$ac_aux_dir'
20294xsi_shell='$xsi_shell'
20295lt_shell_append='$lt_shell_append'
20296
20297# See if we are running on zsh, and set the options which allow our
20298# commands through without removal of \ escapes INIT.
20299if test -n "\${ZSH_VERSION+set}" ; then
20300 setopt NO_GLOB_SUBST
20301fi
20302
20303
20304 PACKAGE='$PACKAGE'
20305 VERSION='$VERSION'
20306 TIMESTAMP='$TIMESTAMP'
20307 RM='$RM'
20308 ofile='$ofile'
20309
20310
20311
20312
20313
20314
18cbfd85
PB
20315GCC="$GCC"
20316CC="$CC"
20317acx_cv_header_stdint="$acx_cv_header_stdint"
20318acx_cv_type_int8_t="$acx_cv_type_int8_t"
20319acx_cv_type_int16_t="$acx_cv_type_int16_t"
20320acx_cv_type_int32_t="$acx_cv_type_int32_t"
20321acx_cv_type_int64_t="$acx_cv_type_int64_t"
20322acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20323ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20324ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20325ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20326ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20327ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20328ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20329ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20330ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20331
20332
953ff289
DN
20333_ACEOF
20334
20335
20336
20337cat >>$CONFIG_STATUS <<\_ACEOF
20338for ac_config_target in $ac_config_targets
20339do
20340 case "$ac_config_target" in
20341 # Handling of arguments.
03b8fe49
PB
20342 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20343 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20344 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20345 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
953ff289
DN
20346 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20347 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20348 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20349 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20350 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 20351 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18cbfd85 20352 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
953ff289
DN
20353 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20354 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20355echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20356 { (exit 1); exit 1; }; };;
20357 esac
20358done
20359
20360# If the user did not use the arguments to specify the items to instantiate,
20361# then the envvar interface is used. Set only those that are not.
20362# We use the long form for the default assignment because of an extremely
20363# bizarre bug on SunOS 4.1.3.
20364if $ac_need_defaults; then
20365 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20366 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20368fi
20369
20370# Have a temporary directory for convenience. Make it in the build tree
20371# simply because there is no reason to put it here, and in addition,
20372# creating and moving files from /tmp can sometimes cause problems.
20373# Create a temporary directory, and hook for its removal unless debugging.
20374$debug ||
20375{
20376 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20377 trap '{ (exit 1); exit 1; }' 1 2 13 15
20378}
20379
20380# Create a (secure) tmp directory for tmp files.
20381
20382{
20383 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20384 test -n "$tmp" && test -d "$tmp"
20385} ||
20386{
20387 tmp=./confstat$$-$RANDOM
20388 (umask 077 && mkdir $tmp)
20389} ||
20390{
20391 echo "$me: cannot create a temporary directory in ." >&2
20392 { (exit 1); exit 1; }
20393}
20394
20395_ACEOF
20396
20397cat >>$CONFIG_STATUS <<_ACEOF
20398
20399#
20400# CONFIG_FILES section.
20401#
20402
20403# No need to generate the scripts if there are no CONFIG_FILES.
20404# This happens for instance when ./config.status config.h
20405if test -n "\$CONFIG_FILES"; then
20406 # Protect against being on the right side of a sed subst in config.status.
20407 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20408 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20409s,@SHELL@,$SHELL,;t t
20410s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20411s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20412s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20413s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20414s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20415s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20416s,@exec_prefix@,$exec_prefix,;t t
20417s,@prefix@,$prefix,;t t
20418s,@program_transform_name@,$program_transform_name,;t t
20419s,@bindir@,$bindir,;t t
20420s,@sbindir@,$sbindir,;t t
20421s,@libexecdir@,$libexecdir,;t t
20422s,@datadir@,$datadir,;t t
20423s,@sysconfdir@,$sysconfdir,;t t
20424s,@sharedstatedir@,$sharedstatedir,;t t
20425s,@localstatedir@,$localstatedir,;t t
20426s,@libdir@,$libdir,;t t
20427s,@includedir@,$includedir,;t t
20428s,@oldincludedir@,$oldincludedir,;t t
20429s,@infodir@,$infodir,;t t
20430s,@mandir@,$mandir,;t t
20431s,@build_alias@,$build_alias,;t t
20432s,@host_alias@,$host_alias,;t t
20433s,@target_alias@,$target_alias,;t t
20434s,@DEFS@,$DEFS,;t t
20435s,@ECHO_C@,$ECHO_C,;t t
20436s,@ECHO_N@,$ECHO_N,;t t
20437s,@ECHO_T@,$ECHO_T,;t t
20438s,@LIBS@,$LIBS,;t t
627ab4b8
TT
20439s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20440s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
953ff289
DN
20441s,@build@,$build,;t t
20442s,@build_cpu@,$build_cpu,;t t
20443s,@build_vendor@,$build_vendor,;t t
20444s,@build_os@,$build_os,;t t
20445s,@host@,$host,;t t
20446s,@host_cpu@,$host_cpu,;t t
20447s,@host_vendor@,$host_vendor,;t t
20448s,@host_os@,$host_os,;t t
20449s,@target@,$target,;t t
20450s,@target_cpu@,$target_cpu,;t t
20451s,@target_vendor@,$target_vendor,;t t
20452s,@target_os@,$target_os,;t t
20453s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20454s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20455s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20456s,@CYGPATH_W@,$CYGPATH_W,;t t
20457s,@PACKAGE@,$PACKAGE,;t t
20458s,@VERSION@,$VERSION,;t t
20459s,@ACLOCAL@,$ACLOCAL,;t t
20460s,@AUTOCONF@,$AUTOCONF,;t t
20461s,@AUTOMAKE@,$AUTOMAKE,;t t
20462s,@AUTOHEADER@,$AUTOHEADER,;t t
20463s,@MAKEINFO@,$MAKEINFO,;t t
20464s,@install_sh@,$install_sh,;t t
20465s,@STRIP@,$STRIP,;t t
20466s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20467s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20468s,@mkdir_p@,$mkdir_p,;t t
20469s,@AWK@,$AWK,;t t
20470s,@SET_MAKE@,$SET_MAKE,;t t
20471s,@am__leading_dot@,$am__leading_dot,;t t
20472s,@AMTAR@,$AMTAR,;t t
20473s,@am__tar@,$am__tar,;t t
20474s,@am__untar@,$am__untar,;t t
20475s,@multi_basedir@,$multi_basedir,;t t
20476s,@toolexecdir@,$toolexecdir,;t t
20477s,@toolexeclibdir@,$toolexeclibdir,;t t
20478s,@CC@,$CC,;t t
20479s,@ac_ct_CC@,$ac_ct_CC,;t t
20480s,@EXEEXT@,$EXEEXT,;t t
20481s,@OBJEXT@,$OBJEXT,;t t
20482s,@DEPDIR@,$DEPDIR,;t t
20483s,@am__include@,$am__include,;t t
20484s,@am__quote@,$am__quote,;t t
20485s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20486s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20487s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20488s,@CCDEPMODE@,$CCDEPMODE,;t t
20489s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20490s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20491s,@CFLAGS@,$CFLAGS,;t t
20492s,@AR@,$AR,;t t
20493s,@ac_ct_AR@,$ac_ct_AR,;t t
20494s,@RANLIB@,$RANLIB,;t t
20495s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20496s,@PERL@,$PERL,;t t
748b9d7c
DF
20497s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20498s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
953ff289 20499s,@LIBTOOL@,$LIBTOOL,;t t
1cf3d07d
SE
20500s,@SED@,$SED,;t t
20501s,@EGREP@,$EGREP,;t t
20502s,@FGREP@,$FGREP,;t t
20503s,@GREP@,$GREP,;t t
20504s,@LD@,$LD,;t t
20505s,@DUMPBIN@,$DUMPBIN,;t t
20506s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20507s,@NM@,$NM,;t t
20508s,@LN_S@,$LN_S,;t t
20509s,@lt_ECHO@,$lt_ECHO,;t t
20510s,@CPP@,$CPP,;t t
20511s,@CPPFLAGS@,$CPPFLAGS,;t t
953ff289
DN
20512s,@enable_shared@,$enable_shared,;t t
20513s,@enable_static@,$enable_static,;t t
c41303c6
RH
20514s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20515s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20516s,@MAINT@,$MAINT,;t t
953ff289
DN
20517s,@FC@,$FC,;t t
20518s,@FCFLAGS@,$FCFLAGS,;t t
20519s,@LDFLAGS@,$LDFLAGS,;t t
20520s,@ac_ct_FC@,$ac_ct_FC,;t t
20521s,@libtool_VERSION@,$libtool_VERSION,;t t
953ff289
DN
20522s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20523s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20524s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20525s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20526s,@config_path@,$config_path,;t t
20527s,@XCFLAGS@,$XCFLAGS,;t t
20528s,@XLDFLAGS@,$XLDFLAGS,;t t
20529s,@link_gomp@,$link_gomp,;t t
20530s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20531s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
03b8fe49
PB
20532s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20533s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20534s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20535s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20536s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20537s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
953ff289
DN
20538s,@LIBOBJS@,$LIBOBJS,;t t
20539s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20540CEOF
20541
20542_ACEOF
20543
20544 cat >>$CONFIG_STATUS <<\_ACEOF
20545 # Split the substitutions into bite-sized pieces for seds with
20546 # small command number limits, like on Digital OSF/1 and HP-UX.
20547 ac_max_sed_lines=48
20548 ac_sed_frag=1 # Number of current file.
20549 ac_beg=1 # First line for current file.
20550 ac_end=$ac_max_sed_lines # Line after last line for current file.
20551 ac_more_lines=:
20552 ac_sed_cmds=
20553 while $ac_more_lines; do
20554 if test $ac_beg -gt 1; then
20555 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20556 else
20557 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20558 fi
20559 if test ! -s $tmp/subs.frag; then
20560 ac_more_lines=false
20561 else
20562 # The purpose of the label and of the branching condition is to
20563 # speed up the sed processing (if there are no `@' at all, there
20564 # is no need to browse any of the substitutions).
20565 # These are the two extra sed commands mentioned above.
20566 (echo ':t
20567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20568 if test -z "$ac_sed_cmds"; then
20569 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20570 else
20571 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20572 fi
20573 ac_sed_frag=`expr $ac_sed_frag + 1`
20574 ac_beg=$ac_end
20575 ac_end=`expr $ac_end + $ac_max_sed_lines`
20576 fi
20577 done
20578 if test -z "$ac_sed_cmds"; then
20579 ac_sed_cmds=cat
20580 fi
20581fi # test -n "$CONFIG_FILES"
20582
20583_ACEOF
20584cat >>$CONFIG_STATUS <<\_ACEOF
20585for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20586 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20587 case $ac_file in
20588 - | *:- | *:-:* ) # input from stdin
20589 cat >$tmp/stdin
20590 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20592 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20594 * ) ac_file_in=$ac_file.in ;;
20595 esac
20596
20597 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20598 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20600 X"$ac_file" : 'X\(//\)[^/]' \| \
20601 X"$ac_file" : 'X\(//\)$' \| \
20602 X"$ac_file" : 'X\(/\)' \| \
20603 . : '\(.\)' 2>/dev/null ||
20604echo X"$ac_file" |
20605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20607 /^X\(\/\/\)$/{ s//\1/; q; }
20608 /^X\(\/\).*/{ s//\1/; q; }
20609 s/.*/./; q'`
20610 { if $as_mkdir_p; then
20611 mkdir -p "$ac_dir"
20612 else
20613 as_dir="$ac_dir"
20614 as_dirs=
20615 while test ! -d "$as_dir"; do
20616 as_dirs="$as_dir $as_dirs"
20617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20619 X"$as_dir" : 'X\(//\)[^/]' \| \
20620 X"$as_dir" : 'X\(//\)$' \| \
20621 X"$as_dir" : 'X\(/\)' \| \
20622 . : '\(.\)' 2>/dev/null ||
20623echo X"$as_dir" |
20624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20626 /^X\(\/\/\)$/{ s//\1/; q; }
20627 /^X\(\/\).*/{ s//\1/; q; }
20628 s/.*/./; q'`
20629 done
20630 test ! -n "$as_dirs" || mkdir $as_dirs
20631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20632echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20633 { (exit 1); exit 1; }; }; }
20634
20635 ac_builddir=.
20636
20637if test "$ac_dir" != .; then
20638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20639 # A "../" for each directory in $ac_dir_suffix.
20640 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20641else
20642 ac_dir_suffix= ac_top_builddir=
20643fi
20644
20645case $srcdir in
20646 .) # No --srcdir option. We are building in place.
20647 ac_srcdir=.
20648 if test -z "$ac_top_builddir"; then
20649 ac_top_srcdir=.
20650 else
20651 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20652 fi ;;
20653 [\\/]* | ?:[\\/]* ) # Absolute path.
20654 ac_srcdir=$srcdir$ac_dir_suffix;
20655 ac_top_srcdir=$srcdir ;;
20656 *) # Relative path.
20657 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20658 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20659esac
20660
20661# Do not use `cd foo && pwd` to compute absolute paths, because
20662# the directories may not exist.
20663case `pwd` in
20664.) ac_abs_builddir="$ac_dir";;
20665*)
20666 case "$ac_dir" in
20667 .) ac_abs_builddir=`pwd`;;
20668 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20669 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20670 esac;;
20671esac
20672case $ac_abs_builddir in
20673.) ac_abs_top_builddir=${ac_top_builddir}.;;
20674*)
20675 case ${ac_top_builddir}. in
20676 .) ac_abs_top_builddir=$ac_abs_builddir;;
20677 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20678 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20679 esac;;
20680esac
20681case $ac_abs_builddir in
20682.) ac_abs_srcdir=$ac_srcdir;;
20683*)
20684 case $ac_srcdir in
20685 .) ac_abs_srcdir=$ac_abs_builddir;;
20686 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20687 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20688 esac;;
20689esac
20690case $ac_abs_builddir in
20691.) ac_abs_top_srcdir=$ac_top_srcdir;;
20692*)
20693 case $ac_top_srcdir in
20694 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20695 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20696 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20697 esac;;
20698esac
20699
20700
20701 case $INSTALL in
20702 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20703 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20704 esac
20705
d349482e
AT
20706 if test x"$ac_file" != x-; then
20707 { echo "$as_me:$LINENO: creating $ac_file" >&5
20708echo "$as_me: creating $ac_file" >&6;}
20709 rm -f "$ac_file"
20710 fi
953ff289
DN
20711 # Let's still pretend it is `configure' which instantiates (i.e., don't
20712 # use $as_me), people would be surprised to read:
20713 # /* config.h. Generated by config.status. */
20714 if test x"$ac_file" = x-; then
20715 configure_input=
20716 else
20717 configure_input="$ac_file. "
20718 fi
20719 configure_input=$configure_input"Generated from `echo $ac_file_in |
20720 sed 's,.*/,,'` by configure."
20721
20722 # First look for the input files in the build tree, otherwise in the
20723 # src tree.
20724 ac_file_inputs=`IFS=:
20725 for f in $ac_file_in; do
20726 case $f in
20727 -) echo $tmp/stdin ;;
20728 [\\/$]*)
20729 # Absolute (can't be DOS-style, as IFS=:)
20730 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20731echo "$as_me: error: cannot find input file: $f" >&2;}
20732 { (exit 1); exit 1; }; }
20733 echo "$f";;
20734 *) # Relative
20735 if test -f "$f"; then
20736 # Build tree
20737 echo "$f"
20738 elif test -f "$srcdir/$f"; then
20739 # Source tree
20740 echo "$srcdir/$f"
20741 else
20742 # /dev/null tree
20743 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20744echo "$as_me: error: cannot find input file: $f" >&2;}
20745 { (exit 1); exit 1; }; }
20746 fi;;
20747 esac
20748 done` || { (exit 1); exit 1; }
20749_ACEOF
20750cat >>$CONFIG_STATUS <<_ACEOF
20751 sed "$ac_vpsub
20752$extrasub
20753_ACEOF
20754cat >>$CONFIG_STATUS <<\_ACEOF
20755:t
20756/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20757s,@configure_input@,$configure_input,;t t
20758s,@srcdir@,$ac_srcdir,;t t
20759s,@abs_srcdir@,$ac_abs_srcdir,;t t
20760s,@top_srcdir@,$ac_top_srcdir,;t t
20761s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20762s,@builddir@,$ac_builddir,;t t
20763s,@abs_builddir@,$ac_abs_builddir,;t t
20764s,@top_builddir@,$ac_top_builddir,;t t
20765s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20766s,@INSTALL@,$ac_INSTALL,;t t
20767" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20768 rm -f $tmp/stdin
20769 if test x"$ac_file" != x-; then
20770 mv $tmp/out $ac_file
20771 else
20772 cat $tmp/out
20773 rm -f $tmp/out
20774 fi
20775
20776done
20777_ACEOF
20778cat >>$CONFIG_STATUS <<\_ACEOF
20779
20780#
20781# CONFIG_HEADER section.
20782#
20783
20784# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20785# NAME is the cpp macro being defined and VALUE is the value it is being given.
20786#
20787# ac_d sets the value in "#define NAME VALUE" lines.
20788ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20789ac_dB='[ ].*$,\1#\2'
20790ac_dC=' '
20791ac_dD=',;t'
20792# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20793ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20794ac_uB='$,\1#\2define\3'
20795ac_uC=' '
20796ac_uD=',;t'
20797
20798for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20799 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20800 case $ac_file in
20801 - | *:- | *:-:* ) # input from stdin
20802 cat >$tmp/stdin
20803 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20805 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20807 * ) ac_file_in=$ac_file.in ;;
20808 esac
20809
20810 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20811echo "$as_me: creating $ac_file" >&6;}
20812
20813 # First look for the input files in the build tree, otherwise in the
20814 # src tree.
20815 ac_file_inputs=`IFS=:
20816 for f in $ac_file_in; do
20817 case $f in
20818 -) echo $tmp/stdin ;;
20819 [\\/$]*)
20820 # Absolute (can't be DOS-style, as IFS=:)
20821 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20822echo "$as_me: error: cannot find input file: $f" >&2;}
20823 { (exit 1); exit 1; }; }
20824 # Do quote $f, to prevent DOS paths from being IFS'd.
20825 echo "$f";;
20826 *) # Relative
20827 if test -f "$f"; then
20828 # Build tree
20829 echo "$f"
20830 elif test -f "$srcdir/$f"; then
20831 # Source tree
20832 echo "$srcdir/$f"
20833 else
20834 # /dev/null tree
20835 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20836echo "$as_me: error: cannot find input file: $f" >&2;}
20837 { (exit 1); exit 1; }; }
20838 fi;;
20839 esac
20840 done` || { (exit 1); exit 1; }
20841 # Remove the trailing spaces.
20842 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20843
20844_ACEOF
20845
20846# Transform confdefs.h into two sed scripts, `conftest.defines' and
20847# `conftest.undefs', that substitutes the proper values into
20848# config.h.in to produce config.h. The first handles `#define'
20849# templates, and the second `#undef' templates.
20850# And first: Protect against being on the right side of a sed subst in
20851# config.status. Protect against being in an unquoted here document
20852# in config.status.
20853rm -f conftest.defines conftest.undefs
20854# Using a here document instead of a string reduces the quoting nightmare.
20855# Putting comments in sed scripts is not portable.
20856#
20857# `end' is used to avoid that the second main sed command (meant for
20858# 0-ary CPP macros) applies to n-ary macro definitions.
20859# See the Autoconf documentation for `clear'.
20860cat >confdef2sed.sed <<\_ACEOF
20861s/[\\&,]/\\&/g
20862s,[\\$`],\\&,g
20863t clear
20864: clear
20865s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20866t end
20867s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20868: end
20869_ACEOF
20870# If some macros were called several times there might be several times
20871# the same #defines, which is useless. Nevertheless, we may not want to
20872# sort them, since we want the *last* AC-DEFINE to be honored.
20873uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20874sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20875rm -f confdef2sed.sed
20876
20877# This sed command replaces #undef with comments. This is necessary, for
20878# example, in the case of _POSIX_SOURCE, which is predefined and required
20879# on some systems where configure will not decide to define it.
20880cat >>conftest.undefs <<\_ACEOF
20881s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20882_ACEOF
20883
20884# Break up conftest.defines because some shells have a limit on the size
20885# of here documents, and old seds have small limits too (100 cmds).
20886echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20887echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20888echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20889echo ' :' >>$CONFIG_STATUS
20890rm -f conftest.tail
20891while grep . conftest.defines >/dev/null
20892do
20893 # Write a limited-size here document to $tmp/defines.sed.
20894 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20895 # Speed up: don't consider the non `#define' lines.
20896 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20897 # Work around the forget-to-reset-the-flag bug.
20898 echo 't clr' >>$CONFIG_STATUS
20899 echo ': clr' >>$CONFIG_STATUS
20900 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20901 echo 'CEOF
20902 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20903 rm -f $tmp/in
20904 mv $tmp/out $tmp/in
20905' >>$CONFIG_STATUS
20906 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20907 rm -f conftest.defines
20908 mv conftest.tail conftest.defines
20909done
20910rm -f conftest.defines
20911echo ' fi # grep' >>$CONFIG_STATUS
20912echo >>$CONFIG_STATUS
20913
20914# Break up conftest.undefs because some shells have a limit on the size
20915# of here documents, and old seds have small limits too (100 cmds).
20916echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20917rm -f conftest.tail
20918while grep . conftest.undefs >/dev/null
20919do
20920 # Write a limited-size here document to $tmp/undefs.sed.
20921 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20922 # Speed up: don't consider the non `#undef'
20923 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20924 # Work around the forget-to-reset-the-flag bug.
20925 echo 't clr' >>$CONFIG_STATUS
20926 echo ': clr' >>$CONFIG_STATUS
20927 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20928 echo 'CEOF
20929 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20930 rm -f $tmp/in
20931 mv $tmp/out $tmp/in
20932' >>$CONFIG_STATUS
20933 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20934 rm -f conftest.undefs
20935 mv conftest.tail conftest.undefs
20936done
20937rm -f conftest.undefs
20938
20939cat >>$CONFIG_STATUS <<\_ACEOF
20940 # Let's still pretend it is `configure' which instantiates (i.e., don't
20941 # use $as_me), people would be surprised to read:
20942 # /* config.h. Generated by config.status. */
20943 if test x"$ac_file" = x-; then
20944 echo "/* Generated by configure. */" >$tmp/config.h
20945 else
20946 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20947 fi
20948 cat $tmp/in >>$tmp/config.h
20949 rm -f $tmp/in
20950 if test x"$ac_file" != x-; then
20951 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20952 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20953echo "$as_me: $ac_file is unchanged" >&6;}
20954 else
20955 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20956$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20957 X"$ac_file" : 'X\(//\)[^/]' \| \
20958 X"$ac_file" : 'X\(//\)$' \| \
20959 X"$ac_file" : 'X\(/\)' \| \
20960 . : '\(.\)' 2>/dev/null ||
20961echo X"$ac_file" |
20962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20964 /^X\(\/\/\)$/{ s//\1/; q; }
20965 /^X\(\/\).*/{ s//\1/; q; }
20966 s/.*/./; q'`
20967 { if $as_mkdir_p; then
20968 mkdir -p "$ac_dir"
20969 else
20970 as_dir="$ac_dir"
20971 as_dirs=
20972 while test ! -d "$as_dir"; do
20973 as_dirs="$as_dir $as_dirs"
20974 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20975$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20976 X"$as_dir" : 'X\(//\)[^/]' \| \
20977 X"$as_dir" : 'X\(//\)$' \| \
20978 X"$as_dir" : 'X\(/\)' \| \
20979 . : '\(.\)' 2>/dev/null ||
20980echo X"$as_dir" |
20981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20983 /^X\(\/\/\)$/{ s//\1/; q; }
20984 /^X\(\/\).*/{ s//\1/; q; }
20985 s/.*/./; q'`
20986 done
20987 test ! -n "$as_dirs" || mkdir $as_dirs
20988 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20989echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20990 { (exit 1); exit 1; }; }; }
20991
20992 rm -f $ac_file
20993 mv $tmp/config.h $ac_file
20994 fi
20995 else
20996 cat $tmp/config.h
20997 rm -f $tmp/config.h
20998 fi
20999# Compute $ac_file's index in $config_headers.
21000_am_stamp_count=1
21001for _am_header in $config_headers :; do
21002 case $_am_header in
21003 $ac_file | $ac_file:* )
21004 break ;;
21005 * )
21006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21007 esac
21008done
21009echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21010$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21011 X$ac_file : 'X\(//\)[^/]' \| \
21012 X$ac_file : 'X\(//\)$' \| \
21013 X$ac_file : 'X\(/\)' \| \
21014 . : '\(.\)' 2>/dev/null ||
21015echo X$ac_file |
21016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21018 /^X\(\/\/\)$/{ s//\1/; q; }
21019 /^X\(\/\).*/{ s//\1/; q; }
21020 s/.*/./; q'`/stamp-h$_am_stamp_count
21021done
21022_ACEOF
21023cat >>$CONFIG_STATUS <<\_ACEOF
21024
21025#
21026# CONFIG_COMMANDS section.
21027#
21028for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21029 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21030 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21031 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21032$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21033 X"$ac_dest" : 'X\(//\)[^/]' \| \
21034 X"$ac_dest" : 'X\(//\)$' \| \
21035 X"$ac_dest" : 'X\(/\)' \| \
21036 . : '\(.\)' 2>/dev/null ||
21037echo X"$ac_dest" |
21038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21040 /^X\(\/\/\)$/{ s//\1/; q; }
21041 /^X\(\/\).*/{ s//\1/; q; }
21042 s/.*/./; q'`
21043 { if $as_mkdir_p; then
21044 mkdir -p "$ac_dir"
21045 else
21046 as_dir="$ac_dir"
21047 as_dirs=
21048 while test ! -d "$as_dir"; do
21049 as_dirs="$as_dir $as_dirs"
21050 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052 X"$as_dir" : 'X\(//\)[^/]' \| \
21053 X"$as_dir" : 'X\(//\)$' \| \
21054 X"$as_dir" : 'X\(/\)' \| \
21055 . : '\(.\)' 2>/dev/null ||
21056echo X"$as_dir" |
21057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21059 /^X\(\/\/\)$/{ s//\1/; q; }
21060 /^X\(\/\).*/{ s//\1/; q; }
21061 s/.*/./; q'`
21062 done
21063 test ! -n "$as_dirs" || mkdir $as_dirs
21064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21065echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21066 { (exit 1); exit 1; }; }; }
21067
21068 ac_builddir=.
21069
21070if test "$ac_dir" != .; then
21071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21072 # A "../" for each directory in $ac_dir_suffix.
21073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21074else
21075 ac_dir_suffix= ac_top_builddir=
21076fi
21077
21078case $srcdir in
21079 .) # No --srcdir option. We are building in place.
21080 ac_srcdir=.
21081 if test -z "$ac_top_builddir"; then
21082 ac_top_srcdir=.
21083 else
21084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21085 fi ;;
21086 [\\/]* | ?:[\\/]* ) # Absolute path.
21087 ac_srcdir=$srcdir$ac_dir_suffix;
21088 ac_top_srcdir=$srcdir ;;
21089 *) # Relative path.
21090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21092esac
21093
21094# Do not use `cd foo && pwd` to compute absolute paths, because
21095# the directories may not exist.
21096case `pwd` in
21097.) ac_abs_builddir="$ac_dir";;
21098*)
21099 case "$ac_dir" in
21100 .) ac_abs_builddir=`pwd`;;
21101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21103 esac;;
21104esac
21105case $ac_abs_builddir in
21106.) ac_abs_top_builddir=${ac_top_builddir}.;;
21107*)
21108 case ${ac_top_builddir}. in
21109 .) ac_abs_top_builddir=$ac_abs_builddir;;
21110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21112 esac;;
21113esac
21114case $ac_abs_builddir in
21115.) ac_abs_srcdir=$ac_srcdir;;
21116*)
21117 case $ac_srcdir in
21118 .) ac_abs_srcdir=$ac_abs_builddir;;
21119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21121 esac;;
21122esac
21123case $ac_abs_builddir in
21124.) ac_abs_top_srcdir=$ac_top_srcdir;;
21125*)
21126 case $ac_top_srcdir in
21127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21130 esac;;
21131esac
21132
21133
21134 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21135echo "$as_me: executing $ac_dest commands" >&6;}
21136 case $ac_dest in
21137 default-1 )
21138# Only add multilib support code if we just rebuilt the top-level
21139# Makefile.
21140case " $CONFIG_FILES " in
21141 *" Makefile "*)
21142 ac_file=Makefile . ${multi_basedir}/config-ml.in
21143 ;;
21144esac ;;
21145 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21146 # Strip MF so we end up with the name of the file.
21147 mf=`echo "$mf" | sed -e 's/:.*$//'`
21148 # Check whether this is an Automake generated Makefile or not.
21149 # We used to match only the files named `Makefile.in', but
21150 # some people rename them; so instead we look at the file content.
21151 # Grep'ing the first line is not enough: some people post-process
21152 # each Makefile.in and add a new line on top of each file to say so.
21153 # So let's grep whole file.
21154 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21155 dirpart=`(dirname "$mf") 2>/dev/null ||
21156$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21157 X"$mf" : 'X\(//\)[^/]' \| \
21158 X"$mf" : 'X\(//\)$' \| \
21159 X"$mf" : 'X\(/\)' \| \
21160 . : '\(.\)' 2>/dev/null ||
21161echo X"$mf" |
21162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21164 /^X\(\/\/\)$/{ s//\1/; q; }
21165 /^X\(\/\).*/{ s//\1/; q; }
21166 s/.*/./; q'`
21167 else
21168 continue
21169 fi
21170 # Extract the definition of DEPDIR, am__include, and am__quote
21171 # from the Makefile without running `make'.
21172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21173 test -z "$DEPDIR" && continue
21174 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21175 test -z "am__include" && continue
21176 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21177 # When using ansi2knr, U may be empty or an underscore; expand it
21178 U=`sed -n 's/^U = //p' < "$mf"`
21179 # Find all dependency output files, they are included files with
21180 # $(DEPDIR) in their names. We invoke sed twice because it is the
21181 # simplest approach to changing $(DEPDIR) to its actual value in the
21182 # expansion.
21183 for file in `sed -n "
21184 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21185 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21186 # Make sure the directory exists.
21187 test -f "$dirpart/$file" && continue
21188 fdir=`(dirname "$file") 2>/dev/null ||
21189$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21190 X"$file" : 'X\(//\)[^/]' \| \
21191 X"$file" : 'X\(//\)$' \| \
21192 X"$file" : 'X\(/\)' \| \
21193 . : '\(.\)' 2>/dev/null ||
21194echo X"$file" |
21195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21197 /^X\(\/\/\)$/{ s//\1/; q; }
21198 /^X\(\/\).*/{ s//\1/; q; }
21199 s/.*/./; q'`
21200 { if $as_mkdir_p; then
21201 mkdir -p $dirpart/$fdir
21202 else
21203 as_dir=$dirpart/$fdir
21204 as_dirs=
21205 while test ! -d "$as_dir"; do
21206 as_dirs="$as_dir $as_dirs"
21207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21209 X"$as_dir" : 'X\(//\)[^/]' \| \
21210 X"$as_dir" : 'X\(//\)$' \| \
21211 X"$as_dir" : 'X\(/\)' \| \
21212 . : '\(.\)' 2>/dev/null ||
21213echo X"$as_dir" |
21214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21216 /^X\(\/\/\)$/{ s//\1/; q; }
21217 /^X\(\/\).*/{ s//\1/; q; }
21218 s/.*/./; q'`
21219 done
21220 test ! -n "$as_dirs" || mkdir $as_dirs
21221 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21222echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21223 { (exit 1); exit 1; }; }; }
21224
21225 # echo "creating $dirpart/$file"
21226 echo '# dummy' > "$dirpart/$file"
21227 done
21228done
1cf3d07d
SE
21229 ;;
21230 libtool )
21231
21232 # See if we are running on zsh, and set the options which allow our
21233 # commands through without removal of \ escapes.
21234 if test -n "${ZSH_VERSION+set}" ; then
21235 setopt NO_GLOB_SUBST
21236 fi
21237
21238 cfgfile="${ofile}T"
21239 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21240 $RM "$cfgfile"
21241
21242 cat <<_LT_EOF >> "$cfgfile"
21243#! $SHELL
21244
21245# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21246# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21248# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21249#
21250# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21251# 2006, 2007 Free Software Foundation, Inc.
21252#
21253# This file is part of GNU Libtool:
21254# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21255#
21256# This program is free software; you can redistribute it and/or modify
21257# it under the terms of the GNU General Public License as published by
21258# the Free Software Foundation; either version 2 of the License, or
21259# (at your option) any later version.
21260#
21261# This program is distributed in the hope that it will be useful, but
21262# WITHOUT ANY WARRANTY; without even the implied warranty of
21263# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21264# General Public License for more details.
21265#
21266# You should have received a copy of the GNU General Public License
21267# along with this program; if not, a copy can be downloaded from
21268# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21269# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21270# MA 02110-1301, USA.
21271#
21272# As a special exception to the GNU General Public License, if you
21273# distribute this file as part of a program that contains a
21274# configuration script generated by Autoconf, you may include it under
21275# the same distribution terms that you use for the rest of that program.
21276
21277
21278# The names of the tagged configurations supported by this script.
21279available_tags="FC "
21280
21281# ### BEGIN LIBTOOL CONFIG
21282
21283# Which release of libtool.m4 was used?
21284macro_version=$macro_version
21285macro_revision=$macro_revision
21286
21287# Whether or not to build shared libraries.
21288build_libtool_libs=$enable_shared
21289
21290# Whether or not to build static libraries.
21291build_old_libs=$enable_static
21292
21293# What type of objects to build.
21294pic_mode=$pic_mode
21295
21296# Whether or not to optimize for fast installation.
21297fast_install=$enable_fast_install
21298
21299# The host system.
21300host_alias=$host_alias
21301host=$host
21302host_os=$host_os
21303
21304# The build system.
21305build_alias=$build_alias
21306build=$build
21307build_os=$build_os
21308
21309# A sed program that does not truncate output.
21310SED=$lt_SED
21311
21312# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21313Xsed="\$SED -e 1s/^X//"
21314
21315# A grep program that handles long lines.
21316GREP=$lt_GREP
21317
21318# An ERE matcher.
21319EGREP=$lt_EGREP
21320
21321# A literal string matcher.
21322FGREP=$lt_FGREP
21323
21324# A BSD- or MS-compatible name lister.
21325NM=$lt_NM
21326
21327# Whether we need soft or hard links.
21328LN_S=$lt_LN_S
21329
21330# What is the maximum length of a command?
21331max_cmd_len=$max_cmd_len
21332
21333# Object file suffix (normally "o").
21334objext=$ac_objext
21335
21336# Executable file suffix (normally "").
21337exeext=$exeext
21338
21339# whether the shell understands "unset".
21340lt_unset=$lt_unset
21341
21342# turn spaces into newlines.
21343SP2NL=$lt_lt_SP2NL
21344
21345# turn newlines into spaces.
21346NL2SP=$lt_lt_NL2SP
21347
21348# How to create reloadable object files.
21349reload_flag=$lt_reload_flag
21350reload_cmds=$lt_reload_cmds
21351
21352# Method to check whether dependent libraries are shared objects.
21353deplibs_check_method=$lt_deplibs_check_method
21354
21355# Command to use when deplibs_check_method == "file_magic".
21356file_magic_cmd=$lt_file_magic_cmd
21357
21358# The archiver.
21359AR=$lt_AR
21360AR_FLAGS=$lt_AR_FLAGS
21361
21362# A symbol stripping program.
21363STRIP=$lt_STRIP
21364
21365# Commands used to install an old-style archive.
21366RANLIB=$lt_RANLIB
21367old_postinstall_cmds=$lt_old_postinstall_cmds
21368old_postuninstall_cmds=$lt_old_postuninstall_cmds
21369
21370# A C compiler.
21371LTCC=$lt_CC
21372
21373# LTCC compiler flags.
21374LTCFLAGS=$lt_CFLAGS
21375
21376# Take the output of nm and produce a listing of raw symbols and C names.
21377global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21378
21379# Transform the output of nm in a proper C declaration.
21380global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21381
21382# Transform the output of nm in a C name address pair.
21383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21384
21385# The name of the directory that contains temporary libtool files.
21386objdir=$objdir
21387
21388# Shell to use when invoking shell scripts.
21389SHELL=$lt_SHELL
21390
21391# An echo program that does not interpret backslashes.
21392ECHO=$lt_ECHO
21393
21394# Used to examine libraries when file_magic_cmd begins with "file".
21395MAGIC_CMD=$MAGIC_CMD
21396
21397# Must we lock files when doing compilation?
21398need_locks=$lt_need_locks
21399
21400# Old archive suffix (normally "a").
21401libext=$libext
21402
21403# Shared library suffix (normally ".so").
21404shrext_cmds=$lt_shrext_cmds
21405
21406# The commands to extract the exported symbol list from a shared archive.
21407extract_expsyms_cmds=$lt_extract_expsyms_cmds
21408
21409# Variables whose values should be saved in libtool wrapper scripts and
21410# restored at link time.
21411variables_saved_for_relink=$lt_variables_saved_for_relink
21412
21413# Do we need the "lib" prefix for modules?
21414need_lib_prefix=$need_lib_prefix
21415
21416# Do we need a version for libraries?
21417need_version=$need_version
21418
21419# Library versioning type.
21420version_type=$version_type
21421
21422# Shared library runtime path variable.
21423runpath_var=$runpath_var
21424
21425# Shared library path variable.
21426shlibpath_var=$shlibpath_var
21427
21428# Is shlibpath searched before the hard-coded library search path?
21429shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21430
21431# Format of library name prefix.
21432libname_spec=$lt_libname_spec
21433
21434# List of archive names. First name is the real one, the rest are links.
21435# The last name is the one that the linker finds with -lNAME
21436library_names_spec=$lt_library_names_spec
21437
21438# The coded name of the library, if different from the real name.
21439soname_spec=$lt_soname_spec
21440
21441# Command to use after installation of a shared archive.
21442postinstall_cmds=$lt_postinstall_cmds
21443
21444# Command to use after uninstallation of a shared archive.
21445postuninstall_cmds=$lt_postuninstall_cmds
21446
21447# Commands used to finish a libtool library installation in a directory.
21448finish_cmds=$lt_finish_cmds
21449
21450# As "finish_cmds", except a single script fragment to be evaled but
21451# not shown.
21452finish_eval=$lt_finish_eval
21453
21454# Whether we should hardcode library paths into libraries.
21455hardcode_into_libs=$hardcode_into_libs
21456
21457# Compile-time system search path for libraries.
21458sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21459
21460# Run-time system search path for libraries.
21461sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21462
21463# Whether dlopen is supported.
21464dlopen_support=$enable_dlopen
21465
21466# Whether dlopen of programs is supported.
21467dlopen_self=$enable_dlopen_self
21468
21469# Whether dlopen of statically linked programs is supported.
21470dlopen_self_static=$enable_dlopen_self_static
21471
21472# Commands to strip libraries.
21473old_striplib=$lt_old_striplib
21474striplib=$lt_striplib
21475
21476
21477# The linker used to build libraries.
21478LD=$lt_LD
21479
21480# Commands used to build an old-style archive.
21481old_archive_cmds=$lt_old_archive_cmds
21482
21483# A language specific compiler.
21484CC=$lt_compiler
21485
21486# Is the compiler the GNU compiler?
21487with_gcc=$GCC
21488
21489# Compiler flag to turn off builtin functions.
21490no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21491
21492# How to pass a linker flag through the compiler.
21493wl=$lt_lt_prog_compiler_wl
21494
21495# Additional compiler flags for building library objects.
21496pic_flag=$lt_lt_prog_compiler_pic
21497
21498# Compiler flag to prevent dynamic linking.
21499link_static_flag=$lt_lt_prog_compiler_static
21500
21501# Does compiler simultaneously support -c and -o options?
21502compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21503
21504# Whether or not to add -lc for building shared libraries.
21505build_libtool_need_lc=$archive_cmds_need_lc
21506
21507# Whether or not to disallow shared libs when runtime libs are static.
21508allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21509
21510# Compiler flag to allow reflexive dlopens.
21511export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21512
21513# Compiler flag to generate shared objects directly from archives.
21514whole_archive_flag_spec=$lt_whole_archive_flag_spec
21515
21516# Whether the compiler copes with passing no objects directly.
21517compiler_needs_object=$lt_compiler_needs_object
21518
21519# Create an old-style archive from a shared archive.
21520old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21521
21522# Create a temporary old-style archive to link instead of a shared archive.
21523old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21524
21525# Commands used to build a shared archive.
21526archive_cmds=$lt_archive_cmds
21527archive_expsym_cmds=$lt_archive_expsym_cmds
21528
21529# Commands used to build a loadable module if different from building
21530# a shared archive.
21531module_cmds=$lt_module_cmds
21532module_expsym_cmds=$lt_module_expsym_cmds
21533
21534# Whether we are building with GNU ld or not.
21535with_gnu_ld=$lt_with_gnu_ld
21536
21537# Flag that allows shared libraries with undefined symbols to be built.
21538allow_undefined_flag=$lt_allow_undefined_flag
21539
21540# Flag that enforces no undefined symbols.
21541no_undefined_flag=$lt_no_undefined_flag
21542
21543# Flag to hardcode \$libdir into a binary during linking.
21544# This must work even if \$libdir does not exist
21545hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21546
21547# If ld is used when linking, flag to hardcode \$libdir into a binary
21548# during linking. This must work even if \$libdir does not exist.
21549hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21550
21551# Whether we need a single "-rpath" flag with a separated argument.
21552hardcode_libdir_separator=$lt_hardcode_libdir_separator
21553
21554# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21555# DIR into the resulting binary.
21556hardcode_direct=$hardcode_direct
21557
21558# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21559# DIR into the resulting binary and the resulting library dependency is
21560# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21561# library is relocated.
21562hardcode_direct_absolute=$hardcode_direct_absolute
21563
21564# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21565# into the resulting binary.
21566hardcode_minus_L=$hardcode_minus_L
21567
21568# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21569# into the resulting binary.
21570hardcode_shlibpath_var=$hardcode_shlibpath_var
21571
21572# Set to "yes" if building a shared library automatically hardcodes DIR
21573# into the library and all subsequent libraries and executables linked
21574# against it.
21575hardcode_automatic=$hardcode_automatic
21576
21577# Set to yes if linker adds runtime paths of dependent libraries
21578# to runtime path list.
21579inherit_rpath=$inherit_rpath
21580
21581# Whether libtool must link a program against all its dependency libraries.
21582link_all_deplibs=$link_all_deplibs
21583
21584# Fix the shell variable \$srcfile for the compiler.
21585fix_srcfile_path=$lt_fix_srcfile_path
21586
21587# Set to "yes" if exported symbols are required.
21588always_export_symbols=$always_export_symbols
21589
21590# The commands to list exported symbols.
21591export_symbols_cmds=$lt_export_symbols_cmds
21592
21593# Symbols that should not be listed in the preloaded symbols.
21594exclude_expsyms=$lt_exclude_expsyms
21595
21596# Symbols that must always be exported.
21597include_expsyms=$lt_include_expsyms
21598
21599# Commands necessary for linking programs (against libraries) with templates.
21600prelink_cmds=$lt_prelink_cmds
21601
21602# Specify filename containing input files.
21603file_list_spec=$lt_file_list_spec
21604
21605# How to hardcode a shared library path into an executable.
21606hardcode_action=$hardcode_action
21607
21608# Dependencies to place before and after the objects being linked to
21609# create a shared library.
21610predep_objects=$lt_predep_objects
21611postdep_objects=$lt_postdep_objects
21612predeps=$lt_predeps
21613postdeps=$lt_postdeps
21614
21615# The library search path used internally by the compiler when linking
21616# a shared library.
21617compiler_lib_search_path=$lt_compiler_lib_search_path
21618
21619# ### END LIBTOOL CONFIG
21620
21621_LT_EOF
21622
21623 case $host_os in
21624 aix3*)
21625 cat <<\_LT_EOF >> "$cfgfile"
21626# AIX sometimes has problems with the GCC collect2 program. For some
21627# reason, if we set the COLLECT_NAMES environment variable, the problems
21628# vanish in a puff of smoke.
21629if test "X${COLLECT_NAMES+set}" != Xset; then
21630 COLLECT_NAMES=
21631 export COLLECT_NAMES
21632fi
21633_LT_EOF
21634 ;;
21635 esac
21636
21637
21638ltmain="$ac_aux_dir/ltmain.sh"
21639
21640
21641 # We use sed instead of cat because bash on DJGPP gets confused if
21642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21643 # text mode, it properly converts lines to CR/LF. This bash problem
21644 # is reportedly fixed, but why not run on old versions too?
21645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21646 || (rm -f "$cfgfile"; exit 1)
21647
21648 case $xsi_shell in
21649 yes)
21650 cat << \_LT_EOF >> "$cfgfile"
21651# func_dirname file append nondir_replacement
21652# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21653# otherwise set result to NONDIR_REPLACEMENT.
21654func_dirname ()
21655{
21656 case ${1} in
21657 */*) func_dirname_result="${1%/*}${2}" ;;
21658 * ) func_dirname_result="${3}" ;;
21659 esac
21660}
21661
21662# func_basename file
21663func_basename ()
21664{
21665 func_basename_result="${1##*/}"
21666}
21667
21668# func_stripname prefix suffix name
21669# strip PREFIX and SUFFIX off of NAME.
21670# PREFIX and SUFFIX must not contain globbing or regex special
21671# characters, hashes, percent signs, but SUFFIX may contain a leading
21672# dot (in which case that matches only a dot).
21673func_stripname ()
21674{
21675 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21676 # positional parameters, so assign one to ordinary parameter first.
21677 func_stripname_result=${3}
21678 func_stripname_result=${func_stripname_result#"${1}"}
21679 func_stripname_result=${func_stripname_result%"${2}"}
21680}
21681
21682# func_opt_split
21683func_opt_split ()
21684{
21685 func_opt_split_opt=${1%%=*}
21686 func_opt_split_arg=${1#*=}
21687}
21688
21689# func_lo2o object
21690func_lo2o ()
21691{
21692 case ${1} in
21693 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21694 *) func_lo2o_result=${1} ;;
21695 esac
21696}
21697_LT_EOF
21698 ;;
21699 *) # Bourne compatible functions.
21700 cat << \_LT_EOF >> "$cfgfile"
21701# func_dirname file append nondir_replacement
21702# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21703# otherwise set result to NONDIR_REPLACEMENT.
21704func_dirname ()
21705{
21706 # Extract subdirectory from the argument.
21707 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21708 if test "X$func_dirname_result" = "X${1}"; then
21709 func_dirname_result="${3}"
21710 else
21711 func_dirname_result="$func_dirname_result${2}"
21712 fi
21713}
21714
21715# func_basename file
21716func_basename ()
21717{
21718 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21719}
21720
21721# func_stripname prefix suffix name
21722# strip PREFIX and SUFFIX off of NAME.
21723# PREFIX and SUFFIX must not contain globbing or regex special
21724# characters, hashes, percent signs, but SUFFIX may contain a leading
21725# dot (in which case that matches only a dot).
21726# func_strip_suffix prefix name
21727func_stripname ()
21728{
21729 case ${2} in
21730 .*) func_stripname_result=`$ECHO "X${3}" \
21731 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21732 *) func_stripname_result=`$ECHO "X${3}" \
21733 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21734 esac
21735}
21736
21737# sed scripts:
21738my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21739my_sed_long_arg='1s/^-[^=]*=//'
21740
21741# func_opt_split
21742func_opt_split ()
21743{
21744 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21745 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21746}
21747
21748# func_lo2o object
21749func_lo2o ()
21750{
21751 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21752}
21753_LT_EOF
21754esac
21755
21756case $lt_shell_append in
21757 yes)
21758 cat << \_LT_EOF >> "$cfgfile"
21759
21760# func_append var value
21761# Append VALUE to the end of shell variable VAR.
21762func_append ()
21763{
21764 eval "$1+=\$2"
21765}
21766_LT_EOF
21767 ;;
21768 *)
21769 cat << \_LT_EOF >> "$cfgfile"
21770
21771# func_append var value
21772# Append VALUE to the end of shell variable VAR.
21773func_append ()
21774{
21775 eval "$1=\$$1\$2"
21776}
21777_LT_EOF
21778 ;;
21779 esac
21780
21781
21782 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21783 || (rm -f "$cfgfile"; exit 1)
21784
21785 mv -f "$cfgfile" "$ofile" ||
21786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21787 chmod +x "$ofile"
21788
21789
21790 cat <<_LT_EOF >> "$ofile"
21791
21792# ### BEGIN LIBTOOL TAG CONFIG: FC
21793
21794# The linker used to build libraries.
21795LD=$lt_LD_FC
21796
21797# Commands used to build an old-style archive.
21798old_archive_cmds=$lt_old_archive_cmds_FC
21799
21800# A language specific compiler.
21801CC=$lt_compiler_FC
21802
21803# Is the compiler the GNU compiler?
21804with_gcc=$GCC_FC
21805
21806# Compiler flag to turn off builtin functions.
21807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21808
21809# How to pass a linker flag through the compiler.
21810wl=$lt_lt_prog_compiler_wl_FC
21811
21812# Additional compiler flags for building library objects.
21813pic_flag=$lt_lt_prog_compiler_pic_FC
21814
21815# Compiler flag to prevent dynamic linking.
21816link_static_flag=$lt_lt_prog_compiler_static_FC
21817
21818# Does compiler simultaneously support -c and -o options?
21819compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21820
21821# Whether or not to add -lc for building shared libraries.
21822build_libtool_need_lc=$archive_cmds_need_lc_FC
21823
21824# Whether or not to disallow shared libs when runtime libs are static.
21825allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21826
21827# Compiler flag to allow reflexive dlopens.
21828export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21829
21830# Compiler flag to generate shared objects directly from archives.
21831whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21832
21833# Whether the compiler copes with passing no objects directly.
21834compiler_needs_object=$lt_compiler_needs_object_FC
21835
21836# Create an old-style archive from a shared archive.
21837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21838
21839# Create a temporary old-style archive to link instead of a shared archive.
21840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21841
21842# Commands used to build a shared archive.
21843archive_cmds=$lt_archive_cmds_FC
21844archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21845
21846# Commands used to build a loadable module if different from building
21847# a shared archive.
21848module_cmds=$lt_module_cmds_FC
21849module_expsym_cmds=$lt_module_expsym_cmds_FC
21850
21851# Whether we are building with GNU ld or not.
21852with_gnu_ld=$lt_with_gnu_ld_FC
21853
21854# Flag that allows shared libraries with undefined symbols to be built.
21855allow_undefined_flag=$lt_allow_undefined_flag_FC
21856
21857# Flag that enforces no undefined symbols.
21858no_undefined_flag=$lt_no_undefined_flag_FC
21859
21860# Flag to hardcode \$libdir into a binary during linking.
21861# This must work even if \$libdir does not exist
21862hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21863
21864# If ld is used when linking, flag to hardcode \$libdir into a binary
21865# during linking. This must work even if \$libdir does not exist.
21866hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21867
21868# Whether we need a single "-rpath" flag with a separated argument.
21869hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21870
21871# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21872# DIR into the resulting binary.
21873hardcode_direct=$hardcode_direct_FC
21874
21875# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21876# DIR into the resulting binary and the resulting library dependency is
21877# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21878# library is relocated.
21879hardcode_direct_absolute=$hardcode_direct_absolute_FC
21880
21881# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21882# into the resulting binary.
21883hardcode_minus_L=$hardcode_minus_L_FC
21884
21885# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21886# into the resulting binary.
21887hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21888
21889# Set to "yes" if building a shared library automatically hardcodes DIR
21890# into the library and all subsequent libraries and executables linked
21891# against it.
21892hardcode_automatic=$hardcode_automatic_FC
21893
21894# Set to yes if linker adds runtime paths of dependent libraries
21895# to runtime path list.
21896inherit_rpath=$inherit_rpath_FC
21897
21898# Whether libtool must link a program against all its dependency libraries.
21899link_all_deplibs=$link_all_deplibs_FC
21900
21901# Fix the shell variable \$srcfile for the compiler.
21902fix_srcfile_path=$lt_fix_srcfile_path_FC
21903
21904# Set to "yes" if exported symbols are required.
21905always_export_symbols=$always_export_symbols_FC
21906
21907# The commands to list exported symbols.
21908export_symbols_cmds=$lt_export_symbols_cmds_FC
21909
21910# Symbols that should not be listed in the preloaded symbols.
21911exclude_expsyms=$lt_exclude_expsyms_FC
21912
21913# Symbols that must always be exported.
21914include_expsyms=$lt_include_expsyms_FC
21915
21916# Commands necessary for linking programs (against libraries) with templates.
21917prelink_cmds=$lt_prelink_cmds_FC
21918
21919# Specify filename containing input files.
21920file_list_spec=$lt_file_list_spec_FC
21921
21922# How to hardcode a shared library path into an executable.
21923hardcode_action=$hardcode_action_FC
21924
21925# Dependencies to place before and after the objects being linked to
21926# create a shared library.
21927predep_objects=$lt_predep_objects_FC
21928postdep_objects=$lt_postdep_objects_FC
21929predeps=$lt_predeps_FC
21930postdeps=$lt_postdeps_FC
21931
21932# The library search path used internally by the compiler when linking
21933# a shared library.
21934compiler_lib_search_path=$lt_compiler_lib_search_path_FC
21935
21936# ### END LIBTOOL TAG CONFIG: FC
21937_LT_EOF
21938
18cbfd85
PB
21939 ;;
21940 gstdint.h )
21941if test "$GCC" = yes; then
21942 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
21943else
21944 echo "/* generated for $CC */" > tmp-stdint.h
21945fi
21946
21947sed 's/^ *//' >> tmp-stdint.h <<EOF
21948
21949 #ifndef GCC_GENERATED_STDINT_H
21950 #define GCC_GENERATED_STDINT_H 1
21951
21952 #include <sys/types.h>
21953EOF
21954
21955if test "$acx_cv_header_stdint" != stdint.h; then
21956 echo "#include <stddef.h>" >> tmp-stdint.h
21957fi
21958if test "$acx_cv_header_stdint" != stddef.h; then
21959 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
21960fi
21961
21962sed 's/^ *//' >> tmp-stdint.h <<EOF
21963 /* glibc uses these symbols as guards to prevent redefinitions. */
21964 #ifdef __int8_t_defined
21965 #define _INT8_T
21966 #define _INT16_T
21967 #define _INT32_T
21968 #endif
21969 #ifdef __uint32_t_defined
21970 #define _UINT32_T
21971 #endif
21972
21973EOF
21974
21975# ----------------- done header, emit basic int types -------------
21976if test "$acx_cv_header_stdint" = stddef.h; then
21977 sed 's/^ *//' >> tmp-stdint.h <<EOF
21978
21979 #ifndef _UINT8_T
21980 #define _UINT8_T
1cf3d07d
SE
21981 #ifndef __uint8_t_defined
21982 #define __uint8_t_defined
18cbfd85
PB
21983 typedef unsigned $acx_cv_type_int8_t uint8_t;
21984 #endif
1cf3d07d 21985 #endif
18cbfd85
PB
21986
21987 #ifndef _UINT16_T
21988 #define _UINT16_T
1cf3d07d
SE
21989 #ifndef __uint16_t_defined
21990 #define __uint16_t_defined
18cbfd85
PB
21991 typedef unsigned $acx_cv_type_int16_t uint16_t;
21992 #endif
1cf3d07d 21993 #endif
18cbfd85
PB
21994
21995 #ifndef _UINT32_T
21996 #define _UINT32_T
1cf3d07d
SE
21997 #ifndef __uint32_t_defined
21998 #define __uint32_t_defined
18cbfd85
PB
21999 typedef unsigned $acx_cv_type_int32_t uint32_t;
22000 #endif
1cf3d07d 22001 #endif
18cbfd85
PB
22002
22003 #ifndef _INT8_T
22004 #define _INT8_T
1cf3d07d
SE
22005 #ifndef __int8_t_defined
22006 #define __int8_t_defined
18cbfd85
PB
22007 typedef $acx_cv_type_int8_t int8_t;
22008 #endif
1cf3d07d 22009 #endif
18cbfd85
PB
22010
22011 #ifndef _INT16_T
22012 #define _INT16_T
1cf3d07d
SE
22013 #ifndef __int16_t_defined
22014 #define __int16_t_defined
18cbfd85
PB
22015 typedef $acx_cv_type_int16_t int16_t;
22016 #endif
1cf3d07d 22017 #endif
18cbfd85
PB
22018
22019 #ifndef _INT32_T
22020 #define _INT32_T
1cf3d07d
SE
22021 #ifndef __int32_t_defined
22022 #define __int32_t_defined
18cbfd85
PB
22023 typedef $acx_cv_type_int32_t int32_t;
22024 #endif
1cf3d07d 22025 #endif
18cbfd85
PB
22026EOF
22027elif test "$ac_cv_type_u_int32_t" = yes; then
22028 sed 's/^ *//' >> tmp-stdint.h <<EOF
22029
22030 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22031 #ifndef _INT8_T
22032 #define _INT8_T
22033 #endif
22034 #ifndef _INT16_T
22035 #define _INT16_T
22036 #endif
22037 #ifndef _INT32_T
22038 #define _INT32_T
22039 #endif
22040
22041 #ifndef _UINT8_T
22042 #define _UINT8_T
1cf3d07d
SE
22043 #ifndef __uint8_t_defined
22044 #define __uint8_t_defined
18cbfd85
PB
22045 typedef u_int8_t uint8_t;
22046 #endif
1cf3d07d 22047 #endif
18cbfd85
PB
22048
22049 #ifndef _UINT16_T
22050 #define _UINT16_T
1cf3d07d
SE
22051 #ifndef __uint16_t_defined
22052 #define __uint16_t_defined
18cbfd85
PB
22053 typedef u_int16_t uint16_t;
22054 #endif
1cf3d07d 22055 #endif
18cbfd85
PB
22056
22057 #ifndef _UINT32_T
22058 #define _UINT32_T
1cf3d07d
SE
22059 #ifndef __uint32_t_defined
22060 #define __uint32_t_defined
18cbfd85
PB
22061 typedef u_int32_t uint32_t;
22062 #endif
1cf3d07d 22063 #endif
18cbfd85
PB
22064EOF
22065else
22066 sed 's/^ *//' >> tmp-stdint.h <<EOF
22067
22068 /* Some systems have guard macros to prevent redefinitions, define them. */
22069 #ifndef _INT8_T
22070 #define _INT8_T
22071 #endif
22072 #ifndef _INT16_T
22073 #define _INT16_T
22074 #endif
22075 #ifndef _INT32_T
22076 #define _INT32_T
22077 #endif
22078 #ifndef _UINT8_T
22079 #define _UINT8_T
22080 #endif
22081 #ifndef _UINT16_T
22082 #define _UINT16_T
22083 #endif
22084 #ifndef _UINT32_T
22085 #define _UINT32_T
22086 #endif
22087EOF
22088fi
22089
22090# ------------- done basic int types, emit int64_t types ------------
22091if test "$ac_cv_type_uint64_t" = yes; then
22092 sed 's/^ *//' >> tmp-stdint.h <<EOF
22093
22094 /* system headers have good uint64_t and int64_t */
22095 #ifndef _INT64_T
22096 #define _INT64_T
22097 #endif
22098 #ifndef _UINT64_T
22099 #define _UINT64_T
22100 #endif
22101EOF
22102elif test "$ac_cv_type_u_int64_t" = yes; then
22103 sed 's/^ *//' >> tmp-stdint.h <<EOF
22104
22105 /* system headers have an u_int64_t (and int64_t) */
22106 #ifndef _INT64_T
22107 #define _INT64_T
22108 #endif
22109 #ifndef _UINT64_T
22110 #define _UINT64_T
1cf3d07d
SE
22111 #ifndef __uint64_t_defined
22112 #define __uint64_t_defined
18cbfd85
PB
22113 typedef u_int64_t uint64_t;
22114 #endif
1cf3d07d 22115 #endif
18cbfd85
PB
22116EOF
22117elif test -n "$acx_cv_type_int64_t"; then
22118 sed 's/^ *//' >> tmp-stdint.h <<EOF
22119
22120 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22121 #ifndef _INT64_T
22122 #define _INT64_T
22123 typedef $acx_cv_type_int64_t int64_t;
22124 #endif
22125 #ifndef _UINT64_T
22126 #define _UINT64_T
1cf3d07d
SE
22127 #ifndef __uint64_t_defined
22128 #define __uint64_t_defined
18cbfd85
PB
22129 typedef unsigned $acx_cv_type_int64_t uint64_t;
22130 #endif
1cf3d07d 22131 #endif
18cbfd85
PB
22132EOF
22133else
22134 sed 's/^ *//' >> tmp-stdint.h <<EOF
22135
22136 /* some common heuristics for int64_t, using compiler-specific tests */
22137 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22138 #ifndef _INT64_T
22139 #define _INT64_T
1cf3d07d 22140 #ifndef __int64_t_defined
18cbfd85
PB
22141 typedef long long int64_t;
22142 #endif
1cf3d07d 22143 #endif
18cbfd85
PB
22144 #ifndef _UINT64_T
22145 #define _UINT64_T
22146 typedef unsigned long long uint64_t;
22147 #endif
22148
22149 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22150 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22151 does not implement __extension__. But that compiler doesn't define
22152 __GNUC_MINOR__. */
22153 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22154 # define __extension__
22155 # endif
22156
22157 # ifndef _INT64_T
22158 # define _INT64_T
22159 __extension__ typedef long long int64_t;
22160 # endif
22161 # ifndef _UINT64_T
22162 # define _UINT64_T
22163 __extension__ typedef unsigned long long uint64_t;
22164 # endif
22165
22166 #elif !defined __STRICT_ANSI__
22167 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22168
22169 # ifndef _INT64_T
22170 # define _INT64_T
22171 typedef __int64 int64_t;
22172 # endif
22173 # ifndef _UINT64_T
22174 # define _UINT64_T
22175 typedef unsigned __int64 uint64_t;
22176 # endif
22177 # endif /* compiler */
22178
22179 #endif /* ANSI version */
22180EOF
22181fi
22182
22183# ------------- done int64_t types, emit intptr types ------------
22184if test "$ac_cv_type_uintptr_t" != yes; then
22185 sed 's/^ *//' >> tmp-stdint.h <<EOF
22186
22187 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
1cf3d07d 22188 #ifndef __uintptr_t_defined
18cbfd85 22189 typedef u$acx_cv_type_intptr_t uintptr_t;
1cf3d07d
SE
22190 #endif
22191 #ifndef __intptr_t_defined
18cbfd85 22192 typedef $acx_cv_type_intptr_t intptr_t;
1cf3d07d 22193 #endif
18cbfd85
PB
22194EOF
22195fi
22196
22197# ------------- done intptr types, emit int_least types ------------
22198if test "$ac_cv_type_int_least32_t" != yes; then
22199 sed 's/^ *//' >> tmp-stdint.h <<EOF
22200
22201 /* Define int_least types */
22202 typedef int8_t int_least8_t;
22203 typedef int16_t int_least16_t;
22204 typedef int32_t int_least32_t;
22205 #ifdef _INT64_T
22206 typedef int64_t int_least64_t;
22207 #endif
22208
22209 typedef uint8_t uint_least8_t;
22210 typedef uint16_t uint_least16_t;
22211 typedef uint32_t uint_least32_t;
22212 #ifdef _UINT64_T
22213 typedef uint64_t uint_least64_t;
22214 #endif
22215EOF
22216fi
22217
22218# ------------- done intptr types, emit int_fast types ------------
22219if test "$ac_cv_type_int_fast32_t" != yes; then
22220 sed 's/^ *//' >> tmp-stdint.h <<EOF
22221
22222 /* Define int_fast types. short is often slow */
22223 typedef int8_t int_fast8_t;
22224 typedef int int_fast16_t;
22225 typedef int32_t int_fast32_t;
22226 #ifdef _INT64_T
22227 typedef int64_t int_fast64_t;
22228 #endif
22229
22230 typedef uint8_t uint_fast8_t;
22231 typedef unsigned int uint_fast16_t;
22232 typedef uint32_t uint_fast32_t;
22233 #ifdef _UINT64_T
22234 typedef uint64_t uint_fast64_t;
22235 #endif
22236EOF
22237fi
22238
22239if test "$ac_cv_type_uintmax_t" != yes; then
22240 sed 's/^ *//' >> tmp-stdint.h <<EOF
22241
22242 /* Define intmax based on what we found */
22243 #ifdef _INT64_T
22244 typedef int64_t intmax_t;
22245 #else
22246 typedef long intmax_t;
22247 #endif
22248 #ifdef _UINT64_T
22249 typedef uint64_t uintmax_t;
22250 #else
22251 typedef unsigned long uintmax_t;
22252 #endif
22253EOF
22254fi
22255
22256sed 's/^ *//' >> tmp-stdint.h <<EOF
22257
22258 #endif /* GCC_GENERATED_STDINT_H */
22259EOF
22260
22261if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22262 rm -f tmp-stdint.h
22263else
22264 mv -f tmp-stdint.h gstdint.h
22265fi
22266
953ff289
DN
22267 ;;
22268 esac
22269done
22270_ACEOF
22271
22272cat >>$CONFIG_STATUS <<\_ACEOF
22273
22274{ (exit 0); exit 0; }
22275_ACEOF
22276chmod +x $CONFIG_STATUS
22277ac_clean_files=$ac_clean_files_save
22278
22279
22280# configure is writing to config.log, and then calls config.status.
22281# config.status does its own redirection, appending to config.log.
22282# Unfortunately, on DOS this fails, as config.log is still kept open
22283# by configure, so config.status won't be able to write to it; its
22284# output is simply discarded. So we exec the FD to /dev/null,
22285# effectively closing config.log, so it can be properly (re)opened and
22286# appended to by config.status. When coming back to configure, we
22287# need to make the FD available again.
22288if test "$no_create" != yes; then
22289 ac_cs_success=:
22290 ac_config_status_args=
22291 test "$silent" = yes &&
22292 ac_config_status_args="$ac_config_status_args --quiet"
22293 exec 5>/dev/null
22294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22295 exec 5>>config.log
22296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22297 # would make configure fail if this is the last instruction.
22298 $ac_cs_success || { (exit 1); exit 1; }
22299fi
22300
This page took 2.244323 seconds and 5 git commands to generate.