]> gcc.gnu.org Git - gcc.git/blame - libgomp/configure
Backport from upstream 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
6b4a97ed 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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 OMP_LOCK_25_SIZE OMP_LOCK_25_ALIGN OMP_NEST_LOCK_25_SIZE OMP_NEST_LOCK_25_ALIGN OMP_LOCK_25_KIND OMP_NEST_LOCK_25_KIND LIBOBJS LTLIBOBJS'
953ff289 461ac_subst_files=''
18c04407 462ac_pwd=`pwd`
953ff289
DN
463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
502ac_prev=
503for ac_option
504do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805fi
806
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828done
829
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
1cf3d07d 871 if test ! -r $srcdir/$ac_unique_file; then
953ff289
DN
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
1cf3d07d 877if test ! -r $srcdir/$ac_unique_file; then
953ff289
DN
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885fi
1cf3d07d 886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
953ff289
DN
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
1cf3d07d
SE
902ac_env_CPP_set=${CPP+set}
903ac_env_CPP_value=$CPP
904ac_cv_env_CPP_set=${CPP+set}
905ac_cv_env_CPP_value=$CPP
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
953ff289
DN
910ac_env_FC_set=${FC+set}
911ac_env_FC_value=$FC
912ac_cv_env_FC_set=${FC+set}
913ac_cv_env_FC_value=$FC
914ac_env_FCFLAGS_set=${FCFLAGS+set}
915ac_env_FCFLAGS_value=$FCFLAGS
916ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
917ac_cv_env_FCFLAGS_value=$FCFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
953ff289
DN
922
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
980
981 cat <<\_ACEOF
982
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
993fi
994
995if test -n "$ac_init_help"; then
996 case $ac_init_help in
997 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
998 esac
999 cat <<\_ACEOF
1000
1001Optional Features:
1002 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1003 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1004 --enable-version-specific-runtime-libs
1005 Specify that runtime libraries should be installed
1006 in a compiler-specific directory [default=no]
627ab4b8
TT
1007 --enable-generated-files-in-srcdir
1008 put copies of generated files in source dir intended
1009 for creating source tarballs for users without
1010 texinfo bison or flex. [default=no]
953ff289
DN
1011 --enable-multilib build many library versions (default)
1012 --disable-dependency-tracking speeds up one-time build
1013 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
1014 --enable-shared[=PKGS]
1015 build shared libraries [default=yes]
1016 --enable-static[=PKGS]
1017 build static libraries [default=yes]
1018 --enable-fast-install[=PKGS]
1019 optimize for fast installation [default=yes]
953ff289 1020 --disable-libtool-lock avoid locking (might break parallel builds)
c41303c6
RH
1021 --enable-maintainer-mode enable make rules and dependencies not useful
1022 (and sometimes confusing) to the casual installer
0f3e711e
JJ
1023 --enable-linux-futex use the Linux futex system call
1024 [default=default]
2fb31455 1025 --enable-tls Use thread-local storage [default=yes]
953ff289
DN
1026 --enable-symvers=STYLE enables symbol versioning of the shared library
1027 [default=yes]
1028
1029Optional Packages:
1030 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1031 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1032 --with-pic try to use only PIC/non-PIC objects [default=use
1033 both]
1034 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
953ff289
DN
1035
1036Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1cf3d07d 1043 CPP C preprocessor
953ff289
DN
1044 FC Fortran compiler command
1045 FCFLAGS Fortran compiler flags
953ff289
DN
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1059
1060if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1067
1068case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082esac
1083
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1121esac
1122
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137 fi
d349482e 1138 cd $ac_popdir
953ff289
DN
1139 done
1140fi
1141
1142test -n "$ac_init_help" && exit 0
1143if $ac_init_version; then
1144 cat <<\_ACEOF
1145GNU OpenMP Runtime Library configure 1.0
1146generated by GNU Autoconf 2.59
1147
1148Copyright (C) 2003 Free Software Foundation, Inc.
1149This configure script is free software; the Free Software Foundation
1150gives unlimited permission to copy, distribute and modify it.
1151_ACEOF
1152 exit 0
1153fi
1154exec 5>config.log
1155cat >&5 <<_ACEOF
1156This file contains any messages produced by compilers while
1157running configure, to aid debugging if configure makes a mistake.
1158
1159It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1160generated by GNU Autoconf 2.59. Invocation command line was
1161
1162 $ $0 $@
1163
1164_ACEOF
1165{
1166cat <<_ASUNAME
1167## --------- ##
1168## Platform. ##
1169## --------- ##
1170
1171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179
1180/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1184/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187
1188_ASUNAME
1189
1190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191for as_dir in $PATH
1192do
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196done
1197
1198} >&5
1199
1200cat >&5 <<_ACEOF
1201
1202
1203## ----------- ##
1204## Core tests. ##
1205## ----------- ##
1206
1207_ACEOF
1208
1209
1210# Keep a trace of the command line.
1211# Strip out --no-create and --no-recursion so they do not pile up.
1212# Strip out --silent because we don't want to record it for future runs.
1213# Also quote any args containing shell meta-characters.
1214# Make two passes to allow for proper duplicate-argument suppression.
1215ac_configure_args=
1216ac_configure_args0=
1217ac_configure_args1=
1218ac_sep=
1219ac_must_keep_next=false
1220for ac_pass in 1 2
1221do
1222 for ac_arg
1223 do
1224 case $ac_arg in
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 continue ;;
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 esac
1232 case $ac_pass in
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 2)
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1238 else
1239 case $ac_arg in
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 esac
1247 ;;
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1250 fi
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1254 ;;
1255 esac
1256 done
1257done
1258$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261# When interrupted or exit'd, cleanup temporary files, and complete
1262# config.log. We remove comments because anyway the quotes in there
1263# would cause problems or look ugly.
1264# WARNING: Be sure not to use single quotes in there, as some shells,
1265# such as our DU 5.0 friend, will then `close' the trap.
1266trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1268 {
1269 echo
1270
1271 cat <<\_ASBOX
1272## ---------------- ##
1273## Cache variables. ##
1274## ---------------- ##
1275_ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
1278{
1279 (set) 2>&1 |
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 *ac_space=\ *)
1282 sed -n \
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 ;;
1286 *)
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 ;;
1290 esac;
1291}
1292 echo
1293
1294 cat <<\_ASBOX
1295## ----------------- ##
1296## Output variables. ##
1297## ----------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306
1307 if test -n "$ac_subst_files"; then
1308 cat <<\_ASBOX
1309## ------------- ##
1310## Output files. ##
1311## ------------- ##
1312_ASBOX
1313 echo
1314 for ac_var in $ac_subst_files
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1320 fi
1321
1322 if test -s confdefs.h; then
1323 cat <<\_ASBOX
1324## ----------- ##
1325## confdefs.h. ##
1326## ----------- ##
1327_ASBOX
1328 echo
1329 sed "/^$/d" confdefs.h | sort
1330 echo
1331 fi
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1335 } >&5
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 exit $exit_status
1339 ' 0
1340for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342done
1343ac_signal=0
1344
1345# confdefs.h avoids OS command line length limits that DEFS can exceed.
1346rm -rf conftest* confdefs.h
1347# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348echo >confdefs.h
1349
1350# Predefined preprocessor variables.
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_NAME "$PACKAGE_NAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_VERSION "$PACKAGE_VERSION"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_STRING "$PACKAGE_STRING"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374_ACEOF
1375
1376
1377# Let the site file select an alternate cache file if it wants to.
1378# Prefer explicitly selected file to automatically selected ones.
1379if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 else
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 fi
1385fi
1386for ac_site_file in $CONFIG_SITE; do
1387 if test -r "$ac_site_file"; then
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
1391 . "$ac_site_file"
1392 fi
1393done
1394
1395if test -r "$cache_file"; then
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1404 esac
1405 fi
1406else
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1410fi
1411
1412# Check that the precious variables saved in the cache have kept the same
1413# value.
1414ac_cache_corrupted=false
1415for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1421 case $ac_old_set,$ac_new_set in
1422 set,)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,set)
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1431 *)
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
953ff289 1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1444 fi
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448echo "$as_me: current value: \`$ac_new_val'" >&2;}
953ff289
DN
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1462 fi
1463done
1464if $ac_cache_corrupted; then
18c04407
RW
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
953ff289
DN
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1472fi
1473
1474ac_ext=c
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
18c04407
RW
1502
1503
1504
953ff289
DN
1505
1506
1507
1508
1509 ac_config_headers="$ac_config_headers config.h"
1510
1511
1512# -------
1513# Options
1514# -------
1515
1516echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1517echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1518 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1519if test "${enable_version_specific_runtime_libs+set}" = set; then
1520 enableval="$enable_version_specific_runtime_libs"
1521
1522 case "$enableval" in
1523 yes|no) ;;
1524 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1525echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1526 { (exit 1); exit 1; }; } ;;
1527 esac
1528
1529else
1530 enable_version_specific_runtime_libs=no
1531fi;
1532
1533echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1534echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1535
627ab4b8
TT
1536# We would like our source tree to be readonly. However when releases or
1537# pre-releases are generated, the flex/bison generated files as well as the
1538# various formats of manuals need to be included along with the rest of the
1539# sources. Therefore we have --enable-generated-files-in-srcdir to do
1540# just that.
1541echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1542echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1543 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1544if test "${enable_generated_files_in_srcdir+set}" = set; then
1545 enableval="$enable_generated_files_in_srcdir"
1546
1547 case "$enableval" in
1548 yes|no) ;;
1549 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1550echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1551 { (exit 1); exit 1; }; } ;;
1552 esac
1553
1554else
1555 enable_generated_files_in_srcdir=no
1556fi;
1557
1558echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1559echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1560
1561
1562if test "$enable_generated_files_in_srcdir" = yes; then
1563 GENINSRC_TRUE=
1564 GENINSRC_FALSE='#'
1565else
1566 GENINSRC_TRUE='#'
1567 GENINSRC_FALSE=
1568fi
1569
1570
1571
953ff289
DN
1572# -------
1573# -------
1574
1575# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1576#
1577# You will slowly go insane if you do not grok the following fact: when
1578# building this library, the top-level /target/ becomes the library's /host/.
1579#
1580# configure then causes --target to default to --host, exactly like any
1581# other package using autoconf. Therefore, 'target' and 'host' will
1582# always be the same. This makes sense both for native and cross compilers
1583# just think about it for a little while. :-)
1584#
1585# Also, if this library is being configured as part of a cross compiler, the
1586# top-level configure script will pass the "real" host as $with_cross_host.
1587#
1588# Do not delete or change the following two lines. For why, see
1589# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1590ac_aux_dir=
1591for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1592 if test -f $ac_dir/install-sh; then
1593 ac_aux_dir=$ac_dir
1594 ac_install_sh="$ac_aux_dir/install-sh -c"
1595 break
1596 elif test -f $ac_dir/install.sh; then
1597 ac_aux_dir=$ac_dir
1598 ac_install_sh="$ac_aux_dir/install.sh -c"
1599 break
1600 elif test -f $ac_dir/shtool; then
1601 ac_aux_dir=$ac_dir
1602 ac_install_sh="$ac_aux_dir/shtool install -c"
1603 break
1604 fi
1605done
1606if test -z "$ac_aux_dir"; then
1607 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1608echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1609 { (exit 1); exit 1; }; }
1610fi
1611ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1614
1615# Make sure we can run config.sub.
1616$ac_config_sub sun4 >/dev/null 2>&1 ||
1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621echo "$as_me:$LINENO: checking build system type" >&5
1622echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 ac_cv_build_alias=$build_alias
1627test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640echo "${ECHO_T}$ac_cv_build" >&6
1641build=$ac_cv_build
1642build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647echo "$as_me:$LINENO: checking host system type" >&5
1648echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 ac_cv_host_alias=$host_alias
1653test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1659
1660fi
1661echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662echo "${ECHO_T}$ac_cv_host" >&6
1663host=$ac_cv_host
1664host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669echo "$as_me:$LINENO: checking target system type" >&5
1670echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674 ac_cv_target_alias=$target_alias
1675test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1681
1682fi
1683echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684echo "${ECHO_T}$ac_cv_target" >&6
1685target=$ac_cv_target
1686target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691# The aliases save the names the user supplied, while $host etc.
1692# will get canonicalized.
1693test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1695 NONENONEs,x,x, &&
1696 program_prefix=${target_alias}-
1697target_alias=${target_alias-$host_alias}
1698
1699# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1700# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1701# 1.9.0: minimum required version
1702# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1703# of other PACKAGE_* variables will, however, and there's nothing
1704# we can do about that; they come from AC_INIT).
1705# foreign: we don't follow the normal rules for GNU packages (no COPYING
1706# file in the top srcdir, etc, etc), so stop complaining.
953ff289
DN
1707# -Wall: turns on all automake warnings...
1708# -Wno-portability: ...except this one, since GNU make is required.
1709# -Wno-override: ... and this one, since we do want this in testsuite.
1710am__api_version="1.9"
1711# Find a good install program. We prefer a C program (faster),
1712# so one script is as good as another. But avoid the broken or
1713# incompatible versions:
1714# SysV /etc/install, /usr/sbin/install
1715# SunOS /usr/etc/install
1716# IRIX /sbin/install
1717# AIX /bin/install
1718# AmigaOS /C/install, which installs bootblocks on floppy discs
1719# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722# OS/2's system install, which has a completely different semantic
1723# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1724# Reject install programs that cannot install multiple files.
953ff289
DN
1725echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1726echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1727if test -z "$INSTALL"; then
1728if test "${ac_cv_path_install+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 # Account for people who put trailing slashes in PATH elements.
1737case $as_dir/ in
1738 ./ | .// | /cC/* | \
1739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1740 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1741 /usr/ucb/* ) ;;
1742 *)
1743 # OSF1 and SCO ODT 3.0 have their own names for install.
1744 # Don't use installbsd from OSF since it installs stuff as root
1745 # by default.
1746 for ac_prog in ginstall scoinst install; do
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1749 if test $ac_prog = install &&
1750 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751 # AIX install. It has an incompatible calling convention.
1752 :
1753 elif test $ac_prog = install &&
1754 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755 # program-specific install script used by HP pwplus--don't use.
1756 :
1757 else
38d24731
RW
1758 rm -rf conftest.one conftest.two conftest.dir
1759 echo one > conftest.one
1760 echo two > conftest.two
1761 mkdir conftest.dir
1762 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1763 test -s conftest.one && test -s conftest.two &&
1764 test -s conftest.dir/conftest.one &&
1765 test -s conftest.dir/conftest.two
1766 then
1767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1768 break 3
1769 fi
953ff289
DN
1770 fi
1771 fi
1772 done
1773 done
1774 ;;
1775esac
1776done
1777
38d24731 1778rm -rf conftest.one conftest.two conftest.dir
953ff289
DN
1779
1780fi
1781 if test "${ac_cv_path_install+set}" = set; then
1782 INSTALL=$ac_cv_path_install
1783 else
38d24731
RW
1784 # As a last resort, use the slow shell script. Don't cache a
1785 # value for INSTALL within a source directory, because that will
953ff289 1786 # break other packages using the cache if that directory is
38d24731 1787 # removed, or if the value is a relative name.
953ff289
DN
1788 INSTALL=$ac_install_sh
1789 fi
1790fi
1791echo "$as_me:$LINENO: result: $INSTALL" >&5
1792echo "${ECHO_T}$INSTALL" >&6
1793
1794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1795# It thinks the first close brace ends the variable substitution.
1796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1797
1798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1799
1800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1801
1802echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1803echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1804# Just in case
1805sleep 1
1806echo timestamp > conftest.file
1807# Do `set' in a subshell so we don't clobber the current shell's
1808# arguments. Must try -L first in case configure is actually a
1809# symlink; some systems play weird games with the mod time of symlinks
1810# (eg FreeBSD returns the mod time of the symlink's containing
1811# directory).
1812if (
1813 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1814 if test "$*" = "X"; then
1815 # -L didn't work.
1816 set X `ls -t $srcdir/configure conftest.file`
1817 fi
1818 rm -f conftest.file
1819 if test "$*" != "X $srcdir/configure conftest.file" \
1820 && test "$*" != "X conftest.file $srcdir/configure"; then
1821
1822 # If neither matched, then we have a broken ls. This can happen
1823 # if, for instance, CONFIG_SHELL is bash and it inherits a
1824 # broken ls alias from the environment. This has actually
1825 # happened. Such a system could not be considered "sane".
1826 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1827alias in your environment" >&5
1828echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1829alias in your environment" >&2;}
1830 { (exit 1); exit 1; }; }
1831 fi
1832
1833 test "$2" = conftest.file
1834 )
1835then
1836 # Ok.
1837 :
1838else
1839 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1840Check your system clock" >&5
1841echo "$as_me: error: newly created file is older than distributed files!
1842Check your system clock" >&2;}
1843 { (exit 1); exit 1; }; }
1844fi
1845echo "$as_me:$LINENO: result: yes" >&5
1846echo "${ECHO_T}yes" >&6
1847test "$program_prefix" != NONE &&
1848 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1849# Use a double $ so make ignores it.
1850test "$program_suffix" != NONE &&
1851 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1852# Double any \ or $. echo might interpret backslashes.
1853# By default was `s,x,x', remove it if useless.
1854cat <<\_ACEOF >conftest.sed
1855s/[\\$]/&&/g;s/;s,x,x,$//
1856_ACEOF
1857program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1858rm conftest.sed
1859
1860# expand $ac_aux_dir to an absolute path
1861am_aux_dir=`cd $ac_aux_dir && pwd`
1862
1863test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1864# Use eval to expand $SHELL
1865if eval "$MISSING --run true"; then
1866 am_missing_run="$MISSING --run "
1867else
1868 am_missing_run=
1869 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1870echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1871fi
1872
1873if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1874 # We used to keeping the `.' as first argument, in order to
1875 # allow $(mkdir_p) to be used without argument. As in
1876 # $(mkdir_p) $(somedir)
1877 # where $(somedir) is conditionally defined. However this is wrong
1878 # for two reasons:
1879 # 1. if the package is installed by a user who cannot write `.'
1880 # make install will fail,
1881 # 2. the above comment should most certainly read
1882 # $(mkdir_p) $(DESTDIR)$(somedir)
1883 # so it does not work when $(somedir) is undefined and
1884 # $(DESTDIR) is not.
1885 # To support the latter case, we have to write
1886 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1887 # so the `.' trick is pointless.
1888 mkdir_p='mkdir -p --'
1889else
1890 # On NextStep and OpenStep, the `mkdir' command does not
1891 # recognize any option. It will interpret all options as
1892 # directories to create, and then abort because `.' already
1893 # exists.
1894 for d in ./-p ./--version;
1895 do
1896 test -d $d && rmdir $d
1897 done
1898 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1899 if test -f "$ac_aux_dir/mkinstalldirs"; then
1900 mkdir_p='$(mkinstalldirs)'
1901 else
1902 mkdir_p='$(install_sh) -d'
1903 fi
1904fi
1905
1906for ac_prog in gawk mawk nawk awk
1907do
1908 # Extract the first word of "$ac_prog", so it can be a program name with args.
1909set dummy $ac_prog; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_AWK+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915 if test -n "$AWK"; then
1916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_AWK="$ac_prog"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1928 fi
1929done
1930done
1931
1932fi
1933fi
1934AWK=$ac_cv_prog_AWK
1935if test -n "$AWK"; then
1936 echo "$as_me:$LINENO: result: $AWK" >&5
1937echo "${ECHO_T}$AWK" >&6
1938else
1939 echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943 test -n "$AWK" && break
1944done
1945
1946echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1947echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1948set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1949if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 cat >conftest.make <<\_ACEOF
1953all:
1954 @echo 'ac_maketemp="$(MAKE)"'
1955_ACEOF
1956# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1957eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1958if test -n "$ac_maketemp"; then
1959 eval ac_cv_prog_make_${ac_make}_set=yes
1960else
1961 eval ac_cv_prog_make_${ac_make}_set=no
1962fi
1963rm -f conftest.make
1964fi
1965if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1966 echo "$as_me:$LINENO: result: yes" >&5
1967echo "${ECHO_T}yes" >&6
1968 SET_MAKE=
1969else
1970 echo "$as_me:$LINENO: result: no" >&5
1971echo "${ECHO_T}no" >&6
1972 SET_MAKE="MAKE=${MAKE-make}"
1973fi
1974
1975rm -rf .tst 2>/dev/null
1976mkdir .tst 2>/dev/null
1977if test -d .tst; then
1978 am__leading_dot=.
1979else
1980 am__leading_dot=_
1981fi
1982rmdir .tst 2>/dev/null
1983
1984# test to see if srcdir already configured
1985if test "`cd $srcdir && pwd`" != "`pwd`" &&
1986 test -f $srcdir/config.status; then
1987 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1988echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1989 { (exit 1); exit 1; }; }
1990fi
1991
1992# test whether we have cygpath
1993if test -z "$CYGPATH_W"; then
1994 if (cygpath --version) >/dev/null 2>/dev/null; then
1995 CYGPATH_W='cygpath -w'
1996 else
1997 CYGPATH_W=echo
1998 fi
1999fi
2000
2001
2002# Define the identity of the package.
2003 PACKAGE='libgomp'
2004 VERSION='1.0'
2005
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE "$PACKAGE"
2009_ACEOF
2010
2011
2012cat >>confdefs.h <<_ACEOF
2013#define VERSION "$VERSION"
2014_ACEOF
2015
2016# Some tools Automake needs.
2017
2018ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2019
2020
2021AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2022
2023
2024AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2025
2026
2027AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2028
2029
2030MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2031
2032install_sh=${install_sh-"$am_aux_dir/install-sh"}
2033
2034# Installed binaries are usually stripped using `strip' when the user
2035# run `make install-strip'. However `strip' might not be the right
2036# tool to use in cross-compilation environments, therefore Automake
2037# will honor the `STRIP' environment variable to overrule this program.
2038if test "$cross_compiling" != no; then
2039 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2041set dummy ${ac_tool_prefix}strip; ac_word=$2
2042echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044if test "${ac_cv_prog_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047 if test -n "$STRIP"; then
2048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2049else
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2060 fi
2061done
2062done
2063
2064fi
2065fi
2066STRIP=$ac_cv_prog_STRIP
2067if test -n "$STRIP"; then
2068 echo "$as_me:$LINENO: result: $STRIP" >&5
2069echo "${ECHO_T}$STRIP" >&6
2070else
2071 echo "$as_me:$LINENO: result: no" >&5
2072echo "${ECHO_T}no" >&6
2073fi
2074
2075fi
2076if test -z "$ac_cv_prog_STRIP"; then
2077 ac_ct_STRIP=$STRIP
2078 # Extract the first word of "strip", so it can be a program name with args.
2079set dummy strip; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 if test -n "$ac_ct_STRIP"; then
2086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_ac_ct_STRIP="strip"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2098 fi
2099done
2100done
2101
2102 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2103fi
2104fi
2105ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2106if test -n "$ac_ct_STRIP"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2108echo "${ECHO_T}$ac_ct_STRIP" >&6
2109else
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
2114 STRIP=$ac_ct_STRIP
2115else
2116 STRIP="$ac_cv_prog_STRIP"
2117fi
2118
2119fi
2120INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2121
2122# We need awk for the "check" target. The system "awk" is bad on
2123# some platforms.
2124# Always define AMTAR for backward compatibility.
2125
2126AMTAR=${AMTAR-"${am_missing_run}tar"}
2127
2128am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2129
2130
2131
2132
2133
2134# Default to --enable-multilib
2135# Check whether --enable-multilib or --disable-multilib was given.
2136if test "${enable_multilib+set}" = set; then
2137 enableval="$enable_multilib"
2138 case "$enableval" in
2139 yes) multilib=yes ;;
2140 no) multilib=no ;;
2141 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2142echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2143 { (exit 1); exit 1; }; } ;;
2144 esac
2145else
2146 multilib=yes
2147fi;
2148
2149# We may get other options which we leave undocumented:
2150# --with-target-subdir, --with-multisrctop, --with-multisubdir
2151# See config-ml.in if you want the gory details.
2152
2153if test "$srcdir" = "."; then
2154 if test "$with_target_subdir" != "."; then
2155 multi_basedir="$srcdir/$with_multisrctop../.."
2156 else
2157 multi_basedir="$srcdir/$with_multisrctop.."
2158 fi
2159else
2160 multi_basedir="$srcdir/.."
2161fi
2162
2163
5b043f08
GK
2164# Even if the default multilib is not a cross compilation,
2165# it may be that some of the other multilibs are.
2166if test $cross_compiling = no && test $multilib = yes \
2167 && test "x${with_multisubdir}" != x ; then
2168 cross_compiling=maybe
2169fi
2170
953ff289
DN
2171 ac_config_commands="$ac_config_commands default-1"
2172
2173
2174# Calculate toolexeclibdir
2175# Also toolexecdir, though it's only used in toolexeclibdir
2176case ${enable_version_specific_runtime_libs} in
2177 yes)
2178 # Need the gcc compiler version to know where to install libraries
2179 # and header files if --enable-version-specific-runtime-libs option
2180 # is selected.
2181 toolexecdir='$(libdir)/gcc/$(target_alias)'
2182 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2183 ;;
2184 no)
2185 if test -n "$with_cross_host" &&
2186 test x"$with_cross_host" != x"no"; then
2187 # Install a library built with a cross compiler in tooldir, not libdir.
2188 toolexecdir='$(exec_prefix)/$(target_alias)'
2189 toolexeclibdir='$(toolexecdir)/lib'
2190 else
2191 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2192 toolexeclibdir='$(libdir)'
2193 fi
2194 multi_os_directory=`$CC -print-multi-os-directory`
2195 case $multi_os_directory in
2196 .) ;; # Avoid trailing /.
2197 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2198 esac
2199 ;;
2200esac
2201
2202
2203
2204# Check the compiler.
2205# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2206# We must force CC to /not/ be precious variables; otherwise
2207# the wrong, non-multilib-adjusted value will be used in multilibs.
2208# As a side effect, we have to subst CFLAGS ourselves.
2209
2210
2211
2212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220echo "$as_me:$LINENO: checking for $ac_word" >&5
2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227else
2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2238 fi
2239done
2240done
2241
2242fi
2243fi
2244CC=$ac_cv_prog_CC
2245if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247echo "${ECHO_T}$CC" >&6
2248else
2249 echo "$as_me:$LINENO: result: no" >&5
2250echo "${ECHO_T}no" >&6
2251fi
2252
2253fi
2254if test -z "$ac_cv_prog_CC"; then
2255 ac_ct_CC=$CC
2256 # Extract the first word of "gcc", so it can be a program name with args.
2257set dummy gcc; ac_word=$2
2258echo "$as_me:$LINENO: checking for $ac_word" >&5
2259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263 if test -n "$ac_ct_CC"; then
2264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265else
2266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267for as_dir in $PATH
2268do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273 ac_cv_prog_ac_ct_CC="gcc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2276 fi
2277done
2278done
2279
2280fi
2281fi
2282ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283if test -n "$ac_ct_CC"; then
2284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285echo "${ECHO_T}$ac_ct_CC" >&6
2286else
2287 echo "$as_me:$LINENO: result: no" >&5
2288echo "${ECHO_T}no" >&6
2289fi
2290
2291 CC=$ac_ct_CC
2292else
2293 CC="$ac_cv_prog_CC"
2294fi
2295
2296if test -z "$CC"; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299set dummy ${ac_tool_prefix}cc; ac_word=$2
2300echo "$as_me:$LINENO: checking for $ac_word" >&5
2301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307else
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 ac_cv_prog_CC="${ac_tool_prefix}cc"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2318 fi
2319done
2320done
2321
2322fi
2323fi
2324CC=$ac_cv_prog_CC
2325if test -n "$CC"; then
2326 echo "$as_me:$LINENO: result: $CC" >&5
2327echo "${ECHO_T}$CC" >&6
2328else
2329 echo "$as_me:$LINENO: result: no" >&5
2330echo "${ECHO_T}no" >&6
2331fi
2332
2333fi
2334if test -z "$ac_cv_prog_CC"; then
2335 ac_ct_CC=$CC
2336 # Extract the first word of "cc", so it can be a program name with args.
2337set dummy cc; ac_word=$2
2338echo "$as_me:$LINENO: checking for $ac_word" >&5
2339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC="cc"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2356 fi
2357done
2358done
2359
2360fi
2361fi
2362ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365echo "${ECHO_T}$ac_ct_CC" >&6
2366else
2367 echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6
2369fi
2370
2371 CC=$ac_ct_CC
2372else
2373 CC="$ac_cv_prog_CC"
2374fi
2375
2376fi
2377if test -z "$CC"; then
2378 # Extract the first word of "cc", so it can be a program name with args.
2379set dummy cc; ac_word=$2
2380echo "$as_me:$LINENO: checking for $ac_word" >&5
2381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382if test "${ac_cv_prog_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387else
2388 ac_prog_rejected=no
2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2397 ac_prog_rejected=yes
2398 continue
2399 fi
2400 ac_cv_prog_CC="cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404done
2405done
2406
2407if test $ac_prog_rejected = yes; then
2408 # We found a bogon in the path, so make sure we never use it.
2409 set dummy $ac_cv_prog_CC
2410 shift
2411 if test $# != 0; then
2412 # We chose a different compiler from the bogus one.
2413 # However, it has the same basename, so the bogon will be chosen
2414 # first if we set CC to just the basename; use the full file name.
2415 shift
2416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417 fi
2418fi
2419fi
2420fi
2421CC=$ac_cv_prog_CC
2422if test -n "$CC"; then
2423 echo "$as_me:$LINENO: result: $CC" >&5
2424echo "${ECHO_T}$CC" >&6
2425else
2426 echo "$as_me:$LINENO: result: no" >&5
2427echo "${ECHO_T}no" >&6
2428fi
2429
2430fi
2431if test -z "$CC"; then
2432 if test -n "$ac_tool_prefix"; then
2433 for ac_prog in cl
2434 do
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456done
2457done
2458
2459fi
2460fi
2461CC=$ac_cv_prog_CC
2462if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464echo "${ECHO_T}$CC" >&6
2465else
2466 echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6
2468fi
2469
2470 test -n "$CC" && break
2471 done
2472fi
2473if test -z "$CC"; then
2474 ac_ct_CC=$CC
2475 for ac_prog in cl
2476do
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478set dummy $ac_prog; ac_word=$2
2479echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="$ac_prog"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
2500
2501fi
2502fi
2503ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506echo "${ECHO_T}$ac_ct_CC" >&6
2507else
2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510fi
2511
2512 test -n "$ac_ct_CC" && break
2513done
2514
2515 CC=$ac_ct_CC
2516fi
2517
2518fi
2519
2520
18c04407
RW
2521test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2522echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
953ff289
DN
2524See \`config.log' for more details." >&5
2525echo "$as_me: error: no acceptable C compiler found in \$PATH
2526See \`config.log' for more details." >&2;}
18c04407 2527 { (exit 1); exit 1; }; }; }
953ff289
DN
2528
2529# Provide some information about the compiler.
2530echo "$as_me:$LINENO:" \
2531 "checking for C compiler version" >&5
2532ac_compiler=`set X $ac_compile; echo $2`
2533{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2534 (eval $ac_compiler --version </dev/null >&5) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2539 (eval $ac_compiler -v </dev/null >&5) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2543{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2544 (eval $ac_compiler -V </dev/null >&5) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548
2549cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564ac_clean_files_save=$ac_clean_files
2565ac_clean_files="$ac_clean_files a.out a.exe b.out"
2566# Try to create an executable without -o first, disregard a.out.
2567# It will help us diagnose broken compilers, and finding out an intuition
2568# of exeext.
2569echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2571ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2573 (eval $ac_link_default) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; then
2577 # Find the output, starting from the most likely. This scheme is
2578# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2579# resort.
2580
2581# Be careful to initialize this variable, since it used to be cached.
2582# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2583ac_cv_exeext=
2584# b.out is created by i960 compilers.
2585for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2586do
2587 test -f "$ac_file" || continue
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2590 ;;
2591 conftest.$ac_ext )
2592 # This is the source file.
2593 ;;
2594 [ab].out )
2595 # We found the default executable, but exeext='' is most
2596 # certainly right.
2597 break;;
2598 *.* )
2599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600 # FIXME: I believe we export ac_cv_exeext for Libtool,
2601 # but it would be cool to find out if it's true. Does anybody
2602 # maintain Libtool? --akim.
2603 export ac_cv_exeext
2604 break;;
2605 * )
2606 break;;
2607 esac
2608done
2609else
2610 echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
18c04407
RW
2613{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614echo "$as_me: error: in \`$ac_pwd':" >&2;}
953ff289
DN
2615{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2616See \`config.log' for more details." >&5
2617echo "$as_me: error: C compiler cannot create executables
2618See \`config.log' for more details." >&2;}
18c04407 2619 { (exit 77); exit 77; }; }; }
953ff289
DN
2620fi
2621
2622ac_exeext=$ac_cv_exeext
2623echo "$as_me:$LINENO: result: $ac_file" >&5
2624echo "${ECHO_T}$ac_file" >&6
2625
2626# Check the compiler produces executables we can run. If not, either
2627# the compiler is broken, or we cross compile.
2628echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2629echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2630# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2631# If not cross compiling, check that we can run a simple program.
2632if test "$cross_compiling" != yes; then
2633 if { ac_try='./$ac_file'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 cross_compiling=no
2640 else
2641 if test "$cross_compiling" = maybe; then
2642 cross_compiling=yes
2643 else
18c04407
RW
2644 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
953ff289
DN
2647If you meant to cross compile, use \`--host'.
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: cannot run C compiled programs.
2650If you meant to cross compile, use \`--host'.
2651See \`config.log' for more details." >&2;}
18c04407 2652 { (exit 1); exit 1; }; }; }
953ff289
DN
2653 fi
2654 fi
2655fi
2656echo "$as_me:$LINENO: result: yes" >&5
2657echo "${ECHO_T}yes" >&6
2658
2659rm -f a.out a.exe conftest$ac_cv_exeext b.out
2660ac_clean_files=$ac_clean_files_save
2661# Check the compiler produces executables we can run. If not, either
2662# the compiler is broken, or we cross compile.
2663echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2665echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666echo "${ECHO_T}$cross_compiling" >&6
2667
2668echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; then
2675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2677# work properly (i.e., refer to `conftest.exe'), while it won't with
2678# `rm'.
2679for ac_file in conftest.exe conftest conftest.*; do
2680 test -f "$ac_file" || continue
2681 case $ac_file in
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684 export ac_cv_exeext
2685 break;;
2686 * ) break;;
2687 esac
2688done
2689else
18c04407
RW
2690 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
953ff289
DN
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2695See \`config.log' for more details." >&2;}
18c04407 2696 { (exit 1); exit 1; }; }; }
953ff289
DN
2697fi
2698
2699rm -f conftest$ac_cv_exeext
2700echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2701echo "${ECHO_T}$ac_cv_exeext" >&6
2702
2703rm -f conftest.$ac_ext
2704EXEEXT=$ac_cv_exeext
2705ac_exeext=$EXEEXT
2706echo "$as_me:$LINENO: checking for suffix of object files" >&5
2707echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2708if test "${ac_cv_objext+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711 cat >conftest.$ac_ext <<_ACEOF
2712/* confdefs.h. */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h. */
2717
2718int
2719main ()
2720{
2721
2722 ;
2723 return 0;
2724}
2725_ACEOF
2726rm -f conftest.o conftest.obj
2727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2732 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2736 break;;
2737 esac
2738done
2739else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
18c04407
RW
2743{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2744echo "$as_me: error: in \`$ac_pwd':" >&2;}
953ff289
DN
2745{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2746See \`config.log' for more details." >&5
2747echo "$as_me: error: cannot compute suffix of object files: cannot compile
2748See \`config.log' for more details." >&2;}
18c04407 2749 { (exit 1); exit 1; }; }; }
953ff289
DN
2750fi
2751
2752rm -f conftest.$ac_cv_objext conftest.$ac_ext
2753fi
2754echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2755echo "${ECHO_T}$ac_cv_objext" >&6
2756OBJEXT=$ac_cv_objext
2757ac_objext=$OBJEXT
2758echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2759echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2760if test "${ac_cv_c_compiler_gnu+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762else
2763 cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773#ifndef __GNUC__
2774 choke me
2775#endif
2776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781rm -f conftest.$ac_objext
2782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
d349482e
AT
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
953ff289
DN
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_compiler_gnu=yes
2804else
2805 echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808ac_compiler_gnu=no
2809fi
2810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812
2813fi
2814echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2816GCC=`test $ac_compiler_gnu = yes && echo yes`
2817ac_test_CFLAGS=${CFLAGS+set}
2818ac_save_CFLAGS=$CFLAGS
2819CFLAGS="-g"
2820echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2821echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2822if test "${ac_cv_prog_cc_g+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825 cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h. */
2831
2832int
2833main ()
2834{
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext
2841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
d349482e
AT
2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
953ff289
DN
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 (eval $ac_try) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 ac_cv_prog_cc_g=yes
2863else
2864 echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867ac_cv_prog_cc_g=no
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2873if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2877 CFLAGS="-g -O2"
2878 else
2879 CFLAGS="-g"
2880 fi
2881else
2882 if test "$GCC" = yes; then
2883 CFLAGS="-O2"
2884 else
2885 CFLAGS=
2886 fi
2887fi
2888echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2889echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2890if test "${ac_cv_prog_cc_stdc+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
2893 ac_cv_prog_cc_stdc=no
2894ac_save_CC=$CC
2895cat >conftest.$ac_ext <<_ACEOF
2896/* confdefs.h. */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h. */
2901#include <stdarg.h>
2902#include <stdio.h>
2903#include <sys/types.h>
2904#include <sys/stat.h>
2905/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906struct buf { int x; };
2907FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908static char *e (p, i)
2909 char **p;
2910 int i;
2911{
2912 return p[i];
2913}
2914static char *f (char * (*g) (char **, int), char **p, ...)
2915{
2916 char *s;
2917 va_list v;
2918 va_start (v,p);
2919 s = g (p, va_arg (v,int));
2920 va_end (v);
2921 return s;
2922}
2923
2924/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
2927 as 'x'. The following induces an error, until -std1 is added to get
2928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
2930 that's true only with -std1. */
2931int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
2933int test (int i, double x);
2934struct s1 {int (*f) (int a);};
2935struct s2 {int (*f) (double a);};
2936int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937int argc;
2938char **argv;
2939int
2940main ()
2941{
2942return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947# Don't try gcc -ansi; that turns off useful extensions and
2948# breaks some systems' header files.
2949# AIX -qlanglvl=ansi
2950# Ultrix and OSF/1 -std1
2951# HP-UX 10.20 and later -Ae
2952# HP-UX older versions -Aa -D_HPUX_SOURCE
2953# SVR4 -Xc -D__EXTENSIONS__
2954for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955do
2956 CC="$ac_save_CC $ac_arg"
2957 rm -f conftest.$ac_objext
2958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
d349482e
AT
2966 { ac_try='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
953ff289
DN
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 ac_cv_prog_cc_stdc=$ac_arg
2980break
2981else
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985fi
2986rm -f conftest.err conftest.$ac_objext
2987done
2988rm -f conftest.$ac_ext conftest.$ac_objext
2989CC=$ac_save_CC
2990
2991fi
2992
2993case "x$ac_cv_prog_cc_stdc" in
2994 x|xno)
2995 echo "$as_me:$LINENO: result: none needed" >&5
2996echo "${ECHO_T}none needed" >&6 ;;
2997 *)
2998 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2999echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3000 CC="$CC $ac_cv_prog_cc_stdc" ;;
3001esac
3002
3003# Some people use a C++ compiler to compile C. Since we use `exit',
3004# in C++ we need to declare it. In case someone uses the same compiler
3005# for both compiling C and C++ we need to have the C++ compiler decide
3006# the declaration of exit, since it's the most demanding environment.
3007cat >conftest.$ac_ext <<_ACEOF
3008#ifndef __cplusplus
3009 choke me
3010#endif
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
d349482e
AT
3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
953ff289
DN
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 for ac_declaration in \
3035 '' \
3036 'extern "C" void std::exit (int) throw (); using std::exit;' \
3037 'extern "C" void std::exit (int); using std::exit;' \
3038 'extern "C" void exit (int) throw ();' \
3039 'extern "C" void exit (int);' \
3040 'void exit (int);'
3041do
3042 cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h. */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h. */
3048$ac_declaration
3049#include <stdlib.h>
3050int
3051main ()
3052{
3053exit (42);
3054 ;
3055 return 0;
3056}
3057_ACEOF
3058rm -f conftest.$ac_objext
3059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
d349482e
AT
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
953ff289
DN
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 :
3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085continue
3086fi
3087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h. */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h. */
3094$ac_declaration
3095int
3096main ()
3097{
3098exit (42);
3099 ;
3100 return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
d349482e
AT
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
953ff289
DN
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 break
3126else
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130fi
3131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132done
3133rm -f conftest*
3134if test -n "$ac_declaration"; then
3135 echo '#ifdef __cplusplus' >>confdefs.h
3136 echo $ac_declaration >>confdefs.h
3137 echo '#endif' >>confdefs.h
3138fi
3139
3140else
3141 echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144fi
3145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146ac_ext=c
3147ac_cpp='$CPP $CPPFLAGS'
3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151DEPDIR="${am__leading_dot}deps"
3152
3153 ac_config_commands="$ac_config_commands depfiles"
3154
3155
3156am_make=${MAKE-make}
3157cat > confinc << 'END'
3158am__doit:
3159 @echo done
3160.PHONY: am__doit
3161END
3162# If we don't find an include directive, just comment out the code.
3163echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3164echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3165am__include="#"
3166am__quote=
3167_am_result=none
3168# First try GNU make style include.
3169echo "include confinc" > confmf
3170# We grep out `Entering directory' and `Leaving directory'
3171# messages which can occur if `w' ends up in MAKEFLAGS.
3172# In particular we don't look at `^make:' because GNU make might
3173# be invoked under some other name (usually "gmake"), in which
3174# case it prints its new name instead of `make'.
3175if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3176 am__include=include
3177 am__quote=
3178 _am_result=GNU
3179fi
3180# Now try BSD make style include.
3181if test "$am__include" = "#"; then
3182 echo '.include "confinc"' > confmf
3183 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3184 am__include=.include
3185 am__quote="\""
3186 _am_result=BSD
3187 fi
3188fi
3189
3190
3191echo "$as_me:$LINENO: result: $_am_result" >&5
3192echo "${ECHO_T}$_am_result" >&6
3193rm -f confinc confmf
3194
3195# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3196if test "${enable_dependency_tracking+set}" = set; then
3197 enableval="$enable_dependency_tracking"
3198
3199fi;
3200if test "x$enable_dependency_tracking" != xno; then
3201 am_depcomp="$ac_aux_dir/depcomp"
3202 AMDEPBACKSLASH='\'
3203fi
3204
3205
3206if test "x$enable_dependency_tracking" != xno; then
3207 AMDEP_TRUE=
3208 AMDEP_FALSE='#'
3209else
3210 AMDEP_TRUE='#'
3211 AMDEP_FALSE=
3212fi
3213
3214
3215
3216
3217depcc="$CC" am_compiler_list=
3218
3219echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3220echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3221if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3225 # We make a subdir and do the tests there. Otherwise we can end up
3226 # making bogus files that we don't know about and never remove. For
3227 # instance it was reported that on HP-UX the gcc test will end up
3228 # making a dummy file named `D' -- because `-MD' means `put the output
3229 # in D'.
3230 mkdir conftest.dir
3231 # Copy depcomp to subdir because otherwise we won't find it if we're
3232 # using a relative directory.
3233 cp "$am_depcomp" conftest.dir
3234 cd conftest.dir
3235 # We will build objects and dependencies in a subdirectory because
3236 # it helps to detect inapplicable dependency modes. For instance
3237 # both Tru64's cc and ICC support -MD to output dependencies as a
3238 # side effect of compilation, but ICC will put the dependencies in
3239 # the current directory while Tru64 will put them in the object
3240 # directory.
3241 mkdir sub
3242
3243 am_cv_CC_dependencies_compiler_type=none
3244 if test "$am_compiler_list" = ""; then
3245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3246 fi
3247 for depmode in $am_compiler_list; do
3248 # Setup a source with many dependencies, because some compilers
3249 # like to wrap large dependency lists on column 80 (with \), and
3250 # we should not choose a depcomp mode which is confused by this.
3251 #
3252 # We need to recreate these files for each test, as the compiler may
3253 # overwrite some of them when testing with obscure command lines.
3254 # This happens at least with the AIX C compiler.
3255 : > sub/conftest.c
3256 for i in 1 2 3 4 5 6; do
3257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3258 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3259 # Solaris 8's {/usr,}/bin/sh.
3260 touch sub/conftst$i.h
3261 done
3262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3263
3264 case $depmode in
3265 nosideeffect)
3266 # after this tag, mechanisms are not by side-effect, so they'll
3267 # only be used when explicitly requested
3268 if test "x$enable_dependency_tracking" = xyes; then
3269 continue
3270 else
3271 break
3272 fi
3273 ;;
3274 none) break ;;
3275 esac
3276 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3277 # mode. It turns out that the SunPro C++ compiler does not properly
3278 # handle `-M -o', and we need to detect this.
3279 if depmode=$depmode \
3280 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3282 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3283 >/dev/null 2>conftest.err &&
3284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3285 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3287 # icc doesn't choke on unknown options, it will just issue warnings
3288 # or remarks (even with -Werror). So we grep stderr for any message
3289 # that says an option was ignored or not supported.
3290 # When given -MP, icc 7.0 and 7.1 complain thusly:
3291 # icc: Command line warning: ignoring option '-M'; no argument required
3292 # The diagnosis changed in icc 8.0:
3293 # icc: Command line remark: option '-MP' not supported
3294 if (grep 'ignoring option' conftest.err ||
3295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3296 am_cv_CC_dependencies_compiler_type=$depmode
3297 break
3298 fi
3299 fi
3300 done
3301
3302 cd ..
3303 rm -rf conftest.dir
3304else
3305 am_cv_CC_dependencies_compiler_type=none
3306fi
3307
3308fi
3309echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3312
3313
3314
3315if
3316 test "x$enable_dependency_tracking" != xno \
3317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3318 am__fastdepCC_TRUE=
3319 am__fastdepCC_FALSE='#'
3320else
3321 am__fastdepCC_TRUE='#'
3322 am__fastdepCC_FALSE=
3323fi
3324
3325
3326
3327
3328
3329
3330# In order to override CFLAGS_FOR_TARGET, all of our special flags go
3331# in XCFLAGS. But we need them in CFLAGS during configury. So put them
3332# in both places for now and restore CFLAGS at the end of config.
3333save_CFLAGS="$CFLAGS"
3334
3335# Add -Wall -Werror if we are using GCC.
3336if test "x$GCC" = "xyes"; then
3337 XCFLAGS="$XCFLAGS -Wall -Werror"
3338fi
3339
3340# Find other programs we need.
3341if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3343set dummy ${ac_tool_prefix}ar; ac_word=$2
3344echo "$as_me:$LINENO: checking for $ac_word" >&5
3345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346if test "${ac_cv_prog_AR+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349 if test -n "$AR"; then
3350 ac_cv_prog_AR="$AR" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_AR="${ac_tool_prefix}ar"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363done
3364done
3365
3366fi
3367fi
3368AR=$ac_cv_prog_AR
3369if test -n "$AR"; then
3370 echo "$as_me:$LINENO: result: $AR" >&5
3371echo "${ECHO_T}$AR" >&6
3372else
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375fi
3376
3377fi
3378if test -z "$ac_cv_prog_AR"; then
3379 ac_ct_AR=$AR
3380 # Extract the first word of "ar", so it can be a program name with args.
3381set dummy ar; ac_word=$2
3382echo "$as_me:$LINENO: checking for $ac_word" >&5
3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387 if test -n "$ac_ct_AR"; then
3388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_AR="ar"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401done
3402done
3403
3404fi
3405fi
3406ac_ct_AR=$ac_cv_prog_ac_ct_AR
3407if test -n "$ac_ct_AR"; then
3408 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3409echo "${ECHO_T}$ac_ct_AR" >&6
3410else
3411 echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413fi
3414
3415 AR=$ac_ct_AR
3416else
3417 AR="$ac_cv_prog_AR"
3418fi
3419
3420if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3422set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425if test "${ac_cv_prog_RANLIB+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 if test -n "$RANLIB"; then
3429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442done
3443done
3444
3445fi
3446fi
3447RANLIB=$ac_cv_prog_RANLIB
3448if test -n "$RANLIB"; then
3449 echo "$as_me:$LINENO: result: $RANLIB" >&5
3450echo "${ECHO_T}$RANLIB" >&6
3451else
3452 echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454fi
3455
3456fi
3457if test -z "$ac_cv_prog_RANLIB"; then
3458 ac_ct_RANLIB=$RANLIB
3459 # Extract the first word of "ranlib", so it can be a program name with args.
3460set dummy ranlib; ac_word=$2
3461echo "$as_me:$LINENO: checking for $ac_word" >&5
3462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 if test -n "$ac_ct_RANLIB"; then
3467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_RANLIB="ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481done
3482
3483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3484fi
3485fi
3486ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487if test -n "$ac_ct_RANLIB"; then
3488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489echo "${ECHO_T}$ac_ct_RANLIB" >&6
3490else
3491 echo "$as_me:$LINENO: result: no" >&5
3492echo "${ECHO_T}no" >&6
3493fi
3494
3495 RANLIB=$ac_ct_RANLIB
3496else
3497 RANLIB="$ac_cv_prog_RANLIB"
3498fi
3499
3500# Extract the first word of "perl", so it can be a program name with args.
3501set dummy perl; ac_word=$2
3502echo "$as_me:$LINENO: checking for $ac_word" >&5
3503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504if test "${ac_cv_path_PERL+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 case $PERL in
3508 [\\/]* | ?:[\\/]*)
3509 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3510 ;;
3511 *)
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH
3514do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523done
3524done
3525
3526 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3527 ;;
3528esac
3529fi
3530PERL=$ac_cv_path_PERL
3531
3532if test -n "$PERL"; then
3533 echo "$as_me:$LINENO: result: $PERL" >&5
3534echo "${ECHO_T}$PERL" >&6
3535else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538fi
3539
3540echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3541echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3542set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3543if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 cat >conftest.make <<\_ACEOF
3547all:
3548 @echo 'ac_maketemp="$(MAKE)"'
3549_ACEOF
3550# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3552if test -n "$ac_maketemp"; then
3553 eval ac_cv_prog_make_${ac_make}_set=yes
3554else
3555 eval ac_cv_prog_make_${ac_make}_set=no
3556fi
3557rm -f conftest.make
3558fi
3559if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561echo "${ECHO_T}yes" >&6
3562 SET_MAKE=
3563else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566 SET_MAKE="MAKE=${MAKE-make}"
3567fi
3568
3569# Find a good install program. We prefer a C program (faster),
3570# so one script is as good as another. But avoid the broken or
3571# incompatible versions:
3572# SysV /etc/install, /usr/sbin/install
3573# SunOS /usr/etc/install
3574# IRIX /sbin/install
3575# AIX /bin/install
3576# AmigaOS /C/install, which installs bootblocks on floppy discs
3577# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580# OS/2's system install, which has a completely different semantic
3581# ./install, which can be erroneously created by make from ./install.sh.
38d24731 3582# Reject install programs that cannot install multiple files.
953ff289
DN
3583echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585if test -z "$INSTALL"; then
3586if test "${ac_cv_path_install+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3595case $as_dir/ in
3596 ./ | .// | /cC/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599 /usr/ucb/* ) ;;
3600 *)
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3603 # by default.
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3610 :
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3614 :
3615 else
38d24731
RW
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3619 mkdir conftest.dir
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3624 then
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626 break 3
3627 fi
953ff289
DN
3628 fi
3629 fi
3630 done
3631 done
3632 ;;
3633esac
3634done
3635
38d24731 3636rm -rf conftest.one conftest.two conftest.dir
953ff289
DN
3637
3638fi
3639 if test "${ac_cv_path_install+set}" = set; then
3640 INSTALL=$ac_cv_path_install
3641 else
38d24731
RW
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for INSTALL within a source directory, because that will
953ff289 3644 # break other packages using the cache if that directory is
38d24731 3645 # removed, or if the value is a relative name.
953ff289
DN
3646 INSTALL=$ac_install_sh
3647 fi
3648fi
3649echo "$as_me:$LINENO: result: $INSTALL" >&5
3650echo "${ECHO_T}$INSTALL" >&6
3651
3652# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653# It thinks the first close brace ends the variable substitution.
3654test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
3656test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657
3658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3659
3660
748b9d7c
DF
3661# See if makeinfo has been installed and is modern enough
3662# that we can use it.
3663
3664 # Extract the first word of "makeinfo", so it can be a program name with args.
3665set dummy makeinfo; ac_word=$2
3666echo "$as_me:$LINENO: checking for $ac_word" >&5
3667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671 if test -n "$MAKEINFO"; then
3672 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_MAKEINFO="makeinfo"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685done
3686done
3687
3688fi
3689fi
3690MAKEINFO=$ac_cv_prog_MAKEINFO
3691if test -n "$MAKEINFO"; then
3692 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3693echo "${ECHO_T}$MAKEINFO" >&6
3694else
3695 echo "$as_me:$LINENO: result: no" >&5
3696echo "${ECHO_T}no" >&6
3697fi
3698
3699 if test -n "$MAKEINFO"; then
3700 # Found it, now check the version.
3701 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3702echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3703if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3707 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3708
3709 case $ac_prog_version in
3710 '') gcc_cv_prog_makeinfo_modern=no;;
a7415017 3711 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
748b9d7c
DF
3712 *) gcc_cv_prog_makeinfo_modern=no;;
3713 esac
3714
3715fi
3716echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3717echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3718 else
3719 gcc_cv_prog_makeinfo_modern=no
3720 fi
1cf3d07d
SE
3721 if test $gcc_cv_prog_makeinfo_modern = no; then
3722 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3723 fi
748b9d7c
DF
3724
3725
3726
3727if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3728 BUILD_INFO_TRUE=
3729 BUILD_INFO_FALSE='#'
3730else
3731 BUILD_INFO_TRUE='#'
3732 BUILD_INFO_FALSE=
3733fi
3734
3735
3736
953ff289 3737# Configure libtool
6b4a97ed
PG
3738case `pwd` in
3739 *\ * | *\ *)
3740 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3741echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3742esac
1cf3d07d
SE
3743
3744
1cf3d07d 3745
6b4a97ed
PG
3746macro_version='2.2.6'
3747macro_revision='1.3012'
1cf3d07d
SE
3748
3749
3750
3751
3752
3753
953ff289 3754
1cf3d07d
SE
3755
3756
3757
3758
3759
3760
6b4a97ed 3761ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d
SE
3762
3763echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3764echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3765if test "${lt_cv_path_SED+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 # Loop through the user's path and test for sed and gsed.
3769# Then use that list of sed's as ones to test for truncation.
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for lt_ac_prog in sed gsed; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3778 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3779 fi
3780 done
3781 done
3782done
3783IFS=$as_save_IFS
3784lt_ac_max=0
3785lt_ac_count=0
3786# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787# along with /bin/sed that truncates output.
3788for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789 test ! -f $lt_ac_sed && continue
3790 cat /dev/null > conftest.in
3791 lt_ac_count=0
3792 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793 # Check for GNU sed and select it if it is found.
3794 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795 lt_cv_path_SED=$lt_ac_sed
3796 break
3797 fi
3798 while true; do
3799 cat conftest.in conftest.in >conftest.tmp
3800 mv conftest.tmp conftest.in
3801 cp conftest.in conftest.nl
3802 echo >>conftest.nl
3803 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804 cmp -s conftest.out conftest.nl || break
3805 # 10000 chars as input seems more than enough
3806 test $lt_ac_count -gt 10 && break
3807 lt_ac_count=`expr $lt_ac_count + 1`
3808 if test $lt_ac_count -gt $lt_ac_max; then
3809 lt_ac_max=$lt_ac_count
3810 lt_cv_path_SED=$lt_ac_sed
3811 fi
3812 done
3813done
3814
3815fi
3816
3817SED=$lt_cv_path_SED
3818
3819echo "$as_me:$LINENO: result: $SED" >&5
3820echo "${ECHO_T}$SED" >&6
3821
3822test -z "$SED" && SED=sed
3823Xsed="$SED -e 1s/^X//"
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835echo "$as_me:$LINENO: checking for egrep" >&5
3836echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3837if test "${ac_cv_prog_egrep+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3841 then ac_cv_prog_egrep='grep -E'
3842 else ac_cv_prog_egrep='egrep'
3843 fi
3844fi
3845echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3846echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3847 EGREP=$ac_cv_prog_egrep
3848
3849
3850echo "$as_me:$LINENO: checking for fgrep" >&5
3851echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3852if test "${ac_cv_prog_fgrep+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
3855 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3856 then ac_cv_prog_fgrep='grep -F'
3857 else ac_cv_prog_fgrep='fgrep'
3858 fi
3859fi
3860echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3861echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3862 FGREP=$ac_cv_prog_fgrep
3863
3864
3865test -z "$GREP" && GREP=grep
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
953ff289
DN
3885# Check whether --with-gnu-ld or --without-gnu-ld was given.
3886if test "${with_gnu_ld+set}" = set; then
3887 withval="$with_gnu_ld"
3888 test "$withval" = no || with_gnu_ld=yes
3889else
3890 with_gnu_ld=no
3891fi;
3892ac_prog=ld
3893if test "$GCC" = yes; then
3894 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3895 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3896echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
953ff289
DN
3897 case $host in
3898 *-*-mingw*)
3899 # gcc leaves a trailing carriage return which upsets mingw
3900 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3901 *)
3902 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3903 esac
3904 case $ac_prog in
3905 # Accept absolute paths.
1cf3d07d 3906 [\\/]* | ?:[\\/]*)
953ff289 3907 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3908 # Canonicalize the pathname of ld
3909 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3910 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3911 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
953ff289
DN
3912 done
3913 test -z "$LD" && LD="$ac_prog"
3914 ;;
3915 "")
3916 # If it fails, then pretend we aren't using GCC.
3917 ac_prog=ld
3918 ;;
3919 *)
3920 # If it is relative, then search for the first ld in PATH.
3921 with_gnu_ld=unknown
3922 ;;
3923 esac
3924elif test "$with_gnu_ld" = yes; then
3925 echo "$as_me:$LINENO: checking for GNU ld" >&5
3926echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3927else
3928 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3929echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3930fi
3931if test "${lt_cv_path_LD+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 if test -z "$LD"; then
1cf3d07d 3935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
953ff289 3936 for ac_dir in $PATH; do
1cf3d07d 3937 IFS="$lt_save_ifs"
953ff289
DN
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3940 lt_cv_path_LD="$ac_dir/$ac_prog"
3941 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 3942 # but apparently some variants of GNU ld only accept -v.
953ff289 3943 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
3944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3945 *GNU* | *'with BFD'*)
953ff289 3946 test "$with_gnu_ld" != no && break
1cf3d07d
SE
3947 ;;
3948 *)
953ff289 3949 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
3950 ;;
3951 esac
953ff289
DN
3952 fi
3953 done
1cf3d07d 3954 IFS="$lt_save_ifs"
953ff289
DN
3955else
3956 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3957fi
3958fi
3959
3960LD="$lt_cv_path_LD"
3961if test -n "$LD"; then
3962 echo "$as_me:$LINENO: result: $LD" >&5
3963echo "${ECHO_T}$LD" >&6
3964else
3965 echo "$as_me:$LINENO: result: no" >&5
3966echo "${ECHO_T}no" >&6
3967fi
3968test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3969echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3970 { (exit 1); exit 1; }; }
3971echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3972echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3973if test "${lt_cv_prog_gnu_ld+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
1cf3d07d
SE
3976 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3977case `$LD -v 2>&1 </dev/null` in
3978*GNU* | *'with BFD'*)
953ff289 3979 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
3980 ;;
3981*)
953ff289 3982 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
3983 ;;
3984esac
953ff289
DN
3985fi
3986echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3987echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3988with_gnu_ld=$lt_cv_prog_gnu_ld
3989
3990
953ff289 3991
1cf3d07d
SE
3992
3993
3994
3995
3996
3997
1cf3d07d
SE
3998echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3999echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
953ff289
DN
4000if test "${lt_cv_path_NM+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 if test -n "$NM"; then
4004 # Let the user override the test.
4005 lt_cv_path_NM="$NM"
4006else
1cf3d07d
SE
4007 lt_nm_to_check="${ac_tool_prefix}nm"
4008 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4009 lt_nm_to_check="$lt_nm_to_check nm"
4010 fi
4011 for lt_tmp_nm in $lt_nm_to_check; do
4012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4013 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4014 IFS="$lt_save_ifs"
4015 test -z "$ac_dir" && ac_dir=.
4016 tmp_nm="$ac_dir/$lt_tmp_nm"
4017 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4018 # Check to see if the nm accepts a BSD-compat flag.
4019 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4020 # nm: unknown option "B" ignored
4021 # Tru64's nm complains that /dev/null is an invalid object file
4022 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4023 */dev/null* | *'Invalid file or object type'*)
4024 lt_cv_path_NM="$tmp_nm -B"
4025 break
4026 ;;
4027 *)
4028 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4029 */dev/null*)
4030 lt_cv_path_NM="$tmp_nm -p"
4031 break
4032 ;;
4033 *)
4034 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4035 continue # so that we can try to find one that supports BSD flags
4036 ;;
4037 esac
4038 ;;
4039 esac
4040 fi
4041 done
4042 IFS="$lt_save_ifs"
4043 done
4044 : ${lt_cv_path_NM=no}
4045fi
4046fi
4047echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4048echo "${ECHO_T}$lt_cv_path_NM" >&6
4049if test "$lt_cv_path_NM" != "no"; then
4050 NM="$lt_cv_path_NM"
4051else
4052 # Didn't find any BSD compatible name lister, look for dumpbin.
4053 if test -n "$ac_tool_prefix"; then
4054 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4055 do
4056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4058echo "$as_me:$LINENO: checking for $ac_word" >&5
4059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063 if test -n "$DUMPBIN"; then
4064 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4065else
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077done
4078done
4079
4080fi
4081fi
4082DUMPBIN=$ac_cv_prog_DUMPBIN
4083if test -n "$DUMPBIN"; then
4084 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4085echo "${ECHO_T}$DUMPBIN" >&6
4086else
4087 echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6
4089fi
4090
4091 test -n "$DUMPBIN" && break
4092 done
4093fi
4094if test -z "$DUMPBIN"; then
4095 ac_ct_DUMPBIN=$DUMPBIN
4096 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4097do
4098 # Extract the first word of "$ac_prog", so it can be a program name with args.
4099set dummy $ac_prog; ac_word=$2
4100echo "$as_me:$LINENO: checking for $ac_word" >&5
4101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105 if test -n "$ac_ct_DUMPBIN"; then
4106 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4107else
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119done
4120done
4121
4122fi
953ff289 4123fi
1cf3d07d
SE
4124ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4125if test -n "$ac_ct_DUMPBIN"; then
4126 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4127echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4128else
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131fi
4132
4133 test -n "$ac_ct_DUMPBIN" && break
4134done
4135test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4136
4137 DUMPBIN=$ac_ct_DUMPBIN
4138fi
4139
4140
4141 if test "$DUMPBIN" != ":"; then
4142 NM="$DUMPBIN"
4143 fi
953ff289 4144fi
1cf3d07d
SE
4145test -z "$NM" && NM=nm
4146
4147
4148
4149
4150
953ff289 4151
1cf3d07d
SE
4152echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4153echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4154if test "${lt_cv_nm_interface+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157 lt_cv_nm_interface="BSD nm"
4158 echo "int some_variable = 0;" > conftest.$ac_ext
6b4a97ed 4159 (eval echo "\"\$as_me:4159: $ac_compile\"" >&5)
1cf3d07d
SE
4160 (eval "$ac_compile" 2>conftest.err)
4161 cat conftest.err >&5
6b4a97ed 4162 (eval echo "\"\$as_me:4162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4164 cat conftest.err >&5
6b4a97ed 4165 (eval echo "\"\$as_me:4165: output\"" >&5)
1cf3d07d
SE
4166 cat conftest.out >&5
4167 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4168 lt_cv_nm_interface="MS dumpbin"
4169 fi
4170 rm -f conftest*
4171fi
4172echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4173echo "${ECHO_T}$lt_cv_nm_interface" >&6
953ff289
DN
4174
4175echo "$as_me:$LINENO: checking whether ln -s works" >&5
4176echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4177LN_S=$as_ln_s
4178if test "$LN_S" = "ln -s"; then
4179 echo "$as_me:$LINENO: result: yes" >&5
4180echo "${ECHO_T}yes" >&6
4181else
4182 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4183echo "${ECHO_T}no, using $LN_S" >&6
4184fi
4185
1cf3d07d
SE
4186# find the maximum length of command line arguments
4187echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4188echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4189if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192 i=0
4193 teststring="ABCD"
4194
4195 case $build_os in
4196 msdosdjgpp*)
4197 # On DJGPP, this test can blow up pretty badly due to problems in libc
4198 # (any single argument exceeding 2000 bytes causes a buffer overrun
4199 # during glob expansion). Even if it were fixed, the result of this
4200 # check would be larger than it should be.
4201 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4202 ;;
4203
4204 gnu*)
4205 # Under GNU Hurd, this test is not required because there is
4206 # no limit to the length of command line arguments.
4207 # Libtool will interpret -1 as no limit whatsoever
4208 lt_cv_sys_max_cmd_len=-1;
4209 ;;
4210
6b4a97ed 4211 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
4212 # On Win9x/ME, this test blows up -- it succeeds, but takes
4213 # about 5 minutes as the teststring grows exponentially.
4214 # Worse, since 9x/ME are not pre-emptively multitasking,
4215 # you end up with a "frozen" computer, even though with patience
4216 # the test eventually succeeds (with a max line length of 256k).
4217 # Instead, let's just punt: use the minimum linelength reported by
4218 # all of the supported platforms: 8192 (on NT/2K/XP).
4219 lt_cv_sys_max_cmd_len=8192;
4220 ;;
4221
4222 amigaos*)
4223 # On AmigaOS with pdksh, this test takes hours, literally.
4224 # So we just punt and use a minimum line length of 8192.
4225 lt_cv_sys_max_cmd_len=8192;
4226 ;;
4227
4228 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4229 # This has been around since 386BSD, at least. Likely further.
4230 if test -x /sbin/sysctl; then
4231 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4232 elif test -x /usr/sbin/sysctl; then
4233 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4234 else
4235 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4236 fi
4237 # And add a safety zone
4238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4240 ;;
4241
4242 interix*)
4243 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4244 lt_cv_sys_max_cmd_len=196608
4245 ;;
4246
4247 osf*)
4248 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4249 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4250 # nice to cause kernel panics so lets avoid the loop below.
4251 # First set a reasonable default.
4252 lt_cv_sys_max_cmd_len=16384
4253 #
4254 if test -x /sbin/sysconfig; then
4255 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4256 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4257 esac
4258 fi
4259 ;;
4260 sco3.2v5*)
4261 lt_cv_sys_max_cmd_len=102400
4262 ;;
4263 sysv5* | sco5v6* | sysv4.2uw2*)
4264 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4265 if test -n "$kargmax"; then
4266 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4267 else
4268 lt_cv_sys_max_cmd_len=32768
4269 fi
4270 ;;
4271 *)
6b4a97ed
PG
4272 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4273 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
4274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4276 else
4277 # Make teststring a little bigger before we do anything with it.
4278 # a 1K string should be a reasonable start.
4279 for i in 1 2 3 4 5 6 7 8 ; do
4280 teststring=$teststring$teststring
4281 done
4282 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4283 # If test is not a shell built-in, we'll probably end up computing a
4284 # maximum length that is only half of the actual maximum length, but
4285 # we can't tell.
4286 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4287 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4288 test $i != 17 # 1/2 MB should be enough
4289 do
4290 i=`expr $i + 1`
4291 teststring=$teststring$teststring
4292 done
4293 # Only check the string length outside the loop.
4294 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4295 teststring=
4296 # Add a significant safety factor because C++ compilers can tack on
4297 # massive amounts of additional arguments before passing them to the
4298 # linker. It appears as though 1/2 is a usable value.
4299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4300 fi
1cf3d07d
SE
4301 ;;
4302 esac
4303
4304fi
4305
4306if test -n $lt_cv_sys_max_cmd_len ; then
4307 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4308echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4309else
4310 echo "$as_me:$LINENO: result: none" >&5
4311echo "${ECHO_T}none" >&6
4312fi
4313max_cmd_len=$lt_cv_sys_max_cmd_len
4314
4315
4316
4317
4318
4319
1cf3d07d
SE
4320: ${CP="cp -f"}
4321: ${MV="mv -f"}
4322: ${RM="rm -f"}
4323
4324echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4325echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4326# Try some XSI features
4327xsi_shell=no
4328( _lt_dummy="a/b/c"
4329 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6b4a97ed
PG
4330 = c,a/b,, \
4331 && eval 'test $(( 1 + 1 )) -eq 2 \
4332 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d
SE
4333 && xsi_shell=yes
4334echo "$as_me:$LINENO: result: $xsi_shell" >&5
4335echo "${ECHO_T}$xsi_shell" >&6
4336
4337
4338echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4339echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4340lt_shell_append=no
4341( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4342 >/dev/null 2>&1 \
4343 && lt_shell_append=yes
4344echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4345echo "${ECHO_T}$lt_shell_append" >&6
4346
4347
4348if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4349 lt_unset=unset
4350else
4351 lt_unset=false
4352fi
4353
4354
4355
4356
4357
4358# test EBCDIC or ASCII
4359case `echo X|tr X '\101'` in
4360 A) # ASCII based system
4361 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4362 lt_SP2NL='tr \040 \012'
4363 lt_NL2SP='tr \015\012 \040\040'
4364 ;;
4365 *) # EBCDIC based system
4366 lt_SP2NL='tr \100 \n'
4367 lt_NL2SP='tr \r\n \100\100'
4368 ;;
4369esac
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4380echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4381if test "${lt_cv_ld_reload_flag+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 lt_cv_ld_reload_flag='-r'
4385fi
4386echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4387echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4388reload_flag=$lt_cv_ld_reload_flag
4389case $reload_flag in
4390"" | " "*) ;;
4391*) reload_flag=" $reload_flag" ;;
4392esac
4393reload_cmds='$LD$reload_flag -o $output$reload_objs'
4394case $host_os in
4395 darwin*)
4396 if test "$GCC" = yes; then
4397 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4398 else
4399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4400 fi
4401 ;;
4402esac
4403
4404
4405
4406
4407
4408
4409
4410
4411
6b4a97ed
PG
4412if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4414set dummy ${ac_tool_prefix}objdump; ac_word=$2
4415echo "$as_me:$LINENO: checking for $ac_word" >&5
4416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420 if test -n "$OBJDUMP"; then
4421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434done
4435done
4436
4437fi
4438fi
4439OBJDUMP=$ac_cv_prog_OBJDUMP
4440if test -n "$OBJDUMP"; then
4441 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4442echo "${ECHO_T}$OBJDUMP" >&6
4443else
4444 echo "$as_me:$LINENO: result: no" >&5
4445echo "${ECHO_T}no" >&6
4446fi
4447
4448fi
4449if test -z "$ac_cv_prog_OBJDUMP"; then
4450 ac_ct_OBJDUMP=$OBJDUMP
4451 # Extract the first word of "objdump", so it can be a program name with args.
4452set dummy objdump; ac_word=$2
4453echo "$as_me:$LINENO: checking for $ac_word" >&5
4454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458 if test -n "$ac_ct_OBJDUMP"; then
4459 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
4473done
4474
4475 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4476fi
4477fi
4478ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4479if test -n "$ac_ct_OBJDUMP"; then
4480 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4481echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4482else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485fi
4486
4487 OBJDUMP=$ac_ct_OBJDUMP
4488else
4489 OBJDUMP="$ac_cv_prog_OBJDUMP"
4490fi
4491
4492test -z "$OBJDUMP" && OBJDUMP=objdump
4493
4494
4495
4496
4497
4498
4499
4500
1cf3d07d
SE
4501
4502echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4503echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
953ff289
DN
4504if test "${lt_cv_deplibs_check_method+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 lt_cv_file_magic_cmd='$MAGIC_CMD'
4508lt_cv_file_magic_test_file=
4509lt_cv_deplibs_check_method='unknown'
4510# Need to set the preceding variable on all platforms that support
4511# interlibrary dependencies.
4512# 'none' -- dependencies not supported.
4513# `unknown' -- same as none, but documents that we really don't know.
4514# 'pass_all' -- all dependencies passed with no checks.
4515# 'test_compile' -- check by making test program.
1cf3d07d
SE
4516# 'file_magic [[regex]]' -- check by looking for files in library path
4517# which responds to the $file_magic_cmd with a given extended regex.
953ff289
DN
4518# If you have `file' or equivalent on your system and you're not sure
4519# whether `pass_all' will *always* work, you probably want this one.
4520
4521case $host_os in
d653fdfb 4522aix[4-9]*)
953ff289
DN
4523 lt_cv_deplibs_check_method=pass_all
4524 ;;
4525
4526beos*)
4527 lt_cv_deplibs_check_method=pass_all
4528 ;;
4529
1cf3d07d 4530bsdi[45]*)
953ff289
DN
4531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4532 lt_cv_file_magic_cmd='/usr/bin/file -L'
4533 lt_cv_file_magic_test_file=/shlib/libc.so
4534 ;;
4535
1cf3d07d
SE
4536cygwin*)
4537 # func_win32_libid is a shell function defined in ltmain.sh
4538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4539 lt_cv_file_magic_cmd='func_win32_libid'
4540 ;;
4541
4542mingw* | pw32*)
4543 # Base MSYS/MinGW do not provide the 'file' command needed by
4544 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4545 # unless we find 'file', for example because we are cross-compiling.
4546 if ( file / ) >/dev/null 2>&1; then
4547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4548 lt_cv_file_magic_cmd='func_win32_libid'
4549 else
4550 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4551 lt_cv_file_magic_cmd='$OBJDUMP -f'
4552 fi
953ff289
DN
4553 ;;
4554
6b4a97ed
PG
4555cegcc)
4556 # use the weaker test based on 'objdump'. See mingw*.
4557 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4558 lt_cv_file_magic_cmd='$OBJDUMP -f'
4559 ;;
4560
953ff289 4561darwin* | rhapsody*)
953ff289
DN
4562 lt_cv_deplibs_check_method=pass_all
4563 ;;
4564
1cf3d07d
SE
4565freebsd* | dragonfly*)
4566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
953ff289
DN
4567 case $host_cpu in
4568 i*86 )
4569 # Not sure whether the presence of OpenBSD here was a mistake.
4570 # Let's accept both of them until this is cleared up.
1cf3d07d 4571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
953ff289
DN
4572 lt_cv_file_magic_cmd=/usr/bin/file
4573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4574 ;;
4575 esac
4576 else
4577 lt_cv_deplibs_check_method=pass_all
4578 fi
4579 ;;
4580
4581gnu*)
4582 lt_cv_deplibs_check_method=pass_all
4583 ;;
4584
1cf3d07d
SE
4585hpux10.20* | hpux11*)
4586 lt_cv_file_magic_cmd=/usr/bin/file
953ff289 4587 case $host_cpu in
953ff289
DN
4588 ia64*)
4589 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
4590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4591 ;;
1cf3d07d
SE
4592 hppa*64*)
4593 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]'
4594 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
953ff289
DN
4595 ;;
4596 *)
1cf3d07d
SE
4597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4598 lt_cv_file_magic_test_file=/usr/lib/libc.sl
953ff289
DN
4599 ;;
4600 esac
1cf3d07d
SE
4601 ;;
4602
4603interix[3-9]*)
4604 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4606 ;;
4607
4608irix5* | irix6* | nonstopux*)
4609 case $LD in
4610 *-32|*"-32 ") libmagic=32-bit;;
4611 *-n32|*"-n32 ") libmagic=N32;;
4612 *-64|*"-64 ") libmagic=64-bit;;
4613 *) libmagic=never-match;;
4614 esac
953ff289
DN
4615 lt_cv_deplibs_check_method=pass_all
4616 ;;
4617
4618# This must be Linux ELF.
1cf3d07d 4619linux* | k*bsd*-gnu)
953ff289
DN
4620 lt_cv_deplibs_check_method=pass_all
4621 ;;
4622
1cf3d07d
SE
4623netbsd*)
4624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
953ff289 4626 else
1cf3d07d 4627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
953ff289
DN
4628 fi
4629 ;;
4630
1cf3d07d 4631newos6*)
953ff289
DN
4632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4633 lt_cv_file_magic_cmd=/usr/bin/file
4634 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4635 ;;
4636
1cf3d07d
SE
4637*nto* | *qnx*)
4638 lt_cv_deplibs_check_method=pass_all
4639 ;;
4640
4641openbsd*)
4642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4644 else
4645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4646 fi
4647 ;;
4648
953ff289 4649osf3* | osf4* | osf5*)
953ff289
DN
4650 lt_cv_deplibs_check_method=pass_all
4651 ;;
4652
1cf3d07d 4653rdos*)
953ff289
DN
4654 lt_cv_deplibs_check_method=pass_all
4655 ;;
4656
4657solaris*)
4658 lt_cv_deplibs_check_method=pass_all
953ff289
DN
4659 ;;
4660
1cf3d07d 4661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
953ff289
DN
4662 lt_cv_deplibs_check_method=pass_all
4663 ;;
4664
1cf3d07d 4665sysv4 | sysv4.3*)
953ff289 4666 case $host_vendor in
953ff289
DN
4667 motorola)
4668 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]'
4669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4670 ;;
1cf3d07d
SE
4671 ncr)
4672 lt_cv_deplibs_check_method=pass_all
4673 ;;
4674 sequent)
4675 lt_cv_file_magic_cmd='/bin/file'
4676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4677 ;;
4678 sni)
4679 lt_cv_file_magic_cmd='/bin/file'
4680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4681 lt_cv_file_magic_test_file=/lib/libc.so
4682 ;;
4683 siemens)
4684 lt_cv_deplibs_check_method=pass_all
4685 ;;
4686 pc)
4687 lt_cv_deplibs_check_method=pass_all
4688 ;;
953ff289
DN
4689 esac
4690 ;;
1cf3d07d
SE
4691
4692tpf*)
4693 lt_cv_deplibs_check_method=pass_all
4694 ;;
953ff289
DN
4695esac
4696
4697fi
4698echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4699echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4700file_magic_cmd=$lt_cv_file_magic_cmd
4701deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 4702test -z "$deplibs_check_method" && deplibs_check_method=unknown
953ff289
DN
4703
4704
4705
4706
4707
953ff289 4708
953ff289 4709
953ff289 4710
953ff289 4711
953ff289 4712
953ff289 4713
953ff289
DN
4714
4715if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4717set dummy ${ac_tool_prefix}ar; ac_word=$2
953ff289
DN
4718echo "$as_me:$LINENO: checking for $ac_word" >&5
4719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4720if test "${ac_cv_prog_AR+set}" = set; then
953ff289
DN
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
1cf3d07d
SE
4723 if test -n "$AR"; then
4724 ac_cv_prog_AR="$AR" # Let the user override the test.
953ff289
DN
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4733 ac_cv_prog_AR="${ac_tool_prefix}ar"
953ff289
DN
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
4738done
4739
4740fi
4741fi
1cf3d07d
SE
4742AR=$ac_cv_prog_AR
4743if test -n "$AR"; then
4744 echo "$as_me:$LINENO: result: $AR" >&5
4745echo "${ECHO_T}$AR" >&6
953ff289
DN
4746else
4747 echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6
4749fi
4750
4751fi
1cf3d07d
SE
4752if test -z "$ac_cv_prog_AR"; then
4753 ac_ct_AR=$AR
4754 # Extract the first word of "ar", so it can be a program name with args.
4755set dummy ar; ac_word=$2
953ff289
DN
4756echo "$as_me:$LINENO: checking for $ac_word" >&5
4757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4758if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
953ff289
DN
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760else
1cf3d07d
SE
4761 if test -n "$ac_ct_AR"; then
4762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
953ff289
DN
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4771 ac_cv_prog_ac_ct_AR="ar"
953ff289
DN
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775done
4776done
4777
1cf3d07d 4778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
953ff289
DN
4779fi
4780fi
1cf3d07d
SE
4781ac_ct_AR=$ac_cv_prog_ac_ct_AR
4782if test -n "$ac_ct_AR"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4784echo "${ECHO_T}$ac_ct_AR" >&6
953ff289
DN
4785else
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
4788fi
4789
1cf3d07d 4790 AR=$ac_ct_AR
953ff289 4791else
1cf3d07d 4792 AR="$ac_cv_prog_AR"
953ff289
DN
4793fi
4794
1cf3d07d
SE
4795test -z "$AR" && AR=ar
4796test -z "$AR_FLAGS" && AR_FLAGS=cru
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
953ff289
DN
4808if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4810set dummy ${ac_tool_prefix}strip; ac_word=$2
4811echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813if test "${ac_cv_prog_STRIP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 if test -n "$STRIP"; then
4817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831done
4832
4833fi
4834fi
4835STRIP=$ac_cv_prog_STRIP
4836if test -n "$STRIP"; then
4837 echo "$as_me:$LINENO: result: $STRIP" >&5
4838echo "${ECHO_T}$STRIP" >&6
4839else
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
4842fi
4843
4844fi
4845if test -z "$ac_cv_prog_STRIP"; then
4846 ac_ct_STRIP=$STRIP
4847 # Extract the first word of "strip", so it can be a program name with args.
4848set dummy strip; ac_word=$2
4849echo "$as_me:$LINENO: checking for $ac_word" >&5
4850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854 if test -n "$ac_ct_STRIP"; then
4855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_ac_ct_STRIP="strip"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868done
4869done
4870
4871 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4872fi
4873fi
4874ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4875if test -n "$ac_ct_STRIP"; then
4876 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4877echo "${ECHO_T}$ac_ct_STRIP" >&6
4878else
4879 echo "$as_me:$LINENO: result: no" >&5
4880echo "${ECHO_T}no" >&6
4881fi
4882
4883 STRIP=$ac_ct_STRIP
4884else
4885 STRIP="$ac_cv_prog_STRIP"
4886fi
4887
1cf3d07d 4888test -z "$STRIP" && STRIP=:
953ff289
DN
4889
4890
953ff289 4891
953ff289
DN
4892
4893
953ff289 4894
1cf3d07d
SE
4895if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4897set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4898echo "$as_me:$LINENO: checking for $ac_word" >&5
4899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900if test "${ac_cv_prog_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 if test -n "$RANLIB"; then
4904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917done
4918done
4919
4920fi
4921fi
4922RANLIB=$ac_cv_prog_RANLIB
4923if test -n "$RANLIB"; then
4924 echo "$as_me:$LINENO: result: $RANLIB" >&5
4925echo "${ECHO_T}$RANLIB" >&6
4926else
4927 echo "$as_me:$LINENO: result: no" >&5
4928echo "${ECHO_T}no" >&6
4929fi
4930
4931fi
4932if test -z "$ac_cv_prog_RANLIB"; then
4933 ac_ct_RANLIB=$RANLIB
4934 # Extract the first word of "ranlib", so it can be a program name with args.
4935set dummy ranlib; ac_word=$2
4936echo "$as_me:$LINENO: checking for $ac_word" >&5
4937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 if test -n "$ac_ct_RANLIB"; then
4942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_RANLIB="ranlib"
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955done
4956done
4957
4958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4959fi
4960fi
4961ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4962if test -n "$ac_ct_RANLIB"; then
4963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4964echo "${ECHO_T}$ac_ct_RANLIB" >&6
4965else
4966 echo "$as_me:$LINENO: result: no" >&5
4967echo "${ECHO_T}no" >&6
4968fi
4969
4970 RANLIB=$ac_ct_RANLIB
4971else
4972 RANLIB="$ac_cv_prog_RANLIB"
4973fi
4974
4975test -z "$RANLIB" && RANLIB=:
4976
4977
4978
4979
4980
4981
4982# Determine commands to create old-style static archives.
6b4a97ed 4983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
4984old_postinstall_cmds='chmod 644 $oldlib'
4985old_postuninstall_cmds=
4986
4987if test -n "$RANLIB"; then
4988 case $host_os in
4989 openbsd*)
4990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4991 ;;
4992 *)
4993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4994 ;;
4995 esac
4996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4997fi
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032# If no C compiler was specified, use CC.
5033LTCC=${LTCC-"$CC"}
5034
5035# If no C compiler flags were specified, use CFLAGS.
5036LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5037
5038# Allow CC to be a program name with arguments.
5039compiler=$CC
5040
5041
5042# Check for command to grab the raw symbol name followed by C symbol from nm.
5043echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5044echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5045if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048
5049# These are sane defaults that work on at least a few old systems.
5050# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5051
5052# Character class describing NM global symbol codes.
5053symcode='[BCDEGRST]'
5054
5055# Regexp to match symbols that can be accessed directly from C.
5056sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5057
5058# Define system-specific variables.
5059case $host_os in
5060aix*)
5061 symcode='[BCDT]'
5062 ;;
6b4a97ed 5063cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5064 symcode='[ABCDGISTW]'
5065 ;;
5066hpux*)
5067 if test "$host_cpu" = ia64; then
5068 symcode='[ABCDEGRST]'
5069 fi
5070 ;;
5071irix* | nonstopux*)
5072 symcode='[BCDEGRST]'
5073 ;;
5074osf*)
5075 symcode='[BCDEGQRST]'
5076 ;;
5077solaris*)
5078 symcode='[BDRT]'
5079 ;;
5080sco3.2v5*)
5081 symcode='[DT]'
5082 ;;
5083sysv4.2uw2*)
5084 symcode='[DT]'
5085 ;;
5086sysv5* | sco5v6* | unixware* | OpenUNIX*)
5087 symcode='[ABDT]'
5088 ;;
5089sysv4)
5090 symcode='[DFNSTU]'
5091 ;;
5092esac
5093
5094# If we're using GNU nm, then use its standard symbol codes.
5095case `$NM -V 2>&1` in
5096*GNU* | *'with BFD'*)
5097 symcode='[ABCDGIRSTW]' ;;
5098esac
5099
5100# Transform an extracted symbol line into a proper C declaration.
5101# Some systems (esp. on ia64) link data and code symbols differently,
5102# so use this general approach.
5103lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5104
5105# Transform an extracted symbol line into symbol name and symbol address
5106lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6b4a97ed 5107lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
5108
5109# Handle CRLF in mingw tool chain
5110opt_cr=
5111case $build_os in
5112mingw*)
5113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5114 ;;
5115esac
5116
5117# Try without a prefix underscore, then with it.
5118for ac_symprfx in "" "_"; do
5119
5120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5121 symxfrm="\\1 $ac_symprfx\\2 \\2"
5122
5123 # Write the raw and C identifiers.
5124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5125 # Fake it for dumpbin and say T for any non-static function
5126 # and D for any global variable.
5127 # Also find C++ and __fastcall symbols from MSVC++,
5128 # which start with @ or ?.
5129 lt_cv_sys_global_symbol_pipe="$AWK '"\
5130" {last_section=section; section=\$ 3};"\
5131" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5132" \$ 0!~/External *\|/{next};"\
5133" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5134" {if(hide[section]) next};"\
5135" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5136" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5137" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5138" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5139" ' prfx=^$ac_symprfx"
5140 else
5141 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5142 fi
5143
5144 # Check to see that the pipe works correctly.
5145 pipe_works=no
5146
5147 rm -f conftest*
5148 cat > conftest.$ac_ext <<_LT_EOF
5149#ifdef __cplusplus
5150extern "C" {
5151#endif
5152char nm_test_var;
5153void nm_test_func(void);
5154void nm_test_func(void){}
5155#ifdef __cplusplus
5156}
5157#endif
5158int main(){nm_test_var='a';nm_test_func();return(0);}
5159_LT_EOF
5160
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; then
5166 # Now try to grab the symbols.
5167 nlist=conftest.nm
5168 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && test -s "$nlist"; then
5173 # Try sorting and uniquifying the output.
5174 if sort "$nlist" | uniq > "$nlist"T; then
5175 mv -f "$nlist"T "$nlist"
5176 else
5177 rm -f "$nlist"T
5178 fi
5179
5180 # Make sure that we snagged all the symbols we need.
5181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5183 cat <<_LT_EOF > conftest.$ac_ext
5184#ifdef __cplusplus
5185extern "C" {
5186#endif
5187
5188_LT_EOF
5189 # Now generate the symbol file.
5190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5191
5192 cat <<_LT_EOF >> conftest.$ac_ext
5193
5194/* The mapping between symbol names and symbols. */
5195const struct {
5196 const char *name;
5197 void *address;
5198}
5199lt__PROGRAM__LTX_preloaded_symbols[] =
5200{
5201 { "@PROGRAM@", (void *) 0 },
5202_LT_EOF
5203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5204 cat <<\_LT_EOF >> conftest.$ac_ext
5205 {0, (void *) 0}
5206};
5207
5208/* This works around a problem in FreeBSD linker */
5209#ifdef FREEBSD_WORKAROUND
5210static const void *lt_preloaded_setup() {
5211 return lt__PROGRAM__LTX_preloaded_symbols;
5212}
5213#endif
5214
5215#ifdef __cplusplus
5216}
5217#endif
5218_LT_EOF
5219 # Now try linking the two files.
5220 mv conftest.$ac_objext conftstm.$ac_objext
5221 lt_save_LIBS="$LIBS"
5222 lt_save_CFLAGS="$CFLAGS"
5223 LIBS="conftstm.$ac_objext"
5224 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5230 pipe_works=yes
5231 fi
5232 LIBS="$lt_save_LIBS"
5233 CFLAGS="$lt_save_CFLAGS"
5234 else
5235 echo "cannot find nm_test_func in $nlist" >&5
5236 fi
5237 else
5238 echo "cannot find nm_test_var in $nlist" >&5
5239 fi
5240 else
5241 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5242 fi
5243 else
5244 echo "$progname: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5246 fi
6b4a97ed 5247 rm -rf conftest* conftst*
1cf3d07d
SE
5248
5249 # Do not use the global_symbol_pipe unless it works.
5250 if test "$pipe_works" = yes; then
5251 break
5252 else
5253 lt_cv_sys_global_symbol_pipe=
5254 fi
5255done
5256
5257fi
5258
5259if test -z "$lt_cv_sys_global_symbol_pipe"; then
5260 lt_cv_sys_global_symbol_to_cdecl=
5261fi
5262if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5263 echo "$as_me:$LINENO: result: failed" >&5
5264echo "${ECHO_T}failed" >&6
5265else
5266 echo "$as_me:$LINENO: result: ok" >&5
5267echo "${ECHO_T}ok" >&6
5268fi
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
6b4a97ed
PG
5284
5285
5286
5287
5288
1cf3d07d
SE
5289
5290
5291
5292# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5293if test "${enable_libtool_lock+set}" = set; then
5294 enableval="$enable_libtool_lock"
5295
5296fi;
5297test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5298
5299# Some flags need to be propagated to the compiler or linker for good
953ff289
DN
5300# libtool support.
5301case $host in
1cf3d07d 5302ia64-*-hpux*)
953ff289 5303 # Find out which ABI we are using.
1cf3d07d 5304 echo 'int i;' > conftest.$ac_ext
953ff289
DN
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
5309 (exit $ac_status); }; then
5310 case `/usr/bin/file conftest.$ac_objext` in
5311 *ELF-32*)
5312 HPUX_IA64_MODE="32"
5313 ;;
5314 *ELF-64*)
5315 HPUX_IA64_MODE="64"
5316 ;;
5317 esac
5318 fi
5319 rm -rf conftest*
5320 ;;
5321*-*-irix6*)
5322 # Find out which ABI we are using.
6b4a97ed 5323 echo '#line 5323 "configure"' > conftest.$ac_ext
1cf3d07d
SE
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; then
5329 if test "$lt_cv_prog_gnu_ld" = yes; then
5330 case `/usr/bin/file conftest.$ac_objext` in
5331 *32-bit*)
5332 LD="${LD-ld} -melf32bsmip"
5333 ;;
5334 *N32*)
5335 LD="${LD-ld} -melf32bmipn32"
5336 ;;
5337 *64-bit*)
5338 LD="${LD-ld} -melf64bmip"
5339 ;;
5340 esac
5341 else
5342 case `/usr/bin/file conftest.$ac_objext` in
5343 *32-bit*)
5344 LD="${LD-ld} -32"
5345 ;;
5346 *N32*)
5347 LD="${LD-ld} -n32"
5348 ;;
5349 *64-bit*)
5350 LD="${LD-ld} -64"
5351 ;;
5352 esac
5353 fi
5354 fi
5355 rm -rf conftest*
5356 ;;
5357
5358x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5359s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5360 # Find out which ABI we are using.
5361 echo 'int i;' > conftest.$ac_ext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363 (eval $ac_compile) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; then
5367 case `/usr/bin/file conftest.o` in
5368 *32-bit*)
5369 case $host in
5370 x86_64-*kfreebsd*-gnu)
5371 LD="${LD-ld} -m elf_i386_fbsd"
5372 ;;
5373 x86_64-*linux*)
5374 LD="${LD-ld} -m elf_i386"
5375 ;;
5376 ppc64-*linux*|powerpc64-*linux*)
5377 LD="${LD-ld} -m elf32ppclinux"
5378 ;;
5379 s390x-*linux*)
5380 LD="${LD-ld} -m elf_s390"
5381 ;;
5382 sparc64-*linux*)
5383 LD="${LD-ld} -m elf32_sparc"
5384 ;;
5385 esac
5386 ;;
5387 *64-bit*)
5388 case $host in
5389 x86_64-*kfreebsd*-gnu)
5390 LD="${LD-ld} -m elf_x86_64_fbsd"
5391 ;;
5392 x86_64-*linux*)
5393 LD="${LD-ld} -m elf_x86_64"
5394 ;;
5395 ppc*-*linux*|powerpc*-*linux*)
5396 LD="${LD-ld} -m elf64ppc"
5397 ;;
5398 s390*-*linux*|s390*-*tpf*)
5399 LD="${LD-ld} -m elf64_s390"
5400 ;;
5401 sparc*-*linux*)
5402 LD="${LD-ld} -m elf64_sparc"
5403 ;;
5404 esac
5405 ;;
5406 esac
5407 fi
5408 rm -rf conftest*
5409 ;;
5410
5411*-*-sco3.2v5*)
5412 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5413 SAVE_CFLAGS="$CFLAGS"
5414 CFLAGS="$CFLAGS -belf"
5415 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5416echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5417if test "${lt_cv_cc_needs_belf+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420 ac_ext=c
5421ac_cpp='$CPP $CPPFLAGS'
5422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425
5426 cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432
5433int
5434main ()
5435{
5436
5437 ;
5438 return 0;
5439}
5440_ACEOF
5441rm -f conftest.$ac_objext conftest$ac_exeext
5442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5443 (eval $ac_link) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest$ac_exeext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 lt_cv_cc_needs_belf=yes
5464else
5465 echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468lt_cv_cc_needs_belf=no
5469fi
5470rm -f conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5472 ac_ext=c
5473ac_cpp='$CPP $CPPFLAGS'
5474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478fi
5479echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5480echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5481 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5482 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5483 CFLAGS="$SAVE_CFLAGS"
5484 fi
5485 ;;
5486sparc*-*solaris*)
5487 # Find out which ABI we are using.
5488 echo 'int i;' > conftest.$ac_ext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; then
5494 case `/usr/bin/file conftest.o` in
5495 *64-bit*)
5496 case $lt_cv_prog_gnu_ld in
5497 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6b4a97ed
PG
5498 *)
5499 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5500 LD="${LD-ld} -64"
5501 fi
5502 ;;
1cf3d07d
SE
5503 esac
5504 ;;
5505 esac
5506 fi
5507 rm -rf conftest*
5508 ;;
5509esac
5510
5511need_locks="$enable_libtool_lock"
5512
6b4a97ed
PG
5513
5514 case $host_os in
5515 rhapsody* | darwin*)
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5518set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5519echo "$as_me:$LINENO: checking for $ac_word" >&5
5520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
1cf3d07d
SE
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
6b4a97ed
PG
5524 if test -n "$DSYMUTIL"; then
5525 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
1cf3d07d 5529do
6b4a97ed
PG
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
1cf3d07d 5537 fi
6b4a97ed
PG
5538done
5539done
5540
5541fi
5542fi
5543DSYMUTIL=$ac_cv_prog_DSYMUTIL
5544if test -n "$DSYMUTIL"; then
5545 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5546echo "${ECHO_T}$DSYMUTIL" >&6
5547else
5548 echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
5550fi
5551
5552fi
5553if test -z "$ac_cv_prog_DSYMUTIL"; then
5554 ac_ct_DSYMUTIL=$DSYMUTIL
5555 # Extract the first word of "dsymutil", so it can be a program name with args.
5556set dummy dsymutil; ac_word=$2
5557echo "$as_me:$LINENO: checking for $ac_word" >&5
5558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 if test -n "$ac_ct_DSYMUTIL"; then
5563 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576done
5577done
5578
5579 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5580fi
5581fi
5582ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5583if test -n "$ac_ct_DSYMUTIL"; then
5584 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5585echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5586else
5587 echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589fi
5590
5591 DSYMUTIL=$ac_ct_DSYMUTIL
5592else
5593 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5594fi
5595
5596 if test -n "$ac_tool_prefix"; then
5597 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5598set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5599echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601if test "${ac_cv_prog_NMEDIT+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604 if test -n "$NMEDIT"; then
5605 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618done
5619done
5620
5621fi
5622fi
5623NMEDIT=$ac_cv_prog_NMEDIT
5624if test -n "$NMEDIT"; then
5625 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5626echo "${ECHO_T}$NMEDIT" >&6
5627else
5628 echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6
5630fi
5631
5632fi
5633if test -z "$ac_cv_prog_NMEDIT"; then
5634 ac_ct_NMEDIT=$NMEDIT
5635 # Extract the first word of "nmedit", so it can be a program name with args.
5636set dummy nmedit; ac_word=$2
5637echo "$as_me:$LINENO: checking for $ac_word" >&5
5638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642 if test -n "$ac_ct_NMEDIT"; then
5643 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656done
5657done
5658
5659 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5660fi
5661fi
5662ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5663if test -n "$ac_ct_NMEDIT"; then
5664 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5665echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5666else
5667 echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
5669fi
5670
5671 NMEDIT=$ac_ct_NMEDIT
5672else
5673 NMEDIT="$ac_cv_prog_NMEDIT"
5674fi
5675
5676 if test -n "$ac_tool_prefix"; then
5677 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5678set dummy ${ac_tool_prefix}lipo; ac_word=$2
5679echo "$as_me:$LINENO: checking for $ac_word" >&5
5680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681if test "${ac_cv_prog_LIPO+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684 if test -n "$LIPO"; then
5685 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699done
5700
5701fi
5702fi
5703LIPO=$ac_cv_prog_LIPO
5704if test -n "$LIPO"; then
5705 echo "$as_me:$LINENO: result: $LIPO" >&5
5706echo "${ECHO_T}$LIPO" >&6
5707else
5708 echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710fi
5711
5712fi
5713if test -z "$ac_cv_prog_LIPO"; then
5714 ac_ct_LIPO=$LIPO
5715 # Extract the first word of "lipo", so it can be a program name with args.
5716set dummy lipo; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722 if test -n "$ac_ct_LIPO"; then
5723 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_LIPO="lipo"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736done
5737done
5738
5739 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5740fi
5741fi
5742ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5743if test -n "$ac_ct_LIPO"; then
5744 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5745echo "${ECHO_T}$ac_ct_LIPO" >&6
5746else
5747 echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
5749fi
5750
5751 LIPO=$ac_ct_LIPO
5752else
5753 LIPO="$ac_cv_prog_LIPO"
5754fi
5755
5756 if test -n "$ac_tool_prefix"; then
5757 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5758set dummy ${ac_tool_prefix}otool; ac_word=$2
5759echo "$as_me:$LINENO: checking for $ac_word" >&5
5760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5761if test "${ac_cv_prog_OTOOL+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764 if test -n "$OTOOL"; then
5765 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5766else
5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778done
5779done
5780
5781fi
5782fi
5783OTOOL=$ac_cv_prog_OTOOL
5784if test -n "$OTOOL"; then
5785 echo "$as_me:$LINENO: result: $OTOOL" >&5
5786echo "${ECHO_T}$OTOOL" >&6
5787else
5788 echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6
5790fi
5791
5792fi
5793if test -z "$ac_cv_prog_OTOOL"; then
5794 ac_ct_OTOOL=$OTOOL
5795 # Extract the first word of "otool", so it can be a program name with args.
5796set dummy otool; ac_word=$2
5797echo "$as_me:$LINENO: checking for $ac_word" >&5
5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802 if test -n "$ac_ct_OTOOL"; then
5803 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_ac_ct_OTOOL="otool"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816done
5817done
5818
5819 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5820fi
5821fi
5822ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5823if test -n "$ac_ct_OTOOL"; then
5824 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5825echo "${ECHO_T}$ac_ct_OTOOL" >&6
5826else
5827 echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
5829fi
5830
5831 OTOOL=$ac_ct_OTOOL
5832else
5833 OTOOL="$ac_cv_prog_OTOOL"
5834fi
5835
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}otool64; ac_word=$2
5839echo "$as_me:$LINENO: checking for $ac_word" >&5
5840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841if test "${ac_cv_prog_OTOOL64+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844 if test -n "$OTOOL64"; then
5845 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859done
5860
5861fi
5862fi
5863OTOOL64=$ac_cv_prog_OTOOL64
5864if test -n "$OTOOL64"; then
5865 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5866echo "${ECHO_T}$OTOOL64" >&6
5867else
5868 echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
5870fi
5871
5872fi
5873if test -z "$ac_cv_prog_OTOOL64"; then
5874 ac_ct_OTOOL64=$OTOOL64
5875 # Extract the first word of "otool64", so it can be a program name with args.
5876set dummy otool64; ac_word=$2
5877echo "$as_me:$LINENO: checking for $ac_word" >&5
5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 if test -n "$ac_ct_OTOOL64"; then
5883 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_ac_ct_OTOOL64="otool64"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896done
5897done
5898
5899 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5900fi
5901fi
5902ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5903if test -n "$ac_ct_OTOOL64"; then
5904 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5905echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5906else
5907 echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6
5909fi
5910
5911 OTOOL64=$ac_ct_OTOOL64
5912else
5913 OTOOL64="$ac_cv_prog_OTOOL64"
5914fi
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5943echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5944if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 lt_cv_apple_cc_single_mod=no
5948 if test -z "${LT_MULTI_MODULE}"; then
5949 # By default we will add the -single_module flag. You can override
5950 # by either setting the environment variable LT_MULTI_MODULE
5951 # non-empty at configure time, or by adding -multi_module to the
5952 # link flags.
5953 rm -rf libconftest.dylib*
5954 echo "int foo(void){return 1;}" > conftest.c
5955 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5956-dynamiclib -Wl,-single_module conftest.c" >&5
5957 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5958 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5959 _lt_result=$?
5960 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5961 lt_cv_apple_cc_single_mod=yes
5962 else
5963 cat conftest.err >&5
5964 fi
5965 rm -rf libconftest.dylib*
5966 rm -f conftest.*
5967 fi
5968fi
5969echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5970echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5971 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5972echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5973if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976 lt_cv_ld_exported_symbols_list=no
5977 save_LDFLAGS=$LDFLAGS
5978 echo "_main" > conftest.sym
5979 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5980 cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h. */
5986
5987int
5988main ()
5989{
5990
5991 ;
5992 return 0;
5993}
5994_ACEOF
5995rm -f conftest.$ac_objext conftest$ac_exeext
5996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997 (eval $ac_link) 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag"
6005 || test ! -s conftest.err'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest$ac_exeext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 lt_cv_ld_exported_symbols_list=yes
6018else
6019 echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022lt_cv_ld_exported_symbols_list=no
6023fi
6024rm -f conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6026 LDFLAGS="$save_LDFLAGS"
6027
6028fi
6029echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6030echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6031 case $host_os in
6032 rhapsody* | darwin1.[012])
6033 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6034 darwin1.*)
6035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6036 darwin*) # darwin 5.x on
6037 # if running on 10.5 or later, the deployment target defaults
6038 # to the OS version, if on x86, and 10.4, the deployment
6039 # target defaults to 10.4. Don't you love it?
6040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6043 10.[012]*)
6044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6045 10.*)
6046 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6047 esac
6048 ;;
6049 esac
6050 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6051 _lt_dar_single_mod='$single_module'
6052 fi
6053 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6054 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6055 else
6056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6057 fi
6058 if test "$DSYMUTIL" != ":"; then
6059 _lt_dsymutil='~$DSYMUTIL $lib || :'
6060 else
6061 _lt_dsymutil=
6062 fi
6063 ;;
6064 esac
6065
6066ac_ext=c
6067ac_cpp='$CPP $CPPFLAGS'
6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6072echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6073# On Suns, sometimes $CPP names a directory.
6074if test -n "$CPP" && test -d "$CPP"; then
6075 CPP=
6076fi
6077if test -z "$CPP"; then
6078 if test "${ac_cv_prog_CPP+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 # Double quotes because CPP needs to be expanded
6082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6083 do
6084 ac_preproc_ok=false
6085for ac_c_preproc_warn_flag in '' yes
6086do
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099#ifdef __STDC__
6100# include <limits.h>
6101#else
6102# include <assert.h>
6103#endif
6104 Syntax error
6105_ACEOF
6106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } >/dev/null; then
6114 if test -s conftest.err; then
6115 ac_cpp_err=$ac_c_preproc_warn_flag
6116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6117 else
6118 ac_cpp_err=
6119 fi
6120else
6121 ac_cpp_err=yes
1cf3d07d
SE
6122fi
6123if test -z "$ac_cpp_err"; then
6124 :
6125else
6126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 # Broken: fails on valid input.
6130continue
6131fi
6132rm -f conftest.err conftest.$ac_ext
6133
6134 # OK, works on sane cases. Now check whether non-existent headers
6135 # can be detected and how.
6136 cat >conftest.$ac_ext <<_ACEOF
6137/* confdefs.h. */
6138_ACEOF
6139cat confdefs.h >>conftest.$ac_ext
6140cat >>conftest.$ac_ext <<_ACEOF
6141/* end confdefs.h. */
6142#include <ac_nonexistent.h>
6143_ACEOF
6144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null; then
6152 if test -s conftest.err; then
6153 ac_cpp_err=$ac_c_preproc_warn_flag
6154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6155 else
6156 ac_cpp_err=
6157 fi
6158else
6159 ac_cpp_err=yes
6160fi
6161if test -z "$ac_cpp_err"; then
6162 # Broken: success on invalid input.
6163continue
6164else
6165 echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 # Passes both tests.
6169ac_preproc_ok=:
6170break
6171fi
6172rm -f conftest.err conftest.$ac_ext
6173
6174done
6175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176rm -f conftest.err conftest.$ac_ext
6177if $ac_preproc_ok; then
6178 break
6179fi
6180
6181 done
6182 ac_cv_prog_CPP=$CPP
6183
6184fi
6185 CPP=$ac_cv_prog_CPP
6186else
6187 ac_cv_prog_CPP=$CPP
6188fi
6189echo "$as_me:$LINENO: result: $CPP" >&5
6190echo "${ECHO_T}$CPP" >&6
6191ac_preproc_ok=false
6192for ac_c_preproc_warn_flag in '' yes
6193do
6194 # Use a header file that comes with gcc, so configuring glibc
6195 # with a fresh cross-compiler works.
6196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6197 # <limits.h> exists even on freestanding compilers.
6198 # On the NeXT, cc -E runs the code through the compiler's parser,
6199 # not just through cpp. "Syntax error" is here to catch this case.
6200 cat >conftest.$ac_ext <<_ACEOF
6201/* confdefs.h. */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h. */
6206#ifdef __STDC__
6207# include <limits.h>
6208#else
6209# include <assert.h>
6210#endif
6211 Syntax error
6212_ACEOF
6213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } >/dev/null; then
6221 if test -s conftest.err; then
6222 ac_cpp_err=$ac_c_preproc_warn_flag
6223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6224 else
6225 ac_cpp_err=
6226 fi
6227else
6228 ac_cpp_err=yes
6229fi
6230if test -z "$ac_cpp_err"; then
6231 :
6232else
6233 echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 # Broken: fails on valid input.
6237continue
6238fi
6239rm -f conftest.err conftest.$ac_ext
6240
6241 # OK, works on sane cases. Now check whether non-existent headers
6242 # can be detected and how.
6243 cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h. */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h. */
6249#include <ac_nonexistent.h>
6250_ACEOF
6251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } >/dev/null; then
6259 if test -s conftest.err; then
6260 ac_cpp_err=$ac_c_preproc_warn_flag
6261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6262 else
6263 ac_cpp_err=
6264 fi
6265else
6266 ac_cpp_err=yes
6267fi
6268if test -z "$ac_cpp_err"; then
6269 # Broken: success on invalid input.
6270continue
6271else
6272 echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 # Passes both tests.
6276ac_preproc_ok=:
6277break
6278fi
6279rm -f conftest.err conftest.$ac_ext
6280
6281done
6282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6283rm -f conftest.err conftest.$ac_ext
6284if $ac_preproc_ok; then
6285 :
6286else
18c04407
RW
6287 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6288echo "$as_me: error: in \`$ac_pwd':" >&2;}
6289{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
6290See \`config.log' for more details." >&5
6291echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6292See \`config.log' for more details." >&2;}
18c04407 6293 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
6294fi
6295
6296ac_ext=c
6297ac_cpp='$CPP $CPPFLAGS'
6298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300ac_compiler_gnu=$ac_cv_c_compiler_gnu
6301
6302
6303echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6304echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6305if test "${ac_cv_header_stdc+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308 cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
6314#include <stdlib.h>
6315#include <stdarg.h>
6316#include <string.h>
6317#include <float.h>
6318
6319int
6320main ()
6321{
6322
6323 ;
6324 return 0;
6325}
6326_ACEOF
6327rm -f conftest.$ac_objext
6328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag"
6337 || test ! -s conftest.err'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest.$ac_objext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_header_stdc=yes
6350else
6351 echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354ac_cv_header_stdc=no
6355fi
6356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357
6358if test $ac_cv_header_stdc = yes; then
6359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6360 cat >conftest.$ac_ext <<_ACEOF
6361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
6365/* end confdefs.h. */
6366#include <string.h>
6367
6368_ACEOF
6369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 $EGREP "memchr" >/dev/null 2>&1; then
6371 :
6372else
6373 ac_cv_header_stdc=no
6374fi
6375rm -f conftest*
6376
6377fi
6378
6379if test $ac_cv_header_stdc = yes; then
6380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6381 cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h. */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h. */
6387#include <stdlib.h>
6388
6389_ACEOF
6390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 $EGREP "free" >/dev/null 2>&1; then
6392 :
6393else
6394 ac_cv_header_stdc=no
6395fi
6396rm -f conftest*
6397
6398fi
6399
6400if test $ac_cv_header_stdc = yes; then
6401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6402 if test "$cross_compiling" = yes; then
6403 :
6404else
6405 cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h. */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h. */
6411#include <ctype.h>
6412#if ((' ' & 0x0FF) == 0x020)
6413# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6414# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6415#else
6416# define ISLOWER(c) \
6417 (('a' <= (c) && (c) <= 'i') \
6418 || ('j' <= (c) && (c) <= 'r') \
6419 || ('s' <= (c) && (c) <= 'z'))
6420# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6421#endif
6422
6423#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6424int
6425main ()
6426{
6427 int i;
6428 for (i = 0; i < 256; i++)
6429 if (XOR (islower (i), ISLOWER (i))
6430 || toupper (i) != TOUPPER (i))
6431 exit(2);
6432 exit (0);
6433}
6434_ACEOF
6435rm -f conftest$ac_exeext
6436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 :
6447else
6448 echo "$as_me: program exited with status $ac_status" >&5
6449echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452( exit $ac_status )
6453ac_cv_header_stdc=no
6454fi
6455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6456fi
6457fi
6458fi
6459echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6460echo "${ECHO_T}$ac_cv_header_stdc" >&6
6461if test $ac_cv_header_stdc = yes; then
6462
6463cat >>confdefs.h <<\_ACEOF
6464#define STDC_HEADERS 1
6465_ACEOF
6466
6467fi
6468
6469# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6480 inttypes.h stdint.h unistd.h
6481do
6482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6483echo "$as_me:$LINENO: checking for $ac_header" >&5
6484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488 cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h. */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h. */
6494$ac_includes_default
6495
6496#include <$ac_header>
6497_ACEOF
6498rm -f conftest.$ac_objext
6499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 eval "$as_ac_Header=yes"
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525eval "$as_ac_Header=no"
6526fi
6527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528fi
6529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h <<_ACEOF
6533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534_ACEOF
6535
6536fi
6537
6538done
6539
6540
6541
6542for ac_header in dlfcn.h
6543do
6544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545echo "$as_me:$LINENO: checking for $ac_header" >&5
6546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6547if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h. */
6556$ac_includes_default
6557
6558#include <$ac_header>
6559_ACEOF
6560rm -f conftest.$ac_objext
6561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562 (eval $ac_compile) 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 eval "$as_ac_Header=yes"
6583else
6584 echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587eval "$as_ac_Header=no"
6588fi
6589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6590fi
6591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596_ACEOF
6597
6598fi
6599
6600done
6601
6602
6603
6b4a97ed
PG
6604# Set options
6605
6606
6607
6608 enable_dlopen=no
6609
6610
6611 enable_win32_dll=no
6612
6613
6614 # Check whether --enable-shared or --disable-shared was given.
6615if test "${enable_shared+set}" = set; then
6616 enableval="$enable_shared"
6617 p=${PACKAGE-default}
6618 case $enableval in
6619 yes) enable_shared=yes ;;
6620 no) enable_shared=no ;;
6621 *)
6622 enable_shared=no
6623 # Look at the argument we got. We use all the common list separators.
6624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6625 for pkg in $enableval; do
6626 IFS="$lt_save_ifs"
6627 if test "X$pkg" = "X$p"; then
6628 enable_shared=yes
6629 fi
6630 done
6631 IFS="$lt_save_ifs"
6632 ;;
6633 esac
6634else
6635 enable_shared=yes
6636fi;
6637
6638
6639
6640
6641
6642
6643
6644
6645 # Check whether --enable-static or --disable-static was given.
6646if test "${enable_static+set}" = set; then
6647 enableval="$enable_static"
6648 p=${PACKAGE-default}
6649 case $enableval in
6650 yes) enable_static=yes ;;
6651 no) enable_static=no ;;
6652 *)
6653 enable_static=no
6654 # Look at the argument we got. We use all the common list separators.
6655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6656 for pkg in $enableval; do
6657 IFS="$lt_save_ifs"
6658 if test "X$pkg" = "X$p"; then
6659 enable_static=yes
6660 fi
6661 done
6662 IFS="$lt_save_ifs"
6663 ;;
6664 esac
6665else
6666 enable_static=yes
6667fi;
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677# Check whether --with-pic or --without-pic was given.
6678if test "${with_pic+set}" = set; then
6679 withval="$with_pic"
6680 pic_mode="$withval"
6681else
6682 pic_mode=default
6683fi;
6684
6685test -z "$pic_mode" && pic_mode=default
6686
6687
6688
6689
6690
6691
6692
6693 # Check whether --enable-fast-install or --disable-fast-install was given.
6694if test "${enable_fast_install+set}" = set; then
6695 enableval="$enable_fast_install"
6696 p=${PACKAGE-default}
6697 case $enableval in
6698 yes) enable_fast_install=yes ;;
6699 no) enable_fast_install=no ;;
6700 *)
6701 enable_fast_install=no
6702 # Look at the argument we got. We use all the common list separators.
6703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6704 for pkg in $enableval; do
6705 IFS="$lt_save_ifs"
6706 if test "X$pkg" = "X$p"; then
6707 enable_fast_install=yes
6708 fi
6709 done
6710 IFS="$lt_save_ifs"
6711 ;;
6712 esac
6713else
6714 enable_fast_install=yes
6715fi;
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
1cf3d07d
SE
6726# This can be used to rebuild libtool when needed
6727LIBTOOL_DEPS="$ltmain"
6728
6729# Always use our own libtool.
6730LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756test -z "$LN_S" && LN_S="ln -s"
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771if test -n "${ZSH_VERSION+set}" ; then
6772 setopt NO_GLOB_SUBST
6773fi
6774
6775echo "$as_me:$LINENO: checking for objdir" >&5
6776echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6777if test "${lt_cv_objdir+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780 rm -f .libs 2>/dev/null
6781mkdir .libs 2>/dev/null
6782if test -d .libs; then
6783 lt_cv_objdir=.libs
6784else
6785 # MS-DOS does not allow filenames that begin with a dot.
6786 lt_cv_objdir=_libs
6787fi
6788rmdir .libs 2>/dev/null
6789fi
6790echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6791echo "${ECHO_T}$lt_cv_objdir" >&6
6792objdir=$lt_cv_objdir
6793
6794
6795
6796
6797
6798cat >>confdefs.h <<_ACEOF
6799#define LT_OBJDIR "$lt_cv_objdir/"
6800_ACEOF
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818case $host_os in
6819aix3*)
6820 # AIX sometimes has problems with the GCC collect2 program. For some
6821 # reason, if we set the COLLECT_NAMES environment variable, the problems
6822 # vanish in a puff of smoke.
6823 if test "X${COLLECT_NAMES+set}" != Xset; then
6824 COLLECT_NAMES=
6825 export COLLECT_NAMES
6826 fi
6827 ;;
6828esac
6829
6830# Sed substitution that helps us do robust quoting. It backslashifies
6831# metacharacters that are still active within double-quoted strings.
6832sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6833
6834# Same as above, but do not quote variable references.
6835double_quote_subst='s/\(["`\\]\)/\\\1/g'
6836
6837# Sed substitution to delay expansion of an escaped shell variable in a
6838# double_quote_subst'ed string.
6839delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6840
6841# Sed substitution to delay expansion of an escaped single quote.
6842delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6843
6844# Sed substitution to avoid accidental globbing in evaled expressions
6845no_glob_subst='s/\*/\\\*/g'
6846
6847# Global variables:
6848ofile=libtool
6849can_build_shared=yes
6850
6851# All known linkers require a `.a' archive for static linking (except MSVC,
6852# which needs '.lib').
6853libext=a
6854
6855with_gnu_ld="$lt_cv_prog_gnu_ld"
6856
6857old_CC="$CC"
6858old_CFLAGS="$CFLAGS"
6859
6860# Set sane defaults for various variables
6861test -z "$CC" && CC=cc
6862test -z "$LTCC" && LTCC=$CC
6863test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6864test -z "$LD" && LD=ld
6865test -z "$ac_objext" && ac_objext=o
6866
6867for cc_temp in $compiler""; do
6868 case $cc_temp in
6869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6871 \-*) ;;
6872 *) break;;
6873 esac
6874done
6875cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6876
6877
6878# Only perform the check for file, if the check method requires it
6879test -z "$MAGIC_CMD" && MAGIC_CMD=file
6880case $deplibs_check_method in
6881file_magic*)
6882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6883 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6884echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6885if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 case $MAGIC_CMD in
6889[\\/*] | ?:[\\/]*)
6890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6891 ;;
6892*)
6893 lt_save_MAGIC_CMD="$MAGIC_CMD"
6894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6896 for ac_dir in $ac_dummy; do
6897 IFS="$lt_save_ifs"
6898 test -z "$ac_dir" && ac_dir=.
6899 if test -f $ac_dir/${ac_tool_prefix}file; then
6900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6901 if test -n "$file_magic_test_file"; then
6902 case $deplibs_check_method in
6903 "file_magic "*)
6904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6907 $EGREP "$file_magic_regex" > /dev/null; then
6908 :
6909 else
6910 cat <<_LT_EOF 1>&2
6911
6912*** Warning: the command libtool uses to detect shared libraries,
6913*** $file_magic_cmd, produces output that libtool cannot recognize.
6914*** The result is that libtool may fail to recognize shared libraries
6915*** as such. This will affect the creation of libtool libraries that
6916*** depend on shared libraries, but programs linked with such libtool
6917*** libraries will work regardless of this problem. Nevertheless, you
6918*** may want to report the problem to your system manager and/or to
6919*** bug-libtool@gnu.org
6920
6921_LT_EOF
6922 fi ;;
6923 esac
6924 fi
6925 break
6926 fi
6927 done
6928 IFS="$lt_save_ifs"
6929 MAGIC_CMD="$lt_save_MAGIC_CMD"
6930 ;;
6931esac
6932fi
6933
6934MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6935if test -n "$MAGIC_CMD"; then
6936 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6937echo "${ECHO_T}$MAGIC_CMD" >&6
6938else
6939 echo "$as_me:$LINENO: result: no" >&5
6940echo "${ECHO_T}no" >&6
6941fi
6942
6943
6944
6945
6946
6947if test -z "$lt_cv_path_MAGIC_CMD"; then
6948 if test -n "$ac_tool_prefix"; then
6949 echo "$as_me:$LINENO: checking for file" >&5
6950echo $ECHO_N "checking for file... $ECHO_C" >&6
6951if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954 case $MAGIC_CMD in
6955[\\/*] | ?:[\\/]*)
6956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6957 ;;
6958*)
6959 lt_save_MAGIC_CMD="$MAGIC_CMD"
6960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6962 for ac_dir in $ac_dummy; do
6963 IFS="$lt_save_ifs"
6964 test -z "$ac_dir" && ac_dir=.
6965 if test -f $ac_dir/file; then
6966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6967 if test -n "$file_magic_test_file"; then
6968 case $deplibs_check_method in
6969 "file_magic "*)
6970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6973 $EGREP "$file_magic_regex" > /dev/null; then
6974 :
6975 else
6976 cat <<_LT_EOF 1>&2
6977
6978*** Warning: the command libtool uses to detect shared libraries,
6979*** $file_magic_cmd, produces output that libtool cannot recognize.
6980*** The result is that libtool may fail to recognize shared libraries
6981*** as such. This will affect the creation of libtool libraries that
6982*** depend on shared libraries, but programs linked with such libtool
6983*** libraries will work regardless of this problem. Nevertheless, you
6984*** may want to report the problem to your system manager and/or to
6985*** bug-libtool@gnu.org
6986
6987_LT_EOF
6988 fi ;;
6989 esac
6990 fi
6991 break
6992 fi
6993 done
6994 IFS="$lt_save_ifs"
6995 MAGIC_CMD="$lt_save_MAGIC_CMD"
6996 ;;
6997esac
6998fi
6999
7000MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7001if test -n "$MAGIC_CMD"; then
7002 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7003echo "${ECHO_T}$MAGIC_CMD" >&6
7004else
7005 echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6
7007fi
7008
7009
7010 else
7011 MAGIC_CMD=:
7012 fi
7013fi
7014
7015 fi
7016 ;;
7017esac
7018
7019# Use C for the default configuration in the libtool script
7020
7021lt_save_CC="$CC"
7022ac_ext=c
7023ac_cpp='$CPP $CPPFLAGS'
7024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027
7028
7029# Source file extension for C test sources.
7030ac_ext=c
7031
7032# Object file extension for compiled C test sources.
7033objext=o
7034objext=$objext
7035
7036# Code to be used in simple compile tests
7037lt_simple_compile_test_code="int some_variable = 0;"
7038
7039# Code to be used in simple link tests
7040lt_simple_link_test_code='int main(){return(0);}'
7041
7042
7043
7044
7045
7046
7047
7048# If no C compiler was specified, use CC.
7049LTCC=${LTCC-"$CC"}
7050
7051# If no C compiler flags were specified, use CFLAGS.
7052LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7053
7054# Allow CC to be a program name with arguments.
7055compiler=$CC
7056
7057# Save the default compiler, since it gets overwritten when the other
7058# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7059compiler_DEFAULT=$CC
7060
7061# save warnings/boilerplate of simple test code
7062ac_outfile=conftest.$ac_objext
7063echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7065_lt_compiler_boilerplate=`cat conftest.err`
7066$RM conftest*
7067
7068ac_outfile=conftest.$ac_objext
7069echo "$lt_simple_link_test_code" >conftest.$ac_ext
7070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7071_lt_linker_boilerplate=`cat conftest.err`
6b4a97ed 7072$RM -r conftest*
1cf3d07d
SE
7073
7074
7075## CAVEAT EMPTOR:
7076## There is no encapsulation within the following macros, do not change
7077## the running order or otherwise move them around unless you know exactly
7078## what you are doing...
7079if test -n "$compiler"; then
7080
7081lt_prog_compiler_no_builtin_flag=
7082
7083if test "$GCC" = yes; then
7084 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7085
7086 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7087echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7088if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091 lt_cv_prog_compiler_rtti_exceptions=no
7092 ac_outfile=conftest.$ac_objext
7093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7094 lt_compiler_flag="-fno-rtti -fno-exceptions"
7095 # Insert the option either (1) after the last *FLAGS variable, or
7096 # (2) before a word containing "conftest.", or (3) at the end.
7097 # Note that $ac_compile itself does not contain backslashes and begins
7098 # with a dollar sign (not a hyphen), so the echo should work correctly.
7099 # The option is referenced via a variable to avoid confusing sed.
7100 lt_compile=`echo "$ac_compile" | $SED \
7101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7103 -e 's:$: $lt_compiler_flag:'`
6b4a97ed 7104 (eval echo "\"\$as_me:7104: $lt_compile\"" >&5)
1cf3d07d
SE
7105 (eval "$lt_compile" 2>conftest.err)
7106 ac_status=$?
7107 cat conftest.err >&5
6b4a97ed 7108 echo "$as_me:7108: \$? = $ac_status" >&5
1cf3d07d
SE
7109 if (exit $ac_status) && test -s "$ac_outfile"; then
7110 # The compiler can only warn and ignore the option if not recognized
7111 # So say no if there are warnings other than the usual output.
7112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7115 lt_cv_prog_compiler_rtti_exceptions=yes
7116 fi
7117 fi
7118 $RM conftest*
7119
7120fi
7121echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7122echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7123
7124if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7125 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7126else
7127 :
7128fi
7129
7130fi
7131
7132
7133
7134
7135
7136
7137 lt_prog_compiler_wl=
7138lt_prog_compiler_pic=
7139lt_prog_compiler_static=
7140
7141echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7142echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7143
7144 if test "$GCC" = yes; then
7145 lt_prog_compiler_wl='-Wl,'
7146 lt_prog_compiler_static='-static'
7147
7148 case $host_os in
7149 aix*)
7150 # All AIX code is PIC.
7151 if test "$host_cpu" = ia64; then
7152 # AIX 5 now supports IA64 processor
7153 lt_prog_compiler_static='-Bstatic'
7154 fi
7155 ;;
7156
7157 amigaos*)
6b4a97ed
PG
7158 case $host_cpu in
7159 powerpc)
7160 # see comment about AmigaOS4 .so support
7161 lt_prog_compiler_pic='-fPIC'
7162 ;;
7163 m68k)
7164 # FIXME: we need at least 68020 code to build shared libraries, but
7165 # adding the `-m68020' flag to GCC prevents building anything better,
7166 # like `-m68040'.
7167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7168 ;;
7169 esac
1cf3d07d
SE
7170 ;;
7171
7172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7173 # PIC is the default for these OSes.
7174 ;;
7175
6b4a97ed 7176 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7177 # This hack is so that the source file can tell whether it is being
7178 # built for inclusion in a dll (and should export symbols for example).
7179 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7180 # (--disable-auto-import) libraries
7181 lt_prog_compiler_pic='-DDLL_EXPORT'
7182 ;;
7183
7184 darwin* | rhapsody*)
7185 # PIC is the default on this platform
7186 # Common symbols not allowed in MH_DYLIB files
7187 lt_prog_compiler_pic='-fno-common'
7188 ;;
7189
7190 hpux*)
6b4a97ed
PG
7191 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7192 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7193 # sets the default TLS model and affects inlining.
1cf3d07d 7194 case $host_cpu in
6b4a97ed 7195 hppa*64*)
1cf3d07d
SE
7196 # +Z the default
7197 ;;
7198 *)
7199 lt_prog_compiler_pic='-fPIC'
7200 ;;
7201 esac
7202 ;;
7203
7204 interix[3-9]*)
7205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7206 # Instead, we relocate shared libraries at runtime.
7207 ;;
7208
7209 msdosdjgpp*)
7210 # Just because we use GCC doesn't mean we suddenly get shared libraries
7211 # on systems that don't support them.
7212 lt_prog_compiler_can_build_shared=no
7213 enable_shared=no
7214 ;;
7215
7216 *nto* | *qnx*)
7217 # QNX uses GNU C++, but need to define -shared option too, otherwise
7218 # it will coredump.
7219 lt_prog_compiler_pic='-fPIC -shared'
7220 ;;
7221
7222 sysv4*MP*)
7223 if test -d /usr/nec; then
7224 lt_prog_compiler_pic=-Kconform_pic
7225 fi
7226 ;;
7227
7228 *)
7229 lt_prog_compiler_pic='-fPIC'
7230 ;;
7231 esac
7232 else
7233 # PORTME Check for flag to pass linker flags through the system compiler.
7234 case $host_os in
7235 aix*)
7236 lt_prog_compiler_wl='-Wl,'
7237 if test "$host_cpu" = ia64; then
7238 # AIX 5 now supports IA64 processor
7239 lt_prog_compiler_static='-Bstatic'
7240 else
7241 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7242 fi
7243 ;;
1cf3d07d 7244
6b4a97ed 7245 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7246 # This hack is so that the source file can tell whether it is being
7247 # built for inclusion in a dll (and should export symbols for example).
7248 lt_prog_compiler_pic='-DDLL_EXPORT'
7249 ;;
7250
7251 hpux9* | hpux10* | hpux11*)
7252 lt_prog_compiler_wl='-Wl,'
7253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7254 # not for PA HP-UX.
7255 case $host_cpu in
7256 hppa*64*|ia64*)
7257 # +Z the default
7258 ;;
7259 *)
7260 lt_prog_compiler_pic='+Z'
7261 ;;
7262 esac
7263 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7264 lt_prog_compiler_static='${wl}-a ${wl}archive'
7265 ;;
7266
7267 irix5* | irix6* | nonstopux*)
7268 lt_prog_compiler_wl='-Wl,'
7269 # PIC (with -KPIC) is the default.
7270 lt_prog_compiler_static='-non_shared'
7271 ;;
7272
7273 linux* | k*bsd*-gnu)
7274 case $cc_basename in
6b4a97ed
PG
7275 # old Intel for x86_64 which still supported -KPIC.
7276 ecc*)
1cf3d07d
SE
7277 lt_prog_compiler_wl='-Wl,'
7278 lt_prog_compiler_pic='-KPIC'
7279 lt_prog_compiler_static='-static'
7280 ;;
6b4a97ed
PG
7281 # icc used to be incompatible with GCC.
7282 # ICC 10 doesn't accept -KPIC any more.
7283 icc* | ifort*)
7284 lt_prog_compiler_wl='-Wl,'
7285 lt_prog_compiler_pic='-fPIC'
7286 lt_prog_compiler_static='-static'
7287 ;;
7288 # Lahey Fortran 8.1.
7289 lf95*)
7290 lt_prog_compiler_wl='-Wl,'
7291 lt_prog_compiler_pic='--shared'
7292 lt_prog_compiler_static='--static'
7293 ;;
1cf3d07d
SE
7294 pgcc* | pgf77* | pgf90* | pgf95*)
7295 # Portland Group compilers (*not* the Pentium gcc compiler,
7296 # which looks to be a dead project)
7297 lt_prog_compiler_wl='-Wl,'
7298 lt_prog_compiler_pic='-fpic'
7299 lt_prog_compiler_static='-Bstatic'
7300 ;;
7301 ccc*)
7302 lt_prog_compiler_wl='-Wl,'
7303 # All Alpha code is PIC.
7304 lt_prog_compiler_static='-non_shared'
7305 ;;
6b4a97ed
PG
7306 xl*)
7307 # IBM XL C 8.0/Fortran 10.1 on PPC
7308 lt_prog_compiler_wl='-Wl,'
7309 lt_prog_compiler_pic='-qpic'
7310 lt_prog_compiler_static='-qstaticlink'
7311 ;;
1cf3d07d
SE
7312 *)
7313 case `$CC -V 2>&1 | sed 5q` in
7314 *Sun\ C*)
7315 # Sun C 5.9
7316 lt_prog_compiler_pic='-KPIC'
7317 lt_prog_compiler_static='-Bstatic'
7318 lt_prog_compiler_wl='-Wl,'
7319 ;;
7320 *Sun\ F*)
7321 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7322 lt_prog_compiler_pic='-KPIC'
7323 lt_prog_compiler_static='-Bstatic'
7324 lt_prog_compiler_wl=''
7325 ;;
7326 esac
7327 ;;
7328 esac
7329 ;;
7330
7331 newsos6)
7332 lt_prog_compiler_pic='-KPIC'
7333 lt_prog_compiler_static='-Bstatic'
7334 ;;
7335
7336 *nto* | *qnx*)
7337 # QNX uses GNU C++, but need to define -shared option too, otherwise
7338 # it will coredump.
7339 lt_prog_compiler_pic='-fPIC -shared'
7340 ;;
7341
7342 osf3* | osf4* | osf5*)
7343 lt_prog_compiler_wl='-Wl,'
7344 # All OSF/1 code is PIC.
7345 lt_prog_compiler_static='-non_shared'
7346 ;;
7347
7348 rdos*)
7349 lt_prog_compiler_static='-non_shared'
7350 ;;
7351
7352 solaris*)
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-Bstatic'
7355 case $cc_basename in
7356 f77* | f90* | f95*)
7357 lt_prog_compiler_wl='-Qoption ld ';;
7358 *)
7359 lt_prog_compiler_wl='-Wl,';;
7360 esac
7361 ;;
7362
7363 sunos4*)
7364 lt_prog_compiler_wl='-Qoption ld '
7365 lt_prog_compiler_pic='-PIC'
7366 lt_prog_compiler_static='-Bstatic'
7367 ;;
7368
7369 sysv4 | sysv4.2uw2* | sysv4.3*)
7370 lt_prog_compiler_wl='-Wl,'
7371 lt_prog_compiler_pic='-KPIC'
7372 lt_prog_compiler_static='-Bstatic'
7373 ;;
7374
7375 sysv4*MP*)
7376 if test -d /usr/nec ;then
7377 lt_prog_compiler_pic='-Kconform_pic'
7378 lt_prog_compiler_static='-Bstatic'
7379 fi
7380 ;;
7381
7382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7383 lt_prog_compiler_wl='-Wl,'
7384 lt_prog_compiler_pic='-KPIC'
7385 lt_prog_compiler_static='-Bstatic'
7386 ;;
7387
7388 unicos*)
7389 lt_prog_compiler_wl='-Wl,'
7390 lt_prog_compiler_can_build_shared=no
7391 ;;
7392
7393 uts4*)
7394 lt_prog_compiler_pic='-pic'
7395 lt_prog_compiler_static='-Bstatic'
7396 ;;
7397
7398 *)
7399 lt_prog_compiler_can_build_shared=no
7400 ;;
7401 esac
7402 fi
7403
7404case $host_os in
7405 # For platforms which do not support PIC, -DPIC is meaningless:
7406 *djgpp*)
7407 lt_prog_compiler_pic=
7408 ;;
7409 *)
7410 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7411 ;;
7412esac
7413echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7414echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7415
7416
7417
7418
7419
7420
7421#
7422# Check to make sure the PIC flag actually works.
7423#
7424if test -n "$lt_prog_compiler_pic"; then
7425 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7426echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6b4a97ed 7427if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1cf3d07d
SE
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
6b4a97ed 7430 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
7431 ac_outfile=conftest.$ac_objext
7432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7433 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7434 # Insert the option either (1) after the last *FLAGS variable, or
7435 # (2) before a word containing "conftest.", or (3) at the end.
7436 # Note that $ac_compile itself does not contain backslashes and begins
7437 # with a dollar sign (not a hyphen), so the echo should work correctly.
7438 # The option is referenced via a variable to avoid confusing sed.
7439 lt_compile=`echo "$ac_compile" | $SED \
7440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7442 -e 's:$: $lt_compiler_flag:'`
6b4a97ed 7443 (eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
1cf3d07d
SE
7444 (eval "$lt_compile" 2>conftest.err)
7445 ac_status=$?
7446 cat conftest.err >&5
6b4a97ed 7447 echo "$as_me:7447: \$? = $ac_status" >&5
1cf3d07d
SE
7448 if (exit $ac_status) && test -s "$ac_outfile"; then
7449 # The compiler can only warn and ignore the option if not recognized
7450 # So say no if there are warnings other than the usual output.
7451 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 7454 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
7455 fi
7456 fi
7457 $RM conftest*
7458
7459fi
6b4a97ed
PG
7460echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7461echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1cf3d07d 7462
6b4a97ed 7463if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
7464 case $lt_prog_compiler_pic in
7465 "" | " "*) ;;
7466 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7467 esac
7468else
7469 lt_prog_compiler_pic=
7470 lt_prog_compiler_can_build_shared=no
7471fi
7472
7473fi
7474
7475
7476
7477
7478
7479
7480#
7481# Check to make sure the static flag actually works.
7482#
7483wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7484echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7485echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6b4a97ed 7486if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1cf3d07d
SE
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
6b4a97ed 7489 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
7490 save_LDFLAGS="$LDFLAGS"
7491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7494 # The linker can only warn and ignore the option if not recognized
7495 # So say no if there are warnings
7496 if test -s conftest.err; then
7497 # Append any errors to the config.log.
7498 cat conftest.err 1>&5
7499 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501 if diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 7502 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7503 fi
7504 else
6b4a97ed 7505 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7506 fi
7507 fi
6b4a97ed 7508 $RM -r conftest*
1cf3d07d
SE
7509 LDFLAGS="$save_LDFLAGS"
7510
7511fi
6b4a97ed
PG
7512echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7513echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1cf3d07d 7514
6b4a97ed 7515if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
7516 :
7517else
7518 lt_prog_compiler_static=
7519fi
7520
7521
7522
7523
7524
7525
7526
7527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7528echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7529if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 lt_cv_prog_compiler_c_o=no
7533 $RM -r conftest 2>/dev/null
7534 mkdir conftest
7535 cd conftest
7536 mkdir out
7537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7538
7539 lt_compiler_flag="-o out/conftest2.$ac_objext"
7540 # Insert the option either (1) after the last *FLAGS variable, or
7541 # (2) before a word containing "conftest.", or (3) at the end.
7542 # Note that $ac_compile itself does not contain backslashes and begins
7543 # with a dollar sign (not a hyphen), so the echo should work correctly.
7544 lt_compile=`echo "$ac_compile" | $SED \
7545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7547 -e 's:$: $lt_compiler_flag:'`
6b4a97ed 7548 (eval echo "\"\$as_me:7548: $lt_compile\"" >&5)
1cf3d07d
SE
7549 (eval "$lt_compile" 2>out/conftest.err)
7550 ac_status=$?
7551 cat out/conftest.err >&5
6b4a97ed 7552 echo "$as_me:7552: \$? = $ac_status" >&5
1cf3d07d
SE
7553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7554 then
7555 # The compiler can only warn and ignore the option if not recognized
7556 # So say no if there are warnings
7557 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7560 lt_cv_prog_compiler_c_o=yes
7561 fi
7562 fi
7563 chmod u+w . 2>&5
7564 $RM conftest*
7565 # SGI C++ compiler will create directory out/ii_files/ for
7566 # template instantiation
7567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7568 $RM out/* && rmdir out
7569 cd ..
7570 $RM -r conftest
7571 $RM conftest*
7572
7573fi
7574echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7575echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7576
7577
7578
7579
7580
7581
7582 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7583echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7584if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 lt_cv_prog_compiler_c_o=no
7588 $RM -r conftest 2>/dev/null
7589 mkdir conftest
7590 cd conftest
7591 mkdir out
7592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7593
7594 lt_compiler_flag="-o out/conftest2.$ac_objext"
7595 # Insert the option either (1) after the last *FLAGS variable, or
7596 # (2) before a word containing "conftest.", or (3) at the end.
7597 # Note that $ac_compile itself does not contain backslashes and begins
7598 # with a dollar sign (not a hyphen), so the echo should work correctly.
7599 lt_compile=`echo "$ac_compile" | $SED \
7600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7602 -e 's:$: $lt_compiler_flag:'`
6b4a97ed 7603 (eval echo "\"\$as_me:7603: $lt_compile\"" >&5)
1cf3d07d
SE
7604 (eval "$lt_compile" 2>out/conftest.err)
7605 ac_status=$?
7606 cat out/conftest.err >&5
6b4a97ed 7607 echo "$as_me:7607: \$? = $ac_status" >&5
1cf3d07d
SE
7608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7609 then
7610 # The compiler can only warn and ignore the option if not recognized
7611 # So say no if there are warnings
7612 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7615 lt_cv_prog_compiler_c_o=yes
7616 fi
7617 fi
7618 chmod u+w . 2>&5
7619 $RM conftest*
7620 # SGI C++ compiler will create directory out/ii_files/ for
7621 # template instantiation
7622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7623 $RM out/* && rmdir out
7624 cd ..
7625 $RM -r conftest
7626 $RM conftest*
7627
7628fi
7629echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7630echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7631
7632
7633
7634
7635hard_links="nottested"
7636if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7637 # do not overwrite the value of need_locks provided by the user
7638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7639echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7640 hard_links=yes
7641 $RM conftest*
7642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7643 touch conftest.a
7644 ln conftest.a conftest.b 2>&5 || hard_links=no
7645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7646 echo "$as_me:$LINENO: result: $hard_links" >&5
7647echo "${ECHO_T}$hard_links" >&6
7648 if test "$hard_links" = no; then
7649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7650echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7651 need_locks=warn
7652 fi
7653else
7654 need_locks=no
7655fi
7656
7657
7658
7659
7660
7661
7662 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7663echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7664
7665 runpath_var=
7666 allow_undefined_flag=
7667 always_export_symbols=no
7668 archive_cmds=
7669 archive_expsym_cmds=
7670 compiler_needs_object=no
7671 enable_shared_with_static_runtimes=no
7672 export_dynamic_flag_spec=
7673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7674 hardcode_automatic=no
7675 hardcode_direct=no
7676 hardcode_direct_absolute=no
7677 hardcode_libdir_flag_spec=
7678 hardcode_libdir_flag_spec_ld=
7679 hardcode_libdir_separator=
7680 hardcode_minus_L=no
7681 hardcode_shlibpath_var=unsupported
7682 inherit_rpath=no
7683 link_all_deplibs=unknown
7684 module_cmds=
7685 module_expsym_cmds=
7686 old_archive_from_new_cmds=
7687 old_archive_from_expsyms_cmds=
7688 thread_safe_flag_spec=
7689 whole_archive_flag_spec=
7690 # include_expsyms should be a list of space-separated symbols to be *always*
7691 # included in the symbol list
7692 include_expsyms=
7693 # exclude_expsyms can be an extended regexp of symbols to exclude
7694 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7695 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7696 # as well as any symbol that contains `d'.
6b4a97ed 7697 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
7698 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7699 # platforms (ab)use it in PIC code, but their linkers get confused if
7700 # the symbol is explicitly referenced. Since portable code cannot
7701 # rely on this symbol name, it's probably fine to never include it in
7702 # preloaded symbol tables.
6b4a97ed 7703 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
7704 extract_expsyms_cmds=
7705
7706 case $host_os in
6b4a97ed 7707 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7709 # When not using gcc, we currently assume that we are using
7710 # Microsoft Visual C++.
7711 if test "$GCC" != yes; then
7712 with_gnu_ld=no
7713 fi
7714 ;;
7715 interix*)
7716 # we just hope/assume this is gcc and not c89 (= MSVC++)
7717 with_gnu_ld=yes
7718 ;;
7719 openbsd*)
7720 with_gnu_ld=no
7721 ;;
7722 esac
7723
7724 ld_shlibs=yes
7725 if test "$with_gnu_ld" = yes; then
7726 # If archive_cmds runs LD, not CC, wlarc should be empty
7727 wlarc='${wl}'
7728
7729 # Set some defaults for GNU ld with shared library support. These
7730 # are reset later if shared libraries are not supported. Putting them
7731 # here allows them to be overridden if necessary.
7732 runpath_var=LD_RUN_PATH
7733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7734 export_dynamic_flag_spec='${wl}--export-dynamic'
7735 # ancient GNU ld didn't support --whole-archive et. al.
7736 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7737 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7738 else
7739 whole_archive_flag_spec=
7740 fi
7741 supports_anon_versioning=no
7742 case `$LD -v 2>&1` in
7743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7746 *\ 2.11.*) ;; # other 2.11 versions
7747 *) supports_anon_versioning=yes ;;
7748 esac
7749
7750 # See if GNU ld supports shared libraries.
7751 case $host_os in
d653fdfb 7752 aix[3-9]*)
1cf3d07d
SE
7753 # On AIX/PPC, the GNU linker is very broken
7754 if test "$host_cpu" != ia64; then
7755 ld_shlibs=no
7756 cat <<_LT_EOF 1>&2
7757
7758*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7759*** to be unable to reliably create shared libraries on AIX.
7760*** Therefore, libtool is disabling shared libraries support. If you
7761*** really care for shared libraries, you may want to modify your PATH
7762*** so that a non-GNU linker is found, and then restart.
7763
7764_LT_EOF
7765 fi
7766 ;;
7767
7768 amigaos*)
6b4a97ed
PG
7769 case $host_cpu in
7770 powerpc)
7771 # see comment about AmigaOS4 .so support
7772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7773 archive_expsym_cmds=''
7774 ;;
7775 m68k)
7776 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)'
7777 hardcode_libdir_flag_spec='-L$libdir'
7778 hardcode_minus_L=yes
7779 ;;
7780 esac
1cf3d07d
SE
7781 ;;
7782
7783 beos*)
7784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7785 allow_undefined_flag=unsupported
7786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7787 # support --undefined. This deserves some investigation. FIXME
7788 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789 else
7790 ld_shlibs=no
7791 fi
7792 ;;
7793
6b4a97ed 7794 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7795 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7796 # as there is no search path for DLLs.
7797 hardcode_libdir_flag_spec='-L$libdir'
7798 allow_undefined_flag=unsupported
7799 always_export_symbols=no
7800 enable_shared_with_static_runtimes=yes
7801 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7802
7803 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7805 # If the export-symbols file already is a .def file (1st line
7806 # is EXPORTS), use it as is; otherwise, prepend...
7807 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7808 cp $export_symbols $output_objdir/$soname.def;
7809 else
7810 echo EXPORTS > $output_objdir/$soname.def;
7811 cat $export_symbols >> $output_objdir/$soname.def;
7812 fi~
7813 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7814 else
7815 ld_shlibs=no
7816 fi
7817 ;;
7818
7819 interix[3-9]*)
7820 hardcode_direct=no
7821 hardcode_shlibpath_var=no
7822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7823 export_dynamic_flag_spec='${wl}-E'
7824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7825 # Instead, shared libraries are loaded at an image base (0x10000000 by
7826 # default) and relocated if they conflict, which is a slow very memory
7827 # consuming and fragmenting process. To avoid this, we pick a random,
7828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7831 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'
7832 ;;
7833
7834 gnu* | linux* | tpf* | k*bsd*-gnu)
7835 tmp_diet=no
7836 if test "$host_os" = linux-dietlibc; then
7837 case $cc_basename in
7838 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7839 esac
7840 fi
7841 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7842 && test "$tmp_diet" = no
7843 then
7844 tmp_addflag=
6b4a97ed 7845 tmp_sharedflag='-shared'
1cf3d07d
SE
7846 case $cc_basename,$host_cpu in
7847 pgcc*) # Portland Group C compiler
7848 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'
7849 tmp_addflag=' $pic_flag'
7850 ;;
7851 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7852 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'
7853 tmp_addflag=' $pic_flag -Mnomain' ;;
7854 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7855 tmp_addflag=' -i_dynamic' ;;
7856 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7857 tmp_addflag=' -i_dynamic -nofor_main' ;;
7858 ifc* | ifort*) # Intel Fortran compiler
7859 tmp_addflag=' -nofor_main' ;;
6b4a97ed
PG
7860 lf95*) # Lahey Fortran 8.1
7861 whole_archive_flag_spec=
7862 tmp_sharedflag='--shared' ;;
7863 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7864 tmp_sharedflag='-qmkshrobj'
7865 tmp_addflag= ;;
1cf3d07d
SE
7866 esac
7867 case `$CC -V 2>&1 | sed 5q` in
7868 *Sun\ C*) # Sun C 5.9
7869 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'
7870 compiler_needs_object=yes
7871 tmp_sharedflag='-G' ;;
7872 *Sun\ F*) # Sun Fortran 8.3
7873 tmp_sharedflag='-G' ;;
1cf3d07d
SE
7874 esac
7875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7876
7877 if test "x$supports_anon_versioning" = xyes; then
7878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7880 echo "local: *; };" >> $output_objdir/$libname.ver~
7881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7882 fi
6b4a97ed
PG
7883
7884 case $cc_basename in
7885 xlf*)
7886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7888 hardcode_libdir_flag_spec=
7889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7890 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7891 if test "x$supports_anon_versioning" = xyes; then
7892 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7894 echo "local: *; };" >> $output_objdir/$libname.ver~
7895 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7896 fi
7897 ;;
7898 esac
1cf3d07d
SE
7899 else
7900 ld_shlibs=no
7901 fi
7902 ;;
7903
7904 netbsd*)
7905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7906 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7907 wlarc=
7908 else
7909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7910 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7911 fi
7912 ;;
7913
7914 solaris*)
7915 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7916 ld_shlibs=no
7917 cat <<_LT_EOF 1>&2
7918
7919*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7920*** create shared libraries on Solaris systems. Therefore, libtool
7921*** is disabling shared libraries support. We urge you to upgrade GNU
7922*** binutils to release 2.9.1 or newer. Another option is to modify
7923*** your PATH or compiler configuration so that the native linker is
7924*** used, and then restart.
7925
7926_LT_EOF
7927 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7930 else
7931 ld_shlibs=no
7932 fi
7933 ;;
7934
7935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7936 case `$LD -v 2>&1` in
7937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7938 ld_shlibs=no
7939 cat <<_LT_EOF 1>&2
7940
7941*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7942*** reliably create shared libraries on SCO systems. Therefore, libtool
7943*** is disabling shared libraries support. We urge you to upgrade GNU
7944*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7945*** your PATH or compiler configuration so that the native linker is
7946*** used, and then restart.
7947
7948_LT_EOF
7949 ;;
7950 *)
7951 # For security reasons, it is highly recommended that you always
7952 # use absolute paths for naming shared libraries, and exclude the
7953 # DT_RUNPATH tag from executables and libraries. But doing so
7954 # requires that you compile everything twice, which is a pain.
7955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7959 else
7960 ld_shlibs=no
7961 fi
7962 ;;
7963 esac
7964 ;;
7965
7966 sunos4*)
7967 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7968 wlarc=
7969 hardcode_direct=yes
7970 hardcode_shlibpath_var=no
7971 ;;
7972
7973 *)
7974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7977 else
7978 ld_shlibs=no
7979 fi
7980 ;;
7981 esac
7982
7983 if test "$ld_shlibs" = no; then
7984 runpath_var=
7985 hardcode_libdir_flag_spec=
7986 export_dynamic_flag_spec=
7987 whole_archive_flag_spec=
7988 fi
7989 else
7990 # PORTME fill in a description of your system's linker (not GNU ld)
7991 case $host_os in
7992 aix3*)
7993 allow_undefined_flag=unsupported
7994 always_export_symbols=yes
7995 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'
7996 # Note: this linker hardcodes the directories in LIBPATH if there
7997 # are no directories specified by -L.
7998 hardcode_minus_L=yes
7999 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8000 # Neither direct hardcoding nor static linking is supported with a
8001 # broken collect2.
8002 hardcode_direct=unsupported
8003 fi
8004 ;;
8005
d653fdfb 8006 aix[4-9]*)
1cf3d07d
SE
8007 if test "$host_cpu" = ia64; then
8008 # On IA64, the linker does run time linking by default, so we don't
8009 # have to do anything special.
8010 aix_use_runtimelinking=no
8011 exp_sym_flag='-Bexport'
8012 no_entry_flag=""
8013 else
8014 # If we're using GNU nm, then we don't want the "-C" option.
8015 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8016 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8017 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'
8018 else
8019 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'
8020 fi
8021 aix_use_runtimelinking=no
8022
8023 # Test if we are trying to use run time linking or normal
8024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8025 # need to do runtime linking.
d653fdfb 8026 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8027 for ld_flag in $LDFLAGS; do
8028 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8029 aix_use_runtimelinking=yes
8030 break
8031 fi
8032 done
8033 ;;
8034 esac
8035
8036 exp_sym_flag='-bexport'
8037 no_entry_flag='-bnoentry'
8038 fi
8039
8040 # When large executables or shared objects are built, AIX ld can
8041 # have problems creating the table of contents. If linking a library
8042 # or program results in "error TOC overflow" add -mminimal-toc to
8043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8045
8046 archive_cmds=''
8047 hardcode_direct=yes
8048 hardcode_direct_absolute=yes
8049 hardcode_libdir_separator=':'
8050 link_all_deplibs=yes
8051 file_list_spec='${wl}-f,'
8052
8053 if test "$GCC" = yes; then
8054 case $host_os in aix4.[012]|aix4.[012].*)
8055 # We only want to do this on AIX 4.2 and lower, the check
8056 # below for broken collect2 doesn't work under 4.3+
8057 collect2name=`${CC} -print-prog-name=collect2`
8058 if test -f "$collect2name" &&
8059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8060 then
8061 # We have reworked collect2
8062 :
8063 else
8064 # We have old collect2
8065 hardcode_direct=unsupported
8066 # It fails to find uninstalled libraries when the uninstalled
8067 # path is not listed in the libpath. Setting hardcode_minus_L
8068 # to unsupported forces relinking
8069 hardcode_minus_L=yes
8070 hardcode_libdir_flag_spec='-L$libdir'
8071 hardcode_libdir_separator=
8072 fi
8073 ;;
8074 esac
8075 shared_flag='-shared'
8076 if test "$aix_use_runtimelinking" = yes; then
8077 shared_flag="$shared_flag "'${wl}-G'
8078 fi
8079 else
8080 # not using gcc
8081 if test "$host_cpu" = ia64; then
8082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8083 # chokes on -Wl,-G. The following line is correct:
8084 shared_flag='-G'
8085 else
8086 if test "$aix_use_runtimelinking" = yes; then
8087 shared_flag='${wl}-G'
8088 else
8089 shared_flag='${wl}-bM:SRE'
8090 fi
8091 fi
8092 fi
8093
6b4a97ed 8094 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8095 # It seems that -bexpall does not export symbols beginning with
8096 # underscore (_), so it is better to generate a list of symbols to export.
8097 always_export_symbols=yes
8098 if test "$aix_use_runtimelinking" = yes; then
8099 # Warning - without using the other runtime loading flags (-brtl),
8100 # -berok will link without error, but may produce a broken library.
8101 allow_undefined_flag='-berok'
8102 # Determine the default libpath from the value encoded in an
8103 # empty executable.
8104 cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h. */
8110
8111int
8112main ()
8113{
8114
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext conftest$ac_exeext
8120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141
8142lt_aix_libpath_sed='
8143 /Import File Strings/,/^$/ {
8144 /^0/ {
8145 s/^0 *\(.*\)$/\1/
8146 p
8147 }
8148 }'
8149aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8150# Check for a 64-bit object if we didn't find anything.
8151if test -z "$aix_libpath"; then
8152 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8153fi
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158fi
8159rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8162
8163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8164 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"
8165 else
8166 if test "$host_cpu" = ia64; then
8167 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8168 allow_undefined_flag="-z nodefs"
8169 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"
8170 else
8171 # Determine the default libpath from the value encoded in an
8172 # empty executable.
8173 cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
8179
8180int
8181main ()
8182{
8183
8184 ;
8185 return 0;
8186}
8187_ACEOF
8188rm -f conftest.$ac_objext conftest$ac_exeext
8189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190 (eval $ac_link) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210
8211lt_aix_libpath_sed='
8212 /Import File Strings/,/^$/ {
8213 /^0/ {
8214 s/^0 *\(.*\)$/\1/
8215 p
8216 }
8217 }'
8218aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8219# Check for a 64-bit object if we didn't find anything.
8220if test -z "$aix_libpath"; then
8221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8222fi
8223else
8224 echo "$as_me: failed program was:" >&5
8225sed 's/^/| /' conftest.$ac_ext >&5
8226
8227fi
8228rm -f conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8231
8232 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8233 # Warning - without using the other run time loading flags,
8234 # -berok will link without error, but may produce a broken library.
8235 no_undefined_flag=' ${wl}-bernotok'
8236 allow_undefined_flag=' ${wl}-berok'
8237 # Exported symbols can be pulled into shared objects from archives
8238 whole_archive_flag_spec='$convenience'
8239 archive_cmds_need_lc=yes
8240 # This is similar to how AIX traditionally builds its shared libraries.
8241 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'
8242 fi
8243 fi
8244 ;;
8245
8246 amigaos*)
6b4a97ed
PG
8247 case $host_cpu in
8248 powerpc)
8249 # see comment about AmigaOS4 .so support
8250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251 archive_expsym_cmds=''
8252 ;;
8253 m68k)
8254 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)'
8255 hardcode_libdir_flag_spec='-L$libdir'
8256 hardcode_minus_L=yes
8257 ;;
8258 esac
1cf3d07d
SE
8259 ;;
8260
8261 bsdi[45]*)
8262 export_dynamic_flag_spec=-rdynamic
8263 ;;
8264
6b4a97ed 8265 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8266 # When not using gcc, we currently assume that we are using
8267 # Microsoft Visual C++.
8268 # hardcode_libdir_flag_spec is actually meaningless, as there is
8269 # no search path for DLLs.
8270 hardcode_libdir_flag_spec=' '
8271 allow_undefined_flag=unsupported
8272 # Tell ltmain to make .lib files, not .a files.
8273 libext=lib
8274 # Tell ltmain to make .dll files, not .so files.
8275 shrext_cmds=".dll"
8276 # FIXME: Setting linknames here is a bad hack.
8277 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8278 # The linker will automatically build a .lib file if we build a DLL.
8279 old_archive_from_new_cmds='true'
8280 # FIXME: Should let the user specify the lib program.
8281 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8282 fix_srcfile_path='`cygpath -w "$srcfile"`'
8283 enable_shared_with_static_runtimes=yes
8284 ;;
8285
8286 darwin* | rhapsody*)
1cf3d07d 8287
6b4a97ed
PG
8288
8289 archive_cmds_need_lc=no
8290 hardcode_direct=no
8291 hardcode_automatic=yes
8292 hardcode_shlibpath_var=unsupported
8293 whole_archive_flag_spec=''
8294 link_all_deplibs=yes
8295 allow_undefined_flag="$_lt_dar_allow_undefined"
8296 case $cc_basename in
8297 ifort*) _lt_dar_can_shared=yes ;;
8298 *) _lt_dar_can_shared=$GCC ;;
8299 esac
8300 if test "$_lt_dar_can_shared" = "yes"; then
8301 output_verbose_link_cmd=echo
8302 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8303 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8304 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8305 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8306
8307 else
8308 ld_shlibs=no
8309 fi
8310
1cf3d07d
SE
8311 ;;
8312
8313 dgux*)
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_shlibpath_var=no
8317 ;;
8318
8319 freebsd1*)
8320 ld_shlibs=no
8321 ;;
8322
8323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8324 # support. Future versions do this automatically, but an explicit c++rt0.o
8325 # does not break anything, and helps significantly (at the cost of a little
8326 # extra space).
8327 freebsd2.2*)
8328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8329 hardcode_libdir_flag_spec='-R$libdir'
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 ;;
8333
8334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8335 freebsd2*)
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes
8338 hardcode_minus_L=yes
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8343 freebsd* | dragonfly*)
8344 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8345 hardcode_libdir_flag_spec='-R$libdir'
8346 hardcode_direct=yes
8347 hardcode_shlibpath_var=no
8348 ;;
8349
8350 hpux9*)
8351 if test "$GCC" = yes; then
8352 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'
8353 else
8354 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'
8355 fi
8356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8357 hardcode_libdir_separator=:
8358 hardcode_direct=yes
8359
8360 # hardcode_minus_L: Not really in the search PATH,
8361 # but as the default location of the library.
8362 hardcode_minus_L=yes
8363 export_dynamic_flag_spec='${wl}-E'
8364 ;;
8365
8366 hpux10*)
8367 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8368 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8369 else
8370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8371 fi
8372 if test "$with_gnu_ld" = no; then
8373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8374 hardcode_libdir_flag_spec_ld='+b $libdir'
8375 hardcode_libdir_separator=:
8376 hardcode_direct=yes
8377 hardcode_direct_absolute=yes
8378 export_dynamic_flag_spec='${wl}-E'
8379 # hardcode_minus_L: Not really in the search PATH,
8380 # but as the default location of the library.
8381 hardcode_minus_L=yes
8382 fi
8383 ;;
8384
8385 hpux11*)
8386 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8387 case $host_cpu in
8388 hppa*64*)
8389 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8390 ;;
8391 ia64*)
6b4a97ed 8392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
8393 ;;
8394 *)
8395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8396 ;;
8397 esac
8398 else
8399 case $host_cpu in
8400 hppa*64*)
8401 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8402 ;;
8403 ia64*)
8404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8405 ;;
8406 *)
8407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8408 ;;
8409 esac
8410 fi
8411 if test "$with_gnu_ld" = no; then
8412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8413 hardcode_libdir_separator=:
8414
8415 case $host_cpu in
8416 hppa*64*|ia64*)
8417 hardcode_direct=no
8418 hardcode_shlibpath_var=no
8419 ;;
8420 *)
8421 hardcode_direct=yes
8422 hardcode_direct_absolute=yes
8423 export_dynamic_flag_spec='${wl}-E'
8424
8425 # hardcode_minus_L: Not really in the search PATH,
8426 # but as the default location of the library.
8427 hardcode_minus_L=yes
8428 ;;
8429 esac
8430 fi
8431 ;;
8432
8433 irix5* | irix6* | nonstopux*)
8434 if test "$GCC" = yes; then
8435 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'
8436 # Try to use the -exported_symbol ld option, if it does not
8437 # work, assume that -exports_file does not work either and
8438 # implicitly export all symbols.
8439 save_LDFLAGS="$LDFLAGS"
8440 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8441 cat >conftest.$ac_ext <<_ACEOF
8442int foo(void) {}
8443_ACEOF
8444rm -f conftest.$ac_objext conftest$ac_exeext
8445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -z "$ac_c_werror_flag"
8454 || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 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'
8467
8468else
8469 echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472fi
8473rm -f conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475 LDFLAGS="$save_LDFLAGS"
8476 else
8477 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'
8478 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'
8479 fi
8480 archive_cmds_need_lc='no'
8481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482 hardcode_libdir_separator=:
8483 inherit_rpath=yes
8484 link_all_deplibs=yes
8485 ;;
8486
8487 netbsd*)
8488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8490 else
8491 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8492 fi
8493 hardcode_libdir_flag_spec='-R$libdir'
8494 hardcode_direct=yes
8495 hardcode_shlibpath_var=no
8496 ;;
8497
8498 newsos6)
8499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500 hardcode_direct=yes
8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502 hardcode_libdir_separator=:
8503 hardcode_shlibpath_var=no
8504 ;;
8505
8506 *nto* | *qnx*)
8507 ;;
8508
8509 openbsd*)
6b4a97ed
PG
8510 if test -f /usr/libexec/ld.so; then
8511 hardcode_direct=yes
8512 hardcode_shlibpath_var=no
8513 hardcode_direct_absolute=yes
8514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 8515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6b4a97ed 8516 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 8517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6b4a97ed
PG
8518 export_dynamic_flag_spec='${wl}-E'
8519 else
8520 case $host_os in
8521 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8523 hardcode_libdir_flag_spec='-R$libdir'
8524 ;;
8525 *)
8526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8528 ;;
8529 esac
8530 fi
8531 else
8532 ld_shlibs=no
1cf3d07d
SE
8533 fi
8534 ;;
8535
8536 os2*)
8537 hardcode_libdir_flag_spec='-L$libdir'
8538 hardcode_minus_L=yes
8539 allow_undefined_flag=unsupported
8540 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'
8541 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8542 ;;
8543
8544 osf3*)
8545 if test "$GCC" = yes; then
8546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8547 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'
8548 else
8549 allow_undefined_flag=' -expect_unresolved \*'
8550 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'
8551 fi
8552 archive_cmds_need_lc='no'
8553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554 hardcode_libdir_separator=:
8555 ;;
8556
8557 osf4* | osf5*) # as osf3* with the addition of -msym flag
8558 if test "$GCC" = yes; then
8559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8560 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'
8561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8562 else
8563 allow_undefined_flag=' -expect_unresolved \*'
8564 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'
8565 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~
8566 $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'
8567
8568 # Both c and cxx compiler support -rpath directly
8569 hardcode_libdir_flag_spec='-rpath $libdir'
8570 fi
8571 archive_cmds_need_lc='no'
8572 hardcode_libdir_separator=:
8573 ;;
8574
8575 solaris*)
8576 no_undefined_flag=' -z defs'
8577 if test "$GCC" = yes; then
8578 wlarc='${wl}'
8579 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8581 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8582 else
8583 case `$CC -V 2>&1` in
8584 *"Compilers 5.0"*)
8585 wlarc=''
8586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8589 ;;
8590 *)
8591 wlarc='${wl}'
8592 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8593 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8594 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8595 ;;
8596 esac
8597 fi
8598 hardcode_libdir_flag_spec='-R$libdir'
8599 hardcode_shlibpath_var=no
8600 case $host_os in
8601 solaris2.[0-5] | solaris2.[0-5].*) ;;
8602 *)
8603 # The compiler driver will combine and reorder linker options,
8604 # but understands `-z linker_flag'. GCC discards it without `$wl',
8605 # but is careful enough not to reorder.
8606 # Supported since Solaris 2.6 (maybe 2.5.1?)
8607 if test "$GCC" = yes; then
8608 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8609 else
8610 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8611 fi
8612 ;;
8613 esac
8614 link_all_deplibs=yes
8615 ;;
8616
8617 sunos4*)
8618 if test "x$host_vendor" = xsequent; then
8619 # Use $CC to link under sequent, because it throws in some extra .o
8620 # files that make .init and .fini sections work.
8621 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8622 else
8623 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8624 fi
8625 hardcode_libdir_flag_spec='-L$libdir'
8626 hardcode_direct=yes
8627 hardcode_minus_L=yes
8628 hardcode_shlibpath_var=no
8629 ;;
8630
8631 sysv4)
8632 case $host_vendor in
8633 sni)
8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_direct=yes # is this really true???
8636 ;;
8637 siemens)
8638 ## LD is ld it makes a PLAMLIB
8639 ## CC just makes a GrossModule.
8640 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8641 reload_cmds='$CC -r -o $output$reload_objs'
8642 hardcode_direct=no
8643 ;;
8644 motorola)
8645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8647 ;;
8648 esac
8649 runpath_var='LD_RUN_PATH'
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 sysv4.3*)
8654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_shlibpath_var=no
8656 export_dynamic_flag_spec='-Bexport'
8657 ;;
8658
8659 sysv4*MP*)
8660 if test -d /usr/nec; then
8661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_shlibpath_var=no
8663 runpath_var=LD_RUN_PATH
8664 hardcode_runpath_var=yes
8665 ld_shlibs=yes
8666 fi
8667 ;;
8668
8669 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8670 no_undefined_flag='${wl}-z,text'
8671 archive_cmds_need_lc=no
8672 hardcode_shlibpath_var=no
8673 runpath_var='LD_RUN_PATH'
8674
8675 if test "$GCC" = yes; then
8676 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 else
8679 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 fi
8682 ;;
8683
8684 sysv5* | sco3.2v5* | sco5v6*)
8685 # Note: We can NOT use -z defs as we might desire, because we do not
8686 # link with -lc, and that would cause any symbols used from libc to
8687 # always be unresolved, which means just about no library would
8688 # ever link correctly. If we're not using GNU ld we use -z text
8689 # though, which does catch some bad symbols but isn't as heavy-handed
8690 # as -z defs.
8691 no_undefined_flag='${wl}-z,text'
8692 allow_undefined_flag='${wl}-z,nodefs'
8693 archive_cmds_need_lc=no
8694 hardcode_shlibpath_var=no
8695 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8696 hardcode_libdir_separator=':'
8697 link_all_deplibs=yes
8698 export_dynamic_flag_spec='${wl}-Bexport'
8699 runpath_var='LD_RUN_PATH'
8700
8701 if test "$GCC" = yes; then
8702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8704 else
8705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 fi
8708 ;;
8709
8710 uts4*)
8711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_shlibpath_var=no
8714 ;;
8715
8716 *)
8717 ld_shlibs=no
8718 ;;
8719 esac
8720
8721 if test x$host_vendor = xsni; then
8722 case $host in
8723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8724 export_dynamic_flag_spec='${wl}-Blargedynsym'
8725 ;;
8726 esac
8727 fi
8728 fi
8729
8730echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8731echo "${ECHO_T}$ld_shlibs" >&6
8732test "$ld_shlibs" = no && can_build_shared=no
8733
8734with_gnu_ld=$with_gnu_ld
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750#
8751# Do we need to explicitly link libc?
8752#
8753case "x$archive_cmds_need_lc" in
8754x|xyes)
8755 # Assume -lc should be added
8756 archive_cmds_need_lc=yes
8757
8758 if test "$enable_shared" = yes && test "$GCC" = yes; then
8759 case $archive_cmds in
8760 *'~'*)
8761 # FIXME: we may have to deal with multi-command sequences.
8762 ;;
8763 '$CC '*)
8764 # Test whether the compiler implicitly links with -lc since on some
8765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8766 # to ld, don't add -lc before -lgcc.
8767 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8768echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
8769if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
8772 $RM conftest*
8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 8774
baafc534 8775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1cf3d07d
SE
8776 (eval $ac_compile) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } 2>conftest.err; then
baafc534
RW
8780 soname=conftest
8781 lib=conftest
8782 libobjs=conftest.$ac_objext
8783 deplibs=
8784 wl=$lt_prog_compiler_wl
8785 pic_flag=$lt_prog_compiler_pic
8786 compiler_flags=-v
8787 linker_flags=-v
8788 verstring=
8789 output_objdir=.
8790 libname=conftest
8791 lt_save_allow_undefined_flag=$allow_undefined_flag
8792 allow_undefined_flag=
8793 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1cf3d07d
SE
8794 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }
baafc534
RW
8798 then
8799 lt_cv_archive_cmds_need_lc=no
8800 else
8801 lt_cv_archive_cmds_need_lc=yes
8802 fi
8803 allow_undefined_flag=$lt_save_allow_undefined_flag
8804 else
8805 cat conftest.err 1>&5
8806 fi
8807 $RM conftest*
8808
8809fi
8810echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8811echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8812 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
8813 ;;
8814 esac
8815 fi
8816 ;;
8817esac
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8976echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6b4a97ed
PG
8977
8978if test "$GCC" = yes; then
1cf3d07d
SE
8979 case $host_os in
8980 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8981 *) lt_awk_arg="/^libraries:/" ;;
8982 esac
8983 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8984 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8985 # if the path contains ";" then we assume it to be the separator
8986 # otherwise default to the standard path separator (i.e. ":") - it is
8987 # assumed that no part of a normal pathname contains ";" but that should
8988 # okay in the real world where ";" in dirpaths is itself problematic.
8989 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8990 else
8991 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8992 fi
8993 # Ok, now we have the path, separated by spaces, we can step through it
8994 # and add multilib dir if necessary.
8995 lt_tmp_lt_search_path_spec=
8996 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8997 for lt_sys_path in $lt_search_path_spec; do
8998 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9000 else
9001 test -d "$lt_sys_path" && \
9002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9003 fi
9004 done
9005 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9006BEGIN {RS=" "; FS="/|\n";} {
9007 lt_foo="";
9008 lt_count=0;
9009 for (lt_i = NF; lt_i > 0; lt_i--) {
9010 if ($lt_i != "" && $lt_i != ".") {
9011 if ($lt_i == "..") {
9012 lt_count++;
9013 } else {
9014 if (lt_count == 0) {
9015 lt_foo="/" $lt_i lt_foo;
9016 } else {
9017 lt_count--;
9018 }
9019 }
9020 }
9021 }
9022 if (lt_foo != "") { lt_freq[lt_foo]++; }
9023 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9024}'`
9025 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9026else
9027 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9028fi
9029library_names_spec=
9030libname_spec='lib$name'
9031soname_spec=
9032shrext_cmds=".so"
9033postinstall_cmds=
9034postuninstall_cmds=
9035finish_cmds=
9036finish_eval=
9037shlibpath_var=
9038shlibpath_overrides_runpath=unknown
9039version_type=none
9040dynamic_linker="$host_os ld.so"
9041sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042need_lib_prefix=unknown
9043hardcode_into_libs=no
9044
9045# when you set need_version to no, make sure it does not cause -set_version
9046# flags to be left without arguments
9047need_version=unknown
9048
9049case $host_os in
9050aix3*)
9051 version_type=linux
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9053 shlibpath_var=LIBPATH
9054
9055 # AIX 3 has no versioning support, so we append a major version to the name.
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 ;;
9058
d653fdfb 9059aix[4-9]*)
1cf3d07d
SE
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 hardcode_into_libs=yes
9064 if test "$host_cpu" = ia64; then
9065 # AIX 5 supports IA64
9066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 else
9069 # With GCC up to 2.95.x, collect2 would create an import file
9070 # for dependence libraries. The import file would start with
9071 # the line `#! .'. This would cause the generated library to
9072 # depend on `.', always an invalid library. This was fixed in
9073 # development snapshots of GCC prior to 3.0.
9074 case $host_os in
9075 aix4 | aix4.[01] | aix4.[01].*)
9076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9077 echo ' yes '
9078 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9079 :
9080 else
9081 can_build_shared=no
9082 fi
9083 ;;
9084 esac
9085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9086 # soname into executable. Probably we can add versioning support to
9087 # collect2, so additional links can be useful in future.
9088 if test "$aix_use_runtimelinking" = yes; then
9089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9090 # instead of lib<name>.a to let people know that these are not
9091 # typical AIX shared libraries.
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 else
9094 # We preserve .a as extension for shared libraries through AIX4.2
9095 # and later when we are not doing run time linking.
9096 library_names_spec='${libname}${release}.a $libname.a'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 fi
9099 shlibpath_var=LIBPATH
9100 fi
9101 ;;
9102
9103amigaos*)
6b4a97ed
PG
9104 case $host_cpu in
9105 powerpc)
9106 # Since July 2007 AmigaOS4 officially supports .so libraries.
9107 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 ;;
9110 m68k)
1cf3d07d
SE
9111 library_names_spec='$libname.ixlibrary $libname.a'
9112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9113 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'
6b4a97ed
PG
9114 ;;
9115 esac
1cf3d07d
SE
9116 ;;
9117
9118beos*)
9119 library_names_spec='${libname}${shared_ext}'
9120 dynamic_linker="$host_os ld.so"
9121 shlibpath_var=LIBRARY_PATH
9122 ;;
9123
9124bsdi[45]*)
9125 version_type=linux
9126 need_version=no
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9133 # the default ld.so.conf also contains /usr/contrib/lib and
9134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9135 # libtool to hard-code these into programs
9136 ;;
9137
6b4a97ed 9138cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9139 version_type=windows
9140 shrext_cmds=".dll"
9141 need_version=no
9142 need_lib_prefix=no
9143
6b4a97ed
PG
9144 case $GCC,$host_os in
9145 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9146 library_names_spec='$libname.dll.a'
9147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9148 postinstall_cmds='base_file=`basename \${file}`~
9149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9150 dldir=$destdir/`dirname \$dlpath`~
9151 test -d \$dldir || mkdir -p \$dldir~
9152 $install_prog $dir/$dlname \$dldir/$dlname~
9153 chmod a+x \$dldir/$dlname~
9154 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9155 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9156 fi'
9157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9158 dlpath=$dir/\$dldll~
9159 $RM \$dlpath'
9160 shlibpath_overrides_runpath=yes
9161
9162 case $host_os in
9163 cygwin*)
9164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9166 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9167 ;;
6b4a97ed 9168 mingw* | cegcc*)
1cf3d07d
SE
9169 # MinGW DLLs use traditional 'lib' prefix
9170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9171 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9172 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9173 # It is most probably a Windows format PATH printed by
9174 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9175 # path with ; separators, and with drive letters. We can handle the
9176 # drive letters (cygwin fileutils understands them), so leave them,
9177 # especially as we might pass files found there to a mingw objdump,
9178 # which wouldn't understand a cygwinified path. Ahh.
9179 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9180 else
9181 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9182 fi
9183 ;;
9184 pw32*)
9185 # pw32 DLLs use 'pw' prefix rather than 'lib'
9186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9187 ;;
9188 esac
9189 ;;
9190
9191 *)
9192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9193 ;;
9194 esac
9195 dynamic_linker='Win32 ld.exe'
9196 # FIXME: first we should search . and the directory the executable is in
9197 shlibpath_var=PATH
9198 ;;
9199
9200darwin* | rhapsody*)
9201 dynamic_linker="$host_os dyld"
9202 version_type=darwin
9203 need_lib_prefix=no
9204 need_version=no
9205 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9206 soname_spec='${libname}${release}${major}$shared_ext'
9207 shlibpath_overrides_runpath=yes
9208 shlibpath_var=DYLD_LIBRARY_PATH
9209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9210
9211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9213 ;;
9214
9215dgux*)
9216 version_type=linux
9217 need_lib_prefix=no
9218 need_version=no
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 ;;
9223
9224freebsd1*)
9225 dynamic_linker=no
9226 ;;
9227
9228freebsd* | dragonfly*)
9229 # DragonFly does not have aout. When/if they implement a new
9230 # versioning mechanism, adjust this.
9231 if test -x /usr/bin/objformat; then
9232 objformat=`/usr/bin/objformat`
9233 else
9234 case $host_os in
9235 freebsd[123]*) objformat=aout ;;
9236 *) objformat=elf ;;
9237 esac
9238 fi
9239 version_type=freebsd-$objformat
9240 case $version_type in
9241 freebsd-elf*)
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9243 need_version=no
9244 need_lib_prefix=no
9245 ;;
9246 freebsd-*)
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9248 need_version=yes
9249 ;;
9250 esac
9251 shlibpath_var=LD_LIBRARY_PATH
9252 case $host_os in
9253 freebsd2*)
9254 shlibpath_overrides_runpath=yes
9255 ;;
9256 freebsd3.[01]* | freebsdelf3.[01]*)
9257 shlibpath_overrides_runpath=yes
9258 hardcode_into_libs=yes
9259 ;;
9260 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9261 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9262 shlibpath_overrides_runpath=no
9263 hardcode_into_libs=yes
9264 ;;
9265 *) # from 4.6 on, and DragonFly
9266 shlibpath_overrides_runpath=yes
9267 hardcode_into_libs=yes
9268 ;;
9269 esac
9270 ;;
9271
9272gnu*)
9273 version_type=linux
9274 need_lib_prefix=no
9275 need_version=no
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 hardcode_into_libs=yes
9280 ;;
9281
9282hpux9* | hpux10* | hpux11*)
9283 # Give a soname corresponding to the major version so that dld.sl refuses to
9284 # link against other versions.
9285 version_type=sunos
9286 need_lib_prefix=no
9287 need_version=no
9288 case $host_cpu in
9289 ia64*)
9290 shrext_cmds='.so'
9291 hardcode_into_libs=yes
9292 dynamic_linker="$host_os dld.so"
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 if test "X$HPUX_IA64_MODE" = X32; then
9298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9299 else
9300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9301 fi
9302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9303 ;;
9304 hppa*64*)
9305 shrext_cmds='.sl'
9306 hardcode_into_libs=yes
9307 dynamic_linker="$host_os dld.sl"
9308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9314 ;;
9315 *)
9316 shrext_cmds='.sl'
9317 dynamic_linker="$host_os dld.sl"
9318 shlibpath_var=SHLIB_PATH
9319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 ;;
9323 esac
9324 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9325 postinstall_cmds='chmod 555 $lib'
9326 ;;
9327
9328interix[3-9]*)
9329 version_type=linux
9330 need_lib_prefix=no
9331 need_version=no
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 shlibpath_overrides_runpath=no
9337 hardcode_into_libs=yes
9338 ;;
9339
9340irix5* | irix6* | nonstopux*)
9341 case $host_os in
9342 nonstopux*) version_type=nonstopux ;;
9343 *)
9344 if test "$lt_cv_prog_gnu_ld" = yes; then
9345 version_type=linux
9346 else
9347 version_type=irix
9348 fi ;;
9349 esac
9350 need_lib_prefix=no
9351 need_version=no
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9354 case $host_os in
9355 irix5* | nonstopux*)
9356 libsuff= shlibsuff=
9357 ;;
9358 *)
9359 case $LD in # libtool.m4 will add one of these switches to LD
9360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9361 libsuff= shlibsuff= libmagic=32-bit;;
9362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9363 libsuff=32 shlibsuff=N32 libmagic=N32;;
9364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9366 *) libsuff= shlibsuff= libmagic=never-match;;
9367 esac
9368 ;;
9369 esac
9370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9371 shlibpath_overrides_runpath=no
9372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9374 hardcode_into_libs=yes
9375 ;;
9376
9377# No shared lib support for Linux oldld, aout, or coff.
9378linux*oldld* | linux*aout* | linux*coff*)
9379 dynamic_linker=no
9380 ;;
9381
9382# This must be Linux ELF.
9383linux* | k*bsd*-gnu)
9384 version_type=linux
9385 need_lib_prefix=no
9386 need_version=no
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 shlibpath_overrides_runpath=no
baafc534 9392
1cf3d07d 9393 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
9394 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396else
9397 lt_cv_shlibpath_overrides_runpath=no
9398 save_LDFLAGS=$LDFLAGS
9399 save_libdir=$libdir
9400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9402 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
9403/* confdefs.h. */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h. */
9408
9409int
9410main ()
9411{
9412
9413 ;
9414 return 0;
9415}
9416_ACEOF
9417rm -f conftest.$ac_objext conftest$ac_exeext
9418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>conftest.er1
9420 ac_status=$?
9421 grep -v '^ *+' conftest.er1 >conftest.err
9422 rm -f conftest.er1
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } &&
9426 { ac_try='test -z "$ac_c_werror_flag"
9427 || test ! -s conftest.err'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; } &&
9433 { ac_try='test -s conftest$ac_exeext'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
6b4a97ed 9439 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 9440 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d
SE
9441fi
9442
9443else
9444 echo "$as_me: failed program was:" >&5
9445sed 's/^/| /' conftest.$ac_ext >&5
9446
9447fi
9448rm -f conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
9450 LDFLAGS=$save_LDFLAGS
9451 libdir=$save_libdir
9452
9453fi
9454
9455 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
9456
9457 # This implies no fast_install, which is unacceptable.
9458 # Some rework will be needed to allow for fast_install
9459 # before this can be enabled.
9460 hardcode_into_libs=yes
9461
9462 # Append ld.so.conf contents to the search path
9463 if test -f /etc/ld.so.conf; then
6b4a97ed 9464 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
9465 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9466 fi
9467
9468 # We used to test for /lib/ld.so.1 and disable shared libraries on
9469 # powerpc, because MkLinux only supported shared libraries with the
9470 # GNU dynamic linker. Since this was broken with cross compilers,
9471 # most powerpc-linux boxes support dynamic linking these days and
9472 # people can always --disable-shared, the test was removed, and we
9473 # assume the GNU/Linux dynamic linker is in use.
9474 dynamic_linker='GNU/Linux ld.so'
9475 ;;
9476
9477netbsd*)
9478 version_type=sunos
9479 need_lib_prefix=no
9480 need_version=no
9481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9484 dynamic_linker='NetBSD (a.out) ld.so'
9485 else
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 dynamic_linker='NetBSD ld.elf_so'
9489 fi
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes
9492 hardcode_into_libs=yes
9493 ;;
9494
9495newsos6)
9496 version_type=linux
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 ;;
9501
9502*nto* | *qnx*)
9503 version_type=qnx
9504 need_lib_prefix=no
9505 need_version=no
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 shlibpath_overrides_runpath=no
9510 hardcode_into_libs=yes
9511 dynamic_linker='ldqnx.so'
9512 ;;
9513
9514openbsd*)
9515 version_type=sunos
9516 sys_lib_dlsearch_path_spec="/usr/lib"
9517 need_lib_prefix=no
9518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9519 case $host_os in
9520 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9521 *) need_version=no ;;
9522 esac
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9525 shlibpath_var=LD_LIBRARY_PATH
9526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9527 case $host_os in
9528 openbsd2.[89] | openbsd2.[89].*)
9529 shlibpath_overrides_runpath=no
9530 ;;
9531 *)
9532 shlibpath_overrides_runpath=yes
9533 ;;
9534 esac
9535 else
9536 shlibpath_overrides_runpath=yes
9537 fi
9538 ;;
9539
9540os2*)
9541 libname_spec='$name'
9542 shrext_cmds=".dll"
9543 need_lib_prefix=no
9544 library_names_spec='$libname${shared_ext} $libname.a'
9545 dynamic_linker='OS/2 ld.exe'
9546 shlibpath_var=LIBPATH
9547 ;;
9548
9549osf3* | osf4* | osf5*)
9550 version_type=osf
9551 need_lib_prefix=no
9552 need_version=no
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9558 ;;
9559
9560rdos*)
9561 dynamic_linker=no
9562 ;;
9563
9564solaris*)
9565 version_type=linux
9566 need_lib_prefix=no
9567 need_version=no
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 shlibpath_var=LD_LIBRARY_PATH
9571 shlibpath_overrides_runpath=yes
9572 hardcode_into_libs=yes
9573 # ldd complains unless libraries are executable
9574 postinstall_cmds='chmod +x $lib'
9575 ;;
9576
9577sunos4*)
9578 version_type=sunos
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9580 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=yes
9583 if test "$with_gnu_ld" = yes; then
9584 need_lib_prefix=no
9585 fi
9586 need_version=yes
9587 ;;
9588
9589sysv4 | sysv4.3*)
9590 version_type=linux
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 case $host_vendor in
9595 sni)
9596 shlibpath_overrides_runpath=no
9597 need_lib_prefix=no
9598 runpath_var=LD_RUN_PATH
9599 ;;
9600 siemens)
9601 need_lib_prefix=no
9602 ;;
9603 motorola)
9604 need_lib_prefix=no
9605 need_version=no
9606 shlibpath_overrides_runpath=no
9607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9608 ;;
9609 esac
9610 ;;
9611
9612sysv4*MP*)
9613 if test -d /usr/nec ;then
9614 version_type=linux
9615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9616 soname_spec='$libname${shared_ext}.$major'
9617 shlibpath_var=LD_LIBRARY_PATH
9618 fi
9619 ;;
9620
9621sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9622 version_type=freebsd-elf
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=yes
9629 hardcode_into_libs=yes
9630 if test "$with_gnu_ld" = yes; then
9631 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9632 else
9633 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9634 case $host_os in
9635 sco3.2v5*)
9636 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9637 ;;
9638 esac
9639 fi
9640 sys_lib_dlsearch_path_spec='/usr/lib'
9641 ;;
9642
9643tpf*)
9644 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9645 version_type=linux
9646 need_lib_prefix=no
9647 need_version=no
6b4a97ed 9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=no
9651 hardcode_into_libs=yes
9652 ;;
9653
9654uts4*)
9655 version_type=linux
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 ;;
9660
9661*)
9662 dynamic_linker=no
9663 ;;
9664esac
9665echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9666echo "${ECHO_T}$dynamic_linker" >&6
9667test "$dynamic_linker" = no && can_build_shared=no
9668
9669variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9670if test "$GCC" = yes; then
9671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9672fi
9673
6b4a97ed
PG
9674if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9675 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9676fi
9677if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9678 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9679fi
9680
1cf3d07d
SE
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9768echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9769hardcode_action=
9770if test -n "$hardcode_libdir_flag_spec" ||
9771 test -n "$runpath_var" ||
9772 test "X$hardcode_automatic" = "Xyes" ; then
9773
9774 # We can hardcode non-existent directories.
9775 if test "$hardcode_direct" != no &&
9776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9777 # have to relink, otherwise we might link with an installed library
9778 # when we should be linking with a yet-to-be-installed one
9779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9780 test "$hardcode_minus_L" != no; then
9781 # Linking always hardcodes the temporary library directory.
9782 hardcode_action=relink
9783 else
9784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9785 hardcode_action=immediate
9786 fi
9787else
9788 # We cannot hardcode anything, or else we can only hardcode existing
9789 # directories.
9790 hardcode_action=unsupported
9791fi
9792echo "$as_me:$LINENO: result: $hardcode_action" >&5
9793echo "${ECHO_T}$hardcode_action" >&6
9794
9795if test "$hardcode_action" = relink ||
9796 test "$inherit_rpath" = yes; then
9797 # Fast installation is not supported
9798 enable_fast_install=no
9799elif test "$shlibpath_overrides_runpath" = yes ||
9800 test "$enable_shared" = no; then
9801 # Fast installation is not necessary
9802 enable_fast_install=needless
9803fi
9804
9805
9806
9807
9808
9809
9810 if test "x$enable_dlopen" != xyes; then
9811 enable_dlopen=unknown
9812 enable_dlopen_self=unknown
9813 enable_dlopen_self_static=unknown
9814else
9815 lt_cv_dlopen=no
9816 lt_cv_dlopen_libs=
9817
9818 case $host_os in
9819 beos*)
9820 lt_cv_dlopen="load_add_on"
9821 lt_cv_dlopen_libs=
9822 lt_cv_dlopen_self=yes
9823 ;;
9824
6b4a97ed 9825 mingw* | pw32* | cegcc*)
1cf3d07d
SE
9826 lt_cv_dlopen="LoadLibrary"
9827 lt_cv_dlopen_libs=
9828 ;;
9829
9830 cygwin*)
9831 lt_cv_dlopen="dlopen"
9832 lt_cv_dlopen_libs=
9833 ;;
9834
9835 darwin*)
9836 # if libdl is installed we need to link against it
9837 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9838echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9839if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842 ac_check_lib_save_LIBS=$LIBS
9843LIBS="-ldl $LIBS"
9844cat >conftest.$ac_ext <<_ACEOF
9845/* confdefs.h. */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
9849/* end confdefs.h. */
9850
9851/* Override any gcc2 internal prototype to avoid an error. */
9852#ifdef __cplusplus
9853extern "C"
9854#endif
9855/* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9857char dlopen ();
9858int
9859main ()
9860{
9861dlopen ();
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag"
9876 || test ! -s conftest.err'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_dl_dlopen=yes
9889else
9890 echo "$as_me: failed program was:" >&5
9891sed 's/^/| /' conftest.$ac_ext >&5
9892
9893ac_cv_lib_dl_dlopen=no
9894fi
9895rm -f conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897LIBS=$ac_check_lib_save_LIBS
9898fi
9899echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9900echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9901if test $ac_cv_lib_dl_dlopen = yes; then
9902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9903else
9904
9905 lt_cv_dlopen="dyld"
9906 lt_cv_dlopen_libs=
9907 lt_cv_dlopen_self=yes
9908
9909fi
9910
9911 ;;
9912
9913 *)
9914 echo "$as_me:$LINENO: checking for shl_load" >&5
9915echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9916if test "${ac_cv_func_shl_load+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918else
9919 cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
9925/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9927#define shl_load innocuous_shl_load
9928
9929/* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char shl_load (); below.
9931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9932 <limits.h> exists even on freestanding compilers. */
9933
9934#ifdef __STDC__
9935# include <limits.h>
9936#else
9937# include <assert.h>
9938#endif
9939
9940#undef shl_load
9941
9942/* Override any gcc2 internal prototype to avoid an error. */
9943#ifdef __cplusplus
9944extern "C"
9945{
9946#endif
9947/* We use char because int might match the return type of a gcc2
9948 builtin and then its argument prototype would still apply. */
9949char shl_load ();
9950/* The GNU C library defines this for functions which it implements
9951 to always fail with ENOSYS. Some functions are actually named
9952 something starting with __ and the normal name is an alias. */
9953#if defined (__stub_shl_load) || defined (__stub___shl_load)
9954choke me
9955#else
9956char (*f) () = shl_load;
9957#endif
9958#ifdef __cplusplus
9959}
9960#endif
9961
9962int
9963main ()
9964{
9965return f != shl_load;
9966 ;
9967 return 0;
9968}
9969_ACEOF
9970rm -f conftest.$ac_objext conftest$ac_exeext
9971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972 (eval $ac_link) 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_func_shl_load=yes
9993else
9994 echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997ac_cv_func_shl_load=no
9998fi
9999rm -f conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001fi
10002echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10003echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10004if test $ac_cv_func_shl_load = yes; then
10005 lt_cv_dlopen="shl_load"
10006else
10007 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10008echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10009if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011else
10012 ac_check_lib_save_LIBS=$LIBS
10013LIBS="-ldld $LIBS"
10014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h. */
10020
10021/* Override any gcc2 internal prototype to avoid an error. */
10022#ifdef __cplusplus
10023extern "C"
10024#endif
10025/* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
10027char shl_load ();
10028int
10029main ()
10030{
10031shl_load ();
10032 ;
10033 return 0;
10034}
10035_ACEOF
10036rm -f conftest.$ac_objext conftest$ac_exeext
10037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 ac_cv_lib_dld_shl_load=yes
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063ac_cv_lib_dld_shl_load=no
10064fi
10065rm -f conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10067LIBS=$ac_check_lib_save_LIBS
10068fi
10069echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10070echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10071if test $ac_cv_lib_dld_shl_load = yes; then
6b4a97ed 10072 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
10073else
10074 echo "$as_me:$LINENO: checking for dlopen" >&5
10075echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10076if test "${ac_cv_func_dlopen+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078else
10079 cat >conftest.$ac_ext <<_ACEOF
10080/* confdefs.h. */
10081_ACEOF
10082cat confdefs.h >>conftest.$ac_ext
10083cat >>conftest.$ac_ext <<_ACEOF
10084/* end confdefs.h. */
10085/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10087#define dlopen innocuous_dlopen
10088
10089/* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char dlopen (); below.
10091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092 <limits.h> exists even on freestanding compilers. */
10093
10094#ifdef __STDC__
10095# include <limits.h>
10096#else
10097# include <assert.h>
10098#endif
10099
10100#undef dlopen
10101
10102/* Override any gcc2 internal prototype to avoid an error. */
10103#ifdef __cplusplus
10104extern "C"
10105{
10106#endif
10107/* We use char because int might match the return type of a gcc2
10108 builtin and then its argument prototype would still apply. */
10109char dlopen ();
10110/* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113#if defined (__stub_dlopen) || defined (__stub___dlopen)
10114choke me
10115#else
10116char (*f) () = dlopen;
10117#endif
10118#ifdef __cplusplus
10119}
10120#endif
10121
10122int
10123main ()
10124{
10125return f != dlopen;
10126 ;
10127 return 0;
10128}
10129_ACEOF
10130rm -f conftest.$ac_objext conftest$ac_exeext
10131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_cv_func_dlopen=yes
10153else
10154 echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
10157ac_cv_func_dlopen=no
10158fi
10159rm -f conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161fi
10162echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10163echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10164if test $ac_cv_func_dlopen = yes; then
10165 lt_cv_dlopen="dlopen"
10166else
10167 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10168echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10169if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171else
10172 ac_check_lib_save_LIBS=$LIBS
10173LIBS="-ldl $LIBS"
10174cat >conftest.$ac_ext <<_ACEOF
10175/* confdefs.h. */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h. */
10180
10181/* Override any gcc2 internal prototype to avoid an error. */
10182#ifdef __cplusplus
10183extern "C"
10184#endif
10185/* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10187char dlopen ();
10188int
10189main ()
10190{
10191dlopen ();
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext conftest$ac_exeext
10197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 ac_cv_lib_dl_dlopen=yes
10219else
10220 echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
10223ac_cv_lib_dl_dlopen=no
10224fi
10225rm -f conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227LIBS=$ac_check_lib_save_LIBS
10228fi
10229echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10230echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10231if test $ac_cv_lib_dl_dlopen = yes; then
10232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10233else
10234 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10235echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10236if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239 ac_check_lib_save_LIBS=$LIBS
10240LIBS="-lsvld $LIBS"
10241cat >conftest.$ac_ext <<_ACEOF
10242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
10247
10248/* Override any gcc2 internal prototype to avoid an error. */
10249#ifdef __cplusplus
10250extern "C"
10251#endif
10252/* We use char because int might match the return type of a gcc2
10253 builtin and then its argument prototype would still apply. */
10254char dlopen ();
10255int
10256main ()
10257{
10258dlopen ();
10259 ;
10260 return 0;
10261}
10262_ACEOF
10263rm -f conftest.$ac_objext conftest$ac_exeext
10264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265 (eval $ac_link) 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag"
10273 || test ! -s conftest.err'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try='test -s conftest$ac_exeext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_cv_lib_svld_dlopen=yes
10286else
10287 echo "$as_me: failed program was:" >&5
10288sed 's/^/| /' conftest.$ac_ext >&5
10289
10290ac_cv_lib_svld_dlopen=no
10291fi
10292rm -f conftest.err conftest.$ac_objext \
10293 conftest$ac_exeext conftest.$ac_ext
10294LIBS=$ac_check_lib_save_LIBS
10295fi
10296echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10297echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10298if test $ac_cv_lib_svld_dlopen = yes; then
10299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10300else
10301 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10302echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10303if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306 ac_check_lib_save_LIBS=$LIBS
10307LIBS="-ldld $LIBS"
10308cat >conftest.$ac_ext <<_ACEOF
10309/* confdefs.h. */
10310_ACEOF
10311cat confdefs.h >>conftest.$ac_ext
10312cat >>conftest.$ac_ext <<_ACEOF
10313/* end confdefs.h. */
10314
10315/* Override any gcc2 internal prototype to avoid an error. */
10316#ifdef __cplusplus
10317extern "C"
10318#endif
10319/* We use char because int might match the return type of a gcc2
10320 builtin and then its argument prototype would still apply. */
10321char dld_link ();
10322int
10323main ()
10324{
10325dld_link ();
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
10331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest$ac_exeext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_lib_dld_dld_link=yes
10353else
10354 echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357ac_cv_lib_dld_dld_link=no
10358fi
10359rm -f conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361LIBS=$ac_check_lib_save_LIBS
10362fi
10363echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10364echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10365if test $ac_cv_lib_dld_dld_link = yes; then
6b4a97ed 10366 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
10367fi
10368
10369
10370fi
10371
10372
10373fi
10374
10375
10376fi
10377
10378
10379fi
10380
10381
10382fi
10383
10384 ;;
10385 esac
10386
10387 if test "x$lt_cv_dlopen" != xno; then
10388 enable_dlopen=yes
10389 else
10390 enable_dlopen=no
10391 fi
10392
10393 case $lt_cv_dlopen in
10394 dlopen)
10395 save_CPPFLAGS="$CPPFLAGS"
10396 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10397
10398 save_LDFLAGS="$LDFLAGS"
10399 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10400
10401 save_LIBS="$LIBS"
10402 LIBS="$lt_cv_dlopen_libs $LIBS"
10403
10404 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10405echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10406if test "${lt_cv_dlopen_self+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409 if test "$cross_compiling" = yes; then :
10410 lt_cv_dlopen_self=cross
10411else
10412 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10413 lt_status=$lt_dlunknown
10414 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10415#line 10415 "configure"
1cf3d07d
SE
10416#include "confdefs.h"
10417
10418#if HAVE_DLFCN_H
10419#include <dlfcn.h>
10420#endif
10421
10422#include <stdio.h>
10423
10424#ifdef RTLD_GLOBAL
10425# define LT_DLGLOBAL RTLD_GLOBAL
10426#else
10427# ifdef DL_GLOBAL
10428# define LT_DLGLOBAL DL_GLOBAL
10429# else
10430# define LT_DLGLOBAL 0
10431# endif
10432#endif
10433
10434/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10435 find out it does not work in some platform. */
10436#ifndef LT_DLLAZY_OR_NOW
10437# ifdef RTLD_LAZY
10438# define LT_DLLAZY_OR_NOW RTLD_LAZY
10439# else
10440# ifdef DL_LAZY
10441# define LT_DLLAZY_OR_NOW DL_LAZY
10442# else
10443# ifdef RTLD_NOW
10444# define LT_DLLAZY_OR_NOW RTLD_NOW
10445# else
10446# ifdef DL_NOW
10447# define LT_DLLAZY_OR_NOW DL_NOW
10448# else
10449# define LT_DLLAZY_OR_NOW 0
10450# endif
10451# endif
10452# endif
10453# endif
10454#endif
10455
1cf3d07d
SE
10456void fnord() { int i=42;}
10457int main ()
10458{
10459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460 int status = $lt_dlunknown;
10461
10462 if (self)
10463 {
10464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10466 /* dlclose (self); */
10467 }
10468 else
10469 puts (dlerror ());
10470
6b4a97ed 10471 return status;
1cf3d07d
SE
10472}
10473_LT_EOF
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10479 (./conftest; exit; ) >&5 2>/dev/null
10480 lt_status=$?
10481 case x$lt_status in
10482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10484 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10485 esac
10486 else :
10487 # compilation failed
10488 lt_cv_dlopen_self=no
10489 fi
10490fi
10491rm -fr conftest*
10492
10493
10494fi
10495echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10496echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10497
10498 if test "x$lt_cv_dlopen_self" = xyes; then
10499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10500 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10501echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10502if test "${lt_cv_dlopen_self_static+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504else
10505 if test "$cross_compiling" = yes; then :
10506 lt_cv_dlopen_self_static=cross
10507else
10508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10509 lt_status=$lt_dlunknown
10510 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10511#line 10511 "configure"
1cf3d07d
SE
10512#include "confdefs.h"
10513
10514#if HAVE_DLFCN_H
10515#include <dlfcn.h>
10516#endif
10517
10518#include <stdio.h>
10519
10520#ifdef RTLD_GLOBAL
10521# define LT_DLGLOBAL RTLD_GLOBAL
10522#else
10523# ifdef DL_GLOBAL
10524# define LT_DLGLOBAL DL_GLOBAL
10525# else
10526# define LT_DLGLOBAL 0
10527# endif
10528#endif
10529
10530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10531 find out it does not work in some platform. */
10532#ifndef LT_DLLAZY_OR_NOW
10533# ifdef RTLD_LAZY
10534# define LT_DLLAZY_OR_NOW RTLD_LAZY
10535# else
10536# ifdef DL_LAZY
10537# define LT_DLLAZY_OR_NOW DL_LAZY
10538# else
10539# ifdef RTLD_NOW
10540# define LT_DLLAZY_OR_NOW RTLD_NOW
10541# else
10542# ifdef DL_NOW
10543# define LT_DLLAZY_OR_NOW DL_NOW
10544# else
10545# define LT_DLLAZY_OR_NOW 0
10546# endif
10547# endif
10548# endif
10549# endif
10550#endif
10551
1cf3d07d
SE
10552void fnord() { int i=42;}
10553int main ()
10554{
10555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10556 int status = $lt_dlunknown;
10557
10558 if (self)
10559 {
10560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10561 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10562 /* dlclose (self); */
10563 }
10564 else
10565 puts (dlerror ());
10566
6b4a97ed 10567 return status;
1cf3d07d
SE
10568}
10569_LT_EOF
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10575 (./conftest; exit; ) >&5 2>/dev/null
10576 lt_status=$?
10577 case x$lt_status in
10578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10581 esac
10582 else :
10583 # compilation failed
10584 lt_cv_dlopen_self_static=no
10585 fi
10586fi
10587rm -fr conftest*
10588
10589
10590fi
10591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10592echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10593 fi
10594
10595 CPPFLAGS="$save_CPPFLAGS"
10596 LDFLAGS="$save_LDFLAGS"
10597 LIBS="$save_LIBS"
10598 ;;
10599 esac
10600
10601 case $lt_cv_dlopen_self in
10602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10603 *) enable_dlopen_self=unknown ;;
10604 esac
10605
10606 case $lt_cv_dlopen_self_static in
10607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10608 *) enable_dlopen_self_static=unknown ;;
10609 esac
10610fi
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628striplib=
10629old_striplib=
10630echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10631echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10632if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10633 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10634 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10635 echo "$as_me:$LINENO: result: yes" >&5
10636echo "${ECHO_T}yes" >&6
10637else
10638# FIXME - insert some real tests, host_os isn't really good enough
10639 case $host_os in
10640 darwin*)
10641 if test -n "$STRIP" ; then
10642 striplib="$STRIP -x"
10643 old_striplib="$STRIP -S"
10644 echo "$as_me:$LINENO: result: yes" >&5
10645echo "${ECHO_T}yes" >&6
10646 else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649 fi
10650 ;;
10651 *)
10652 echo "$as_me:$LINENO: result: no" >&5
10653echo "${ECHO_T}no" >&6
10654 ;;
10655 esac
10656fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669 # Report which library types will actually be built
10670 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10671echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10672 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10673echo "${ECHO_T}$can_build_shared" >&6
10674
10675 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10676echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10677 test "$can_build_shared" = "no" && enable_shared=no
10678
10679 # On AIX, shared libraries and static libraries use the same namespace, and
10680 # are all built from PIC.
10681 case $host_os in
10682 aix3*)
10683 test "$enable_shared" = yes && enable_static=no
10684 if test -n "$RANLIB"; then
10685 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10686 postinstall_cmds='$RANLIB $lib'
10687 fi
10688 ;;
10689
d653fdfb 10690 aix[4-9]*)
1cf3d07d
SE
10691 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10692 test "$enable_shared" = yes && enable_static=no
10693 fi
10694 ;;
10695 esac
10696 echo "$as_me:$LINENO: result: $enable_shared" >&5
10697echo "${ECHO_T}$enable_shared" >&6
10698
10699 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10700echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10701 # Make sure either enable_shared or enable_static is yes.
10702 test "$enable_shared" = yes || enable_static=yes
10703 echo "$as_me:$LINENO: result: $enable_static" >&5
10704echo "${ECHO_T}$enable_static" >&6
10705
10706
10707
10708
10709fi
10710ac_ext=c
10711ac_cpp='$CPP $CPPFLAGS'
10712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10714ac_compiler_gnu=$ac_cv_c_compiler_gnu
10715
10716CC="$lt_save_CC"
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730 ac_config_commands="$ac_config_commands libtool"
10731
10732
10733
10734
10735# Only expand once:
10736
10737
10738
10739
10740
10741echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10742echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10743 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10744if test "${enable_maintainer_mode+set}" = set; then
10745 enableval="$enable_maintainer_mode"
10746 USE_MAINTAINER_MODE=$enableval
10747else
10748 USE_MAINTAINER_MODE=no
10749fi;
10750 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10751echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10752
10753
10754if test $USE_MAINTAINER_MODE = yes; then
10755 MAINTAINER_MODE_TRUE=
10756 MAINTAINER_MODE_FALSE='#'
10757else
10758 MAINTAINER_MODE_TRUE='#'
10759 MAINTAINER_MODE_FALSE=
10760fi
10761
10762 MAINT=$MAINTAINER_MODE_TRUE
10763
10764
10765
10766# We need gfortran to compile parts of the library
10767# We can't use AC_PROG_FC because it expects a fully working gfortran.
10768#AC_PROG_FC(gfortran)
10769FC="$GFORTRAN"
10770ac_ext=${FC_SRCEXT-f}
10771ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10772ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10773ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10774if test -n "$ac_tool_prefix"; then
10775 for ac_prog in gfortran
10776 do
10777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10779echo "$as_me:$LINENO: checking for $ac_word" >&5
10780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10781if test "${ac_cv_prog_FC+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784 if test -n "$FC"; then
10785 ac_cv_prog_FC="$FC" # Let the user override the test.
10786else
10787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788for as_dir in $PATH
10789do
10790 IFS=$as_save_IFS
10791 test -z "$as_dir" && as_dir=.
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10794 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10796 break 2
10797 fi
10798done
10799done
10800
10801fi
10802fi
10803FC=$ac_cv_prog_FC
10804if test -n "$FC"; then
10805 echo "$as_me:$LINENO: result: $FC" >&5
10806echo "${ECHO_T}$FC" >&6
10807else
10808 echo "$as_me:$LINENO: result: no" >&5
10809echo "${ECHO_T}no" >&6
10810fi
10811
10812 test -n "$FC" && break
10813 done
10814fi
10815if test -z "$FC"; then
10816 ac_ct_FC=$FC
10817 for ac_prog in gfortran
10818do
10819 # Extract the first word of "$ac_prog", so it can be a program name with args.
10820set dummy $ac_prog; ac_word=$2
10821echo "$as_me:$LINENO: checking for $ac_word" >&5
10822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10823if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826 if test -n "$ac_ct_FC"; then
10827 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10828else
10829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830for as_dir in $PATH
10831do
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10836 ac_cv_prog_ac_ct_FC="$ac_prog"
10837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 break 2
10839 fi
10840done
10841done
10842
10843fi
10844fi
10845ac_ct_FC=$ac_cv_prog_ac_ct_FC
10846if test -n "$ac_ct_FC"; then
10847 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10848echo "${ECHO_T}$ac_ct_FC" >&6
10849else
10850 echo "$as_me:$LINENO: result: no" >&5
10851echo "${ECHO_T}no" >&6
10852fi
10853
10854 test -n "$ac_ct_FC" && break
10855done
10856
10857 FC=$ac_ct_FC
10858fi
10859
10860
10861# Provide some information about the compiler.
baafc534 10862echo "$as_me:10862:" \
1cf3d07d
SE
10863 "checking for Fortran compiler version" >&5
10864ac_compiler=`set X $ac_compile; echo $2`
10865{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10866 (eval $ac_compiler --version </dev/null >&5) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }
10870{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10871 (eval $ac_compiler -v </dev/null >&5) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }
10875{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10876 (eval $ac_compiler -V </dev/null >&5) 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }
10880rm -f a.out
10881
10882# If we don't use `.F' as extension, the preprocessor is not run on the
10883# input file. (Note that this only needs to work for GNU compilers.)
10884ac_save_ext=$ac_ext
10885ac_ext=F
10886echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10887echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10888if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890else
10891 cat >conftest.$ac_ext <<_ACEOF
10892 program main
10893#ifndef __GNUC__
10894 choke me
10895#endif
10896
10897 end
10898_ACEOF
10899rm -f conftest.$ac_objext
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -z "$ac_fc_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest.$ac_objext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_compiler_gnu=yes
10922else
10923 echo "$as_me: failed program was:" >&5
10924sed 's/^/| /' conftest.$ac_ext >&5
10925
10926ac_compiler_gnu=no
10927fi
10928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10929ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10930
10931fi
10932echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10933echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10934ac_ext=$ac_save_ext
10935ac_test_FFLAGS=${FCFLAGS+set}
10936ac_save_FFLAGS=$FCFLAGS
10937FCFLAGS=
10938echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10939echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10940if test "${ac_cv_prog_fc_g+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942else
10943 FCFLAGS=-g
10944cat >conftest.$ac_ext <<_ACEOF
10945 program main
10946
10947 end
10948_ACEOF
10949rm -f conftest.$ac_objext
10950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10951 (eval $ac_compile) 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_fc_werror_flag"
10959 || test ! -s conftest.err'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; } &&
10965 { ac_try='test -s conftest.$ac_objext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 ac_cv_prog_fc_g=yes
10972else
10973 echo "$as_me: failed program was:" >&5
10974sed 's/^/| /' conftest.$ac_ext >&5
10975
10976ac_cv_prog_fc_g=no
10977fi
10978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10979
10980fi
10981echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10982echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10983if test "$ac_test_FFLAGS" = set; then
10984 FCFLAGS=$ac_save_FFLAGS
10985elif test $ac_cv_prog_fc_g = yes; then
10986 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10987 FCFLAGS="-g -O2"
10988 else
10989 FCFLAGS="-g"
10990 fi
10991else
10992 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10993 FCFLAGS="-O2"
10994 else
10995 FCFLAGS=
10996 fi
10997fi
10998
10999ac_ext=c
11000ac_cpp='$CPP $CPPFLAGS'
11001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11003ac_compiler_gnu=$ac_cv_c_compiler_gnu
11004
11005
11006ac_ext=${FC_SRCEXT-f}
11007ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11008ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
11009ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11010if test -n "$ac_tool_prefix"; then
11011 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
11012 do
11013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11015echo "$as_me:$LINENO: checking for $ac_word" >&5
11016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11017if test "${ac_cv_prog_FC+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019else
11020 if test -n "$FC"; then
11021 ac_cv_prog_FC="$FC" # Let the user override the test.
11022else
11023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035done
11036
11037fi
11038fi
11039FC=$ac_cv_prog_FC
11040if test -n "$FC"; then
11041 echo "$as_me:$LINENO: result: $FC" >&5
11042echo "${ECHO_T}$FC" >&6
11043else
11044 echo "$as_me:$LINENO: result: no" >&5
11045echo "${ECHO_T}no" >&6
11046fi
11047
11048 test -n "$FC" && break
11049 done
11050fi
11051if test -z "$FC"; then
11052 ac_ct_FC=$FC
11053 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
11054do
11055 # Extract the first word of "$ac_prog", so it can be a program name with args.
11056set dummy $ac_prog; ac_word=$2
11057echo "$as_me:$LINENO: checking for $ac_word" >&5
11058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11059if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061else
11062 if test -n "$ac_ct_FC"; then
11063 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11064else
11065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066for as_dir in $PATH
11067do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11072 ac_cv_prog_ac_ct_FC="$ac_prog"
11073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11075 fi
11076done
11077done
11078
11079fi
11080fi
11081ac_ct_FC=$ac_cv_prog_ac_ct_FC
11082if test -n "$ac_ct_FC"; then
11083 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
11084echo "${ECHO_T}$ac_ct_FC" >&6
11085else
11086 echo "$as_me:$LINENO: result: no" >&5
11087echo "${ECHO_T}no" >&6
11088fi
11089
11090 test -n "$ac_ct_FC" && break
11091done
11092
11093 FC=$ac_ct_FC
11094fi
11095
11096
11097# Provide some information about the compiler.
baafc534 11098echo "$as_me:11098:" \
1cf3d07d
SE
11099 "checking for Fortran compiler version" >&5
11100ac_compiler=`set X $ac_compile; echo $2`
11101{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11102 (eval $ac_compiler --version </dev/null >&5) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }
11106{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11107 (eval $ac_compiler -v </dev/null >&5) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }
11111{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11112 (eval $ac_compiler -V </dev/null >&5) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }
11116rm -f a.out
11117
11118# If we don't use `.F' as extension, the preprocessor is not run on the
11119# input file. (Note that this only needs to work for GNU compilers.)
11120ac_save_ext=$ac_ext
11121ac_ext=F
11122echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
11123echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
11124if test "${ac_cv_fc_compiler_gnu+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126else
11127 cat >conftest.$ac_ext <<_ACEOF
11128 program main
11129#ifndef __GNUC__
11130 choke me
11131#endif
11132
11133 end
11134_ACEOF
11135rm -f conftest.$ac_objext
11136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137 (eval $ac_compile) 2>conftest.er1
11138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -z "$ac_fc_werror_flag"
11145 || test ! -s conftest.err'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 ac_compiler_gnu=yes
11158else
11159 echo "$as_me: failed program was:" >&5
11160sed 's/^/| /' conftest.$ac_ext >&5
11161
11162ac_compiler_gnu=no
11163fi
11164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11165ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11166
11167fi
11168echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
11169echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
11170ac_ext=$ac_save_ext
11171ac_test_FFLAGS=${FCFLAGS+set}
11172ac_save_FFLAGS=$FCFLAGS
11173FCFLAGS=
11174echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
11175echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
11176if test "${ac_cv_prog_fc_g+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178else
11179 FCFLAGS=-g
11180cat >conftest.$ac_ext <<_ACEOF
11181 program main
11182
11183 end
11184_ACEOF
11185rm -f conftest.$ac_objext
11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_fc_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_prog_fc_g=yes
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212ac_cv_prog_fc_g=no
11213fi
11214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215
11216fi
11217echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
11218echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
11219if test "$ac_test_FFLAGS" = set; then
11220 FCFLAGS=$ac_save_FFLAGS
11221elif test $ac_cv_prog_fc_g = yes; then
11222 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11223 FCFLAGS="-g -O2"
11224 else
11225 FCFLAGS="-g"
11226 fi
11227else
11228 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11229 FCFLAGS="-O2"
11230 else
11231 FCFLAGS=
11232 fi
11233fi
11234
11235ac_ext=c
11236ac_cpp='$CPP $CPPFLAGS'
11237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11239ac_compiler_gnu=$ac_cv_c_compiler_gnu
11240
11241if test -z "$FC" || test "X$FC" = "Xno"; then
11242 _lt_disable_FC=yes
11243fi
11244
11245
11246
11247 ac_ext=${FC_SRCEXT-f}
11248ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11249ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
11250ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11251
11252
11253archive_cmds_need_lc_FC=no
11254allow_undefined_flag_FC=
11255always_export_symbols_FC=no
11256archive_expsym_cmds_FC=
11257export_dynamic_flag_spec_FC=
11258hardcode_direct_FC=no
11259hardcode_direct_absolute_FC=no
11260hardcode_libdir_flag_spec_FC=
11261hardcode_libdir_flag_spec_ld_FC=
11262hardcode_libdir_separator_FC=
11263hardcode_minus_L_FC=no
11264hardcode_automatic_FC=no
11265inherit_rpath_FC=no
11266module_cmds_FC=
11267module_expsym_cmds_FC=
11268link_all_deplibs_FC=unknown
11269old_archive_cmds_FC=$old_archive_cmds
11270no_undefined_flag_FC=
11271whole_archive_flag_spec_FC=
11272enable_shared_with_static_runtimes_FC=no
11273
11274# Source file extension for fc test sources.
11275ac_ext=${ac_fc_srcext-f}
11276
11277# Object file extension for compiled fc test sources.
11278objext=o
11279objext_FC=$objext
11280
11281# No sense in running all these tests if we already determined that
11282# the FC compiler isn't working. Some variables (like enable_shared)
11283# are currently assumed to apply to all compilers on this platform,
11284# and will be corrupted by setting them based on a non-working compiler.
11285if test "$_lt_disable_FC" != yes; then
11286 # Code to be used in simple compile tests
11287 lt_simple_compile_test_code="\
11288 subroutine t
11289 return
11290 end
11291"
11292
11293 # Code to be used in simple link tests
11294 lt_simple_link_test_code="\
11295 program t
11296 end
11297"
11298
11299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11300
11301
11302
11303
11304
11305
11306# If no C compiler was specified, use CC.
11307LTCC=${LTCC-"$CC"}
11308
11309# If no C compiler flags were specified, use CFLAGS.
11310LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11311
11312# Allow CC to be a program name with arguments.
11313compiler=$CC
11314
11315
11316 # save warnings/boilerplate of simple test code
11317 ac_outfile=conftest.$ac_objext
11318echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11319eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11320_lt_compiler_boilerplate=`cat conftest.err`
11321$RM conftest*
11322
11323 ac_outfile=conftest.$ac_objext
11324echo "$lt_simple_link_test_code" >conftest.$ac_ext
11325eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11326_lt_linker_boilerplate=`cat conftest.err`
6b4a97ed 11327$RM -r conftest*
1cf3d07d
SE
11328
11329
11330 # Allow CC to be a program name with arguments.
11331 lt_save_CC="$CC"
6b4a97ed 11332 lt_save_GCC=$GCC
1cf3d07d
SE
11333 CC=${FC-"f95"}
11334 compiler=$CC
6b4a97ed
PG
11335 GCC=$ac_cv_fc_compiler_gnu
11336
1cf3d07d
SE
11337 compiler_FC=$CC
11338 for cc_temp in $compiler""; do
11339 case $cc_temp in
11340 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11341 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11342 \-*) ;;
11343 *) break;;
11344 esac
11345done
11346cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11347
11348
11349 if test -n "$compiler"; then
11350 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11351echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11352 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11353echo "${ECHO_T}$can_build_shared" >&6
11354
11355 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11356echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11357 test "$can_build_shared" = "no" && enable_shared=no
11358
11359 # On AIX, shared libraries and static libraries use the same namespace, and
11360 # are all built from PIC.
11361 case $host_os in
11362 aix3*)
11363 test "$enable_shared" = yes && enable_static=no
11364 if test -n "$RANLIB"; then
11365 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11366 postinstall_cmds='$RANLIB $lib'
11367 fi
11368 ;;
d653fdfb 11369 aix[4-9]*)
1cf3d07d
SE
11370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11371 test "$enable_shared" = yes && enable_static=no
11372 fi
11373 ;;
11374 esac
11375 echo "$as_me:$LINENO: result: $enable_shared" >&5
11376echo "${ECHO_T}$enable_shared" >&6
11377
11378 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11379echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11380 # Make sure either enable_shared or enable_static is yes.
11381 test "$enable_shared" = yes || enable_static=yes
11382 echo "$as_me:$LINENO: result: $enable_static" >&5
11383echo "${ECHO_T}$enable_static" >&6
11384
11385 GCC_FC="$ac_cv_fc_compiler_gnu"
11386 LD_FC="$LD"
11387
11388 ## CAVEAT EMPTOR:
11389 ## There is no encapsulation within the following macros, do not change
11390 ## the running order or otherwise move them around unless you know exactly
11391 ## what you are doing...
11392 # Dependencies to place before and after the object being linked:
11393predep_objects_FC=
11394postdep_objects_FC=
11395predeps_FC=
11396postdeps_FC=
11397compiler_lib_search_path_FC=
11398
11399cat > conftest.$ac_ext <<_LT_EOF
11400 subroutine foo
11401 implicit none
11402 integer a
11403 a=0
11404 return
11405 end
11406_LT_EOF
11407
11408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409 (eval $ac_compile) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; then
11413 # Parse the compiler output and extract the necessary
11414 # objects, libraries and library flags.
11415
11416 # Sentinel used to keep track of whether or not we are before
11417 # the conftest object file.
11418 pre_test_object_deps_done=no
11419
6b4a97ed 11420 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
11421 case $p in
11422
11423 -L* | -R* | -l*)
11424 # Some compilers place space between "-{L,R}" and the path.
11425 # Remove the space.
11426 if test $p = "-L" ||
11427 test $p = "-R"; then
11428 prev=$p
11429 continue
11430 else
11431 prev=
11432 fi
11433
11434 if test "$pre_test_object_deps_done" = no; then
11435 case $p in
11436 -L* | -R*)
11437 # Internal compiler library paths should come after those
11438 # provided the user. The postdeps already come after the
11439 # user supplied libs so there is no need to process them.
11440 if test -z "$compiler_lib_search_path_FC"; then
11441 compiler_lib_search_path_FC="${prev}${p}"
11442 else
11443 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11444 fi
11445 ;;
11446 # The "-l" case would never come before the object being
11447 # linked, so don't bother handling this case.
11448 esac
11449 else
11450 if test -z "$postdeps_FC"; then
11451 postdeps_FC="${prev}${p}"
11452 else
11453 postdeps_FC="${postdeps_FC} ${prev}${p}"
11454 fi
11455 fi
11456 ;;
11457
11458 *.$objext)
11459 # This assumes that the test object file only shows up
11460 # once in the compiler output.
11461 if test "$p" = "conftest.$objext"; then
11462 pre_test_object_deps_done=yes
11463 continue
11464 fi
11465
11466 if test "$pre_test_object_deps_done" = no; then
11467 if test -z "$predep_objects_FC"; then
11468 predep_objects_FC="$p"
11469 else
11470 predep_objects_FC="$predep_objects_FC $p"
11471 fi
11472 else
11473 if test -z "$postdep_objects_FC"; then
11474 postdep_objects_FC="$p"
11475 else
11476 postdep_objects_FC="$postdep_objects_FC $p"
11477 fi
11478 fi
11479 ;;
11480
11481 *) ;; # Ignore the rest.
11482
11483 esac
11484 done
11485
11486 # Clean up.
11487 rm -f a.out a.exe
11488else
11489 echo "libtool.m4: error: problem compiling FC test program"
11490fi
11491
11492$RM -f confest.$objext
11493
11494# PORTME: override above test on systems where it is broken
11495
11496
11497case " $postdeps_FC " in
11498*" -lc "*) archive_cmds_need_lc_FC=no ;;
11499esac
6b4a97ed
PG
11500 compiler_lib_search_dirs_FC=
11501if test -n "${compiler_lib_search_path_FC}"; then
11502 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11503fi
11504
11505
11506
11507
11508
1cf3d07d
SE
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535 lt_prog_compiler_wl_FC=
11536lt_prog_compiler_pic_FC=
11537lt_prog_compiler_static_FC=
11538
11539echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11540echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11541
11542 if test "$GCC" = yes; then
11543 lt_prog_compiler_wl_FC='-Wl,'
11544 lt_prog_compiler_static_FC='-static'
11545
11546 case $host_os in
11547 aix*)
11548 # All AIX code is PIC.
11549 if test "$host_cpu" = ia64; then
11550 # AIX 5 now supports IA64 processor
11551 lt_prog_compiler_static_FC='-Bstatic'
11552 fi
11553 ;;
11554
11555 amigaos*)
6b4a97ed
PG
11556 case $host_cpu in
11557 powerpc)
11558 # see comment about AmigaOS4 .so support
11559 lt_prog_compiler_pic_FC='-fPIC'
11560 ;;
11561 m68k)
11562 # FIXME: we need at least 68020 code to build shared libraries, but
11563 # adding the `-m68020' flag to GCC prevents building anything better,
11564 # like `-m68040'.
11565 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
11566 ;;
11567 esac
1cf3d07d
SE
11568 ;;
11569
11570 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11571 # PIC is the default for these OSes.
11572 ;;
11573
6b4a97ed 11574 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
11575 # This hack is so that the source file can tell whether it is being
11576 # built for inclusion in a dll (and should export symbols for example).
11577 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11578 # (--disable-auto-import) libraries
11579 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11580 ;;
11581
11582 darwin* | rhapsody*)
11583 # PIC is the default on this platform
11584 # Common symbols not allowed in MH_DYLIB files
11585 lt_prog_compiler_pic_FC='-fno-common'
11586 ;;
11587
11588 hpux*)
6b4a97ed
PG
11589 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11590 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11591 # sets the default TLS model and affects inlining.
1cf3d07d 11592 case $host_cpu in
6b4a97ed 11593 hppa*64*)
1cf3d07d
SE
11594 # +Z the default
11595 ;;
11596 *)
11597 lt_prog_compiler_pic_FC='-fPIC'
11598 ;;
11599 esac
11600 ;;
11601
11602 interix[3-9]*)
11603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11604 # Instead, we relocate shared libraries at runtime.
11605 ;;
11606
11607 msdosdjgpp*)
11608 # Just because we use GCC doesn't mean we suddenly get shared libraries
11609 # on systems that don't support them.
11610 lt_prog_compiler_can_build_shared_FC=no
11611 enable_shared=no
11612 ;;
11613
11614 *nto* | *qnx*)
11615 # QNX uses GNU C++, but need to define -shared option too, otherwise
11616 # it will coredump.
11617 lt_prog_compiler_pic_FC='-fPIC -shared'
11618 ;;
11619
11620 sysv4*MP*)
11621 if test -d /usr/nec; then
11622 lt_prog_compiler_pic_FC=-Kconform_pic
11623 fi
11624 ;;
11625
11626 *)
11627 lt_prog_compiler_pic_FC='-fPIC'
11628 ;;
11629 esac
11630 else
11631 # PORTME Check for flag to pass linker flags through the system compiler.
11632 case $host_os in
11633 aix*)
11634 lt_prog_compiler_wl_FC='-Wl,'
11635 if test "$host_cpu" = ia64; then
11636 # AIX 5 now supports IA64 processor
11637 lt_prog_compiler_static_FC='-Bstatic'
11638 else
11639 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
11640 fi
11641 ;;
1cf3d07d 11642
6b4a97ed 11643 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
11644 # This hack is so that the source file can tell whether it is being
11645 # built for inclusion in a dll (and should export symbols for example).
11646 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11647 ;;
11648
11649 hpux9* | hpux10* | hpux11*)
11650 lt_prog_compiler_wl_FC='-Wl,'
11651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11652 # not for PA HP-UX.
11653 case $host_cpu in
11654 hppa*64*|ia64*)
11655 # +Z the default
11656 ;;
11657 *)
11658 lt_prog_compiler_pic_FC='+Z'
11659 ;;
11660 esac
11661 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11662 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
11663 ;;
11664
11665 irix5* | irix6* | nonstopux*)
11666 lt_prog_compiler_wl_FC='-Wl,'
11667 # PIC (with -KPIC) is the default.
11668 lt_prog_compiler_static_FC='-non_shared'
11669 ;;
11670
11671 linux* | k*bsd*-gnu)
11672 case $cc_basename in
6b4a97ed
PG
11673 # old Intel for x86_64 which still supported -KPIC.
11674 ecc*)
1cf3d07d
SE
11675 lt_prog_compiler_wl_FC='-Wl,'
11676 lt_prog_compiler_pic_FC='-KPIC'
11677 lt_prog_compiler_static_FC='-static'
11678 ;;
6b4a97ed
PG
11679 # icc used to be incompatible with GCC.
11680 # ICC 10 doesn't accept -KPIC any more.
11681 icc* | ifort*)
11682 lt_prog_compiler_wl_FC='-Wl,'
11683 lt_prog_compiler_pic_FC='-fPIC'
11684 lt_prog_compiler_static_FC='-static'
11685 ;;
11686 # Lahey Fortran 8.1.
11687 lf95*)
11688 lt_prog_compiler_wl_FC='-Wl,'
11689 lt_prog_compiler_pic_FC='--shared'
11690 lt_prog_compiler_static_FC='--static'
11691 ;;
1cf3d07d
SE
11692 pgcc* | pgf77* | pgf90* | pgf95*)
11693 # Portland Group compilers (*not* the Pentium gcc compiler,
11694 # which looks to be a dead project)
11695 lt_prog_compiler_wl_FC='-Wl,'
11696 lt_prog_compiler_pic_FC='-fpic'
11697 lt_prog_compiler_static_FC='-Bstatic'
11698 ;;
11699 ccc*)
11700 lt_prog_compiler_wl_FC='-Wl,'
11701 # All Alpha code is PIC.
11702 lt_prog_compiler_static_FC='-non_shared'
11703 ;;
6b4a97ed
PG
11704 xl*)
11705 # IBM XL C 8.0/Fortran 10.1 on PPC
11706 lt_prog_compiler_wl_FC='-Wl,'
11707 lt_prog_compiler_pic_FC='-qpic'
11708 lt_prog_compiler_static_FC='-qstaticlink'
11709 ;;
1cf3d07d
SE
11710 *)
11711 case `$CC -V 2>&1 | sed 5q` in
11712 *Sun\ C*)
11713 # Sun C 5.9
11714 lt_prog_compiler_pic_FC='-KPIC'
11715 lt_prog_compiler_static_FC='-Bstatic'
11716 lt_prog_compiler_wl_FC='-Wl,'
11717 ;;
11718 *Sun\ F*)
11719 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11720 lt_prog_compiler_pic_FC='-KPIC'
11721 lt_prog_compiler_static_FC='-Bstatic'
11722 lt_prog_compiler_wl_FC=''
11723 ;;
11724 esac
11725 ;;
11726 esac
11727 ;;
11728
11729 newsos6)
11730 lt_prog_compiler_pic_FC='-KPIC'
11731 lt_prog_compiler_static_FC='-Bstatic'
11732 ;;
11733
11734 *nto* | *qnx*)
11735 # QNX uses GNU C++, but need to define -shared option too, otherwise
11736 # it will coredump.
11737 lt_prog_compiler_pic_FC='-fPIC -shared'
11738 ;;
11739
11740 osf3* | osf4* | osf5*)
11741 lt_prog_compiler_wl_FC='-Wl,'
11742 # All OSF/1 code is PIC.
11743 lt_prog_compiler_static_FC='-non_shared'
11744 ;;
11745
11746 rdos*)
11747 lt_prog_compiler_static_FC='-non_shared'
11748 ;;
11749
11750 solaris*)
11751 lt_prog_compiler_pic_FC='-KPIC'
11752 lt_prog_compiler_static_FC='-Bstatic'
11753 case $cc_basename in
11754 f77* | f90* | f95*)
11755 lt_prog_compiler_wl_FC='-Qoption ld ';;
11756 *)
11757 lt_prog_compiler_wl_FC='-Wl,';;
11758 esac
11759 ;;
11760
11761 sunos4*)
11762 lt_prog_compiler_wl_FC='-Qoption ld '
11763 lt_prog_compiler_pic_FC='-PIC'
11764 lt_prog_compiler_static_FC='-Bstatic'
11765 ;;
11766
11767 sysv4 | sysv4.2uw2* | sysv4.3*)
11768 lt_prog_compiler_wl_FC='-Wl,'
11769 lt_prog_compiler_pic_FC='-KPIC'
11770 lt_prog_compiler_static_FC='-Bstatic'
11771 ;;
11772
11773 sysv4*MP*)
11774 if test -d /usr/nec ;then
11775 lt_prog_compiler_pic_FC='-Kconform_pic'
11776 lt_prog_compiler_static_FC='-Bstatic'
11777 fi
11778 ;;
11779
11780 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11781 lt_prog_compiler_wl_FC='-Wl,'
11782 lt_prog_compiler_pic_FC='-KPIC'
11783 lt_prog_compiler_static_FC='-Bstatic'
11784 ;;
11785
11786 unicos*)
11787 lt_prog_compiler_wl_FC='-Wl,'
11788 lt_prog_compiler_can_build_shared_FC=no
11789 ;;
11790
11791 uts4*)
11792 lt_prog_compiler_pic_FC='-pic'
11793 lt_prog_compiler_static_FC='-Bstatic'
11794 ;;
11795
11796 *)
11797 lt_prog_compiler_can_build_shared_FC=no
11798 ;;
11799 esac
11800 fi
11801
11802case $host_os in
11803 # For platforms which do not support PIC, -DPIC is meaningless:
11804 *djgpp*)
11805 lt_prog_compiler_pic_FC=
11806 ;;
11807 *)
11808 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11809 ;;
11810esac
11811echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11812echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11813
11814
11815
11816#
11817# Check to make sure the PIC flag actually works.
11818#
11819if test -n "$lt_prog_compiler_pic_FC"; then
11820 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11821echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
6b4a97ed 11822if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then
1cf3d07d
SE
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824else
6b4a97ed 11825 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
11826 ac_outfile=conftest.$ac_objext
11827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11828 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11829 # Insert the option either (1) after the last *FLAGS variable, or
11830 # (2) before a word containing "conftest.", or (3) at the end.
11831 # Note that $ac_compile itself does not contain backslashes and begins
11832 # with a dollar sign (not a hyphen), so the echo should work correctly.
11833 # The option is referenced via a variable to avoid confusing sed.
11834 lt_compile=`echo "$ac_compile" | $SED \
11835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11837 -e 's:$: $lt_compiler_flag:'`
baafc534 11838 (eval echo "\"\$as_me:11838: $lt_compile\"" >&5)
1cf3d07d
SE
11839 (eval "$lt_compile" 2>conftest.err)
11840 ac_status=$?
11841 cat conftest.err >&5
baafc534 11842 echo "$as_me:11842: \$? = $ac_status" >&5
1cf3d07d
SE
11843 if (exit $ac_status) && test -s "$ac_outfile"; then
11844 # The compiler can only warn and ignore the option if not recognized
11845 # So say no if there are warnings other than the usual output.
11846 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 11849 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
11850 fi
11851 fi
11852 $RM conftest*
11853
11854fi
6b4a97ed
PG
11855echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5
11856echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6
1cf3d07d 11857
6b4a97ed 11858if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
11859 case $lt_prog_compiler_pic_FC in
11860 "" | " "*) ;;
11861 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11862 esac
11863else
11864 lt_prog_compiler_pic_FC=
11865 lt_prog_compiler_can_build_shared_FC=no
11866fi
11867
11868fi
11869
11870
11871
11872#
11873# Check to make sure the static flag actually works.
11874#
11875wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11876echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11877echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6b4a97ed 11878if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then
1cf3d07d
SE
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
6b4a97ed 11881 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
11882 save_LDFLAGS="$LDFLAGS"
11883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11884 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11886 # The linker can only warn and ignore the option if not recognized
11887 # So say no if there are warnings
11888 if test -s conftest.err; then
11889 # Append any errors to the config.log.
11890 cat conftest.err 1>&5
11891 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893 if diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 11894 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
11895 fi
11896 else
6b4a97ed 11897 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
11898 fi
11899 fi
6b4a97ed 11900 $RM -r conftest*
1cf3d07d
SE
11901 LDFLAGS="$save_LDFLAGS"
11902
11903fi
6b4a97ed
PG
11904echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5
11905echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6
1cf3d07d 11906
6b4a97ed 11907if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
11908 :
11909else
11910 lt_prog_compiler_static_FC=
11911fi
11912
11913
11914
11915
11916 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11917echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11918if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 lt_cv_prog_compiler_c_o_FC=no
11922 $RM -r conftest 2>/dev/null
11923 mkdir conftest
11924 cd conftest
11925 mkdir out
11926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11927
11928 lt_compiler_flag="-o out/conftest2.$ac_objext"
11929 # Insert the option either (1) after the last *FLAGS variable, or
11930 # (2) before a word containing "conftest.", or (3) at the end.
11931 # Note that $ac_compile itself does not contain backslashes and begins
11932 # with a dollar sign (not a hyphen), so the echo should work correctly.
11933 lt_compile=`echo "$ac_compile" | $SED \
11934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11936 -e 's:$: $lt_compiler_flag:'`
baafc534 11937 (eval echo "\"\$as_me:11937: $lt_compile\"" >&5)
1cf3d07d
SE
11938 (eval "$lt_compile" 2>out/conftest.err)
11939 ac_status=$?
11940 cat out/conftest.err >&5
baafc534 11941 echo "$as_me:11941: \$? = $ac_status" >&5
1cf3d07d
SE
11942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11943 then
11944 # The compiler can only warn and ignore the option if not recognized
11945 # So say no if there are warnings
11946 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11949 lt_cv_prog_compiler_c_o_FC=yes
11950 fi
11951 fi
11952 chmod u+w . 2>&5
11953 $RM conftest*
11954 # SGI C++ compiler will create directory out/ii_files/ for
11955 # template instantiation
11956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11957 $RM out/* && rmdir out
11958 cd ..
11959 $RM -r conftest
11960 $RM conftest*
11961
11962fi
11963echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11964echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11965
11966
11967
11968 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11969echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11970if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972else
11973 lt_cv_prog_compiler_c_o_FC=no
11974 $RM -r conftest 2>/dev/null
11975 mkdir conftest
11976 cd conftest
11977 mkdir out
11978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11979
11980 lt_compiler_flag="-o out/conftest2.$ac_objext"
11981 # Insert the option either (1) after the last *FLAGS variable, or
11982 # (2) before a word containing "conftest.", or (3) at the end.
11983 # Note that $ac_compile itself does not contain backslashes and begins
11984 # with a dollar sign (not a hyphen), so the echo should work correctly.
11985 lt_compile=`echo "$ac_compile" | $SED \
11986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11988 -e 's:$: $lt_compiler_flag:'`
baafc534 11989 (eval echo "\"\$as_me:11989: $lt_compile\"" >&5)
1cf3d07d
SE
11990 (eval "$lt_compile" 2>out/conftest.err)
11991 ac_status=$?
11992 cat out/conftest.err >&5
baafc534 11993 echo "$as_me:11993: \$? = $ac_status" >&5
1cf3d07d
SE
11994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11995 then
11996 # The compiler can only warn and ignore the option if not recognized
11997 # So say no if there are warnings
11998 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12001 lt_cv_prog_compiler_c_o_FC=yes
12002 fi
12003 fi
12004 chmod u+w . 2>&5
12005 $RM conftest*
12006 # SGI C++ compiler will create directory out/ii_files/ for
12007 # template instantiation
12008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12009 $RM out/* && rmdir out
12010 cd ..
12011 $RM -r conftest
12012 $RM conftest*
12013
12014fi
12015echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
12016echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
12017
12018
12019
12020
12021hard_links="nottested"
12022if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12023 # do not overwrite the value of need_locks provided by the user
12024 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12025echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12026 hard_links=yes
12027 $RM conftest*
12028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12029 touch conftest.a
12030 ln conftest.a conftest.b 2>&5 || hard_links=no
12031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12032 echo "$as_me:$LINENO: result: $hard_links" >&5
12033echo "${ECHO_T}$hard_links" >&6
12034 if test "$hard_links" = no; then
12035 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12036echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12037 need_locks=warn
12038 fi
12039else
12040 need_locks=no
12041fi
12042
12043
12044
12045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12046echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12047
12048 runpath_var=
12049 allow_undefined_flag_FC=
12050 always_export_symbols_FC=no
12051 archive_cmds_FC=
12052 archive_expsym_cmds_FC=
12053 compiler_needs_object_FC=no
12054 enable_shared_with_static_runtimes_FC=no
12055 export_dynamic_flag_spec_FC=
12056 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12057 hardcode_automatic_FC=no
12058 hardcode_direct_FC=no
12059 hardcode_direct_absolute_FC=no
12060 hardcode_libdir_flag_spec_FC=
12061 hardcode_libdir_flag_spec_ld_FC=
12062 hardcode_libdir_separator_FC=
12063 hardcode_minus_L_FC=no
12064 hardcode_shlibpath_var_FC=unsupported
12065 inherit_rpath_FC=no
12066 link_all_deplibs_FC=unknown
12067 module_cmds_FC=
12068 module_expsym_cmds_FC=
12069 old_archive_from_new_cmds_FC=
12070 old_archive_from_expsyms_cmds_FC=
12071 thread_safe_flag_spec_FC=
12072 whole_archive_flag_spec_FC=
12073 # include_expsyms should be a list of space-separated symbols to be *always*
12074 # included in the symbol list
12075 include_expsyms_FC=
12076 # exclude_expsyms can be an extended regexp of symbols to exclude
12077 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12078 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12079 # as well as any symbol that contains `d'.
6b4a97ed 12080 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
12081 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12082 # platforms (ab)use it in PIC code, but their linkers get confused if
12083 # the symbol is explicitly referenced. Since portable code cannot
12084 # rely on this symbol name, it's probably fine to never include it in
12085 # preloaded symbol tables.
6b4a97ed 12086 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
12087 extract_expsyms_cmds=
12088
12089 case $host_os in
6b4a97ed 12090 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12092 # When not using gcc, we currently assume that we are using
12093 # Microsoft Visual C++.
12094 if test "$GCC" != yes; then
12095 with_gnu_ld=no
12096 fi
12097 ;;
12098 interix*)
12099 # we just hope/assume this is gcc and not c89 (= MSVC++)
12100 with_gnu_ld=yes
12101 ;;
12102 openbsd*)
12103 with_gnu_ld=no
12104 ;;
12105 esac
12106
12107 ld_shlibs_FC=yes
12108 if test "$with_gnu_ld" = yes; then
12109 # If archive_cmds runs LD, not CC, wlarc should be empty
12110 wlarc='${wl}'
12111
12112 # Set some defaults for GNU ld with shared library support. These
12113 # are reset later if shared libraries are not supported. Putting them
12114 # here allows them to be overridden if necessary.
12115 runpath_var=LD_RUN_PATH
12116 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12117 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12118 # ancient GNU ld didn't support --whole-archive et. al.
12119 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12120 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12121 else
12122 whole_archive_flag_spec_FC=
12123 fi
12124 supports_anon_versioning=no
12125 case `$LD -v 2>&1` in
12126 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12129 *\ 2.11.*) ;; # other 2.11 versions
12130 *) supports_anon_versioning=yes ;;
12131 esac
12132
12133 # See if GNU ld supports shared libraries.
12134 case $host_os in
d653fdfb 12135 aix[3-9]*)
1cf3d07d
SE
12136 # On AIX/PPC, the GNU linker is very broken
12137 if test "$host_cpu" != ia64; then
12138 ld_shlibs_FC=no
12139 cat <<_LT_EOF 1>&2
12140
12141*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12142*** to be unable to reliably create shared libraries on AIX.
12143*** Therefore, libtool is disabling shared libraries support. If you
12144*** really care for shared libraries, you may want to modify your PATH
12145*** so that a non-GNU linker is found, and then restart.
12146
12147_LT_EOF
12148 fi
12149 ;;
12150
12151 amigaos*)
6b4a97ed
PG
12152 case $host_cpu in
12153 powerpc)
12154 # see comment about AmigaOS4 .so support
12155 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156 archive_expsym_cmds_FC=''
12157 ;;
12158 m68k)
12159 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)'
12160 hardcode_libdir_flag_spec_FC='-L$libdir'
12161 hardcode_minus_L_FC=yes
12162 ;;
12163 esac
1cf3d07d
SE
12164 ;;
12165
12166 beos*)
12167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12168 allow_undefined_flag_FC=unsupported
12169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12170 # support --undefined. This deserves some investigation. FIXME
12171 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172 else
12173 ld_shlibs_FC=no
12174 fi
12175 ;;
12176
6b4a97ed 12177 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12178 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12179 # as there is no search path for DLLs.
12180 hardcode_libdir_flag_spec_FC='-L$libdir'
12181 allow_undefined_flag_FC=unsupported
12182 always_export_symbols_FC=no
12183 enable_shared_with_static_runtimes_FC=yes
12184 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12185
12186 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12187 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12188 # If the export-symbols file already is a .def file (1st line
12189 # is EXPORTS), use it as is; otherwise, prepend...
12190 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12191 cp $export_symbols $output_objdir/$soname.def;
12192 else
12193 echo EXPORTS > $output_objdir/$soname.def;
12194 cat $export_symbols >> $output_objdir/$soname.def;
12195 fi~
12196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12197 else
12198 ld_shlibs_FC=no
12199 fi
12200 ;;
12201
12202 interix[3-9]*)
12203 hardcode_direct_FC=no
12204 hardcode_shlibpath_var_FC=no
12205 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12206 export_dynamic_flag_spec_FC='${wl}-E'
12207 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12208 # Instead, shared libraries are loaded at an image base (0x10000000 by
12209 # default) and relocated if they conflict, which is a slow very memory
12210 # consuming and fragmenting process. To avoid this, we pick a random,
12211 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12212 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12213 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'
12214 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'
12215 ;;
12216
12217 gnu* | linux* | tpf* | k*bsd*-gnu)
12218 tmp_diet=no
12219 if test "$host_os" = linux-dietlibc; then
12220 case $cc_basename in
12221 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12222 esac
12223 fi
12224 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12225 && test "$tmp_diet" = no
12226 then
12227 tmp_addflag=
6b4a97ed 12228 tmp_sharedflag='-shared'
1cf3d07d
SE
12229 case $cc_basename,$host_cpu in
12230 pgcc*) # Portland Group C compiler
12231 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'
12232 tmp_addflag=' $pic_flag'
12233 ;;
12234 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12235 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'
12236 tmp_addflag=' $pic_flag -Mnomain' ;;
12237 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12238 tmp_addflag=' -i_dynamic' ;;
12239 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12240 tmp_addflag=' -i_dynamic -nofor_main' ;;
12241 ifc* | ifort*) # Intel Fortran compiler
12242 tmp_addflag=' -nofor_main' ;;
6b4a97ed
PG
12243 lf95*) # Lahey Fortran 8.1
12244 whole_archive_flag_spec_FC=
12245 tmp_sharedflag='--shared' ;;
12246 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12247 tmp_sharedflag='-qmkshrobj'
12248 tmp_addflag= ;;
1cf3d07d
SE
12249 esac
12250 case `$CC -V 2>&1 | sed 5q` in
12251 *Sun\ C*) # Sun C 5.9
12252 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'
12253 compiler_needs_object_FC=yes
12254 tmp_sharedflag='-G' ;;
12255 *Sun\ F*) # Sun Fortran 8.3
12256 tmp_sharedflag='-G' ;;
1cf3d07d
SE
12257 esac
12258 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259
12260 if test "x$supports_anon_versioning" = xyes; then
12261 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12263 echo "local: *; };" >> $output_objdir/$libname.ver~
12264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12265 fi
6b4a97ed
PG
12266
12267 case $cc_basename in
12268 xlf*)
12269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12270 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12271 hardcode_libdir_flag_spec_FC=
12272 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12273 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12274 if test "x$supports_anon_versioning" = xyes; then
12275 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12277 echo "local: *; };" >> $output_objdir/$libname.ver~
12278 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12279 fi
12280 ;;
12281 esac
1cf3d07d
SE
12282 else
12283 ld_shlibs_FC=no
12284 fi
12285 ;;
12286
12287 netbsd*)
12288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12289 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12290 wlarc=
12291 else
12292 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12294 fi
12295 ;;
12296
12297 solaris*)
12298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12299 ld_shlibs_FC=no
12300 cat <<_LT_EOF 1>&2
12301
12302*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12303*** create shared libraries on Solaris systems. Therefore, libtool
12304*** is disabling shared libraries support. We urge you to upgrade GNU
12305*** binutils to release 2.9.1 or newer. Another option is to modify
12306*** your PATH or compiler configuration so that the native linker is
12307*** used, and then restart.
12308
12309_LT_EOF
12310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12311 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12312 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12313 else
12314 ld_shlibs_FC=no
12315 fi
12316 ;;
12317
12318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12319 case `$LD -v 2>&1` in
12320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12321 ld_shlibs_FC=no
12322 cat <<_LT_EOF 1>&2
12323
12324*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12325*** reliably create shared libraries on SCO systems. Therefore, libtool
12326*** is disabling shared libraries support. We urge you to upgrade GNU
12327*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12328*** your PATH or compiler configuration so that the native linker is
12329*** used, and then restart.
12330
12331_LT_EOF
12332 ;;
12333 *)
12334 # For security reasons, it is highly recommended that you always
12335 # use absolute paths for naming shared libraries, and exclude the
12336 # DT_RUNPATH tag from executables and libraries. But doing so
12337 # requires that you compile everything twice, which is a pain.
12338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12339 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12340 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12341 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12342 else
12343 ld_shlibs_FC=no
12344 fi
12345 ;;
12346 esac
12347 ;;
12348
12349 sunos4*)
12350 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12351 wlarc=
12352 hardcode_direct_FC=yes
12353 hardcode_shlibpath_var_FC=no
12354 ;;
12355
12356 *)
12357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12358 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12359 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12360 else
12361 ld_shlibs_FC=no
12362 fi
12363 ;;
12364 esac
12365
12366 if test "$ld_shlibs_FC" = no; then
12367 runpath_var=
12368 hardcode_libdir_flag_spec_FC=
12369 export_dynamic_flag_spec_FC=
12370 whole_archive_flag_spec_FC=
12371 fi
12372 else
12373 # PORTME fill in a description of your system's linker (not GNU ld)
12374 case $host_os in
12375 aix3*)
12376 allow_undefined_flag_FC=unsupported
12377 always_export_symbols_FC=yes
12378 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'
12379 # Note: this linker hardcodes the directories in LIBPATH if there
12380 # are no directories specified by -L.
12381 hardcode_minus_L_FC=yes
12382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12383 # Neither direct hardcoding nor static linking is supported with a
12384 # broken collect2.
12385 hardcode_direct_FC=unsupported
12386 fi
12387 ;;
12388
d653fdfb 12389 aix[4-9]*)
1cf3d07d
SE
12390 if test "$host_cpu" = ia64; then
12391 # On IA64, the linker does run time linking by default, so we don't
12392 # have to do anything special.
12393 aix_use_runtimelinking=no
12394 exp_sym_flag='-Bexport'
12395 no_entry_flag=""
12396 else
12397 # If we're using GNU nm, then we don't want the "-C" option.
12398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12400 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'
12401 else
12402 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'
12403 fi
12404 aix_use_runtimelinking=no
12405
12406 # Test if we are trying to use run time linking or normal
12407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12408 # need to do runtime linking.
d653fdfb 12409 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
12410 for ld_flag in $LDFLAGS; do
12411 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12412 aix_use_runtimelinking=yes
12413 break
12414 fi
12415 done
12416 ;;
12417 esac
12418
12419 exp_sym_flag='-bexport'
12420 no_entry_flag='-bnoentry'
12421 fi
12422
12423 # When large executables or shared objects are built, AIX ld can
12424 # have problems creating the table of contents. If linking a library
12425 # or program results in "error TOC overflow" add -mminimal-toc to
12426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12428
12429 archive_cmds_FC=''
12430 hardcode_direct_FC=yes
12431 hardcode_direct_absolute_FC=yes
12432 hardcode_libdir_separator_FC=':'
12433 link_all_deplibs_FC=yes
12434 file_list_spec_FC='${wl}-f,'
12435
12436 if test "$GCC" = yes; then
12437 case $host_os in aix4.[012]|aix4.[012].*)
12438 # We only want to do this on AIX 4.2 and lower, the check
12439 # below for broken collect2 doesn't work under 4.3+
12440 collect2name=`${CC} -print-prog-name=collect2`
12441 if test -f "$collect2name" &&
12442 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12443 then
12444 # We have reworked collect2
12445 :
12446 else
12447 # We have old collect2
12448 hardcode_direct_FC=unsupported
12449 # It fails to find uninstalled libraries when the uninstalled
12450 # path is not listed in the libpath. Setting hardcode_minus_L
12451 # to unsupported forces relinking
12452 hardcode_minus_L_FC=yes
12453 hardcode_libdir_flag_spec_FC='-L$libdir'
12454 hardcode_libdir_separator_FC=
12455 fi
12456 ;;
12457 esac
12458 shared_flag='-shared'
12459 if test "$aix_use_runtimelinking" = yes; then
12460 shared_flag="$shared_flag "'${wl}-G'
12461 fi
12462 else
12463 # not using gcc
12464 if test "$host_cpu" = ia64; then
12465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12466 # chokes on -Wl,-G. The following line is correct:
12467 shared_flag='-G'
12468 else
12469 if test "$aix_use_runtimelinking" = yes; then
12470 shared_flag='${wl}-G'
12471 else
12472 shared_flag='${wl}-bM:SRE'
12473 fi
12474 fi
12475 fi
12476
6b4a97ed 12477 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
12478 # It seems that -bexpall does not export symbols beginning with
12479 # underscore (_), so it is better to generate a list of symbols to export.
12480 always_export_symbols_FC=yes
12481 if test "$aix_use_runtimelinking" = yes; then
12482 # Warning - without using the other runtime loading flags (-brtl),
12483 # -berok will link without error, but may produce a broken library.
12484 allow_undefined_flag_FC='-berok'
12485 # Determine the default libpath from the value encoded in an
12486 # empty executable.
12487 cat >conftest.$ac_ext <<_ACEOF
12488 program main
12489
12490 end
12491_ACEOF
12492rm -f conftest.$ac_objext conftest$ac_exeext
12493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494 (eval $ac_link) 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_fc_werror_flag"
12502 || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514
12515lt_aix_libpath_sed='
12516 /Import File Strings/,/^$/ {
12517 /^0/ {
12518 s/^0 *\(.*\)$/\1/
12519 p
12520 }
12521 }'
12522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12523# Check for a 64-bit object if we didn't find anything.
12524if test -z "$aix_libpath"; then
12525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12526fi
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531fi
12532rm -f conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12535
12536 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12537 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"
12538 else
12539 if test "$host_cpu" = ia64; then
12540 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
12541 allow_undefined_flag_FC="-z nodefs"
12542 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"
12543 else
12544 # Determine the default libpath from the value encoded in an
12545 # empty executable.
12546 cat >conftest.$ac_ext <<_ACEOF
12547 program main
12548
12549 end
12550_ACEOF
12551rm -f conftest.$ac_objext conftest$ac_exeext
12552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12553 (eval $ac_link) 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_fc_werror_flag"
12561 || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573
12574lt_aix_libpath_sed='
12575 /Import File Strings/,/^$/ {
12576 /^0/ {
12577 s/^0 *\(.*\)$/\1/
12578 p
12579 }
12580 }'
12581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12582# Check for a 64-bit object if we didn't find anything.
12583if test -z "$aix_libpath"; then
12584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585fi
12586else
12587 echo "$as_me: failed program was:" >&5
12588sed 's/^/| /' conftest.$ac_ext >&5
12589
12590fi
12591rm -f conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12594
12595 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12596 # Warning - without using the other run time loading flags,
12597 # -berok will link without error, but may produce a broken library.
12598 no_undefined_flag_FC=' ${wl}-bernotok'
12599 allow_undefined_flag_FC=' ${wl}-berok'
12600 # Exported symbols can be pulled into shared objects from archives
12601 whole_archive_flag_spec_FC='$convenience'
12602 archive_cmds_need_lc_FC=yes
12603 # This is similar to how AIX traditionally builds its shared libraries.
12604 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'
12605 fi
12606 fi
953ff289 12607 ;;
1cf3d07d
SE
12608
12609 amigaos*)
6b4a97ed
PG
12610 case $host_cpu in
12611 powerpc)
12612 # see comment about AmigaOS4 .so support
12613 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12614 archive_expsym_cmds_FC=''
12615 ;;
12616 m68k)
12617 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)'
12618 hardcode_libdir_flag_spec_FC='-L$libdir'
12619 hardcode_minus_L_FC=yes
12620 ;;
12621 esac
953ff289 12622 ;;
1cf3d07d
SE
12623
12624 bsdi[45]*)
12625 export_dynamic_flag_spec_FC=-rdynamic
953ff289 12626 ;;
1cf3d07d 12627
6b4a97ed 12628 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12629 # When not using gcc, we currently assume that we are using
12630 # Microsoft Visual C++.
12631 # hardcode_libdir_flag_spec is actually meaningless, as there is
12632 # no search path for DLLs.
12633 hardcode_libdir_flag_spec_FC=' '
12634 allow_undefined_flag_FC=unsupported
12635 # Tell ltmain to make .lib files, not .a files.
12636 libext=lib
12637 # Tell ltmain to make .dll files, not .so files.
12638 shrext_cmds=".dll"
12639 # FIXME: Setting linknames here is a bad hack.
12640 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12641 # The linker will automatically build a .lib file if we build a DLL.
12642 old_archive_from_new_cmds_FC='true'
12643 # FIXME: Should let the user specify the lib program.
12644 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
12645 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
12646 enable_shared_with_static_runtimes_FC=yes
953ff289 12647 ;;
1cf3d07d
SE
12648
12649 darwin* | rhapsody*)
1cf3d07d 12650
6b4a97ed
PG
12651
12652 archive_cmds_need_lc_FC=no
12653 hardcode_direct_FC=no
12654 hardcode_automatic_FC=yes
12655 hardcode_shlibpath_var_FC=unsupported
12656 whole_archive_flag_spec_FC=''
12657 link_all_deplibs_FC=yes
12658 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
12659 case $cc_basename in
12660 ifort*) _lt_dar_can_shared=yes ;;
12661 *) _lt_dar_can_shared=$GCC ;;
12662 esac
12663 if test "$_lt_dar_can_shared" = "yes"; then
12664 output_verbose_link_cmd=echo
12665 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12666 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12667 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12668 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${_lt_dar_export_syms}${_lt_dsymutil}"
12669
12670 else
12671 ld_shlibs_FC=no
12672 fi
12673
953ff289 12674 ;;
1cf3d07d
SE
12675
12676 dgux*)
12677 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12678 hardcode_libdir_flag_spec_FC='-L$libdir'
12679 hardcode_shlibpath_var_FC=no
953ff289 12680 ;;
953ff289 12681
1cf3d07d
SE
12682 freebsd1*)
12683 ld_shlibs_FC=no
953ff289 12684 ;;
1cf3d07d
SE
12685
12686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12687 # support. Future versions do this automatically, but an explicit c++rt0.o
12688 # does not break anything, and helps significantly (at the cost of a little
12689 # extra space).
12690 freebsd2.2*)
12691 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12692 hardcode_libdir_flag_spec_FC='-R$libdir'
12693 hardcode_direct_FC=yes
12694 hardcode_shlibpath_var_FC=no
953ff289 12695 ;;
953ff289 12696
1cf3d07d
SE
12697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12698 freebsd2*)
12699 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12700 hardcode_direct_FC=yes
12701 hardcode_minus_L_FC=yes
12702 hardcode_shlibpath_var_FC=no
12703 ;;
12704
12705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12706 freebsd* | dragonfly*)
12707 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12708 hardcode_libdir_flag_spec_FC='-R$libdir'
12709 hardcode_direct_FC=yes
12710 hardcode_shlibpath_var_FC=no
12711 ;;
12712
12713 hpux9*)
12714 if test "$GCC" = yes; then
12715 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'
12716 else
12717 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'
12718 fi
12719 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12720 hardcode_libdir_separator_FC=:
12721 hardcode_direct_FC=yes
12722
12723 # hardcode_minus_L: Not really in the search PATH,
12724 # but as the default location of the library.
12725 hardcode_minus_L_FC=yes
12726 export_dynamic_flag_spec_FC='${wl}-E'
12727 ;;
12728
12729 hpux10*)
12730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12731 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12732 else
12733 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12734 fi
12735 if test "$with_gnu_ld" = no; then
12736 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12737 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12738 hardcode_libdir_separator_FC=:
12739 hardcode_direct_FC=yes
12740 hardcode_direct_absolute_FC=yes
12741 export_dynamic_flag_spec_FC='${wl}-E'
12742 # hardcode_minus_L: Not really in the search PATH,
12743 # but as the default location of the library.
12744 hardcode_minus_L_FC=yes
12745 fi
12746 ;;
12747
12748 hpux11*)
12749 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12750 case $host_cpu in
12751 hppa*64*)
12752 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12753 ;;
12754 ia64*)
6b4a97ed 12755 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
12756 ;;
12757 *)
12758 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12759 ;;
12760 esac
12761 else
12762 case $host_cpu in
12763 hppa*64*)
12764 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12765 ;;
12766 ia64*)
12767 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12768 ;;
12769 *)
12770 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12771 ;;
12772 esac
12773 fi
12774 if test "$with_gnu_ld" = no; then
12775 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12776 hardcode_libdir_separator_FC=:
12777
12778 case $host_cpu in
12779 hppa*64*|ia64*)
12780 hardcode_direct_FC=no
12781 hardcode_shlibpath_var_FC=no
12782 ;;
12783 *)
12784 hardcode_direct_FC=yes
12785 hardcode_direct_absolute_FC=yes
12786 export_dynamic_flag_spec_FC='${wl}-E'
12787
12788 # hardcode_minus_L: Not really in the search PATH,
12789 # but as the default location of the library.
12790 hardcode_minus_L_FC=yes
12791 ;;
12792 esac
12793 fi
12794 ;;
12795
12796 irix5* | irix6* | nonstopux*)
12797 if test "$GCC" = yes; then
12798 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'
12799 # Try to use the -exported_symbol ld option, if it does not
12800 # work, assume that -exports_file does not work either and
12801 # implicitly export all symbols.
12802 save_LDFLAGS="$LDFLAGS"
12803 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12804 cat >conftest.$ac_ext <<_ACEOF
12805int foo(void) {}
12806_ACEOF
12807rm -f conftest.$ac_objext conftest$ac_exeext
12808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809 (eval $ac_link) 2>conftest.er1
953ff289 12810 ac_status=$?
1cf3d07d
SE
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
953ff289 12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12815 (exit $ac_status); } &&
12816 { ac_try='test -z "$ac_fc_werror_flag"
12817 || test ! -s conftest.err'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest$ac_exeext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 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'
12830
12831else
12832 echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
12835fi
12836rm -f conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 LDFLAGS="$save_LDFLAGS"
12839 else
12840 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'
12841 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'
12842 fi
12843 archive_cmds_need_lc_FC='no'
12844 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12845 hardcode_libdir_separator_FC=:
12846 inherit_rpath_FC=yes
12847 link_all_deplibs_FC=yes
12848 ;;
12849
12850 netbsd*)
12851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12852 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12853 else
12854 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12855 fi
12856 hardcode_libdir_flag_spec_FC='-R$libdir'
12857 hardcode_direct_FC=yes
12858 hardcode_shlibpath_var_FC=no
12859 ;;
12860
12861 newsos6)
12862 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12863 hardcode_direct_FC=yes
12864 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12865 hardcode_libdir_separator_FC=:
12866 hardcode_shlibpath_var_FC=no
12867 ;;
12868
12869 *nto* | *qnx*)
12870 ;;
12871
12872 openbsd*)
6b4a97ed
PG
12873 if test -f /usr/libexec/ld.so; then
12874 hardcode_direct_FC=yes
12875 hardcode_shlibpath_var_FC=no
12876 hardcode_direct_absolute_FC=yes
12877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 12878 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6b4a97ed 12879 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 12880 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
6b4a97ed
PG
12881 export_dynamic_flag_spec_FC='${wl}-E'
12882 else
12883 case $host_os in
12884 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12885 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12886 hardcode_libdir_flag_spec_FC='-R$libdir'
12887 ;;
12888 *)
12889 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12890 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12891 ;;
12892 esac
12893 fi
12894 else
12895 ld_shlibs_FC=no
1cf3d07d
SE
12896 fi
12897 ;;
12898
12899 os2*)
12900 hardcode_libdir_flag_spec_FC='-L$libdir'
12901 hardcode_minus_L_FC=yes
12902 allow_undefined_flag_FC=unsupported
12903 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'
12904 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12905 ;;
12906
12907 osf3*)
12908 if test "$GCC" = yes; then
12909 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12910 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'
12911 else
12912 allow_undefined_flag_FC=' -expect_unresolved \*'
12913 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'
12914 fi
12915 archive_cmds_need_lc_FC='no'
12916 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12917 hardcode_libdir_separator_FC=:
12918 ;;
12919
12920 osf4* | osf5*) # as osf3* with the addition of -msym flag
12921 if test "$GCC" = yes; then
12922 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12923 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'
12924 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12925 else
12926 allow_undefined_flag_FC=' -expect_unresolved \*'
12927 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'
12928 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~
12929 $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'
12930
12931 # Both c and cxx compiler support -rpath directly
12932 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12933 fi
12934 archive_cmds_need_lc_FC='no'
12935 hardcode_libdir_separator_FC=:
12936 ;;
12937
12938 solaris*)
12939 no_undefined_flag_FC=' -z defs'
12940 if test "$GCC" = yes; then
12941 wlarc='${wl}'
12942 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12944 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12945 else
12946 case `$CC -V 2>&1` in
12947 *"Compilers 5.0"*)
12948 wlarc=''
12949 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12950 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12951 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12952 ;;
12953 *)
12954 wlarc='${wl}'
12955 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12956 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12957 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12958 ;;
12959 esac
12960 fi
12961 hardcode_libdir_flag_spec_FC='-R$libdir'
12962 hardcode_shlibpath_var_FC=no
12963 case $host_os in
12964 solaris2.[0-5] | solaris2.[0-5].*) ;;
12965 *)
12966 # The compiler driver will combine and reorder linker options,
12967 # but understands `-z linker_flag'. GCC discards it without `$wl',
12968 # but is careful enough not to reorder.
12969 # Supported since Solaris 2.6 (maybe 2.5.1?)
12970 if test "$GCC" = yes; then
12971 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12972 else
12973 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12974 fi
12975 ;;
12976 esac
12977 link_all_deplibs_FC=yes
12978 ;;
12979
12980 sunos4*)
12981 if test "x$host_vendor" = xsequent; then
12982 # Use $CC to link under sequent, because it throws in some extra .o
12983 # files that make .init and .fini sections work.
12984 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12985 else
12986 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12987 fi
12988 hardcode_libdir_flag_spec_FC='-L$libdir'
12989 hardcode_direct_FC=yes
12990 hardcode_minus_L_FC=yes
12991 hardcode_shlibpath_var_FC=no
12992 ;;
12993
12994 sysv4)
12995 case $host_vendor in
12996 sni)
12997 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12998 hardcode_direct_FC=yes # is this really true???
12999 ;;
13000 siemens)
13001 ## LD is ld it makes a PLAMLIB
13002 ## CC just makes a GrossModule.
13003 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13004 reload_cmds_FC='$CC -r -o $output$reload_objs'
13005 hardcode_direct_FC=no
13006 ;;
13007 motorola)
13008 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13009 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13010 ;;
953ff289 13011 esac
1cf3d07d
SE
13012 runpath_var='LD_RUN_PATH'
13013 hardcode_shlibpath_var_FC=no
13014 ;;
13015
13016 sysv4.3*)
13017 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13018 hardcode_shlibpath_var_FC=no
13019 export_dynamic_flag_spec_FC='-Bexport'
13020 ;;
13021
13022 sysv4*MP*)
13023 if test -d /usr/nec; then
13024 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13025 hardcode_shlibpath_var_FC=no
13026 runpath_var=LD_RUN_PATH
13027 hardcode_runpath_var=yes
13028 ld_shlibs_FC=yes
13029 fi
13030 ;;
13031
13032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13033 no_undefined_flag_FC='${wl}-z,text'
13034 archive_cmds_need_lc_FC=no
13035 hardcode_shlibpath_var_FC=no
13036 runpath_var='LD_RUN_PATH'
13037
13038 if test "$GCC" = yes; then
13039 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13040 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041 else
13042 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13043 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13044 fi
13045 ;;
13046
13047 sysv5* | sco3.2v5* | sco5v6*)
13048 # Note: We can NOT use -z defs as we might desire, because we do not
13049 # link with -lc, and that would cause any symbols used from libc to
13050 # always be unresolved, which means just about no library would
13051 # ever link correctly. If we're not using GNU ld we use -z text
13052 # though, which does catch some bad symbols but isn't as heavy-handed
13053 # as -z defs.
13054 no_undefined_flag_FC='${wl}-z,text'
13055 allow_undefined_flag_FC='${wl}-z,nodefs'
13056 archive_cmds_need_lc_FC=no
13057 hardcode_shlibpath_var_FC=no
13058 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13059 hardcode_libdir_separator_FC=':'
13060 link_all_deplibs_FC=yes
13061 export_dynamic_flag_spec_FC='${wl}-Bexport'
13062 runpath_var='LD_RUN_PATH'
13063
13064 if test "$GCC" = yes; then
13065 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13067 else
13068 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 fi
13071 ;;
13072
13073 uts4*)
13074 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075 hardcode_libdir_flag_spec_FC='-L$libdir'
13076 hardcode_shlibpath_var_FC=no
13077 ;;
13078
13079 *)
13080 ld_shlibs_FC=no
953ff289 13081 ;;
1cf3d07d
SE
13082 esac
13083
13084 if test x$host_vendor = xsni; then
953ff289 13085 case $host in
1cf3d07d
SE
13086 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13087 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13088 ;;
953ff289 13089 esac
1cf3d07d 13090 fi
953ff289 13091 fi
953ff289 13092
1cf3d07d
SE
13093echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
13094echo "${ECHO_T}$ld_shlibs_FC" >&6
13095test "$ld_shlibs_FC" = no && can_build_shared=no
953ff289 13096
1cf3d07d 13097with_gnu_ld_FC=$with_gnu_ld
953ff289 13098
953ff289 13099
953ff289 13100
953ff289 13101
1cf3d07d
SE
13102
13103
13104#
13105# Do we need to explicitly link libc?
13106#
13107case "x$archive_cmds_need_lc_FC" in
13108x|xyes)
13109 # Assume -lc should be added
13110 archive_cmds_need_lc_FC=yes
13111
13112 if test "$enable_shared" = yes && test "$GCC" = yes; then
13113 case $archive_cmds_FC in
13114 *'~'*)
13115 # FIXME: we may have to deal with multi-command sequences.
13116 ;;
13117 '$CC '*)
13118 # Test whether the compiler implicitly links with -lc since on some
13119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13120 # to ld, don't add -lc before -lgcc.
13121 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13122echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
13123if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13125else
13126 $RM conftest*
13127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 13128
baafc534 13129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1cf3d07d 13130 (eval $ac_compile) 2>&5
953ff289
DN
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 13133 (exit $ac_status); } 2>conftest.err; then
baafc534
RW
13134 soname=conftest
13135 lib=conftest
13136 libobjs=conftest.$ac_objext
13137 deplibs=
13138 wl=$lt_prog_compiler_wl_FC
13139 pic_flag=$lt_prog_compiler_pic_FC
13140 compiler_flags=-v
13141 linker_flags=-v
13142 verstring=
13143 output_objdir=.
13144 libname=conftest
13145 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13146 allow_undefined_flag_FC=
13147 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1cf3d07d 13148 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
953ff289
DN
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 13151 (exit $ac_status); }
baafc534
RW
13152 then
13153 lt_cv_archive_cmds_need_lc_FC=no
13154 else
13155 lt_cv_archive_cmds_need_lc_FC=yes
13156 fi
13157 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13158 else
13159 cat conftest.err 1>&5
13160 fi
13161 $RM conftest*
13162
13163fi
13164echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13165echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_FC" >&6
13166 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
13167 ;;
13168 esac
953ff289
DN
13169 fi
13170 ;;
1cf3d07d
SE
13171esac
13172
953ff289
DN
13173
13174
953ff289
DN
13175
13176
953ff289 13177
953ff289 13178
953ff289 13179
953ff289 13180
953ff289
DN
13181
13182
953ff289 13183
953ff289 13184
953ff289
DN
13185
13186
13187
13188
13189
13190
13191
13192
13193
c41303c6
RH
13194
13195
c41303c6 13196
c41303c6
RH
13197
13198
13199
953ff289 13200
953ff289 13201
953ff289 13202
953ff289 13203
953ff289 13204
953ff289
DN
13205
13206
953ff289 13207
953ff289 13208
953ff289 13209
953ff289 13210
953ff289 13211
953ff289 13212
953ff289 13213
1cf3d07d
SE
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13237echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6b4a97ed 13238
1cf3d07d
SE
13239library_names_spec=
13240libname_spec='lib$name'
13241soname_spec=
13242shrext_cmds=".so"
13243postinstall_cmds=
13244postuninstall_cmds=
13245finish_cmds=
13246finish_eval=
13247shlibpath_var=
13248shlibpath_overrides_runpath=unknown
13249version_type=none
13250dynamic_linker="$host_os ld.so"
13251sys_lib_dlsearch_path_spec="/lib /usr/lib"
13252need_lib_prefix=unknown
13253hardcode_into_libs=no
13254
13255# when you set need_version to no, make sure it does not cause -set_version
13256# flags to be left without arguments
13257need_version=unknown
13258
13259case $host_os in
13260aix3*)
13261 version_type=linux
13262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13263 shlibpath_var=LIBPATH
13264
13265 # AIX 3 has no versioning support, so we append a major version to the name.
13266 soname_spec='${libname}${release}${shared_ext}$major'
13267 ;;
13268
d653fdfb 13269aix[4-9]*)
1cf3d07d
SE
13270 version_type=linux
13271 need_lib_prefix=no
13272 need_version=no
13273 hardcode_into_libs=yes
13274 if test "$host_cpu" = ia64; then
13275 # AIX 5 supports IA64
13276 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13277 shlibpath_var=LD_LIBRARY_PATH
953ff289 13278 else
1cf3d07d
SE
13279 # With GCC up to 2.95.x, collect2 would create an import file
13280 # for dependence libraries. The import file would start with
13281 # the line `#! .'. This would cause the generated library to
13282 # depend on `.', always an invalid library. This was fixed in
13283 # development snapshots of GCC prior to 3.0.
13284 case $host_os in
13285 aix4 | aix4.[01] | aix4.[01].*)
13286 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13287 echo ' yes '
13288 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13289 :
13290 else
13291 can_build_shared=no
13292 fi
13293 ;;
13294 esac
13295 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13296 # soname into executable. Probably we can add versioning support to
13297 # collect2, so additional links can be useful in future.
13298 if test "$aix_use_runtimelinking" = yes; then
13299 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13300 # instead of lib<name>.a to let people know that these are not
13301 # typical AIX shared libraries.
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303 else
13304 # We preserve .a as extension for shared libraries through AIX4.2
13305 # and later when we are not doing run time linking.
13306 library_names_spec='${libname}${release}.a $libname.a'
13307 soname_spec='${libname}${release}${shared_ext}$major'
13308 fi
13309 shlibpath_var=LIBPATH
953ff289 13310 fi
1cf3d07d
SE
13311 ;;
13312
13313amigaos*)
6b4a97ed
PG
13314 case $host_cpu in
13315 powerpc)
13316 # Since July 2007 AmigaOS4 officially supports .so libraries.
13317 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13319 ;;
13320 m68k)
1cf3d07d
SE
13321 library_names_spec='$libname.ixlibrary $libname.a'
13322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13323 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'
6b4a97ed
PG
13324 ;;
13325 esac
1cf3d07d 13326 ;;
953ff289 13327
1cf3d07d
SE
13328beos*)
13329 library_names_spec='${libname}${shared_ext}'
13330 dynamic_linker="$host_os ld.so"
13331 shlibpath_var=LIBRARY_PATH
13332 ;;
953ff289 13333
1cf3d07d
SE
13334bsdi[45]*)
13335 version_type=linux
13336 need_version=no
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13343 # the default ld.so.conf also contains /usr/contrib/lib and
13344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13345 # libtool to hard-code these into programs
13346 ;;
953ff289 13347
6b4a97ed 13348cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13349 version_type=windows
13350 shrext_cmds=".dll"
13351 need_version=no
13352 need_lib_prefix=no
13353
6b4a97ed
PG
13354 case $GCC,$host_os in
13355 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
13356 library_names_spec='$libname.dll.a'
13357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13358 postinstall_cmds='base_file=`basename \${file}`~
13359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13360 dldir=$destdir/`dirname \$dlpath`~
13361 test -d \$dldir || mkdir -p \$dldir~
13362 $install_prog $dir/$dlname \$dldir/$dlname~
13363 chmod a+x \$dldir/$dlname~
13364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13366 fi'
13367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13368 dlpath=$dir/\$dldll~
13369 $RM \$dlpath'
13370 shlibpath_overrides_runpath=yes
13371
13372 case $host_os in
13373 cygwin*)
13374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13375 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13376 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13377 ;;
6b4a97ed 13378 mingw* | cegcc*)
1cf3d07d
SE
13379 # MinGW DLLs use traditional 'lib' prefix
13380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13381 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13382 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13383 # It is most probably a Windows format PATH printed by
13384 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13385 # path with ; separators, and with drive letters. We can handle the
13386 # drive letters (cygwin fileutils understands them), so leave them,
13387 # especially as we might pass files found there to a mingw objdump,
13388 # which wouldn't understand a cygwinified path. Ahh.
13389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13390 else
13391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13392 fi
13393 ;;
13394 pw32*)
13395 # pw32 DLLs use 'pw' prefix rather than 'lib'
13396 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13397 ;;
13398 esac
13399 ;;
953ff289 13400
1cf3d07d
SE
13401 *)
13402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13403 ;;
13404 esac
13405 dynamic_linker='Win32 ld.exe'
13406 # FIXME: first we should search . and the directory the executable is in
13407 shlibpath_var=PATH
13408 ;;
953ff289 13409
1cf3d07d
SE
13410darwin* | rhapsody*)
13411 dynamic_linker="$host_os dyld"
13412 version_type=darwin
13413 need_lib_prefix=no
13414 need_version=no
13415 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13416 soname_spec='${libname}${release}${major}$shared_ext'
13417 shlibpath_overrides_runpath=yes
13418 shlibpath_var=DYLD_LIBRARY_PATH
13419 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13420
13421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13422 ;;
13423
13424dgux*)
13425 version_type=linux
13426 need_lib_prefix=no
13427 need_version=no
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13429 soname_spec='${libname}${release}${shared_ext}$major'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 ;;
13432
13433freebsd1*)
13434 dynamic_linker=no
13435 ;;
13436
13437freebsd* | dragonfly*)
13438 # DragonFly does not have aout. When/if they implement a new
13439 # versioning mechanism, adjust this.
13440 if test -x /usr/bin/objformat; then
13441 objformat=`/usr/bin/objformat`
953ff289 13442 else
1cf3d07d
SE
13443 case $host_os in
13444 freebsd[123]*) objformat=aout ;;
13445 *) objformat=elf ;;
13446 esac
953ff289 13447 fi
1cf3d07d
SE
13448 version_type=freebsd-$objformat
13449 case $version_type in
13450 freebsd-elf*)
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13452 need_version=no
13453 need_lib_prefix=no
13454 ;;
13455 freebsd-*)
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13457 need_version=yes
13458 ;;
13459 esac
13460 shlibpath_var=LD_LIBRARY_PATH
13461 case $host_os in
13462 freebsd2*)
13463 shlibpath_overrides_runpath=yes
13464 ;;
13465 freebsd3.[01]* | freebsdelf3.[01]*)
13466 shlibpath_overrides_runpath=yes
13467 hardcode_into_libs=yes
13468 ;;
13469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13471 shlibpath_overrides_runpath=no
13472 hardcode_into_libs=yes
13473 ;;
13474 *) # from 4.6 on, and DragonFly
13475 shlibpath_overrides_runpath=yes
13476 hardcode_into_libs=yes
13477 ;;
13478 esac
13479 ;;
953ff289 13480
1cf3d07d
SE
13481gnu*)
13482 version_type=linux
13483 need_lib_prefix=no
13484 need_version=no
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 hardcode_into_libs=yes
13489 ;;
953ff289 13490
1cf3d07d
SE
13491hpux9* | hpux10* | hpux11*)
13492 # Give a soname corresponding to the major version so that dld.sl refuses to
13493 # link against other versions.
13494 version_type=sunos
13495 need_lib_prefix=no
13496 need_version=no
13497 case $host_cpu in
13498 ia64*)
13499 shrext_cmds='.so'
13500 hardcode_into_libs=yes
13501 dynamic_linker="$host_os dld.so"
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505 soname_spec='${libname}${release}${shared_ext}$major'
13506 if test "X$HPUX_IA64_MODE" = X32; then
13507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13508 else
13509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13510 fi
13511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13512 ;;
13513 hppa*64*)
13514 shrext_cmds='.sl'
13515 hardcode_into_libs=yes
13516 dynamic_linker="$host_os dld.sl"
13517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13523 ;;
13524 *)
13525 shrext_cmds='.sl'
13526 dynamic_linker="$host_os dld.sl"
13527 shlibpath_var=SHLIB_PATH
13528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 ;;
13532 esac
13533 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13534 postinstall_cmds='chmod 555 $lib'
13535 ;;
13536
13537interix[3-9]*)
13538 version_type=linux
13539 need_lib_prefix=no
13540 need_version=no
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13542 soname_spec='${libname}${release}${shared_ext}$major'
13543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 shlibpath_overrides_runpath=no
13546 hardcode_into_libs=yes
13547 ;;
13548
13549irix5* | irix6* | nonstopux*)
13550 case $host_os in
13551 nonstopux*) version_type=nonstopux ;;
13552 *)
13553 if test "$lt_cv_prog_gnu_ld" = yes; then
13554 version_type=linux
13555 else
13556 version_type=irix
13557 fi ;;
13558 esac
13559 need_lib_prefix=no
13560 need_version=no
13561 soname_spec='${libname}${release}${shared_ext}$major'
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13563 case $host_os in
13564 irix5* | nonstopux*)
13565 libsuff= shlibsuff=
13566 ;;
13567 *)
13568 case $LD in # libtool.m4 will add one of these switches to LD
13569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13570 libsuff= shlibsuff= libmagic=32-bit;;
13571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13572 libsuff=32 shlibsuff=N32 libmagic=N32;;
13573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13574 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13575 *) libsuff= shlibsuff= libmagic=never-match;;
13576 esac
13577 ;;
13578 esac
13579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13580 shlibpath_overrides_runpath=no
13581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13583 hardcode_into_libs=yes
13584 ;;
13585
13586# No shared lib support for Linux oldld, aout, or coff.
13587linux*oldld* | linux*aout* | linux*coff*)
13588 dynamic_linker=no
13589 ;;
13590
13591# This must be Linux ELF.
13592linux* | k*bsd*-gnu)
13593 version_type=linux
13594 need_lib_prefix=no
13595 need_version=no
13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597 soname_spec='${libname}${release}${shared_ext}$major'
13598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=no
baafc534 13601
1cf3d07d 13602 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
13603 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606 lt_cv_shlibpath_overrides_runpath=no
13607 save_LDFLAGS=$LDFLAGS
13608 save_libdir=$libdir
13609 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
13610 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
13611 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13612 program main
13613
13614 end
953ff289 13615_ACEOF
1cf3d07d
SE
13616rm -f conftest.$ac_objext conftest$ac_exeext
13617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>conftest.er1
953ff289
DN
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_fc_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
6b4a97ed 13638 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 13639 lt_cv_shlibpath_overrides_runpath=yes
953ff289 13640fi
1cf3d07d 13641
953ff289
DN
13642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
953ff289 13646fi
1cf3d07d
SE
13647rm -f conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
13649 LDFLAGS=$save_LDFLAGS
13650 libdir=$save_libdir
13651
13652fi
13653
13654 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
13655
13656 # This implies no fast_install, which is unacceptable.
13657 # Some rework will be needed to allow for fast_install
13658 # before this can be enabled.
13659 hardcode_into_libs=yes
13660
13661 # Append ld.so.conf contents to the search path
13662 if test -f /etc/ld.so.conf; then
6b4a97ed 13663 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
13664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13665 fi
953ff289 13666
1cf3d07d
SE
13667 # We used to test for /lib/ld.so.1 and disable shared libraries on
13668 # powerpc, because MkLinux only supported shared libraries with the
13669 # GNU dynamic linker. Since this was broken with cross compilers,
13670 # most powerpc-linux boxes support dynamic linking these days and
13671 # people can always --disable-shared, the test was removed, and we
13672 # assume the GNU/Linux dynamic linker is in use.
13673 dynamic_linker='GNU/Linux ld.so'
13674 ;;
953ff289 13675
1cf3d07d
SE
13676netbsd*)
13677 version_type=sunos
13678 need_lib_prefix=no
13679 need_version=no
13680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13683 dynamic_linker='NetBSD (a.out) ld.so'
13684 else
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13686 soname_spec='${libname}${release}${shared_ext}$major'
13687 dynamic_linker='NetBSD ld.elf_so'
13688 fi
13689 shlibpath_var=LD_LIBRARY_PATH
13690 shlibpath_overrides_runpath=yes
13691 hardcode_into_libs=yes
13692 ;;
953ff289 13693
1cf3d07d
SE
13694newsos6)
13695 version_type=linux
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697 shlibpath_var=LD_LIBRARY_PATH
13698 shlibpath_overrides_runpath=yes
13699 ;;
13700
13701*nto* | *qnx*)
13702 version_type=qnx
13703 need_lib_prefix=no
13704 need_version=no
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706 soname_spec='${libname}${release}${shared_ext}$major'
13707 shlibpath_var=LD_LIBRARY_PATH
13708 shlibpath_overrides_runpath=no
13709 hardcode_into_libs=yes
13710 dynamic_linker='ldqnx.so'
13711 ;;
13712
13713openbsd*)
13714 version_type=sunos
13715 sys_lib_dlsearch_path_spec="/usr/lib"
13716 need_lib_prefix=no
13717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13718 case $host_os in
13719 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13720 *) need_version=no ;;
13721 esac
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13726 case $host_os in
13727 openbsd2.[89] | openbsd2.[89].*)
13728 shlibpath_overrides_runpath=no
13729 ;;
13730 *)
13731 shlibpath_overrides_runpath=yes
13732 ;;
13733 esac
953ff289 13734 else
1cf3d07d 13735 shlibpath_overrides_runpath=yes
953ff289 13736 fi
1cf3d07d 13737 ;;
953ff289 13738
1cf3d07d
SE
13739os2*)
13740 libname_spec='$name'
13741 shrext_cmds=".dll"
13742 need_lib_prefix=no
13743 library_names_spec='$libname${shared_ext} $libname.a'
13744 dynamic_linker='OS/2 ld.exe'
13745 shlibpath_var=LIBPATH
13746 ;;
13747
13748osf3* | osf4* | osf5*)
13749 version_type=osf
13750 need_lib_prefix=no
13751 need_version=no
13752 soname_spec='${libname}${release}${shared_ext}$major'
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13757 ;;
13758
13759rdos*)
13760 dynamic_linker=no
13761 ;;
13762
13763solaris*)
13764 version_type=linux
13765 need_lib_prefix=no
13766 need_version=no
13767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768 soname_spec='${libname}${release}${shared_ext}$major'
13769 shlibpath_var=LD_LIBRARY_PATH
13770 shlibpath_overrides_runpath=yes
13771 hardcode_into_libs=yes
13772 # ldd complains unless libraries are executable
13773 postinstall_cmds='chmod +x $lib'
13774 ;;
13775
13776sunos4*)
13777 version_type=sunos
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13780 shlibpath_var=LD_LIBRARY_PATH
13781 shlibpath_overrides_runpath=yes
13782 if test "$with_gnu_ld" = yes; then
13783 need_lib_prefix=no
13784 fi
13785 need_version=yes
13786 ;;
13787
13788sysv4 | sysv4.3*)
13789 version_type=linux
13790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13791 soname_spec='${libname}${release}${shared_ext}$major'
13792 shlibpath_var=LD_LIBRARY_PATH
13793 case $host_vendor in
13794 sni)
13795 shlibpath_overrides_runpath=no
13796 need_lib_prefix=no
13797 runpath_var=LD_RUN_PATH
13798 ;;
13799 siemens)
13800 need_lib_prefix=no
13801 ;;
13802 motorola)
13803 need_lib_prefix=no
13804 need_version=no
13805 shlibpath_overrides_runpath=no
13806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13807 ;;
13808 esac
13809 ;;
13810
13811sysv4*MP*)
13812 if test -d /usr/nec ;then
13813 version_type=linux
13814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13815 soname_spec='$libname${shared_ext}.$major'
13816 shlibpath_var=LD_LIBRARY_PATH
13817 fi
13818 ;;
13819
13820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13821 version_type=freebsd-elf
13822 need_lib_prefix=no
13823 need_version=no
13824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13825 soname_spec='${libname}${release}${shared_ext}$major'
13826 shlibpath_var=LD_LIBRARY_PATH
13827 shlibpath_overrides_runpath=yes
13828 hardcode_into_libs=yes
13829 if test "$with_gnu_ld" = yes; then
13830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13831 else
13832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13833 case $host_os in
13834 sco3.2v5*)
13835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13836 ;;
13837 esac
13838 fi
13839 sys_lib_dlsearch_path_spec='/usr/lib'
13840 ;;
13841
13842tpf*)
13843 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13844 version_type=linux
13845 need_lib_prefix=no
13846 need_version=no
6b4a97ed 13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=no
13850 hardcode_into_libs=yes
13851 ;;
13852
13853uts4*)
13854 version_type=linux
13855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13856 soname_spec='${libname}${release}${shared_ext}$major'
13857 shlibpath_var=LD_LIBRARY_PATH
13858 ;;
13859
13860*)
13861 dynamic_linker=no
13862 ;;
13863esac
13864echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13865echo "${ECHO_T}$dynamic_linker" >&6
13866test "$dynamic_linker" = no && can_build_shared=no
13867
13868variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13869if test "$GCC" = yes; then
13870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
953ff289 13871fi
953ff289 13872
6b4a97ed
PG
13873if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13874 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13875fi
13876if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13877 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13878fi
13879
1cf3d07d
SE
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13917hardcode_action_FC=
13918if test -n "$hardcode_libdir_flag_spec_FC" ||
13919 test -n "$runpath_var_FC" ||
13920 test "X$hardcode_automatic_FC" = "Xyes" ; then
13921
13922 # We can hardcode non-existent directories.
13923 if test "$hardcode_direct_FC" != no &&
13924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13925 # have to relink, otherwise we might link with an installed library
13926 # when we should be linking with a yet-to-be-installed one
13927 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13928 test "$hardcode_minus_L_FC" != no; then
13929 # Linking always hardcodes the temporary library directory.
13930 hardcode_action_FC=relink
953ff289 13931 else
1cf3d07d
SE
13932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13933 hardcode_action_FC=immediate
953ff289
DN
13934 fi
13935else
1cf3d07d
SE
13936 # We cannot hardcode anything, or else we can only hardcode existing
13937 # directories.
13938 hardcode_action_FC=unsupported
953ff289 13939fi
1cf3d07d
SE
13940echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13941echo "${ECHO_T}$hardcode_action_FC" >&6
953ff289 13942
1cf3d07d
SE
13943if test "$hardcode_action_FC" = relink ||
13944 test "$inherit_rpath_FC" = yes; then
13945 # Fast installation is not supported
13946 enable_fast_install=no
13947elif test "$shlibpath_overrides_runpath" = yes ||
13948 test "$enable_shared" = no; then
13949 # Fast installation is not necessary
13950 enable_fast_install=needless
953ff289 13951fi
953ff289 13952
1cf3d07d
SE
13953
13954
13955
13956
13957
13958
13959 fi # test -n "$compiler"
13960
6b4a97ed 13961 GCC=$lt_save_GCC
1cf3d07d
SE
13962 CC="$lt_save_CC"
13963fi # test "$_lt_disable_FC" != yes
953ff289
DN
13964
13965ac_ext=c
13966ac_cpp='$CPP $CPPFLAGS'
13967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971
1cf3d07d 13972FCFLAGS="$FCFLAGS -Wall"
953ff289 13973
1cf3d07d
SE
13974# For libtool versioning info, format is CURRENT:REVISION:AGE
13975libtool_VERSION=1:0:0
953ff289 13976
1cf3d07d
SE
13977
13978# Check header files.
953ff289
DN
13979echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13980echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13981if test "${ac_cv_header_stdc+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983else
13984 cat >conftest.$ac_ext <<_ACEOF
13985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h. */
13990#include <stdlib.h>
13991#include <stdarg.h>
13992#include <string.h>
13993#include <float.h>
13994
13995int
13996main ()
13997{
13998
13999 ;
14000 return 0;
14001}
14002_ACEOF
14003rm -f conftest.$ac_objext
14004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005 (eval $ac_compile) 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
d349482e
AT
14012 { ac_try='test -z "$ac_c_werror_flag"
14013 || test ! -s conftest.err'
953ff289
DN
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_header_stdc=yes
14026else
14027 echo "$as_me: failed program was:" >&5
14028sed 's/^/| /' conftest.$ac_ext >&5
14029
14030ac_cv_header_stdc=no
14031fi
14032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14033
14034if test $ac_cv_header_stdc = yes; then
14035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14036 cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
14042#include <string.h>
14043
14044_ACEOF
14045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14046 $EGREP "memchr" >/dev/null 2>&1; then
14047 :
14048else
14049 ac_cv_header_stdc=no
14050fi
14051rm -f conftest*
14052
14053fi
14054
14055if test $ac_cv_header_stdc = yes; then
14056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14057 cat >conftest.$ac_ext <<_ACEOF
14058/* confdefs.h. */
14059_ACEOF
14060cat confdefs.h >>conftest.$ac_ext
14061cat >>conftest.$ac_ext <<_ACEOF
14062/* end confdefs.h. */
14063#include <stdlib.h>
14064
14065_ACEOF
14066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14067 $EGREP "free" >/dev/null 2>&1; then
14068 :
14069else
14070 ac_cv_header_stdc=no
14071fi
14072rm -f conftest*
14073
14074fi
14075
14076if test $ac_cv_header_stdc = yes; then
14077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14078 if test "$cross_compiling" = yes; then
14079 :
14080else
14081 cat >conftest.$ac_ext <<_ACEOF
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
14086/* end confdefs.h. */
14087#include <ctype.h>
14088#if ((' ' & 0x0FF) == 0x020)
14089# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14090# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14091#else
14092# define ISLOWER(c) \
14093 (('a' <= (c) && (c) <= 'i') \
14094 || ('j' <= (c) && (c) <= 'r') \
14095 || ('s' <= (c) && (c) <= 'z'))
14096# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14097#endif
14098
14099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14100int
14101main ()
14102{
14103 int i;
14104 for (i = 0; i < 256; i++)
14105 if (XOR (islower (i), ISLOWER (i))
14106 || toupper (i) != TOUPPER (i))
14107 exit(2);
14108 exit (0);
14109}
14110_ACEOF
14111rm -f conftest$ac_exeext
14112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 :
14123else
14124 echo "$as_me: program exited with status $ac_status" >&5
14125echo "$as_me: failed program was:" >&5
14126sed 's/^/| /' conftest.$ac_ext >&5
14127
14128( exit $ac_status )
14129ac_cv_header_stdc=no
14130fi
14131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14132fi
14133fi
14134fi
14135echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14136echo "${ECHO_T}$ac_cv_header_stdc" >&6
14137if test $ac_cv_header_stdc = yes; then
14138
14139cat >>confdefs.h <<\_ACEOF
14140#define STDC_HEADERS 1
14141_ACEOF
14142
14143fi
14144
14145echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14146echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14147if test "${ac_cv_header_time+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156#include <sys/types.h>
14157#include <sys/time.h>
14158#include <time.h>
14159
14160int
14161main ()
14162{
14163if ((struct tm *) 0)
14164return 0;
14165 ;
14166 return 0;
14167}
14168_ACEOF
14169rm -f conftest.$ac_objext
14170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
d349482e
AT
14178 { ac_try='test -z "$ac_c_werror_flag"
14179 || test ! -s conftest.err'
953ff289
DN
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 ac_cv_header_time=yes
14192else
14193 echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
14196ac_cv_header_time=no
14197fi
14198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199fi
14200echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14201echo "${ECHO_T}$ac_cv_header_time" >&6
14202if test $ac_cv_header_time = yes; then
14203
14204cat >>confdefs.h <<\_ACEOF
14205#define TIME_WITH_SYS_TIME 1
14206_ACEOF
14207
14208fi
14209
a1b25e49
PG
14210echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
14211echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
14212if test "${gcc_cv_header_string+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214else
14215 cat >conftest.$ac_ext <<_ACEOF
14216/* confdefs.h. */
14217_ACEOF
14218cat confdefs.h >>conftest.$ac_ext
14219cat >>conftest.$ac_ext <<_ACEOF
14220/* end confdefs.h. */
14221#include <string.h>
14222#include <strings.h>
14223int
14224main ()
14225{
14226
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231rm -f conftest.$ac_objext
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 gcc_cv_header_string=yes
14254else
14255 echo "$as_me: failed program was:" >&5
14256sed 's/^/| /' conftest.$ac_ext >&5
14257
14258gcc_cv_header_string=no
14259fi
14260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14261fi
14262echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
14263echo "${ECHO_T}$gcc_cv_header_string" >&6
14264if test $gcc_cv_header_string = yes; then
14265
14266cat >>confdefs.h <<\_ACEOF
14267#define STRING_WITH_STRINGS 1
14268_ACEOF
14269
14270fi
14271
953ff289
DN
14272
14273
14274
192a50ad 14275
e2b34106
JJ
14276
14277for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
953ff289
DN
14278do
14279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14280if eval "test \"\${$as_ac_Header+set}\" = set"; then
14281 echo "$as_me:$LINENO: checking for $ac_header" >&5
14282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14283if eval "test \"\${$as_ac_Header+set}\" = set"; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285fi
14286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14288else
14289 # Is the header compilable?
14290echo "$as_me:$LINENO: checking $ac_header usability" >&5
14291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14292cat >conftest.$ac_ext <<_ACEOF
14293/* confdefs.h. */
14294_ACEOF
14295cat confdefs.h >>conftest.$ac_ext
14296cat >>conftest.$ac_ext <<_ACEOF
14297/* end confdefs.h. */
14298$ac_includes_default
14299#include <$ac_header>
14300_ACEOF
14301rm -f conftest.$ac_objext
14302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
d349482e
AT
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
953ff289
DN
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_header_compiler=yes
14324else
14325 echo "$as_me: failed program was:" >&5
14326sed 's/^/| /' conftest.$ac_ext >&5
14327
14328ac_header_compiler=no
14329fi
14330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14332echo "${ECHO_T}$ac_header_compiler" >&6
14333
14334# Is the header present?
14335echo "$as_me:$LINENO: checking $ac_header presence" >&5
14336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14337cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
14343#include <$ac_header>
14344_ACEOF
14345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } >/dev/null; then
14353 if test -s conftest.err; then
14354 ac_cpp_err=$ac_c_preproc_warn_flag
14355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14356 else
14357 ac_cpp_err=
14358 fi
14359else
14360 ac_cpp_err=yes
14361fi
14362if test -z "$ac_cpp_err"; then
14363 ac_header_preproc=yes
14364else
14365 echo "$as_me: failed program was:" >&5
14366sed 's/^/| /' conftest.$ac_ext >&5
14367
14368 ac_header_preproc=no
14369fi
14370rm -f conftest.err conftest.$ac_ext
14371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14372echo "${ECHO_T}$ac_header_preproc" >&6
14373
14374# So? What about this header?
14375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14376 yes:no: )
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14381 ac_header_preproc=yes
14382 ;;
14383 no:yes:* )
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14396 (
14397 cat <<\_ASBOX
14398## ----------------------------------------------------- ##
14399## Report this to the GNU OpenMP Runtime Library lists. ##
14400## ----------------------------------------------------- ##
14401_ASBOX
14402 ) |
14403 sed "s/^/$as_me: WARNING: /" >&2
14404 ;;
14405esac
14406echo "$as_me:$LINENO: checking for $ac_header" >&5
14407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14408if eval "test \"\${$as_ac_Header+set}\" = set"; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14410else
14411 eval "$as_ac_Header=\$ac_header_preproc"
14412fi
14413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14415
14416fi
14417if test `eval echo '${'$as_ac_Header'}'` = yes; then
14418 cat >>confdefs.h <<_ACEOF
14419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14420_ACEOF
14421
14422fi
14423
14424done
14425
953ff289 14426
18cbfd85
PB
14427
14428
14429inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14430
14431acx_cv_header_stdint=stddef.h
14432acx_cv_header_stdint_kind="(already complete)"
14433for i in stdint.h $inttype_headers; do
14434 unset ac_cv_type_uintptr_t
14435 unset ac_cv_type_uintmax_t
14436 unset ac_cv_type_int_least32_t
14437 unset ac_cv_type_int_fast32_t
14438 unset ac_cv_type_uint64_t
14439 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14440 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14441echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14442if test "${ac_cv_type_uintmax_t+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444else
14445 cat >conftest.$ac_ext <<_ACEOF
14446/* confdefs.h. */
14447_ACEOF
14448cat confdefs.h >>conftest.$ac_ext
14449cat >>conftest.$ac_ext <<_ACEOF
14450/* end confdefs.h. */
14451#include <sys/types.h>
14452#include <$i>
14453
14454int
14455main ()
14456{
14457if ((uintmax_t *) 0)
14458 return 0;
14459if (sizeof (uintmax_t))
14460 return 0;
14461 ;
14462 return 0;
14463}
14464_ACEOF
14465rm -f conftest.$ac_objext
14466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>conftest.er1
14468 ac_status=$?
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
d349482e
AT
14474 { ac_try='test -z "$ac_c_werror_flag"
14475 || test ! -s conftest.err'
18cbfd85
PB
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_cv_type_uintmax_t=yes
14488else
14489 echo "$as_me: failed program was:" >&5
14490sed 's/^/| /' conftest.$ac_ext >&5
14491
14492ac_cv_type_uintmax_t=no
14493fi
14494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495fi
14496echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14497echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14498if test $ac_cv_type_uintmax_t = yes; then
14499 acx_cv_header_stdint=$i
14500else
14501 continue
14502fi
14503
14504 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14505echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14506if test "${ac_cv_type_uintptr_t+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509 cat >conftest.$ac_ext <<_ACEOF
14510/* confdefs.h. */
14511_ACEOF
14512cat confdefs.h >>conftest.$ac_ext
14513cat >>conftest.$ac_ext <<_ACEOF
14514/* end confdefs.h. */
14515#include <sys/types.h>
14516#include <$i>
14517
14518int
14519main ()
14520{
14521if ((uintptr_t *) 0)
14522 return 0;
14523if (sizeof (uintptr_t))
14524 return 0;
14525 ;
14526 return 0;
14527}
14528_ACEOF
14529rm -f conftest.$ac_objext
14530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14531 (eval $ac_compile) 2>conftest.er1
14532 ac_status=$?
14533 grep -v '^ *+' conftest.er1 >conftest.err
14534 rm -f conftest.er1
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
d349482e
AT
14538 { ac_try='test -z "$ac_c_werror_flag"
14539 || test ! -s conftest.err'
18cbfd85
PB
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; } &&
14545 { ac_try='test -s conftest.$ac_objext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_cv_type_uintptr_t=yes
14552else
14553 echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556ac_cv_type_uintptr_t=no
14557fi
14558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14559fi
14560echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14561echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14562if test $ac_cv_type_uintptr_t = yes; then
14563 :
14564else
14565 acx_cv_header_stdint_kind="(mostly complete)"
14566fi
14567
14568 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14569echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14570if test "${ac_cv_type_int_least32_t+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572else
14573 cat >conftest.$ac_ext <<_ACEOF
14574/* confdefs.h. */
14575_ACEOF
14576cat confdefs.h >>conftest.$ac_ext
14577cat >>conftest.$ac_ext <<_ACEOF
14578/* end confdefs.h. */
14579#include <sys/types.h>
14580#include <$i>
14581
14582int
14583main ()
14584{
14585if ((int_least32_t *) 0)
14586 return 0;
14587if (sizeof (int_least32_t))
14588 return 0;
14589 ;
14590 return 0;
14591}
14592_ACEOF
14593rm -f conftest.$ac_objext
14594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14595 (eval $ac_compile) 2>conftest.er1
14596 ac_status=$?
14597 grep -v '^ *+' conftest.er1 >conftest.err
14598 rm -f conftest.er1
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } &&
d349482e
AT
14602 { ac_try='test -z "$ac_c_werror_flag"
14603 || test ! -s conftest.err'
18cbfd85
PB
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_type_int_least32_t=yes
14616else
14617 echo "$as_me: failed program was:" >&5
14618sed 's/^/| /' conftest.$ac_ext >&5
14619
14620ac_cv_type_int_least32_t=no
14621fi
14622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14623fi
14624echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14625echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14626if test $ac_cv_type_int_least32_t = yes; then
14627 :
14628else
14629 acx_cv_header_stdint_kind="(mostly complete)"
14630fi
14631
14632 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14633echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14634if test "${ac_cv_type_int_fast32_t+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636else
14637 cat >conftest.$ac_ext <<_ACEOF
14638/* confdefs.h. */
14639_ACEOF
14640cat confdefs.h >>conftest.$ac_ext
14641cat >>conftest.$ac_ext <<_ACEOF
14642/* end confdefs.h. */
14643#include <sys/types.h>
14644#include <$i>
14645
14646int
14647main ()
14648{
14649if ((int_fast32_t *) 0)
14650 return 0;
14651if (sizeof (int_fast32_t))
14652 return 0;
14653 ;
14654 return 0;
14655}
14656_ACEOF
14657rm -f conftest.$ac_objext
14658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659 (eval $ac_compile) 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
d349482e
AT
14666 { ac_try='test -z "$ac_c_werror_flag"
14667 || test ! -s conftest.err'
18cbfd85
PB
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest.$ac_objext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_cv_type_int_fast32_t=yes
14680else
14681 echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684ac_cv_type_int_fast32_t=no
14685fi
14686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14687fi
14688echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14689echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14690if test $ac_cv_type_int_fast32_t = yes; then
14691 :
14692else
14693 acx_cv_header_stdint_kind="(mostly complete)"
14694fi
14695
14696 echo "$as_me:$LINENO: checking for uint64_t" >&5
14697echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14698if test "${ac_cv_type_uint64_t+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700else
14701 cat >conftest.$ac_ext <<_ACEOF
14702/* confdefs.h. */
14703_ACEOF
14704cat confdefs.h >>conftest.$ac_ext
14705cat >>conftest.$ac_ext <<_ACEOF
14706/* end confdefs.h. */
14707#include <sys/types.h>
14708#include <$i>
14709
14710int
14711main ()
14712{
14713if ((uint64_t *) 0)
14714 return 0;
14715if (sizeof (uint64_t))
14716 return 0;
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
d349482e
AT
14730 { ac_try='test -z "$ac_c_werror_flag"
14731 || test ! -s conftest.err'
18cbfd85
PB
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_cv_type_uint64_t=yes
14744else
14745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748ac_cv_type_uint64_t=no
14749fi
14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751fi
14752echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14753echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14754if test $ac_cv_type_uint64_t = yes; then
14755 :
14756else
14757 acx_cv_header_stdint_kind="(lacks uint64_t)"
14758fi
14759
14760 break
14761done
14762if test "$acx_cv_header_stdint" = stddef.h; then
c663e301 14763 acx_cv_header_stdint_kind="(lacks uintmax_t)"
18cbfd85 14764 for i in stdint.h $inttype_headers; do
c663e301 14765 unset ac_cv_type_uintptr_t
18cbfd85
PB
14766 unset ac_cv_type_uint32_t
14767 unset ac_cv_type_uint64_t
14768 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14769 echo "$as_me:$LINENO: checking for uint32_t" >&5
14770echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14771if test "${ac_cv_type_uint32_t+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773else
14774 cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780#include <sys/types.h>
14781#include <$i>
14782
14783int
14784main ()
14785{
14786if ((uint32_t *) 0)
14787 return 0;
14788if (sizeof (uint32_t))
14789 return 0;
14790 ;
14791 return 0;
14792}
14793_ACEOF
14794rm -f conftest.$ac_objext
14795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796 (eval $ac_compile) 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
d349482e
AT
14803 { ac_try='test -z "$ac_c_werror_flag"
14804 || test ! -s conftest.err'
18cbfd85
PB
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; } &&
14810 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14816 ac_cv_type_uint32_t=yes
14817else
14818 echo "$as_me: failed program was:" >&5
14819sed 's/^/| /' conftest.$ac_ext >&5
14820
14821ac_cv_type_uint32_t=no
14822fi
14823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14824fi
14825echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14826echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14827if test $ac_cv_type_uint32_t = yes; then
14828 acx_cv_header_stdint=$i
14829else
14830 continue
14831fi
14832
14833 echo "$as_me:$LINENO: checking for uint64_t" >&5
14834echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14835if test "${ac_cv_type_uint64_t+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837else
14838 cat >conftest.$ac_ext <<_ACEOF
14839/* confdefs.h. */
14840_ACEOF
14841cat confdefs.h >>conftest.$ac_ext
14842cat >>conftest.$ac_ext <<_ACEOF
14843/* end confdefs.h. */
14844#include <sys/types.h>
14845#include <$i>
14846
14847int
14848main ()
14849{
14850if ((uint64_t *) 0)
14851 return 0;
14852if (sizeof (uint64_t))
14853 return 0;
14854 ;
14855 return 0;
14856}
14857_ACEOF
14858rm -f conftest.$ac_objext
14859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860 (eval $ac_compile) 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
d349482e
AT
14867 { ac_try='test -z "$ac_c_werror_flag"
14868 || test ! -s conftest.err'
18cbfd85
PB
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest.$ac_objext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_cv_type_uint64_t=yes
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885ac_cv_type_uint64_t=no
14886fi
14887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14888fi
14889echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14890echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
c663e301
JM
14891
14892 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14893echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14894if test "${ac_cv_type_uintptr_t+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
18cbfd85 14896else
c663e301
JM
14897 cat >conftest.$ac_ext <<_ACEOF
14898/* confdefs.h. */
14899_ACEOF
14900cat confdefs.h >>conftest.$ac_ext
14901cat >>conftest.$ac_ext <<_ACEOF
14902/* end confdefs.h. */
14903#include <sys/types.h>
14904#include <$i>
14905
14906int
14907main ()
14908{
14909if ((uintptr_t *) 0)
14910 return 0;
14911if (sizeof (uintptr_t))
14912 return 0;
14913 ;
14914 return 0;
14915}
14916_ACEOF
14917rm -f conftest.$ac_objext
14918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919 (eval $ac_compile) 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -z "$ac_c_werror_flag"
14927 || test ! -s conftest.err'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest.$ac_objext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_type_uintptr_t=yes
14940else
14941 echo "$as_me: failed program was:" >&5
14942sed 's/^/| /' conftest.$ac_ext >&5
14943
14944ac_cv_type_uintptr_t=no
14945fi
14946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18cbfd85 14947fi
c663e301
JM
14948echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14949echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
18cbfd85
PB
14950
14951 break
14952 done
14953fi
14954if test "$acx_cv_header_stdint" = stddef.h; then
14955 acx_cv_header_stdint_kind="(u_intXX_t style)"
14956 for i in sys/types.h $inttype_headers; do
14957 unset ac_cv_type_u_int32_t
14958 unset ac_cv_type_u_int64_t
14959 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14960 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14961echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14962if test "${ac_cv_type_u_int32_t+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964else
14965 cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971#include <sys/types.h>
14972#include <$i>
14973
14974int
14975main ()
14976{
14977if ((u_int32_t *) 0)
14978 return 0;
14979if (sizeof (u_int32_t))
14980 return 0;
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
d349482e
AT
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
18cbfd85
PB
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_type_u_int32_t=yes
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
15012ac_cv_type_u_int32_t=no
15013fi
15014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15015fi
15016echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
15017echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
15018if test $ac_cv_type_u_int32_t = yes; then
15019 acx_cv_header_stdint=$i
15020else
15021 continue
15022fi
15023
15024 echo "$as_me:$LINENO: checking for u_int64_t" >&5
15025echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
15026if test "${ac_cv_type_u_int64_t+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
15029 cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
15035#include <sys/types.h>
15036#include <$i>
15037
15038int
15039main ()
15040{
15041if ((u_int64_t *) 0)
15042 return 0;
15043if (sizeof (u_int64_t))
15044 return 0;
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049rm -f conftest.$ac_objext
15050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
d349482e
AT
15058 { ac_try='test -z "$ac_c_werror_flag"
15059 || test ! -s conftest.err'
18cbfd85
PB
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest.$ac_objext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_cv_type_u_int64_t=yes
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076ac_cv_type_u_int64_t=no
15077fi
15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15079fi
15080echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15081echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
18cbfd85
PB
15082
15083 break
15084 done
15085fi
15086if test "$acx_cv_header_stdint" = stddef.h; then
15087 acx_cv_header_stdint_kind="(using manual detection)"
15088fi
15089
15090test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15091test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15092test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15093test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15094test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15095
15096# ----------------- Summarize what we found so far
15097
15098echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
15099echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
15100
15101case `$as_basename gstdint.h ||
15102$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15103 Xgstdint.h : 'X\(//\)$' \| \
15104 Xgstdint.h : 'X\(/\)$' \| \
15105 . : '\(.\)' 2>/dev/null ||
15106echo X/gstdint.h |
15107 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15108 /^X\/\(\/\/\)$/{ s//\1/; q; }
15109 /^X\/\(\/\).*/{ s//\1/; q; }
15110 s/.*/./; q'` in
15111 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15112echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15113 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15114echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15115 *) ;;
15116esac
15117
15118echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15119echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
15120
15121# ----------------- done included file, check C basic types --------
15122
15123# Lacking an uintptr_t? Test size of void *
15124case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15125 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
15126echo $ECHO_N "checking for void *... $ECHO_C" >&6
15127if test "${ac_cv_type_void_p+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
15130 cat >conftest.$ac_ext <<_ACEOF
15131/* confdefs.h. */
15132_ACEOF
15133cat confdefs.h >>conftest.$ac_ext
15134cat >>conftest.$ac_ext <<_ACEOF
15135/* end confdefs.h. */
15136$ac_includes_default
15137int
15138main ()
15139{
15140if ((void * *) 0)
15141 return 0;
15142if (sizeof (void *))
15143 return 0;
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148rm -f conftest.$ac_objext
15149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15150 (eval $ac_compile) 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
d349482e
AT
15157 { ac_try='test -z "$ac_c_werror_flag"
15158 || test ! -s conftest.err'
18cbfd85
PB
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; } &&
15164 { ac_try='test -s conftest.$ac_objext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_type_void_p=yes
15171else
15172 echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175ac_cv_type_void_p=no
15176fi
15177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15178fi
15179echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15180echo "${ECHO_T}$ac_cv_type_void_p" >&6
15181
15182echo "$as_me:$LINENO: checking size of void *" >&5
15183echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15184if test "${ac_cv_sizeof_void_p+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186else
15187 if test "$ac_cv_type_void_p" = yes; then
15188 # The cast to unsigned long works around a bug in the HP C Compiler
15189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15191 # This bug is HP SR number 8606223364.
15192 if test "$cross_compiling" = yes; then
15193 # Depending upon the size, compute the lo and hi bounds.
15194cat >conftest.$ac_ext <<_ACEOF
15195/* confdefs.h. */
15196_ACEOF
15197cat confdefs.h >>conftest.$ac_ext
15198cat >>conftest.$ac_ext <<_ACEOF
15199/* end confdefs.h. */
15200$ac_includes_default
15201int
15202main ()
15203{
15204static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15205test_array [0] = 0
15206
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213 (eval $ac_compile) 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
d349482e
AT
15220 { ac_try='test -z "$ac_c_werror_flag"
15221 || test ! -s conftest.err'
18cbfd85
PB
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_lo=0 ac_mid=0
15234 while :; do
15235 cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241$ac_includes_default
15242int
15243main ()
15244{
15245static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15246test_array [0] = 0
15247
15248 ;
15249 return 0;
15250}
15251_ACEOF
15252rm -f conftest.$ac_objext
15253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15254 (eval $ac_compile) 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
d349482e
AT
15261 { ac_try='test -z "$ac_c_werror_flag"
15262 || test ! -s conftest.err'
18cbfd85
PB
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; } &&
15268 { ac_try='test -s conftest.$ac_objext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_hi=$ac_mid; break
15275else
15276 echo "$as_me: failed program was:" >&5
15277sed 's/^/| /' conftest.$ac_ext >&5
15278
15279ac_lo=`expr $ac_mid + 1`
15280 if test $ac_lo -le $ac_mid; then
15281 ac_lo= ac_hi=
15282 break
15283 fi
15284 ac_mid=`expr 2 '*' $ac_mid + 1`
15285fi
15286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 done
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292cat >conftest.$ac_ext <<_ACEOF
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
15297/* end confdefs.h. */
15298$ac_includes_default
15299int
15300main ()
15301{
15302static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15303test_array [0] = 0
15304
15305 ;
15306 return 0;
15307}
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15311 (eval $ac_compile) 2>conftest.er1
15312 ac_status=$?
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
d349482e
AT
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
18cbfd85
PB
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_hi=-1 ac_mid=-1
15332 while :; do
15333 cat >conftest.$ac_ext <<_ACEOF
15334/* confdefs.h. */
15335_ACEOF
15336cat confdefs.h >>conftest.$ac_ext
15337cat >>conftest.$ac_ext <<_ACEOF
15338/* end confdefs.h. */
15339$ac_includes_default
15340int
15341main ()
15342{
15343static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15344test_array [0] = 0
15345
15346 ;
15347 return 0;
15348}
15349_ACEOF
15350rm -f conftest.$ac_objext
15351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352 (eval $ac_compile) 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
d349482e
AT
15359 { ac_try='test -z "$ac_c_werror_flag"
15360 || test ! -s conftest.err'
18cbfd85
PB
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try='test -s conftest.$ac_objext'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_lo=$ac_mid; break
15373else
15374 echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377ac_hi=`expr '(' $ac_mid ')' - 1`
15378 if test $ac_mid -le $ac_hi; then
15379 ac_lo= ac_hi=
15380 break
15381 fi
15382 ac_mid=`expr 2 '*' $ac_mid`
15383fi
15384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15385 done
15386else
15387 echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390ac_lo= ac_hi=
15391fi
15392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15393fi
15394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395# Binary search between lo and hi bounds.
15396while test "x$ac_lo" != "x$ac_hi"; do
15397 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15398 cat >conftest.$ac_ext <<_ACEOF
15399/* confdefs.h. */
15400_ACEOF
15401cat confdefs.h >>conftest.$ac_ext
15402cat >>conftest.$ac_ext <<_ACEOF
15403/* end confdefs.h. */
15404$ac_includes_default
15405int
15406main ()
15407{
15408static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15409test_array [0] = 0
15410
15411 ;
15412 return 0;
15413}
15414_ACEOF
15415rm -f conftest.$ac_objext
15416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
d349482e
AT
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
18cbfd85
PB
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_hi=$ac_mid
15438else
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442ac_lo=`expr '(' $ac_mid ')' + 1`
15443fi
15444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445done
15446case $ac_lo in
15447?*) ac_cv_sizeof_void_p=$ac_lo;;
18c04407
RW
15448'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15449echo "$as_me: error: in \`$ac_pwd':" >&2;}
15450{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18cbfd85
PB
15451See \`config.log' for more details." >&5
15452echo "$as_me: error: cannot compute sizeof (void *), 77
15453See \`config.log' for more details." >&2;}
18c04407 15454 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
15455esac
15456else
15457 if test "$cross_compiling" = yes; then
18c04407
RW
15458 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15459echo "$as_me: error: in \`$ac_pwd':" >&2;}
15460{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
15461See \`config.log' for more details." >&5
15462echo "$as_me: error: cannot run test program while cross compiling
15463See \`config.log' for more details." >&2;}
18c04407 15464 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15465else
15466 cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
15472$ac_includes_default
15473long longval () { return (long) (sizeof (void *)); }
15474unsigned long ulongval () { return (long) (sizeof (void *)); }
15475#include <stdio.h>
15476#include <stdlib.h>
15477int
15478main ()
15479{
15480
15481 FILE *f = fopen ("conftest.val", "w");
15482 if (! f)
15483 exit (1);
15484 if (((long) (sizeof (void *))) < 0)
15485 {
15486 long i = longval ();
15487 if (i != ((long) (sizeof (void *))))
15488 exit (1);
15489 fprintf (f, "%ld\n", i);
15490 }
15491 else
15492 {
15493 unsigned long i = ulongval ();
15494 if (i != ((long) (sizeof (void *))))
15495 exit (1);
15496 fprintf (f, "%lu\n", i);
15497 }
15498 exit (ferror (f) || fclose (f) != 0);
15499
15500 ;
15501 return 0;
15502}
15503_ACEOF
15504rm -f conftest$ac_exeext
15505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_sizeof_void_p=`cat conftest.val`
15516else
15517 echo "$as_me: program exited with status $ac_status" >&5
15518echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5
15520
15521( exit $ac_status )
18c04407
RW
15522{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15523echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
15524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15525See \`config.log' for more details." >&5
15526echo "$as_me: error: cannot compute sizeof (void *), 77
15527See \`config.log' for more details." >&2;}
18c04407 15528 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15529fi
15530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15531fi
15532fi
15533rm -f conftest.val
15534else
15535 ac_cv_sizeof_void_p=0
15536fi
15537fi
15538echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15539echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15540cat >>confdefs.h <<_ACEOF
15541#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15542_ACEOF
15543
15544 ;;
15545esac
15546
15547# Lacking an uint64_t? Test size of long
15548case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15549 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15550echo $ECHO_N "checking for long... $ECHO_C" >&6
15551if test "${ac_cv_type_long+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553else
15554 cat >conftest.$ac_ext <<_ACEOF
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
15560$ac_includes_default
15561int
15562main ()
15563{
15564if ((long *) 0)
15565 return 0;
15566if (sizeof (long))
15567 return 0;
15568 ;
15569 return 0;
15570}
15571_ACEOF
15572rm -f conftest.$ac_objext
15573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574 (eval $ac_compile) 2>conftest.er1
15575 ac_status=$?
15576 grep -v '^ *+' conftest.er1 >conftest.err
15577 rm -f conftest.er1
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } &&
d349482e
AT
15581 { ac_try='test -z "$ac_c_werror_flag"
15582 || test ! -s conftest.err'
18cbfd85
PB
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } &&
15588 { ac_try='test -s conftest.$ac_objext'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_cv_type_long=yes
15595else
15596 echo "$as_me: failed program was:" >&5
15597sed 's/^/| /' conftest.$ac_ext >&5
15598
15599ac_cv_type_long=no
15600fi
15601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15602fi
15603echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15604echo "${ECHO_T}$ac_cv_type_long" >&6
15605
15606echo "$as_me:$LINENO: checking size of long" >&5
15607echo $ECHO_N "checking size of long... $ECHO_C" >&6
15608if test "${ac_cv_sizeof_long+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15610else
15611 if test "$ac_cv_type_long" = yes; then
15612 # The cast to unsigned long works around a bug in the HP C Compiler
15613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15615 # This bug is HP SR number 8606223364.
15616 if test "$cross_compiling" = yes; then
15617 # Depending upon the size, compute the lo and hi bounds.
15618cat >conftest.$ac_ext <<_ACEOF
15619/* confdefs.h. */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h. */
15624$ac_includes_default
15625int
15626main ()
15627{
15628static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15629test_array [0] = 0
15630
15631 ;
15632 return 0;
15633}
15634_ACEOF
15635rm -f conftest.$ac_objext
15636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637 (eval $ac_compile) 2>conftest.er1
15638 ac_status=$?
15639 grep -v '^ *+' conftest.er1 >conftest.err
15640 rm -f conftest.er1
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
d349482e
AT
15644 { ac_try='test -z "$ac_c_werror_flag"
15645 || test ! -s conftest.err'
18cbfd85
PB
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try='test -s conftest.$ac_objext'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_lo=0 ac_mid=0
15658 while :; do
15659 cat >conftest.$ac_ext <<_ACEOF
15660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
15665$ac_includes_default
15666int
15667main ()
15668{
15669static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15670test_array [0] = 0
15671
15672 ;
15673 return 0;
15674}
15675_ACEOF
15676rm -f conftest.$ac_objext
15677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678 (eval $ac_compile) 2>conftest.er1
15679 ac_status=$?
15680 grep -v '^ *+' conftest.er1 >conftest.err
15681 rm -f conftest.er1
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
d349482e
AT
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
18cbfd85
PB
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_hi=$ac_mid; break
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703ac_lo=`expr $ac_mid + 1`
15704 if test $ac_lo -le $ac_mid; then
15705 ac_lo= ac_hi=
15706 break
15707 fi
15708 ac_mid=`expr 2 '*' $ac_mid + 1`
15709fi
15710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15711 done
15712else
15713 echo "$as_me: failed program was:" >&5
15714sed 's/^/| /' conftest.$ac_ext >&5
15715
15716cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722$ac_includes_default
15723int
15724main ()
15725{
15726static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15727test_array [0] = 0
15728
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735 (eval $ac_compile) 2>conftest.er1
15736 ac_status=$?
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
d349482e
AT
15742 { ac_try='test -z "$ac_c_werror_flag"
15743 || test ! -s conftest.err'
18cbfd85
PB
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest.$ac_objext'
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 ac_hi=-1 ac_mid=-1
15756 while :; do
15757 cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763$ac_includes_default
15764int
15765main ()
15766{
15767static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15768test_array [0] = 0
15769
15770 ;
15771 return 0;
15772}
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776 (eval $ac_compile) 2>conftest.er1
15777 ac_status=$?
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
d349482e
AT
15783 { ac_try='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
18cbfd85
PB
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 ac_lo=$ac_mid; break
15797else
15798 echo "$as_me: failed program was:" >&5
15799sed 's/^/| /' conftest.$ac_ext >&5
15800
15801ac_hi=`expr '(' $ac_mid ')' - 1`
15802 if test $ac_mid -le $ac_hi; then
15803 ac_lo= ac_hi=
15804 break
15805 fi
15806 ac_mid=`expr 2 '*' $ac_mid`
15807fi
15808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809 done
15810else
15811 echo "$as_me: failed program was:" >&5
15812sed 's/^/| /' conftest.$ac_ext >&5
15813
15814ac_lo= ac_hi=
15815fi
15816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15817fi
15818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819# Binary search between lo and hi bounds.
15820while test "x$ac_lo" != "x$ac_hi"; do
15821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15822 cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
15828$ac_includes_default
15829int
15830main ()
15831{
15832static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15833test_array [0] = 0
15834
15835 ;
15836 return 0;
15837}
15838_ACEOF
15839rm -f conftest.$ac_objext
15840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
d349482e
AT
15848 { ac_try='test -z "$ac_c_werror_flag"
15849 || test ! -s conftest.err'
18cbfd85
PB
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_hi=$ac_mid
15862else
15863 echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866ac_lo=`expr '(' $ac_mid ')' + 1`
15867fi
15868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15869done
15870case $ac_lo in
15871?*) ac_cv_sizeof_long=$ac_lo;;
18c04407
RW
15872'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15873echo "$as_me: error: in \`$ac_pwd':" >&2;}
15874{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18cbfd85
PB
15875See \`config.log' for more details." >&5
15876echo "$as_me: error: cannot compute sizeof (long), 77
15877See \`config.log' for more details." >&2;}
18c04407 15878 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
15879esac
15880else
15881 if test "$cross_compiling" = yes; then
18c04407
RW
15882 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15883echo "$as_me: error: in \`$ac_pwd':" >&2;}
15884{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
15885See \`config.log' for more details." >&5
15886echo "$as_me: error: cannot run test program while cross compiling
15887See \`config.log' for more details." >&2;}
18c04407 15888 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15889else
15890 cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
15896$ac_includes_default
15897long longval () { return (long) (sizeof (long)); }
15898unsigned long ulongval () { return (long) (sizeof (long)); }
15899#include <stdio.h>
15900#include <stdlib.h>
15901int
15902main ()
15903{
15904
15905 FILE *f = fopen ("conftest.val", "w");
15906 if (! f)
15907 exit (1);
15908 if (((long) (sizeof (long))) < 0)
15909 {
15910 long i = longval ();
15911 if (i != ((long) (sizeof (long))))
15912 exit (1);
15913 fprintf (f, "%ld\n", i);
15914 }
15915 else
15916 {
15917 unsigned long i = ulongval ();
15918 if (i != ((long) (sizeof (long))))
15919 exit (1);
15920 fprintf (f, "%lu\n", i);
15921 }
15922 exit (ferror (f) || fclose (f) != 0);
15923
15924 ;
15925 return 0;
15926}
15927_ACEOF
15928rm -f conftest$ac_exeext
15929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_cv_sizeof_long=`cat conftest.val`
15940else
15941 echo "$as_me: program exited with status $ac_status" >&5
15942echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945( exit $ac_status )
18c04407
RW
15946{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15947echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
15948{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15949See \`config.log' for more details." >&5
15950echo "$as_me: error: cannot compute sizeof (long), 77
15951See \`config.log' for more details." >&2;}
18c04407 15952 { (exit 1); exit 1; }; }; }
18cbfd85
PB
15953fi
15954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15955fi
15956fi
15957rm -f conftest.val
15958else
15959 ac_cv_sizeof_long=0
15960fi
15961fi
15962echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15963echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15964cat >>confdefs.h <<_ACEOF
15965#define SIZEOF_LONG $ac_cv_sizeof_long
15966_ACEOF
15967
15968 ;;
15969esac
15970
15971if test $acx_cv_header_stdint = stddef.h; then
15972 # Lacking a good header? Test size of everything and deduce all types.
15973 echo "$as_me:$LINENO: checking for int" >&5
15974echo $ECHO_N "checking for int... $ECHO_C" >&6
15975if test "${ac_cv_type_int+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15977else
15978 cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984$ac_includes_default
15985int
15986main ()
15987{
15988if ((int *) 0)
15989 return 0;
15990if (sizeof (int))
15991 return 0;
15992 ;
15993 return 0;
15994}
15995_ACEOF
15996rm -f conftest.$ac_objext
15997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15998 (eval $ac_compile) 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } &&
d349482e
AT
16005 { ac_try='test -z "$ac_c_werror_flag"
16006 || test ! -s conftest.err'
18cbfd85
PB
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; } &&
16012 { ac_try='test -s conftest.$ac_objext'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_cv_type_int=yes
16019else
16020 echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023ac_cv_type_int=no
16024fi
16025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16026fi
16027echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16028echo "${ECHO_T}$ac_cv_type_int" >&6
16029
16030echo "$as_me:$LINENO: checking size of int" >&5
16031echo $ECHO_N "checking size of int... $ECHO_C" >&6
16032if test "${ac_cv_sizeof_int+set}" = set; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16034else
16035 if test "$ac_cv_type_int" = yes; then
16036 # The cast to unsigned long works around a bug in the HP C Compiler
16037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16039 # This bug is HP SR number 8606223364.
16040 if test "$cross_compiling" = yes; then
16041 # Depending upon the size, compute the lo and hi bounds.
16042cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
16048$ac_includes_default
16049int
16050main ()
16051{
16052static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16053test_array [0] = 0
16054
16055 ;
16056 return 0;
16057}
16058_ACEOF
16059rm -f conftest.$ac_objext
16060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061 (eval $ac_compile) 2>conftest.er1
16062 ac_status=$?
16063 grep -v '^ *+' conftest.er1 >conftest.err
16064 rm -f conftest.er1
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
d349482e
AT
16068 { ac_try='test -z "$ac_c_werror_flag"
16069 || test ! -s conftest.err'
18cbfd85
PB
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16072 ac_status=$?
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } &&
16075 { ac_try='test -s conftest.$ac_objext'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16081 ac_lo=0 ac_mid=0
16082 while :; do
16083 cat >conftest.$ac_ext <<_ACEOF
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089$ac_includes_default
16090int
16091main ()
16092{
16093static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16094test_array [0] = 0
16095
16096 ;
16097 return 0;
16098}
16099_ACEOF
16100rm -f conftest.$ac_objext
16101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16102 (eval $ac_compile) 2>conftest.er1
16103 ac_status=$?
16104 grep -v '^ *+' conftest.er1 >conftest.err
16105 rm -f conftest.er1
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
d349482e
AT
16109 { ac_try='test -z "$ac_c_werror_flag"
16110 || test ! -s conftest.err'
18cbfd85
PB
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest.$ac_objext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16122 ac_hi=$ac_mid; break
16123else
16124 echo "$as_me: failed program was:" >&5
16125sed 's/^/| /' conftest.$ac_ext >&5
16126
16127ac_lo=`expr $ac_mid + 1`
16128 if test $ac_lo -le $ac_mid; then
16129 ac_lo= ac_hi=
16130 break
16131 fi
16132 ac_mid=`expr 2 '*' $ac_mid + 1`
16133fi
16134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16135 done
16136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140cat >conftest.$ac_ext <<_ACEOF
16141/* confdefs.h. */
16142_ACEOF
16143cat confdefs.h >>conftest.$ac_ext
16144cat >>conftest.$ac_ext <<_ACEOF
16145/* end confdefs.h. */
16146$ac_includes_default
16147int
16148main ()
16149{
16150static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16151test_array [0] = 0
16152
16153 ;
16154 return 0;
16155}
16156_ACEOF
16157rm -f conftest.$ac_objext
16158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159 (eval $ac_compile) 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
d349482e
AT
16166 { ac_try='test -z "$ac_c_werror_flag"
16167 || test ! -s conftest.err'
18cbfd85
PB
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 ac_hi=-1 ac_mid=-1
16180 while :; do
16181 cat >conftest.$ac_ext <<_ACEOF
16182/* confdefs.h. */
16183_ACEOF
16184cat confdefs.h >>conftest.$ac_ext
16185cat >>conftest.$ac_ext <<_ACEOF
16186/* end confdefs.h. */
16187$ac_includes_default
16188int
16189main ()
16190{
16191static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16192test_array [0] = 0
16193
16194 ;
16195 return 0;
16196}
16197_ACEOF
16198rm -f conftest.$ac_objext
16199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200 (eval $ac_compile) 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
d349482e
AT
16207 { ac_try='test -z "$ac_c_werror_flag"
16208 || test ! -s conftest.err'
18cbfd85
PB
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; } &&
16214 { ac_try='test -s conftest.$ac_objext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_lo=$ac_mid; break
16221else
16222 echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225ac_hi=`expr '(' $ac_mid ')' - 1`
16226 if test $ac_mid -le $ac_hi; then
16227 ac_lo= ac_hi=
16228 break
16229 fi
16230 ac_mid=`expr 2 '*' $ac_mid`
16231fi
16232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16233 done
16234else
16235 echo "$as_me: failed program was:" >&5
16236sed 's/^/| /' conftest.$ac_ext >&5
16237
16238ac_lo= ac_hi=
16239fi
16240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16241fi
16242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243# Binary search between lo and hi bounds.
16244while test "x$ac_lo" != "x$ac_hi"; do
16245 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16246 cat >conftest.$ac_ext <<_ACEOF
16247/* confdefs.h. */
16248_ACEOF
16249cat confdefs.h >>conftest.$ac_ext
16250cat >>conftest.$ac_ext <<_ACEOF
16251/* end confdefs.h. */
16252$ac_includes_default
16253int
16254main ()
16255{
16256static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16257test_array [0] = 0
16258
16259 ;
16260 return 0;
16261}
16262_ACEOF
16263rm -f conftest.$ac_objext
16264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
d349482e
AT
16272 { ac_try='test -z "$ac_c_werror_flag"
16273 || test ! -s conftest.err'
18cbfd85
PB
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_hi=$ac_mid
16286else
16287 echo "$as_me: failed program was:" >&5
16288sed 's/^/| /' conftest.$ac_ext >&5
16289
16290ac_lo=`expr '(' $ac_mid ')' + 1`
16291fi
16292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16293done
16294case $ac_lo in
16295?*) ac_cv_sizeof_int=$ac_lo;;
18c04407
RW
16296'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16297echo "$as_me: error: in \`$ac_pwd':" >&2;}
16298{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18cbfd85
PB
16299See \`config.log' for more details." >&5
16300echo "$as_me: error: cannot compute sizeof (int), 77
16301See \`config.log' for more details." >&2;}
18c04407 16302 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
16303esac
16304else
16305 if test "$cross_compiling" = yes; then
18c04407
RW
16306 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16307echo "$as_me: error: in \`$ac_pwd':" >&2;}
16308{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
16309See \`config.log' for more details." >&5
16310echo "$as_me: error: cannot run test program while cross compiling
16311See \`config.log' for more details." >&2;}
18c04407 16312 { (exit 1); exit 1; }; }; }
18cbfd85
PB
16313else
16314 cat >conftest.$ac_ext <<_ACEOF
16315/* confdefs.h. */
16316_ACEOF
16317cat confdefs.h >>conftest.$ac_ext
16318cat >>conftest.$ac_ext <<_ACEOF
16319/* end confdefs.h. */
16320$ac_includes_default
16321long longval () { return (long) (sizeof (int)); }
16322unsigned long ulongval () { return (long) (sizeof (int)); }
16323#include <stdio.h>
16324#include <stdlib.h>
16325int
16326main ()
16327{
16328
16329 FILE *f = fopen ("conftest.val", "w");
16330 if (! f)
16331 exit (1);
16332 if (((long) (sizeof (int))) < 0)
16333 {
16334 long i = longval ();
16335 if (i != ((long) (sizeof (int))))
16336 exit (1);
16337 fprintf (f, "%ld\n", i);
16338 }
16339 else
16340 {
16341 unsigned long i = ulongval ();
16342 if (i != ((long) (sizeof (int))))
16343 exit (1);
16344 fprintf (f, "%lu\n", i);
16345 }
16346 exit (ferror (f) || fclose (f) != 0);
16347
16348 ;
16349 return 0;
16350}
16351_ACEOF
16352rm -f conftest$ac_exeext
16353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354 (eval $ac_link) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_cv_sizeof_int=`cat conftest.val`
16364else
16365 echo "$as_me: program exited with status $ac_status" >&5
16366echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369( exit $ac_status )
18c04407
RW
16370{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16371echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
16372{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16373See \`config.log' for more details." >&5
16374echo "$as_me: error: cannot compute sizeof (int), 77
16375See \`config.log' for more details." >&2;}
18c04407 16376 { (exit 1); exit 1; }; }; }
18cbfd85
PB
16377fi
16378rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16379fi
16380fi
16381rm -f conftest.val
16382else
16383 ac_cv_sizeof_int=0
16384fi
16385fi
16386echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16387echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16388cat >>confdefs.h <<_ACEOF
16389#define SIZEOF_INT $ac_cv_sizeof_int
16390_ACEOF
16391
16392
16393 echo "$as_me:$LINENO: checking for short" >&5
16394echo $ECHO_N "checking for short... $ECHO_C" >&6
16395if test "${ac_cv_type_short+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397else
16398 cat >conftest.$ac_ext <<_ACEOF
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
16403/* end confdefs.h. */
16404$ac_includes_default
16405int
16406main ()
16407{
16408if ((short *) 0)
16409 return 0;
16410if (sizeof (short))
16411 return 0;
16412 ;
16413 return 0;
16414}
16415_ACEOF
16416rm -f conftest.$ac_objext
16417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418 (eval $ac_compile) 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
d349482e
AT
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
18cbfd85
PB
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_type_short=yes
16439else
16440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443ac_cv_type_short=no
16444fi
16445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446fi
16447echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16448echo "${ECHO_T}$ac_cv_type_short" >&6
16449
16450echo "$as_me:$LINENO: checking size of short" >&5
16451echo $ECHO_N "checking size of short... $ECHO_C" >&6
16452if test "${ac_cv_sizeof_short+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454else
16455 if test "$ac_cv_type_short" = yes; then
16456 # The cast to unsigned long works around a bug in the HP C Compiler
16457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16459 # This bug is HP SR number 8606223364.
16460 if test "$cross_compiling" = yes; then
16461 # Depending upon the size, compute the lo and hi bounds.
16462cat >conftest.$ac_ext <<_ACEOF
16463/* confdefs.h. */
16464_ACEOF
16465cat confdefs.h >>conftest.$ac_ext
16466cat >>conftest.$ac_ext <<_ACEOF
16467/* end confdefs.h. */
16468$ac_includes_default
16469int
16470main ()
16471{
16472static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16473test_array [0] = 0
16474
16475 ;
16476 return 0;
16477}
16478_ACEOF
16479rm -f conftest.$ac_objext
16480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
d349482e
AT
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
18cbfd85
PB
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_lo=0 ac_mid=0
16502 while :; do
16503 cat >conftest.$ac_ext <<_ACEOF
16504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
16509$ac_includes_default
16510int
16511main ()
16512{
16513static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16514test_array [0] = 0
16515
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
d349482e
AT
16529 { ac_try='test -z "$ac_c_werror_flag"
16530 || test ! -s conftest.err'
18cbfd85
PB
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_hi=$ac_mid; break
16543else
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
16547ac_lo=`expr $ac_mid + 1`
16548 if test $ac_lo -le $ac_mid; then
16549 ac_lo= ac_hi=
16550 break
16551 fi
16552 ac_mid=`expr 2 '*' $ac_mid + 1`
16553fi
16554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 done
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560cat >conftest.$ac_ext <<_ACEOF
16561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
16566$ac_includes_default
16567int
16568main ()
16569{
16570static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16571test_array [0] = 0
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest.$ac_objext
16578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16579 (eval $ac_compile) 2>conftest.er1
16580 ac_status=$?
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } &&
d349482e
AT
16586 { ac_try='test -z "$ac_c_werror_flag"
16587 || test ! -s conftest.err'
18cbfd85
PB
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_hi=-1 ac_mid=-1
16600 while :; do
16601 cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607$ac_includes_default
16608int
16609main ()
16610{
16611static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16612test_array [0] = 0
16613
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
d349482e
AT
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
18cbfd85
PB
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_lo=$ac_mid; break
16641else
16642 echo "$as_me: failed program was:" >&5
16643sed 's/^/| /' conftest.$ac_ext >&5
16644
16645ac_hi=`expr '(' $ac_mid ')' - 1`
16646 if test $ac_mid -le $ac_hi; then
16647 ac_lo= ac_hi=
16648 break
16649 fi
16650 ac_mid=`expr 2 '*' $ac_mid`
16651fi
16652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16653 done
16654else
16655 echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
16657
16658ac_lo= ac_hi=
16659fi
16660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16661fi
16662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663# Binary search between lo and hi bounds.
16664while test "x$ac_lo" != "x$ac_hi"; do
16665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16666 cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672$ac_includes_default
16673int
16674main ()
16675{
16676static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16677test_array [0] = 0
16678
16679 ;
16680 return 0;
16681}
16682_ACEOF
16683rm -f conftest.$ac_objext
16684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
d349482e
AT
16692 { ac_try='test -z "$ac_c_werror_flag"
16693 || test ! -s conftest.err'
18cbfd85
PB
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_hi=$ac_mid
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710ac_lo=`expr '(' $ac_mid ')' + 1`
16711fi
16712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16713done
16714case $ac_lo in
16715?*) ac_cv_sizeof_short=$ac_lo;;
18c04407
RW
16716'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16717echo "$as_me: error: in \`$ac_pwd':" >&2;}
16718{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18cbfd85
PB
16719See \`config.log' for more details." >&5
16720echo "$as_me: error: cannot compute sizeof (short), 77
16721See \`config.log' for more details." >&2;}
18c04407 16722 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
16723esac
16724else
16725 if test "$cross_compiling" = yes; then
18c04407
RW
16726 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16727echo "$as_me: error: in \`$ac_pwd':" >&2;}
16728{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
16729See \`config.log' for more details." >&5
16730echo "$as_me: error: cannot run test program while cross compiling
16731See \`config.log' for more details." >&2;}
18c04407 16732 { (exit 1); exit 1; }; }; }
18cbfd85
PB
16733else
16734 cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740$ac_includes_default
16741long longval () { return (long) (sizeof (short)); }
16742unsigned long ulongval () { return (long) (sizeof (short)); }
16743#include <stdio.h>
16744#include <stdlib.h>
16745int
16746main ()
16747{
16748
16749 FILE *f = fopen ("conftest.val", "w");
16750 if (! f)
16751 exit (1);
16752 if (((long) (sizeof (short))) < 0)
16753 {
16754 long i = longval ();
16755 if (i != ((long) (sizeof (short))))
16756 exit (1);
16757 fprintf (f, "%ld\n", i);
16758 }
16759 else
16760 {
16761 unsigned long i = ulongval ();
16762 if (i != ((long) (sizeof (short))))
16763 exit (1);
16764 fprintf (f, "%lu\n", i);
16765 }
16766 exit (ferror (f) || fclose (f) != 0);
16767
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest$ac_exeext
16773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16774 (eval $ac_link) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_sizeof_short=`cat conftest.val`
16784else
16785 echo "$as_me: program exited with status $ac_status" >&5
16786echo "$as_me: failed program was:" >&5
16787sed 's/^/| /' conftest.$ac_ext >&5
16788
16789( exit $ac_status )
18c04407
RW
16790{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16791echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
16792{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16793See \`config.log' for more details." >&5
16794echo "$as_me: error: cannot compute sizeof (short), 77
16795See \`config.log' for more details." >&2;}
18c04407 16796 { (exit 1); exit 1; }; }; }
18cbfd85
PB
16797fi
16798rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16799fi
16800fi
16801rm -f conftest.val
16802else
16803 ac_cv_sizeof_short=0
16804fi
16805fi
16806echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16807echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16808cat >>confdefs.h <<_ACEOF
16809#define SIZEOF_SHORT $ac_cv_sizeof_short
16810_ACEOF
16811
16812
16813 echo "$as_me:$LINENO: checking for char" >&5
16814echo $ECHO_N "checking for char... $ECHO_C" >&6
16815if test "${ac_cv_type_char+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16817else
16818 cat >conftest.$ac_ext <<_ACEOF
16819/* confdefs.h. */
16820_ACEOF
16821cat confdefs.h >>conftest.$ac_ext
16822cat >>conftest.$ac_ext <<_ACEOF
16823/* end confdefs.h. */
16824$ac_includes_default
16825int
16826main ()
16827{
16828if ((char *) 0)
16829 return 0;
16830if (sizeof (char))
16831 return 0;
16832 ;
16833 return 0;
16834}
16835_ACEOF
16836rm -f conftest.$ac_objext
16837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838 (eval $ac_compile) 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
d349482e
AT
16845 { ac_try='test -z "$ac_c_werror_flag"
16846 || test ! -s conftest.err'
18cbfd85
PB
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_type_char=yes
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863ac_cv_type_char=no
16864fi
16865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866fi
16867echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16868echo "${ECHO_T}$ac_cv_type_char" >&6
16869
16870echo "$as_me:$LINENO: checking size of char" >&5
16871echo $ECHO_N "checking size of char... $ECHO_C" >&6
16872if test "${ac_cv_sizeof_char+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874else
16875 if test "$ac_cv_type_char" = yes; then
16876 # The cast to unsigned long works around a bug in the HP C Compiler
16877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16879 # This bug is HP SR number 8606223364.
16880 if test "$cross_compiling" = yes; then
16881 # Depending upon the size, compute the lo and hi bounds.
16882cat >conftest.$ac_ext <<_ACEOF
16883/* confdefs.h. */
16884_ACEOF
16885cat confdefs.h >>conftest.$ac_ext
16886cat >>conftest.$ac_ext <<_ACEOF
16887/* end confdefs.h. */
16888$ac_includes_default
16889int
16890main ()
16891{
16892static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16893test_array [0] = 0
16894
16895 ;
16896 return 0;
16897}
16898_ACEOF
16899rm -f conftest.$ac_objext
16900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16901 (eval $ac_compile) 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
d349482e
AT
16908 { ac_try='test -z "$ac_c_werror_flag"
16909 || test ! -s conftest.err'
18cbfd85
PB
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest.$ac_objext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_lo=0 ac_mid=0
16922 while :; do
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929$ac_includes_default
16930int
16931main ()
16932{
16933static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16934test_array [0] = 0
16935
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940rm -f conftest.$ac_objext
16941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942 (eval $ac_compile) 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
d349482e
AT
16949 { ac_try='test -z "$ac_c_werror_flag"
16950 || test ! -s conftest.err'
18cbfd85
PB
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_hi=$ac_mid; break
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967ac_lo=`expr $ac_mid + 1`
16968 if test $ac_lo -le $ac_mid; then
16969 ac_lo= ac_hi=
16970 break
16971 fi
16972 ac_mid=`expr 2 '*' $ac_mid + 1`
16973fi
16974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975 done
16976else
16977 echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980cat >conftest.$ac_ext <<_ACEOF
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
16986$ac_includes_default
16987int
16988main ()
16989{
16990static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16991test_array [0] = 0
16992
16993 ;
16994 return 0;
16995}
16996_ACEOF
16997rm -f conftest.$ac_objext
16998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16999 (eval $ac_compile) 2>conftest.er1
17000 ac_status=$?
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } &&
d349482e
AT
17006 { ac_try='test -z "$ac_c_werror_flag"
17007 || test ! -s conftest.err'
18cbfd85
PB
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; } &&
17013 { ac_try='test -s conftest.$ac_objext'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_hi=-1 ac_mid=-1
17020 while :; do
17021 cat >conftest.$ac_ext <<_ACEOF
17022/* confdefs.h. */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h. */
17027$ac_includes_default
17028int
17029main ()
17030{
17031static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17032test_array [0] = 0
17033
17034 ;
17035 return 0;
17036}
17037_ACEOF
17038rm -f conftest.$ac_objext
17039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17040 (eval $ac_compile) 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
d349482e
AT
17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
18cbfd85
PB
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest.$ac_objext'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_lo=$ac_mid; break
17061else
17062 echo "$as_me: failed program was:" >&5
17063sed 's/^/| /' conftest.$ac_ext >&5
17064
17065ac_hi=`expr '(' $ac_mid ')' - 1`
17066 if test $ac_mid -le $ac_hi; then
17067 ac_lo= ac_hi=
17068 break
17069 fi
17070 ac_mid=`expr 2 '*' $ac_mid`
17071fi
17072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17073 done
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078ac_lo= ac_hi=
17079fi
17080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081fi
17082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083# Binary search between lo and hi bounds.
17084while test "x$ac_lo" != "x$ac_hi"; do
17085 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17086 cat >conftest.$ac_ext <<_ACEOF
17087/* confdefs.h. */
17088_ACEOF
17089cat confdefs.h >>conftest.$ac_ext
17090cat >>conftest.$ac_ext <<_ACEOF
17091/* end confdefs.h. */
17092$ac_includes_default
17093int
17094main ()
17095{
17096static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17097test_array [0] = 0
17098
17099 ;
17100 return 0;
17101}
17102_ACEOF
17103rm -f conftest.$ac_objext
17104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17105 (eval $ac_compile) 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
d349482e
AT
17112 { ac_try='test -z "$ac_c_werror_flag"
17113 || test ! -s conftest.err'
18cbfd85
PB
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest.$ac_objext'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_hi=$ac_mid
17126else
17127 echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130ac_lo=`expr '(' $ac_mid ')' + 1`
17131fi
17132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17133done
17134case $ac_lo in
17135?*) ac_cv_sizeof_char=$ac_lo;;
18c04407
RW
17136'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17137echo "$as_me: error: in \`$ac_pwd':" >&2;}
17138{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18cbfd85
PB
17139See \`config.log' for more details." >&5
17140echo "$as_me: error: cannot compute sizeof (char), 77
17141See \`config.log' for more details." >&2;}
18c04407 17142 { (exit 1); exit 1; }; }; } ;;
18cbfd85
PB
17143esac
17144else
17145 if test "$cross_compiling" = yes; then
18c04407
RW
17146 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17147echo "$as_me: error: in \`$ac_pwd':" >&2;}
17148{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
17149See \`config.log' for more details." >&5
17150echo "$as_me: error: cannot run test program while cross compiling
17151See \`config.log' for more details." >&2;}
18c04407 17152 { (exit 1); exit 1; }; }; }
18cbfd85
PB
17153else
17154 cat >conftest.$ac_ext <<_ACEOF
17155/* confdefs.h. */
17156_ACEOF
17157cat confdefs.h >>conftest.$ac_ext
17158cat >>conftest.$ac_ext <<_ACEOF
17159/* end confdefs.h. */
17160$ac_includes_default
17161long longval () { return (long) (sizeof (char)); }
17162unsigned long ulongval () { return (long) (sizeof (char)); }
17163#include <stdio.h>
17164#include <stdlib.h>
17165int
17166main ()
17167{
17168
17169 FILE *f = fopen ("conftest.val", "w");
17170 if (! f)
17171 exit (1);
17172 if (((long) (sizeof (char))) < 0)
17173 {
17174 long i = longval ();
17175 if (i != ((long) (sizeof (char))))
17176 exit (1);
17177 fprintf (f, "%ld\n", i);
17178 }
17179 else
17180 {
17181 unsigned long i = ulongval ();
17182 if (i != ((long) (sizeof (char))))
17183 exit (1);
17184 fprintf (f, "%lu\n", i);
17185 }
17186 exit (ferror (f) || fclose (f) != 0);
17187
17188 ;
17189 return 0;
17190}
17191_ACEOF
17192rm -f conftest$ac_exeext
17193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17194 (eval $ac_link) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_cv_sizeof_char=`cat conftest.val`
17204else
17205 echo "$as_me: program exited with status $ac_status" >&5
17206echo "$as_me: failed program was:" >&5
17207sed 's/^/| /' conftest.$ac_ext >&5
17208
17209( exit $ac_status )
18c04407
RW
17210{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17211echo "$as_me: error: in \`$ac_pwd':" >&2;}
18cbfd85
PB
17212{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17213See \`config.log' for more details." >&5
17214echo "$as_me: error: cannot compute sizeof (char), 77
17215See \`config.log' for more details." >&2;}
18c04407 17216 { (exit 1); exit 1; }; }; }
18cbfd85
PB
17217fi
17218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17219fi
17220fi
17221rm -f conftest.val
17222else
17223 ac_cv_sizeof_char=0
17224fi
17225fi
17226echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17227echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17228cat >>confdefs.h <<_ACEOF
17229#define SIZEOF_CHAR $ac_cv_sizeof_char
17230_ACEOF
17231
17232
17233
17234 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17235echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17236 case "$ac_cv_sizeof_char" in
17237 1) acx_cv_type_int8_t=char ;;
17238 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17239echo "$as_me: error: no 8-bit type" >&2;}
17240 { (exit please report a bug); exit please report a bug; }; }
17241 esac
17242 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17243echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17244
17245 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17246echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17247 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17248 2:*) acx_cv_type_int16_t=int ;;
17249 *:2) acx_cv_type_int16_t=short ;;
17250 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17251echo "$as_me: error: no 16-bit type" >&2;}
17252 { (exit please report a bug); exit please report a bug; }; }
17253 esac
17254 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17255echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17256
17257 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17258echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17259 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17260 4:*) acx_cv_type_int32_t=int ;;
17261 *:4) acx_cv_type_int32_t=long ;;
17262 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17263echo "$as_me: error: no 32-bit type" >&2;}
17264 { (exit please report a bug); exit please report a bug; }; }
17265 esac
17266 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17267echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17268fi
17269
17270# These tests are here to make the output prettier
17271
17272if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17273 case "$ac_cv_sizeof_long" in
17274 8) acx_cv_type_int64_t=long ;;
17275 esac
17276 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17277echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17278 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17279echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17280fi
17281
17282# Now we can use the above types
17283
17284if test "$ac_cv_type_uintptr_t" != yes; then
17285 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17286echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17287 case $ac_cv_sizeof_void_p in
17288 2) acx_cv_type_intptr_t=int16_t ;;
17289 4) acx_cv_type_intptr_t=int32_t ;;
17290 8) acx_cv_type_intptr_t=int64_t ;;
17291 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17292echo "$as_me: error: no equivalent for intptr_t" >&2;}
17293 { (exit please report a bug); exit please report a bug; }; }
17294 esac
17295 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17296echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17297fi
17298
17299# ----------------- done all checks, emit header -------------
17300 ac_config_commands="$ac_config_commands gstdint.h"
17301
17302
17303
17304
953ff289 17305# Check to see if -pthread or -lpthread is needed. Prefer the former.
124452c9 17306# In case the pthread.h system header is not found, this test will fail.
953ff289 17307XPCFLAGS=""
60def7ed 17308CFLAGS="$CFLAGS -pthread"
953ff289
DN
17309cat >conftest.$ac_ext <<_ACEOF
17310/* confdefs.h. */
17311_ACEOF
17312cat confdefs.h >>conftest.$ac_ext
17313cat >>conftest.$ac_ext <<_ACEOF
17314/* end confdefs.h. */
17315#include <pthread.h>
17316 void *g(void *d) { return NULL; }
17317int
17318main ()
17319{
17320pthread_t t; pthread_create(&t,NULL,g,NULL);
17321 ;
17322 return 0;
17323}
17324_ACEOF
17325rm -f conftest.$ac_objext conftest$ac_exeext
17326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17327 (eval $ac_link) 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
d349482e
AT
17334 { ac_try='test -z "$ac_c_werror_flag"
17335 || test ! -s conftest.err'
953ff289
DN
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } &&
17341 { ac_try='test -s conftest$ac_exeext'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
60def7ed 17347 XPCFLAGS=" -Wc,-pthread"
953ff289
DN
17348else
17349 echo "$as_me: failed program was:" >&5
17350sed 's/^/| /' conftest.$ac_ext >&5
17351
17352CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
17353 cat >conftest.$ac_ext <<_ACEOF
17354/* confdefs.h. */
17355_ACEOF
17356cat confdefs.h >>conftest.$ac_ext
17357cat >>conftest.$ac_ext <<_ACEOF
17358/* end confdefs.h. */
17359#include <pthread.h>
17360 void *g(void *d) { return NULL; }
17361int
17362main ()
17363{
17364pthread_t t; pthread_create(&t,NULL,g,NULL);
17365 ;
17366 return 0;
17367}
17368_ACEOF
17369rm -f conftest.$ac_objext conftest$ac_exeext
17370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371 (eval $ac_link) 2>conftest.er1
17372 ac_status=$?
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
d349482e
AT
17378 { ac_try='test -z "$ac_c_werror_flag"
17379 || test ! -s conftest.err'
953ff289
DN
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest$ac_exeext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 :
17392else
17393 echo "$as_me: failed program was:" >&5
17394sed 's/^/| /' conftest.$ac_ext >&5
17395
17396{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
17397echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
17398 { (exit 1); exit 1; }; }
17399fi
17400rm -f conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17402fi
17403rm -f conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17405
17406# Check for functions needed.
17407
17408
976e44e3
JJ
17409
17410for ac_func in getloadavg clock_gettime strtoull
953ff289
DN
17411do
17412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413echo "$as_me:$LINENO: checking for $ac_func" >&5
17414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17415if eval "test \"\${$as_ac_var+set}\" = set"; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17417else
17418 cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17426#define $ac_func innocuous_$ac_func
17427
17428/* System header to define __stub macros and hopefully few prototypes,
17429 which can conflict with char $ac_func (); below.
17430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431 <limits.h> exists even on freestanding compilers. */
17432
17433#ifdef __STDC__
17434# include <limits.h>
17435#else
17436# include <assert.h>
17437#endif
17438
17439#undef $ac_func
17440
17441/* Override any gcc2 internal prototype to avoid an error. */
17442#ifdef __cplusplus
17443extern "C"
17444{
17445#endif
17446/* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17448char $ac_func ();
17449/* The GNU C library defines this for functions which it implements
17450 to always fail with ENOSYS. Some functions are actually named
17451 something starting with __ and the normal name is an alias. */
17452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17453choke me
17454#else
17455char (*f) () = $ac_func;
17456#endif
17457#ifdef __cplusplus
17458}
17459#endif
17460
17461int
17462main ()
17463{
17464return f != $ac_func;
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext conftest$ac_exeext
17470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471 (eval $ac_link) 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
d349482e
AT
17478 { ac_try='test -z "$ac_c_werror_flag"
17479 || test ! -s conftest.err'
953ff289
DN
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 eval "$as_ac_var=yes"
17492else
17493 echo "$as_me: failed program was:" >&5
17494sed 's/^/| /' conftest.$ac_ext >&5
17495
17496eval "$as_ac_var=no"
17497fi
17498rm -f conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500fi
17501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17503if test `eval echo '${'$as_ac_var'}'` = yes; then
17504 cat >>confdefs.h <<_ACEOF
17505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17506_ACEOF
17507
17508fi
17509done
17510
17511
d349482e
AT
17512# Check for broken semaphore implementation on darwin.
17513# sem_init returns: sem_init error: Function not implemented.
17514case "$host" in
17515 *-darwin*)
17516
17517cat >>confdefs.h <<\_ACEOF
17518#define HAVE_BROKEN_POSIX_SEMAPHORES 1
17519_ACEOF
17520
fe5568e9 17521 ;;
0f3e711e
JJ
17522esac
17523
17524 # Check whether --enable-linux-futex or --disable-linux-futex was given.
17525if test "${enable_linux_futex+set}" = set; then
17526 enableval="$enable_linux_futex"
17527
17528 case "$enableval" in
17529 yes|no|default) ;;
17530 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
17531echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
17532 { (exit 1); exit 1; }; } ;;
17533 esac
17534
17535else
17536 enable_linux_futex=default
17537fi;
17538
17539case "$target" in
fe5568e9
JJ
17540 *-linux*)
17541 case "$enable_linux_futex" in
17542 default)
17543 # If headers don't have gettid/futex syscalls definition, then
17544 # default to no, otherwise there will be compile time failures.
17545 # Otherwise, default to yes. If we don't detect we are
17546 # compiled/linked against NPTL and not cross-compiling, check
17547 # if programs are run by default against NPTL and if not, issue
17548 # a warning.
17549 enable_linux_futex=no
17550 cat >conftest.$ac_ext <<_ACEOF
17551/* confdefs.h. */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h. */
17556#include <sys/syscall.h>
17557 int lk;
17558int
17559main ()
17560{
17561syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
17562 ;
17563 return 0;
17564}
17565_ACEOF
17566rm -f conftest.$ac_objext conftest$ac_exeext
17567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag"
17576 || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest$ac_exeext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
0f3e711e
JJ
17588 save_LIBS="$LIBS"
17589 LIBS="-lpthread $LIBS"
17590 cat >conftest.$ac_ext <<_ACEOF
fe5568e9
JJ
17591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
17596#ifndef _GNU_SOURCE
17597 #define _GNU_SOURCE 1
17598 #endif
17599 #include <pthread.h>
17600 pthread_t th; void *status;
17601int
17602main ()
17603{
17604pthread_tryjoin_np (th, &status);
17605 ;
17606 return 0;
17607}
17608_ACEOF
17609rm -f conftest.$ac_objext conftest$ac_exeext
17610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17611 (eval $ac_link) 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag"
17619 || test ! -s conftest.err'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest$ac_exeext'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; }; then
17631 enable_linux_futex=yes
17632else
17633 echo "$as_me: failed program was:" >&5
17634sed 's/^/| /' conftest.$ac_ext >&5
17635
17636if test x$cross_compiling = xno; then
17637 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
0f3e711e 17638 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
fe5568e9
JJ
17639 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
17640If so, please configure with --disable-linux-futex" >&5
17641echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
17642If so, please configure with --disable-linux-futex" >&2;}
17643 fi
17644 fi
17645 enable_linux_futex=yes
17646fi
17647rm -f conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
0f3e711e 17649 LIBS="$save_LIBS"
fe5568e9
JJ
17650else
17651 echo "$as_me: failed program was:" >&5
17652sed 's/^/| /' conftest.$ac_ext >&5
17653
17654fi
17655rm -f conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17657 ;;
a1b25e49 17658 yes)
fe5568e9
JJ
17659 cat >conftest.$ac_ext <<_ACEOF
17660/* confdefs.h. */
17661_ACEOF
17662cat confdefs.h >>conftest.$ac_ext
17663cat >>conftest.$ac_ext <<_ACEOF
17664/* end confdefs.h. */
17665#include <sys/syscall.h>
17666 int lk;
17667int
17668main ()
17669{
17670syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
17671 ;
17672 return 0;
17673}
17674_ACEOF
17675rm -f conftest.$ac_objext conftest$ac_exeext
17676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17677 (eval $ac_link) 2>conftest.er1
17678 ac_status=$?
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest$ac_exeext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 :
17698else
17699 echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
17703echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
17704 { (exit 1); exit 1; }; }
17705fi
17706rm -f conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 ;;
17709 esac
d349482e 17710 ;;
0f3e711e
JJ
17711 *)
17712 enable_linux_futex=no
17713 ;;
d349482e 17714esac
0f3e711e
JJ
17715if test x$enable_linux_futex = xyes; then
17716 :
17717fi
17718
d349482e 17719
a0884cf0
JJ
17720# Check for pthread_{,attr_}[sg]etaffinity_np.
17721cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h. */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h. */
17727#define _GNU_SOURCE
17728 #include <pthread.h>
17729int
17730main ()
17731{
17732cpu_set_t cpuset;
17733 pthread_attr_t attr;
17734 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17735 if (CPU_ISSET (0, &cpuset))
17736 CPU_SET (1, &cpuset);
17737 else
17738 CPU_ZERO (&cpuset);
17739 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17740 pthread_attr_init (&attr);
17741 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17742 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17743 ;
17744 return 0;
17745}
17746_ACEOF
17747rm -f conftest.$ac_objext conftest$ac_exeext
17748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749 (eval $ac_link) 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -z "$ac_c_werror_flag"
17757 || test ! -s conftest.err'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; } &&
17763 { ac_try='test -s conftest$ac_exeext'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769
17770cat >>confdefs.h <<\_ACEOF
17771#define HAVE_PTHREAD_AFFINITY_NP 1
17772_ACEOF
17773
17774else
17775 echo "$as_me: failed program was:" >&5
17776sed 's/^/| /' conftest.$ac_ext >&5
17777
17778fi
17779rm -f conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781
953ff289
DN
17782# At least for glibc, clock_gettime is in librt. But don't pull that
17783# in if it still doesn't give us the function we want.
17784if test $ac_cv_func_clock_gettime = no; then
17785 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17786echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17787if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17789else
17790 ac_check_lib_save_LIBS=$LIBS
17791LIBS="-lrt $LIBS"
17792cat >conftest.$ac_ext <<_ACEOF
17793/* confdefs.h. */
17794_ACEOF
17795cat confdefs.h >>conftest.$ac_ext
17796cat >>conftest.$ac_ext <<_ACEOF
17797/* end confdefs.h. */
17798
17799/* Override any gcc2 internal prototype to avoid an error. */
17800#ifdef __cplusplus
17801extern "C"
17802#endif
17803/* We use char because int might match the return type of a gcc2
17804 builtin and then its argument prototype would still apply. */
17805char clock_gettime ();
17806int
17807main ()
17808{
17809clock_gettime ();
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext conftest$ac_exeext
17815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816 (eval $ac_link) 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
d349482e
AT
17823 { ac_try='test -z "$ac_c_werror_flag"
17824 || test ! -s conftest.err'
953ff289
DN
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest$ac_exeext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_lib_rt_clock_gettime=yes
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841ac_cv_lib_rt_clock_gettime=no
17842fi
17843rm -f conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17845LIBS=$ac_check_lib_save_LIBS
17846fi
17847echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17848echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17849if test $ac_cv_lib_rt_clock_gettime = yes; then
17850 LIBS="-lrt $LIBS"
c663e301
JM
17851
17852cat >>confdefs.h <<\_ACEOF
17853#define HAVE_CLOCK_GETTIME 1
953ff289
DN
17854_ACEOF
17855
17856fi
17857
17858fi
17859
17860# See if we support thread-local storage.
17861
17862 # Check whether --enable-tls or --disable-tls was given.
17863if test "${enable_tls+set}" = set; then
17864 enableval="$enable_tls"
17865
17866 case "$enableval" in
17867 yes|no) ;;
17868 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17869echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17870 { (exit 1); exit 1; }; } ;;
17871 esac
17872
17873else
17874 enable_tls=yes
17875fi;
17876
17877 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17878echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
3afcaaf4 17879if test "${gcc_cv_have_tls+set}" = set; then
953ff289
DN
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881else
17882
60e1758f 17883 if test "$cross_compiling" = yes; then
1cf3d07d 17884 cat >conftest.$ac_ext <<_ACEOF
597c25e6 17885__thread int a; int b; int main() { return a = b; }
953ff289 17886_ACEOF
597c25e6
DJ
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>conftest.er1
953ff289
DN
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
d349482e
AT
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
953ff289
DN
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
597c25e6 17903 { ac_try='test -s conftest$ac_exeext'
953ff289
DN
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
3afcaaf4 17909 gcc_cv_have_tls=yes
953ff289
DN
17910else
17911 echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
3afcaaf4 17914gcc_cv_have_tls=no
953ff289 17915fi
597c25e6
DJ
17916rm -f conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
60e1758f 17918
1cf3d07d 17919
60e1758f
RH
17920else
17921 cat >conftest.$ac_ext <<_ACEOF
17922__thread int a; int b; int main() { return a = b; }
17923_ACEOF
17924rm -f conftest$ac_exeext
17925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17926 (eval $ac_link) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
78e075d4 17935 chktls_save_LDFLAGS="$LDFLAGS"
60e1758f 17936 LDFLAGS="-static $LDFLAGS"
aad741f4
EB
17937 cat >conftest.$ac_ext <<_ACEOF
17938int main() { return 0; }
17939_ACEOF
17940rm -f conftest.$ac_objext conftest$ac_exeext
17941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17942 (eval $ac_link) 2>conftest.er1
17943 ac_status=$?
17944 grep -v '^ *+' conftest.er1 >conftest.err
17945 rm -f conftest.er1
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -z "$ac_c_werror_flag"
17950 || test ! -s conftest.err'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest$ac_exeext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 if test "$cross_compiling" = yes; then
18c04407
RW
17963 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17964echo "$as_me: error: in \`$ac_pwd':" >&2;}
17965{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
60e1758f
RH
17966See \`config.log' for more details." >&5
17967echo "$as_me: error: cannot run test program while cross compiling
17968See \`config.log' for more details." >&2;}
18c04407 17969 { (exit 1); exit 1; }; }; }
60e1758f
RH
17970else
17971 cat >conftest.$ac_ext <<_ACEOF
17972__thread int a; int b; int main() { return a = b; }
17973_ACEOF
17974rm -f conftest$ac_exeext
17975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17976 (eval $ac_link) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
3afcaaf4 17985 gcc_cv_have_tls=yes
60e1758f
RH
17986else
17987 echo "$as_me: program exited with status $ac_status" >&5
17988echo "$as_me: failed program was:" >&5
17989sed 's/^/| /' conftest.$ac_ext >&5
17990
17991( exit $ac_status )
3afcaaf4 17992gcc_cv_have_tls=no
60e1758f
RH
17993fi
17994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17995fi
aad741f4
EB
17996else
17997 echo "$as_me: failed program was:" >&5
17998sed 's/^/| /' conftest.$ac_ext >&5
17999
3afcaaf4 18000gcc_cv_have_tls=yes
aad741f4
EB
18001fi
18002rm -f conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
78e075d4 18004 LDFLAGS="$chktls_save_LDFLAGS"
3afcaaf4 18005 if test $gcc_cv_have_tls = yes; then
78e075d4
JJ
18006 chktls_save_CFLAGS="$CFLAGS"
18007 thread_CFLAGS=failed
18008 for flag in '' '-pthread' '-lpthread'; do
18009 CFLAGS="$flag $chktls_save_CFLAGS"
18010 cat >conftest.$ac_ext <<_ACEOF
18011/* confdefs.h. */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
18015/* end confdefs.h. */
18016#include <pthread.h>
18017 void *g(void *d) { return NULL; }
18018int
18019main ()
18020{
18021pthread_t t; pthread_create(&t,NULL,g,NULL);
18022 ;
18023 return 0;
18024}
18025_ACEOF
18026rm -f conftest.$ac_objext conftest$ac_exeext
18027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag"
18036 || test ! -s conftest.err'
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; } &&
18042 { ac_try='test -s conftest$ac_exeext'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 thread_CFLAGS="$flag"
18049else
18050 echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
18053fi
18054rm -f conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 if test "X$thread_CFLAGS" != Xfailed; then
18057 break
18058 fi
18059 done
18060 CFLAGS="$chktls_save_CFLAGS"
18061 if test "X$thread_CFLAGS" != Xfailed; then
18062 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
18063 if test "$cross_compiling" = yes; then
18c04407
RW
18064 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18065echo "$as_me: error: in \`$ac_pwd':" >&2;}
18066{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
78e075d4
JJ
18067See \`config.log' for more details." >&5
18068echo "$as_me: error: cannot run test program while cross compiling
18069See \`config.log' for more details." >&2;}
18c04407 18070 { (exit 1); exit 1; }; }; }
78e075d4
JJ
18071else
18072 cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h. */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h. */
18078#include <pthread.h>
18079 __thread int a;
18080 static int *a_in_other_thread;
18081 static void *
18082 thread_func (void *arg)
18083 {
18084 a_in_other_thread = &a;
18085 return (void *)0;
18086 }
18087int
18088main ()
18089{
18090pthread_t thread;
18091 void *thread_retval;
18092 int *a_in_main_thread;
18093 if (pthread_create (&thread, (pthread_attr_t *)0,
18094 thread_func, (void *)0))
18095 return 0;
18096 a_in_main_thread = &a;
18097 if (pthread_join (thread, &thread_retval))
18098 return 0;
18099 return (a_in_other_thread == a_in_main_thread);
18100 ;
18101 return 0;
18102}
18103_ACEOF
18104rm -f conftest$ac_exeext
18105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
3afcaaf4 18115 gcc_cv_have_tls=yes
78e075d4
JJ
18116else
18117 echo "$as_me: program exited with status $ac_status" >&5
18118echo "$as_me: failed program was:" >&5
18119sed 's/^/| /' conftest.$ac_ext >&5
18120
18121( exit $ac_status )
3afcaaf4 18122gcc_cv_have_tls=no
78e075d4
JJ
18123fi
18124rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18125fi
18126 CFLAGS="$chktls_save_CFLAGS"
18127 fi
18128 fi
60e1758f
RH
18129else
18130 echo "$as_me: program exited with status $ac_status" >&5
18131echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
18134( exit $ac_status )
3afcaaf4 18135gcc_cv_have_tls=no
60e1758f
RH
18136fi
18137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18138fi
953ff289 18139fi
3afcaaf4
MR
18140echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
18141echo "${ECHO_T}$gcc_cv_have_tls" >&6
18142 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
953ff289
DN
18143
18144cat >>confdefs.h <<\_ACEOF
18145#define HAVE_TLS 1
18146_ACEOF
18147
18148 fi
18149
18150# See what sort of export controls are availible.
18151
18152 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
18153echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
6d26724a 18154if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
953ff289
DN
18155 echo $ECHO_N "(cached) $ECHO_C" >&6
18156else
18157
18158 save_CFLAGS="$CFLAGS"
18159 CFLAGS="$CFLAGS -Werror"
18160 cat >conftest.$ac_ext <<_ACEOF
18161/* confdefs.h. */
18162_ACEOF
18163cat confdefs.h >>conftest.$ac_ext
18164cat >>conftest.$ac_ext <<_ACEOF
18165/* end confdefs.h. */
18166void __attribute__((visibility("hidden"))) foo(void) { }
18167int
18168main ()
18169{
18170
18171 ;
18172 return 0;
18173}
18174_ACEOF
18175rm -f conftest.$ac_objext
18176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18177 (eval $ac_compile) 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
d349482e
AT
18184 { ac_try='test -z "$ac_c_werror_flag"
18185 || test ! -s conftest.err'
953ff289
DN
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest.$ac_objext'
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
6d26724a 18197 libgomp_cv_have_attribute_visibility=yes
953ff289
DN
18198else
18199 echo "$as_me: failed program was:" >&5
18200sed 's/^/| /' conftest.$ac_ext >&5
18201
6d26724a 18202libgomp_cv_have_attribute_visibility=no
953ff289
DN
18203fi
18204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18205 CFLAGS="$save_CFLAGS"
18206fi
6d26724a
RW
18207echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
18208echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
18209 if test $libgomp_cv_have_attribute_visibility = yes; then
953ff289
DN
18210
18211cat >>confdefs.h <<\_ACEOF
18212#define HAVE_ATTRIBUTE_VISIBILITY 1
18213_ACEOF
18214
18215 fi
18216
18217 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
18218echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
6d26724a 18219if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
953ff289
DN
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221else
18222
18223 save_CFLAGS="$CFLAGS"
18224 CFLAGS="$CFLAGS -Werror"
18225 cat >conftest.$ac_ext <<_ACEOF
18226/* confdefs.h. */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
18230/* end confdefs.h. */
18231void __attribute__((dllexport)) foo(void) { }
18232int
18233main ()
18234{
18235
18236 ;
18237 return 0;
18238}
18239_ACEOF
18240rm -f conftest.$ac_objext
18241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18242 (eval $ac_compile) 2>conftest.er1
18243 ac_status=$?
18244 grep -v '^ *+' conftest.er1 >conftest.err
18245 rm -f conftest.er1
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
d349482e
AT
18249 { ac_try='test -z "$ac_c_werror_flag"
18250 || test ! -s conftest.err'
953ff289
DN
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest.$ac_objext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
6d26724a 18262 libgomp_cv_have_attribute_dllexport=yes
953ff289
DN
18263else
18264 echo "$as_me: failed program was:" >&5
18265sed 's/^/| /' conftest.$ac_ext >&5
18266
6d26724a 18267libgomp_cv_have_attribute_dllexport=no
953ff289
DN
18268fi
18269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18270 CFLAGS="$save_CFLAGS"
18271fi
6d26724a
RW
18272echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
18273echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
18274 if test $libgomp_cv_have_attribute_dllexport = yes; then
953ff289
DN
18275
18276cat >>confdefs.h <<\_ACEOF
18277#define HAVE_ATTRIBUTE_DLLEXPORT 1
18278_ACEOF
18279
18280 fi
18281
18282 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
18283echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
6d26724a 18284if test "${libgomp_cv_have_attribute_alias+set}" = set; then
953ff289
DN
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287
18288 cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
18294
953ff289 18295void foo(void) { }
8887708e 18296extern void bar(void) __attribute__((alias("foo")));
953ff289
DN
18297int
18298main ()
18299{
18300bar();
18301 ;
18302 return 0;
18303}
18304_ACEOF
18305rm -f conftest.$ac_objext conftest$ac_exeext
18306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18307 (eval $ac_link) 2>conftest.er1
18308 ac_status=$?
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
d349482e
AT
18314 { ac_try='test -z "$ac_c_werror_flag"
18315 || test ! -s conftest.err'
953ff289
DN
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; } &&
18321 { ac_try='test -s conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
6d26724a 18327 libgomp_cv_have_attribute_alias=yes
953ff289
DN
18328else
18329 echo "$as_me: failed program was:" >&5
18330sed 's/^/| /' conftest.$ac_ext >&5
18331
6d26724a 18332libgomp_cv_have_attribute_alias=no
953ff289
DN
18333fi
18334rm -f conftest.err conftest.$ac_objext \
18335 conftest$ac_exeext conftest.$ac_ext
18336fi
6d26724a
RW
18337echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
18338echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
18339 if test $libgomp_cv_have_attribute_alias = yes; then
953ff289
DN
18340
18341cat >>confdefs.h <<\_ACEOF
18342#define HAVE_ATTRIBUTE_ALIAS 1
18343_ACEOF
18344
18345 fi
18346
1cf3d07d
SE
18347
18348# Check whether --with-gnu-ld or --without-gnu-ld was given.
18349if test "${with_gnu_ld+set}" = set; then
18350 withval="$with_gnu_ld"
18351 test "$withval" = no || with_gnu_ld=yes
18352else
18353 with_gnu_ld=no
18354fi;
18355ac_prog=ld
18356if test "$GCC" = yes; then
18357 # Check if gcc -print-prog-name=ld gives a path.
18358 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18359echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
18360 case $host in
18361 *-*-mingw*)
18362 # gcc leaves a trailing carriage return which upsets mingw
18363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18364 *)
18365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18366 esac
18367 case $ac_prog in
18368 # Accept absolute paths.
18369 [\\/]* | ?:[\\/]*)
18370 re_direlt='/[^/][^/]*/\.\./'
18371 # Canonicalize the pathname of ld
18372 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18373 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18374 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18375 done
18376 test -z "$LD" && LD="$ac_prog"
18377 ;;
18378 "")
18379 # If it fails, then pretend we aren't using GCC.
18380 ac_prog=ld
18381 ;;
18382 *)
18383 # If it is relative, then search for the first ld in PATH.
18384 with_gnu_ld=unknown
18385 ;;
18386 esac
18387elif test "$with_gnu_ld" = yes; then
18388 echo "$as_me:$LINENO: checking for GNU ld" >&5
18389echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18390else
18391 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18392echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18393fi
18394if test "${lt_cv_path_LD+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396else
18397 if test -z "$LD"; then
18398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18399 for ac_dir in $PATH; do
18400 IFS="$lt_save_ifs"
18401 test -z "$ac_dir" && ac_dir=.
18402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18403 lt_cv_path_LD="$ac_dir/$ac_prog"
18404 # Check to see if the program is GNU ld. I'd rather use --version,
18405 # but apparently some variants of GNU ld only accept -v.
18406 # Break only if it was the GNU/non-GNU ld that we prefer.
18407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18408 *GNU* | *'with BFD'*)
18409 test "$with_gnu_ld" != no && break
18410 ;;
18411 *)
18412 test "$with_gnu_ld" != yes && break
18413 ;;
18414 esac
18415 fi
18416 done
18417 IFS="$lt_save_ifs"
18418else
18419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18420fi
18421fi
18422
18423LD="$lt_cv_path_LD"
18424if test -n "$LD"; then
18425 echo "$as_me:$LINENO: result: $LD" >&5
18426echo "${ECHO_T}$LD" >&6
18427else
18428 echo "$as_me:$LINENO: result: no" >&5
18429echo "${ECHO_T}no" >&6
18430fi
18431test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18432echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18433 { (exit 1); exit 1; }; }
18434echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18435echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18436if test "${lt_cv_prog_gnu_ld+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438else
18439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18440case `$LD -v 2>&1 </dev/null` in
18441*GNU* | *'with BFD'*)
18442 lt_cv_prog_gnu_ld=yes
18443 ;;
18444*)
18445 lt_cv_prog_gnu_ld=no
18446 ;;
18447esac
18448fi
18449echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18450echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
18451with_gnu_ld=$lt_cv_prog_gnu_ld
18452
18453
18454
18455
18456
18457
18458
953ff289
DN
18459 # If we're not using GNU ld, then there's no point in even trying these
18460 # tests. Check for that first. We should have already tested for gld
18461 # by now (in libtool), but require it now just to be safe...
18462 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
18463 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
18464
18465
18466
18467 # The name set by libtool depends on the version of libtool. Shame on us
18468 # for depending on an impl detail, but c'est la vie. Older versions used
18469 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
18470 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
18471 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
18472 # set (hence we're using an older libtool), then set it.
18473 if test x${with_gnu_ld+set} != xset; then
18474 if test x${ac_cv_prog_gnu_ld+set} != xset; then
18475 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
18476 with_gnu_ld=no
18477 else
18478 with_gnu_ld=$ac_cv_prog_gnu_ld
18479 fi
18480 fi
18481
18482 # Start by getting the version number. I think the libtool test already
18483 # does some of this, but throws away the result.
18484
18485 ldver=`$LD --version 2>/dev/null | head -1 | \
f210f1cd 18486 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
953ff289
DN
18487
18488 libgomp_gnu_ld_version=`echo $ldver | \
18489 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
18490
18491 # Set --gc-sections.
18492 if test "$with_gnu_ld" = "notbroken"; then
18493 # GNU ld it is! Joy and bunny rabbits!
18494
18495 # All these tests are for C++; save the language and the compiler flags.
18496 # Need to do this so that g++ won't try to link in libstdc++
18497 ac_test_CFLAGS="${CFLAGS+set}"
18498 ac_save_CFLAGS="$CFLAGS"
18499 CFLAGS='-x c++ -Wl,--gc-sections'
18500
18501 # Check for -Wl,--gc-sections
18502 # XXX This test is broken at the moment, as symbols required for linking
18503 # are now in libsupc++ (not built yet). In addition, this test has
18504 # cored on solaris in the past. In addition, --gc-sections doesn't
18505 # really work at the moment (keeps on discarding used sections, first
18506 # .eh_frame and now some of the glibc sections for iconv).
18507 # Bzzzzt. Thanks for playing, maybe next time.
18508 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
18509echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
18510 if test "$cross_compiling" = yes; then
18511 ac_sectionLDflags=yes
18512else
18513 cat >conftest.$ac_ext <<_ACEOF
18514/* confdefs.h. */
18515_ACEOF
18516cat confdefs.h >>conftest.$ac_ext
18517cat >>conftest.$ac_ext <<_ACEOF
18518/* end confdefs.h. */
18519
18520 int main(void)
18521 {
18522 try { throw 1; }
18523 catch (...) { };
18524 return 0;
18525 }
18526
18527_ACEOF
18528rm -f conftest$ac_exeext
18529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18530 (eval $ac_link) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_sectionLDflags=yes
18540else
18541 echo "$as_me: program exited with status $ac_status" >&5
18542echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545( exit $ac_status )
18546ac_sectionLDflags=no
18547fi
18548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18549fi
18550 if test "$ac_test_CFLAGS" = set; then
18551 CFLAGS="$ac_save_CFLAGS"
18552 else
18553 # this is the suspicious part
18554 CFLAGS=''
18555 fi
18556 if test "$ac_sectionLDflags" = "yes"; then
18557 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
18558 fi
18559 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
18560echo "${ECHO_T}$ac_sectionLDflags" >&6
18561 fi
18562
18563 # Set linker optimization flags.
18564 if test x"$with_gnu_ld" = x"yes"; then
18565 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
18566 fi
18567
18568
18569
18570
18571
18572
18573 # Check whether --enable-symvers or --disable-symvers was given.
18574if test "${enable_symvers+set}" = set; then
18575 enableval="$enable_symvers"
18576
18577 case "$enableval" in
18578 yes|no|gnu) ;;
18579 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
18580echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
18581 { (exit 1); exit 1; }; } ;;
18582 esac
18583
18584else
18585 enable_symvers=yes
18586fi;
18587
18588
18589# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
18590# don't know enough about $LD to do tricks...
18591
18592# FIXME The following test is too strict, in theory.
18593if test $enable_shared = no ||
18594 test "x$LD" = x ||
18595 test x$libgomp_gnu_ld_version = x; then
18596 enable_symvers=no
18597fi
18598
18599# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
18600if test $enable_symvers != no; then
18601 echo "$as_me:$LINENO: checking for shared libgcc" >&5
18602echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
18603 ac_save_CFLAGS="$CFLAGS"
18604 CFLAGS=' -lgcc_s'
18605 cat >conftest.$ac_ext <<_ACEOF
18606/* confdefs.h. */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h. */
18611
18612int
18613main ()
18614{
18615return 0;
18616 ;
18617 return 0;
18618}
18619_ACEOF
18620rm -f conftest.$ac_objext conftest$ac_exeext
18621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18622 (eval $ac_link) 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
d349482e
AT
18629 { ac_try='test -z "$ac_c_werror_flag"
18630 || test ! -s conftest.err'
953ff289
DN
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); }; } &&
18636 { ac_try='test -s conftest$ac_exeext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 libgomp_shared_libgcc=yes
18643else
18644 echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647libgomp_shared_libgcc=no
18648fi
18649rm -f conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651 CFLAGS="$ac_save_CFLAGS"
18652 if test $libgomp_shared_libgcc = no; then
18653 cat > conftest.c <<EOF
18654int main (void) { return 0; }
18655EOF
18656 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
18657 -shared -shared-libgcc -o conftest.so \
18658 conftest.c -v 2>&1 >/dev/null \
18659 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
18660 rm -f conftest.c conftest.so
18661 if test x${libgomp_libgcc_s_suffix+set} = xset; then
18662 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
18663 cat >conftest.$ac_ext <<_ACEOF
18664/* confdefs.h. */
18665_ACEOF
18666cat confdefs.h >>conftest.$ac_ext
18667cat >>conftest.$ac_ext <<_ACEOF
18668/* end confdefs.h. */
18669
18670int
18671main ()
18672{
18673return 0;
18674 ;
18675 return 0;
18676}
18677_ACEOF
18678rm -f conftest.$ac_objext conftest$ac_exeext
18679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18680 (eval $ac_link) 2>conftest.er1
18681 ac_status=$?
18682 grep -v '^ *+' conftest.er1 >conftest.err
18683 rm -f conftest.er1
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } &&
d349482e
AT
18687 { ac_try='test -z "$ac_c_werror_flag"
18688 || test ! -s conftest.err'
953ff289
DN
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest$ac_exeext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 libgomp_shared_libgcc=yes
18701else
18702 echo "$as_me: failed program was:" >&5
18703sed 's/^/| /' conftest.$ac_ext >&5
18704
18705fi
18706rm -f conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708 CFLAGS="$ac_save_CFLAGS"
18709 fi
18710 fi
18711 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
18712echo "${ECHO_T}$libgomp_shared_libgcc" >&6
18713fi
18714
18715# For GNU ld, we need at least this version. The format is described in
18716# LIBGOMP_CHECK_LINKER_FEATURES above.
18717libgomp_min_gnu_ld_version=21400
18718# XXXXXXXXXXX libgomp_gnu_ld_version=21390
18719
18720# Check to see if unspecified "yes" value can win, given results above.
18721# Change "yes" into either "no" or a style name.
18722if test $enable_symvers = yes; then
18723 if test $with_gnu_ld = yes &&
18724 test $libgomp_shared_libgcc = yes;
18725 then
18726 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
18727 enable_symvers=gnu
18728 else
18729 # The right tools, the right setup, but too old. Fallbacks?
18730 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
18731echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
18732 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
18733echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
18734 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
18735echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
18736 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
18737echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
18738 if test $libgomp_gnu_ld_version -ge 21200 ; then
18739 # Globbing fix is present, proper block support is not.
18740 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18741echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18742 enable_symvers=no
18743 else
18744 # 2.11 or older.
18745 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18746echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18747 enable_symvers=no
18748 fi
18749 fi
18750 else
18751 # just fail for now
18752 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
18753echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
18754 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
18755echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
18756 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
18757echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
18758 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18759echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18760 enable_symvers=no
18761 fi
18762fi
18763
18764
18765
18766if test $enable_symvers != no; then
18767 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
18768 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
18769else
18770 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
18771 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
18772fi
18773
18774{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
18775echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
18776
18777
a68ab351
JJ
18778if test $enable_symvers = gnu; then
18779
18780cat >>confdefs.h <<\_ACEOF
18781#define LIBGOMP_GNU_SYMBOL_VERSIONING 1
18782_ACEOF
18783
18784fi
18785
953ff289
DN
18786# Get target configury.
18787. ${srcdir}/configure.tgt
18788CFLAGS="$save_CFLAGS $XCFLAGS"
18789
18790# Check for __sync_val_compare_and_swap, but only after the target has
18791# had a chance to set XCFLAGS.
18792
18793 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18794echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
6d26724a 18795if test "${libgomp_cv_have_sync_builtins+set}" = set; then
953ff289
DN
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797else
18798
18799 cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h. */
18805
18806int
18807main ()
18808{
18809int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814rm -f conftest.$ac_objext conftest$ac_exeext
18815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816 (eval $ac_link) 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
d349482e
AT
18823 { ac_try='test -z "$ac_c_werror_flag"
18824 || test ! -s conftest.err'
953ff289
DN
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try='test -s conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
6d26724a 18836 libgomp_cv_have_sync_builtins=yes
953ff289
DN
18837else
18838 echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
6d26724a 18841libgomp_cv_have_sync_builtins=no
953ff289
DN
18842fi
18843rm -f conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18845fi
6d26724a
RW
18846echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18847echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18848 if test $libgomp_cv_have_sync_builtins = yes; then
953ff289
DN
18849
18850cat >>confdefs.h <<\_ACEOF
18851#define HAVE_SYNC_BUILTINS 1
18852_ACEOF
18853
18854 fi
18855
18856XCFLAGS="$XCFLAGS$XPCFLAGS"
18857
18858
18859
18860
18861
18862# Cleanup and exit.
18863CFLAGS="$save_CFLAGS"
18864cat >confcache <<\_ACEOF
18865# This file is a shell script that caches the results of configure
18866# tests run on this system so they can be shared between configure
18867# scripts and configure runs, see configure's option --config-cache.
18868# It is not useful on other systems. If it contains results you don't
18869# want to keep, you may remove or edit it.
18870#
18871# config.status only pays attention to the cache file if you give it
18872# the --recheck option to rerun configure.
18873#
18874# `ac_cv_env_foo' variables (set or unset) will be overridden when
18875# loading this file, other *unset* `ac_cv_foo' will be assigned the
18876# following values.
18877
18878_ACEOF
18879
18880# The following way of writing the cache mishandles newlines in values,
18881# but we know of no workaround that is simple, portable, and efficient.
18882# So, don't put newlines in cache variables' values.
18883# Ultrix sh set writes to stderr and can't be redirected directly,
18884# and sets the high bit in the cache file unless we assign to the vars.
18885{
18886 (set) 2>&1 |
18887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18888 *ac_space=\ *)
18889 # `set' does not quote correctly, so add quotes (double-quote
18890 # substitution turns \\\\ into \\, and sed turns \\ into \).
18891 sed -n \
18892 "s/'/'\\\\''/g;
18893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18894 ;;
18895 *)
18896 # `set' quotes correctly as required by POSIX, so do not add quotes.
18897 sed -n \
18898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18899 ;;
18900 esac;
18901} |
18902 sed '
18903 t clear
18904 : clear
18905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18906 t end
18907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18908 : end' >>confcache
18909if diff $cache_file confcache >/dev/null 2>&1; then :; else
18910 if test -w $cache_file; then
18911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18912 cat confcache >$cache_file
18913 else
18914 echo "not updating unwritable cache $cache_file"
18915 fi
18916fi
18917rm -f confcache
18918
18919if test ${multilib} = yes; then
18920 multilib_arg="--enable-multilib"
18921else
18922 multilib_arg=
18923fi
18924
18925# Set up the set of libraries that we need to link against for libgomp.
192a50ad 18926# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
953ff289
DN
18927# which will force linkage against -lpthread (or equivalent for the system).
18928# That's not 100% ideal, but about the best we can do easily.
18929if test $enable_shared = yes; then
18930 link_gomp="-lgomp %{static: $LIBS}"
18931else
18932 link_gomp="-lgomp $LIBS"
18933fi
18934
18935
18936
18937
18938if test "$ac_cv_fc_compiler_gnu" = yes; then
18939 USE_FORTRAN_TRUE=
18940 USE_FORTRAN_FALSE='#'
18941else
18942 USE_FORTRAN_TRUE='#'
18943 USE_FORTRAN_FALSE=
18944fi
18945
18946
03b8fe49
PB
18947# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18948# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18949# the underscore here and update the PREREQ. If it doesn't, then we'll
18950# need to copy this macro to our acinclude.m4.
18951save_CFLAGS="$CFLAGS"
18952for i in $config_path; do
18953 if test -f $srcdir/config/$i/omp-lock.h; then
a68ab351 18954 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
03b8fe49
PB
18955 break
18956 fi
18957done
18958
18959if test "$cross_compiling" = yes; then
18960 # Depending upon the size, compute the lo and hi bounds.
18961cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967
18968int
18969main ()
18970{
18971static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18972test_array [0] = 0
18973
18974 ;
18975 return 0;
18976}
18977_ACEOF
18978rm -f conftest.$ac_objext
18979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18980 (eval $ac_compile) 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
d349482e
AT
18987 { ac_try='test -z "$ac_c_werror_flag"
18988 || test ! -s conftest.err'
03b8fe49
PB
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest.$ac_objext'
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_lo=0 ac_mid=0
19001 while :; do
19002 cat >conftest.$ac_ext <<_ACEOF
19003/* confdefs.h. */
19004_ACEOF
19005cat confdefs.h >>conftest.$ac_ext
19006cat >>conftest.$ac_ext <<_ACEOF
19007/* end confdefs.h. */
19008
19009int
19010main ()
19011{
19012static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
19013test_array [0] = 0
19014
19015 ;
19016 return 0;
19017}
19018_ACEOF
19019rm -f conftest.$ac_objext
19020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
d349482e
AT
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
03b8fe49
PB
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_hi=$ac_mid; break
19042else
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046ac_lo=`expr $ac_mid + 1`
19047 if test $ac_lo -le $ac_mid; then
19048 ac_lo= ac_hi=
19049 break
19050 fi
19051 ac_mid=`expr 2 '*' $ac_mid + 1`
19052fi
19053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19054 done
19055else
19056 echo "$as_me: failed program was:" >&5
19057sed 's/^/| /' conftest.$ac_ext >&5
19058
19059cat >conftest.$ac_ext <<_ACEOF
19060/* confdefs.h. */
19061_ACEOF
19062cat confdefs.h >>conftest.$ac_ext
19063cat >>conftest.$ac_ext <<_ACEOF
19064/* end confdefs.h. */
19065
19066int
19067main ()
19068{
19069static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
19070test_array [0] = 0
19071
19072 ;
19073 return 0;
19074}
19075_ACEOF
19076rm -f conftest.$ac_objext
19077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078 (eval $ac_compile) 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
d349482e
AT
19085 { ac_try='test -z "$ac_c_werror_flag"
19086 || test ! -s conftest.err'
03b8fe49
PB
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest.$ac_objext'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_hi=-1 ac_mid=-1
19099 while :; do
19100 cat >conftest.$ac_ext <<_ACEOF
19101/* confdefs.h. */
19102_ACEOF
19103cat confdefs.h >>conftest.$ac_ext
19104cat >>conftest.$ac_ext <<_ACEOF
19105/* end confdefs.h. */
19106
19107int
19108main ()
19109{
19110static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
19111test_array [0] = 0
19112
19113 ;
19114 return 0;
19115}
19116_ACEOF
19117rm -f conftest.$ac_objext
19118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19119 (eval $ac_compile) 2>conftest.er1
19120 ac_status=$?
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
d349482e
AT
19126 { ac_try='test -z "$ac_c_werror_flag"
19127 || test ! -s conftest.err'
03b8fe49
PB
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } &&
19133 { ac_try='test -s conftest.$ac_objext'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ac_lo=$ac_mid; break
19140else
19141 echo "$as_me: failed program was:" >&5
19142sed 's/^/| /' conftest.$ac_ext >&5
19143
19144ac_hi=`expr '(' $ac_mid ')' - 1`
19145 if test $ac_mid -le $ac_hi; then
19146 ac_lo= ac_hi=
19147 break
19148 fi
19149 ac_mid=`expr 2 '*' $ac_mid`
19150fi
19151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19152 done
19153else
19154 echo "$as_me: failed program was:" >&5
19155sed 's/^/| /' conftest.$ac_ext >&5
19156
19157ac_lo= ac_hi=
19158fi
19159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19160fi
19161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19162# Binary search between lo and hi bounds.
19163while test "x$ac_lo" != "x$ac_hi"; do
19164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19165 cat >conftest.$ac_ext <<_ACEOF
19166/* confdefs.h. */
19167_ACEOF
19168cat confdefs.h >>conftest.$ac_ext
19169cat >>conftest.$ac_ext <<_ACEOF
19170/* end confdefs.h. */
19171
19172int
19173main ()
19174{
19175static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
19176test_array [0] = 0
19177
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19184 (eval $ac_compile) 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } &&
d349482e
AT
19191 { ac_try='test -z "$ac_c_werror_flag"
19192 || test ! -s conftest.err'
03b8fe49
PB
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_hi=$ac_mid
19205else
19206 echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209ac_lo=`expr '(' $ac_mid ')' + 1`
19210fi
19211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19212done
19213case $ac_lo in
19214?*) OMP_LOCK_SIZE=$ac_lo;;
19215'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
19216echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
19217 { (exit 1); exit 1; }; } ;;
19218esac
19219else
19220 if test "$cross_compiling" = yes; then
18c04407
RW
19221 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19222echo "$as_me: error: in \`$ac_pwd':" >&2;}
19223{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
19224See \`config.log' for more details." >&5
19225echo "$as_me: error: cannot run test program while cross compiling
19226See \`config.log' for more details." >&2;}
18c04407 19227 { (exit 1); exit 1; }; }; }
03b8fe49
PB
19228else
19229 cat >conftest.$ac_ext <<_ACEOF
19230/* confdefs.h. */
19231_ACEOF
19232cat confdefs.h >>conftest.$ac_ext
19233cat >>conftest.$ac_ext <<_ACEOF
19234/* end confdefs.h. */
19235
19236long longval () { return sizeof (omp_lock_t); }
19237unsigned long ulongval () { return sizeof (omp_lock_t); }
19238#include <stdio.h>
19239#include <stdlib.h>
19240int
19241main ()
19242{
19243
19244 FILE *f = fopen ("conftest.val", "w");
19245 if (! f)
19246 exit (1);
19247 if ((sizeof (omp_lock_t)) < 0)
19248 {
19249 long i = longval ();
19250 if (i != (sizeof (omp_lock_t)))
19251 exit (1);
19252 fprintf (f, "%ld\n", i);
19253 }
19254 else
19255 {
19256 unsigned long i = ulongval ();
19257 if (i != (sizeof (omp_lock_t)))
19258 exit (1);
19259 fprintf (f, "%lu\n", i);
19260 }
19261 exit (ferror (f) || fclose (f) != 0);
19262
19263 ;
19264 return 0;
19265}
19266_ACEOF
19267rm -f conftest$ac_exeext
19268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19269 (eval $ac_link) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 OMP_LOCK_SIZE=`cat conftest.val`
19279else
19280 echo "$as_me: program exited with status $ac_status" >&5
19281echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284( exit $ac_status )
19285{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
19286echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
19287 { (exit 1); exit 1; }; }
19288fi
19289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19290fi
19291fi
19292rm -f conftest.val
19293if test "$cross_compiling" = yes; then
19294 # Depending upon the size, compute the lo and hi bounds.
19295cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h. */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
19300/* end confdefs.h. */
19301
19302int
19303main ()
19304{
19305static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
19306test_array [0] = 0
19307
19308 ;
19309 return 0;
19310}
19311_ACEOF
19312rm -f conftest.$ac_objext
19313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19314 (eval $ac_compile) 2>conftest.er1
19315 ac_status=$?
19316 grep -v '^ *+' conftest.er1 >conftest.err
19317 rm -f conftest.er1
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
d349482e
AT
19321 { ac_try='test -z "$ac_c_werror_flag"
19322 || test ! -s conftest.err'
03b8fe49
PB
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; } &&
19328 { ac_try='test -s conftest.$ac_objext'
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_lo=0 ac_mid=0
19335 while :; do
19336 cat >conftest.$ac_ext <<_ACEOF
19337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
19342
19343int
19344main ()
19345{
19346static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
19347test_array [0] = 0
19348
19349 ;
19350 return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
d349482e
AT
19362 { ac_try='test -z "$ac_c_werror_flag"
19363 || test ! -s conftest.err'
03b8fe49
PB
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 ac_hi=$ac_mid; break
19376else
19377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380ac_lo=`expr $ac_mid + 1`
19381 if test $ac_lo -le $ac_mid; then
19382 ac_lo= ac_hi=
19383 break
19384 fi
19385 ac_mid=`expr 2 '*' $ac_mid + 1`
19386fi
19387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388 done
19389else
19390 echo "$as_me: failed program was:" >&5
19391sed 's/^/| /' conftest.$ac_ext >&5
19392
19393cat >conftest.$ac_ext <<_ACEOF
19394/* confdefs.h. */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h. */
19399
19400int
19401main ()
19402{
19403static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
19404test_array [0] = 0
19405
19406 ;
19407 return 0;
19408}
19409_ACEOF
19410rm -f conftest.$ac_objext
19411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412 (eval $ac_compile) 2>conftest.er1
19413 ac_status=$?
19414 grep -v '^ *+' conftest.er1 >conftest.err
19415 rm -f conftest.er1
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
d349482e
AT
19419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
03b8fe49
PB
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest.$ac_objext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_hi=-1 ac_mid=-1
19433 while :; do
19434 cat >conftest.$ac_ext <<_ACEOF
19435/* confdefs.h. */
19436_ACEOF
19437cat confdefs.h >>conftest.$ac_ext
19438cat >>conftest.$ac_ext <<_ACEOF
19439/* end confdefs.h. */
19440
19441int
19442main ()
19443{
19444static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
19445test_array [0] = 0
19446
19447 ;
19448 return 0;
19449}
19450_ACEOF
19451rm -f conftest.$ac_objext
19452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19453 (eval $ac_compile) 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
d349482e
AT
19460 { ac_try='test -z "$ac_c_werror_flag"
19461 || test ! -s conftest.err'
03b8fe49
PB
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; } &&
19467 { ac_try='test -s conftest.$ac_objext'
19468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469 (eval $ac_try) 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_lo=$ac_mid; break
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478ac_hi=`expr '(' $ac_mid ')' - 1`
19479 if test $ac_mid -le $ac_hi; then
19480 ac_lo= ac_hi=
19481 break
19482 fi
19483 ac_mid=`expr 2 '*' $ac_mid`
19484fi
19485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19486 done
19487else
19488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491ac_lo= ac_hi=
19492fi
19493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494fi
19495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19496# Binary search between lo and hi bounds.
19497while test "x$ac_lo" != "x$ac_hi"; do
19498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19499 cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
19505
19506int
19507main ()
19508{
19509static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
19510test_array [0] = 0
19511
19512 ;
19513 return 0;
19514}
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
d349482e
AT
19525 { ac_try='test -z "$ac_c_werror_flag"
19526 || test ! -s conftest.err'
03b8fe49
PB
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_hi=$ac_mid
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543ac_lo=`expr '(' $ac_mid ')' + 1`
19544fi
19545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19546done
19547case $ac_lo in
19548?*) OMP_LOCK_ALIGN=$ac_lo;;
19549'') ;;
19550esac
19551else
19552 if test "$cross_compiling" = yes; then
18c04407
RW
19553 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19554echo "$as_me: error: in \`$ac_pwd':" >&2;}
19555{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
19556See \`config.log' for more details." >&5
19557echo "$as_me: error: cannot run test program while cross compiling
19558See \`config.log' for more details." >&2;}
18c04407 19559 { (exit 1); exit 1; }; }; }
03b8fe49
PB
19560else
19561 cat >conftest.$ac_ext <<_ACEOF
19562/* confdefs.h. */
19563_ACEOF
19564cat confdefs.h >>conftest.$ac_ext
19565cat >>conftest.$ac_ext <<_ACEOF
19566/* end confdefs.h. */
19567
19568long longval () { return __alignof (omp_lock_t); }
19569unsigned long ulongval () { return __alignof (omp_lock_t); }
19570#include <stdio.h>
19571#include <stdlib.h>
19572int
19573main ()
19574{
19575
19576 FILE *f = fopen ("conftest.val", "w");
19577 if (! f)
19578 exit (1);
19579 if ((__alignof (omp_lock_t)) < 0)
19580 {
19581 long i = longval ();
19582 if (i != (__alignof (omp_lock_t)))
19583 exit (1);
19584 fprintf (f, "%ld\n", i);
19585 }
19586 else
19587 {
19588 unsigned long i = ulongval ();
19589 if (i != (__alignof (omp_lock_t)))
19590 exit (1);
19591 fprintf (f, "%lu\n", i);
19592 }
19593 exit (ferror (f) || fclose (f) != 0);
19594
19595 ;
19596 return 0;
19597}
19598_ACEOF
19599rm -f conftest$ac_exeext
19600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19601 (eval $ac_link) 2>&5
19602 ac_status=$?
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 OMP_LOCK_ALIGN=`cat conftest.val`
19611else
19612 echo "$as_me: program exited with status $ac_status" >&5
19613echo "$as_me: failed program was:" >&5
19614sed 's/^/| /' conftest.$ac_ext >&5
19615
19616fi
19617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19618fi
19619fi
19620rm -f conftest.val
19621if test "$cross_compiling" = yes; then
19622 # Depending upon the size, compute the lo and hi bounds.
19623cat >conftest.$ac_ext <<_ACEOF
19624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
19629
19630int
19631main ()
19632{
19633static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
19634test_array [0] = 0
19635
19636 ;
19637 return 0;
19638}
19639_ACEOF
19640rm -f conftest.$ac_objext
19641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } &&
d349482e
AT
19649 { ac_try='test -z "$ac_c_werror_flag"
19650 || test ! -s conftest.err'
03b8fe49
PB
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_lo=0 ac_mid=0
19663 while :; do
19664 cat >conftest.$ac_ext <<_ACEOF
19665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h. */
19670
19671int
19672main ()
19673{
19674static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19675test_array [0] = 0
19676
19677 ;
19678 return 0;
19679}
19680_ACEOF
19681rm -f conftest.$ac_objext
19682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19683 (eval $ac_compile) 2>conftest.er1
19684 ac_status=$?
19685 grep -v '^ *+' conftest.er1 >conftest.err
19686 rm -f conftest.er1
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
d349482e
AT
19690 { ac_try='test -z "$ac_c_werror_flag"
19691 || test ! -s conftest.err'
03b8fe49
PB
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_hi=$ac_mid; break
19704else
19705 echo "$as_me: failed program was:" >&5
19706sed 's/^/| /' conftest.$ac_ext >&5
19707
19708ac_lo=`expr $ac_mid + 1`
19709 if test $ac_lo -le $ac_mid; then
19710 ac_lo= ac_hi=
19711 break
19712 fi
19713 ac_mid=`expr 2 '*' $ac_mid + 1`
19714fi
19715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 done
19717else
19718 echo "$as_me: failed program was:" >&5
19719sed 's/^/| /' conftest.$ac_ext >&5
19720
19721cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
19727
19728int
19729main ()
19730{
19731static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
19732test_array [0] = 0
19733
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
d349482e
AT
19747 { ac_try='test -z "$ac_c_werror_flag"
19748 || test ! -s conftest.err'
03b8fe49
PB
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; } &&
19754 { ac_try='test -s conftest.$ac_objext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_hi=-1 ac_mid=-1
19761 while :; do
19762 cat >conftest.$ac_ext <<_ACEOF
19763/* confdefs.h. */
19764_ACEOF
19765cat confdefs.h >>conftest.$ac_ext
19766cat >>conftest.$ac_ext <<_ACEOF
19767/* end confdefs.h. */
19768
19769int
19770main ()
19771{
19772static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
19773test_array [0] = 0
19774
19775 ;
19776 return 0;
19777}
19778_ACEOF
19779rm -f conftest.$ac_objext
19780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19781 (eval $ac_compile) 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
d349482e
AT
19788 { ac_try='test -z "$ac_c_werror_flag"
19789 || test ! -s conftest.err'
03b8fe49
PB
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest.$ac_objext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_lo=$ac_mid; break
19802else
19803 echo "$as_me: failed program was:" >&5
19804sed 's/^/| /' conftest.$ac_ext >&5
19805
19806ac_hi=`expr '(' $ac_mid ')' - 1`
19807 if test $ac_mid -le $ac_hi; then
19808 ac_lo= ac_hi=
19809 break
19810 fi
19811 ac_mid=`expr 2 '*' $ac_mid`
19812fi
19813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19814 done
19815else
19816 echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819ac_lo= ac_hi=
19820fi
19821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822fi
19823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19824# Binary search between lo and hi bounds.
19825while test "x$ac_lo" != "x$ac_hi"; do
19826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19827 cat >conftest.$ac_ext <<_ACEOF
19828/* confdefs.h. */
19829_ACEOF
19830cat confdefs.h >>conftest.$ac_ext
19831cat >>conftest.$ac_ext <<_ACEOF
19832/* end confdefs.h. */
19833
19834int
19835main ()
19836{
19837static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19838test_array [0] = 0
19839
19840 ;
19841 return 0;
19842}
19843_ACEOF
19844rm -f conftest.$ac_objext
19845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19846 (eval $ac_compile) 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
d349482e
AT
19853 { ac_try='test -z "$ac_c_werror_flag"
19854 || test ! -s conftest.err'
03b8fe49
PB
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; } &&
19860 { ac_try='test -s conftest.$ac_objext'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_hi=$ac_mid
19867else
19868 echo "$as_me: failed program was:" >&5
19869sed 's/^/| /' conftest.$ac_ext >&5
19870
19871ac_lo=`expr '(' $ac_mid ')' + 1`
19872fi
19873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19874done
19875case $ac_lo in
19876?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19877'') ;;
19878esac
19879else
19880 if test "$cross_compiling" = yes; then
18c04407
RW
19881 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19882echo "$as_me: error: in \`$ac_pwd':" >&2;}
19883{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
19884See \`config.log' for more details." >&5
19885echo "$as_me: error: cannot run test program while cross compiling
19886See \`config.log' for more details." >&2;}
18c04407 19887 { (exit 1); exit 1; }; }; }
03b8fe49
PB
19888else
19889 cat >conftest.$ac_ext <<_ACEOF
19890/* confdefs.h. */
19891_ACEOF
19892cat confdefs.h >>conftest.$ac_ext
19893cat >>conftest.$ac_ext <<_ACEOF
19894/* end confdefs.h. */
19895
19896long longval () { return sizeof (omp_nest_lock_t); }
19897unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19898#include <stdio.h>
19899#include <stdlib.h>
19900int
19901main ()
19902{
19903
19904 FILE *f = fopen ("conftest.val", "w");
19905 if (! f)
19906 exit (1);
19907 if ((sizeof (omp_nest_lock_t)) < 0)
19908 {
19909 long i = longval ();
19910 if (i != (sizeof (omp_nest_lock_t)))
19911 exit (1);
19912 fprintf (f, "%ld\n", i);
19913 }
19914 else
19915 {
19916 unsigned long i = ulongval ();
19917 if (i != (sizeof (omp_nest_lock_t)))
19918 exit (1);
19919 fprintf (f, "%lu\n", i);
19920 }
19921 exit (ferror (f) || fclose (f) != 0);
19922
19923 ;
19924 return 0;
19925}
19926_ACEOF
19927rm -f conftest$ac_exeext
19928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19939else
19940 echo "$as_me: program exited with status $ac_status" >&5
19941echo "$as_me: failed program was:" >&5
19942sed 's/^/| /' conftest.$ac_ext >&5
19943
19944fi
19945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19946fi
19947fi
19948rm -f conftest.val
19949if test "$cross_compiling" = yes; then
19950 # Depending upon the size, compute the lo and hi bounds.
19951cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957
19958int
19959main ()
19960{
19961static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19962test_array [0] = 0
19963
19964 ;
19965 return 0;
19966}
19967_ACEOF
19968rm -f conftest.$ac_objext
19969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19970 (eval $ac_compile) 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
d349482e
AT
19977 { ac_try='test -z "$ac_c_werror_flag"
19978 || test ! -s conftest.err'
03b8fe49
PB
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_lo=0 ac_mid=0
19991 while :; do
19992 cat >conftest.$ac_ext <<_ACEOF
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h. */
19998
19999int
20000main ()
20001{
20002static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
20003test_array [0] = 0
20004
20005 ;
20006 return 0;
20007}
20008_ACEOF
20009rm -f conftest.$ac_objext
20010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
d349482e
AT
20018 { ac_try='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
03b8fe49
PB
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest.$ac_objext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_hi=$ac_mid; break
20032else
20033 echo "$as_me: failed program was:" >&5
20034sed 's/^/| /' conftest.$ac_ext >&5
20035
20036ac_lo=`expr $ac_mid + 1`
20037 if test $ac_lo -le $ac_mid; then
20038 ac_lo= ac_hi=
20039 break
20040 fi
20041 ac_mid=`expr 2 '*' $ac_mid + 1`
20042fi
20043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20044 done
20045else
20046 echo "$as_me: failed program was:" >&5
20047sed 's/^/| /' conftest.$ac_ext >&5
20048
20049cat >conftest.$ac_ext <<_ACEOF
20050/* confdefs.h. */
20051_ACEOF
20052cat confdefs.h >>conftest.$ac_ext
20053cat >>conftest.$ac_ext <<_ACEOF
20054/* end confdefs.h. */
20055
20056int
20057main ()
20058{
20059static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
20060test_array [0] = 0
20061
20062 ;
20063 return 0;
20064}
20065_ACEOF
20066rm -f conftest.$ac_objext
20067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
d349482e
AT
20075 { ac_try='test -z "$ac_c_werror_flag"
20076 || test ! -s conftest.err'
03b8fe49
PB
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20088 ac_hi=-1 ac_mid=-1
20089 while :; do
20090 cat >conftest.$ac_ext <<_ACEOF
20091/* confdefs.h. */
20092_ACEOF
20093cat confdefs.h >>conftest.$ac_ext
20094cat >>conftest.$ac_ext <<_ACEOF
20095/* end confdefs.h. */
20096
20097int
20098main ()
20099{
20100static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
20101test_array [0] = 0
20102
20103 ;
20104 return 0;
20105}
20106_ACEOF
20107rm -f conftest.$ac_objext
20108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
d349482e
AT
20116 { ac_try='test -z "$ac_c_werror_flag"
20117 || test ! -s conftest.err'
03b8fe49
PB
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; } &&
20123 { ac_try='test -s conftest.$ac_objext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 ac_lo=$ac_mid; break
20130else
20131 echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134ac_hi=`expr '(' $ac_mid ')' - 1`
20135 if test $ac_mid -le $ac_hi; then
20136 ac_lo= ac_hi=
20137 break
20138 fi
20139 ac_mid=`expr 2 '*' $ac_mid`
20140fi
20141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20142 done
20143else
20144 echo "$as_me: failed program was:" >&5
20145sed 's/^/| /' conftest.$ac_ext >&5
20146
20147ac_lo= ac_hi=
20148fi
20149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20150fi
20151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20152# Binary search between lo and hi bounds.
20153while test "x$ac_lo" != "x$ac_hi"; do
20154 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20155 cat >conftest.$ac_ext <<_ACEOF
20156/* confdefs.h. */
20157_ACEOF
20158cat confdefs.h >>conftest.$ac_ext
20159cat >>conftest.$ac_ext <<_ACEOF
20160/* end confdefs.h. */
20161
20162int
20163main ()
20164{
20165static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
20166test_array [0] = 0
20167
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172rm -f conftest.$ac_objext
20173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174 (eval $ac_compile) 2>conftest.er1
20175 ac_status=$?
20176 grep -v '^ *+' conftest.er1 >conftest.err
20177 rm -f conftest.er1
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
d349482e
AT
20181 { ac_try='test -z "$ac_c_werror_flag"
20182 || test ! -s conftest.err'
03b8fe49
PB
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest.$ac_objext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 ac_hi=$ac_mid
20195else
20196 echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199ac_lo=`expr '(' $ac_mid ')' + 1`
20200fi
20201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20202done
20203case $ac_lo in
20204?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
20205'') ;;
20206esac
20207else
20208 if test "$cross_compiling" = yes; then
18c04407
RW
20209 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20210echo "$as_me: error: in \`$ac_pwd':" >&2;}
20211{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d349482e
AT
20212See \`config.log' for more details." >&5
20213echo "$as_me: error: cannot run test program while cross compiling
20214See \`config.log' for more details." >&2;}
18c04407 20215 { (exit 1); exit 1; }; }; }
03b8fe49
PB
20216else
20217 cat >conftest.$ac_ext <<_ACEOF
20218/* confdefs.h. */
20219_ACEOF
20220cat confdefs.h >>conftest.$ac_ext
20221cat >>conftest.$ac_ext <<_ACEOF
20222/* end confdefs.h. */
20223
20224long longval () { return __alignof (omp_nest_lock_t); }
20225unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
20226#include <stdio.h>
20227#include <stdlib.h>
20228int
20229main ()
20230{
20231
20232 FILE *f = fopen ("conftest.val", "w");
20233 if (! f)
20234 exit (1);
20235 if ((__alignof (omp_nest_lock_t)) < 0)
20236 {
20237 long i = longval ();
20238 if (i != (__alignof (omp_nest_lock_t)))
20239 exit (1);
20240 fprintf (f, "%ld\n", i);
20241 }
20242 else
20243 {
20244 unsigned long i = ulongval ();
20245 if (i != (__alignof (omp_nest_lock_t)))
20246 exit (1);
20247 fprintf (f, "%lu\n", i);
20248 }
20249 exit (ferror (f) || fclose (f) != 0);
20250
20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest$ac_exeext
20256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20257 (eval $ac_link) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; }; then
20266 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
20267else
20268 echo "$as_me: program exited with status $ac_status" >&5
20269echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272fi
20273rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20274fi
20275fi
20276rm -f conftest.val
a68ab351
JJ
20277if test "$cross_compiling" = yes; then
20278 # Depending upon the size, compute the lo and hi bounds.
20279cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
03b8fe49 20285
a68ab351
JJ
20286int
20287main ()
20288{
20289static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
20290test_array [0] = 0
20291
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag"
20306 || test ! -s conftest.err'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_lo=0 ac_mid=0
20319 while :; do
20320 cat >conftest.$ac_ext <<_ACEOF
20321/* confdefs.h. */
20322_ACEOF
20323cat confdefs.h >>conftest.$ac_ext
20324cat >>conftest.$ac_ext <<_ACEOF
20325/* end confdefs.h. */
20326
20327int
20328main ()
20329{
20330static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
20331test_array [0] = 0
20332
20333 ;
20334 return 0;
20335}
20336_ACEOF
20337rm -f conftest.$ac_objext
20338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20339 (eval $ac_compile) 2>conftest.er1
20340 ac_status=$?
20341 grep -v '^ *+' conftest.er1 >conftest.err
20342 rm -f conftest.er1
20343 cat conftest.err >&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try='test -z "$ac_c_werror_flag"
20347 || test ! -s conftest.err'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try='test -s conftest.$ac_objext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_hi=$ac_mid; break
20360else
20361 echo "$as_me: failed program was:" >&5
20362sed 's/^/| /' conftest.$ac_ext >&5
20363
20364ac_lo=`expr $ac_mid + 1`
20365 if test $ac_lo -le $ac_mid; then
20366 ac_lo= ac_hi=
20367 break
20368 fi
20369 ac_mid=`expr 2 '*' $ac_mid + 1`
03b8fe49 20370fi
a68ab351
JJ
20371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372 done
20373else
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377cat >conftest.$ac_ext <<_ACEOF
20378/* confdefs.h. */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h. */
20383
20384int
20385main ()
20386{
20387static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
20388test_array [0] = 0
20389
20390 ;
20391 return 0;
20392}
20393_ACEOF
20394rm -f conftest.$ac_objext
20395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20396 (eval $ac_compile) 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest.$ac_objext'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_hi=-1 ac_mid=-1
20417 while :; do
20418 cat >conftest.$ac_ext <<_ACEOF
20419/* confdefs.h. */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h. */
20424
20425int
20426main ()
20427{
20428static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
20429test_array [0] = 0
20430
20431 ;
20432 return 0;
20433}
20434_ACEOF
20435rm -f conftest.$ac_objext
20436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437 (eval $ac_compile) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_lo=$ac_mid; break
20458else
20459 echo "$as_me: failed program was:" >&5
20460sed 's/^/| /' conftest.$ac_ext >&5
20461
20462ac_hi=`expr '(' $ac_mid ')' - 1`
20463 if test $ac_mid -le $ac_hi; then
20464 ac_lo= ac_hi=
20465 break
20466 fi
20467 ac_mid=`expr 2 '*' $ac_mid`
20468fi
20469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20470 done
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_lo= ac_hi=
20476fi
20477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
03b8fe49 20478fi
a68ab351
JJ
20479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20480# Binary search between lo and hi bounds.
20481while test "x$ac_lo" != "x$ac_hi"; do
20482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20483 cat >conftest.$ac_ext <<_ACEOF
20484/* confdefs.h. */
20485_ACEOF
20486cat confdefs.h >>conftest.$ac_ext
20487cat >>conftest.$ac_ext <<_ACEOF
20488/* end confdefs.h. */
20489
20490int
20491main ()
20492{
20493static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
20494test_array [0] = 0
20495
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
20501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502 (eval $ac_compile) 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest.$ac_objext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_hi=$ac_mid
20523else
20524 echo "$as_me: failed program was:" >&5
20525sed 's/^/| /' conftest.$ac_ext >&5
20526
20527ac_lo=`expr '(' $ac_mid ')' + 1`
20528fi
20529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20530done
20531case $ac_lo in
20532?*) OMP_LOCK_25_SIZE=$ac_lo;;
20533'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
20534echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
20535 { (exit 1); exit 1; }; } ;;
20536esac
20537else
20538 if test "$cross_compiling" = yes; then
18c04407
RW
20539 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20540echo "$as_me: error: in \`$ac_pwd':" >&2;}
20541{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
20542See \`config.log' for more details." >&5
20543echo "$as_me: error: cannot run test program while cross compiling
20544See \`config.log' for more details." >&2;}
18c04407 20545 { (exit 1); exit 1; }; }; }
a68ab351
JJ
20546else
20547 cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
20553
20554long longval () { return sizeof (omp_lock_25_t); }
20555unsigned long ulongval () { return sizeof (omp_lock_25_t); }
20556#include <stdio.h>
20557#include <stdlib.h>
20558int
20559main ()
20560{
20561
20562 FILE *f = fopen ("conftest.val", "w");
20563 if (! f)
20564 exit (1);
20565 if ((sizeof (omp_lock_25_t)) < 0)
20566 {
20567 long i = longval ();
20568 if (i != (sizeof (omp_lock_25_t)))
20569 exit (1);
20570 fprintf (f, "%ld\n", i);
20571 }
20572 else
20573 {
20574 unsigned long i = ulongval ();
20575 if (i != (sizeof (omp_lock_25_t)))
20576 exit (1);
20577 fprintf (f, "%lu\n", i);
20578 }
20579 exit (ferror (f) || fclose (f) != 0);
20580
20581 ;
20582 return 0;
20583}
20584_ACEOF
20585rm -f conftest$ac_exeext
20586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20587 (eval $ac_link) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 OMP_LOCK_25_SIZE=`cat conftest.val`
20597else
20598 echo "$as_me: program exited with status $ac_status" >&5
20599echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602( exit $ac_status )
20603{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
20604echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
20605 { (exit 1); exit 1; }; }
20606fi
20607rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20608fi
20609fi
20610rm -f conftest.val
20611if test "$cross_compiling" = yes; then
20612 # Depending upon the size, compute the lo and hi bounds.
20613cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h. */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h. */
20619
20620int
20621main ()
20622{
20623static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
20624test_array [0] = 0
20625
20626 ;
20627 return 0;
20628}
20629_ACEOF
20630rm -f conftest.$ac_objext
20631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632 (eval $ac_compile) 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try='test -z "$ac_c_werror_flag"
20640 || test ! -s conftest.err'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest.$ac_objext'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 ac_lo=0 ac_mid=0
20653 while :; do
20654 cat >conftest.$ac_ext <<_ACEOF
20655/* confdefs.h. */
20656_ACEOF
20657cat confdefs.h >>conftest.$ac_ext
20658cat >>conftest.$ac_ext <<_ACEOF
20659/* end confdefs.h. */
20660
20661int
20662main ()
20663{
20664static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20665test_array [0] = 0
20666
20667 ;
20668 return 0;
20669}
20670_ACEOF
20671rm -f conftest.$ac_objext
20672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20673 (eval $ac_compile) 2>conftest.er1
20674 ac_status=$?
20675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } &&
20680 { ac_try='test -z "$ac_c_werror_flag"
20681 || test ! -s conftest.err'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; } &&
20687 { ac_try='test -s conftest.$ac_objext'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20693 ac_hi=$ac_mid; break
20694else
20695 echo "$as_me: failed program was:" >&5
20696sed 's/^/| /' conftest.$ac_ext >&5
20697
20698ac_lo=`expr $ac_mid + 1`
20699 if test $ac_lo -le $ac_mid; then
20700 ac_lo= ac_hi=
20701 break
20702 fi
20703 ac_mid=`expr 2 '*' $ac_mid + 1`
20704fi
20705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20706 done
20707else
20708 echo "$as_me: failed program was:" >&5
20709sed 's/^/| /' conftest.$ac_ext >&5
20710
20711cat >conftest.$ac_ext <<_ACEOF
20712/* confdefs.h. */
20713_ACEOF
20714cat confdefs.h >>conftest.$ac_ext
20715cat >>conftest.$ac_ext <<_ACEOF
20716/* end confdefs.h. */
20717
20718int
20719main ()
20720{
20721static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
20722test_array [0] = 0
20723
20724 ;
20725 return 0;
20726}
20727_ACEOF
20728rm -f conftest.$ac_objext
20729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20730 (eval $ac_compile) 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } &&
20737 { ac_try='test -z "$ac_c_werror_flag"
20738 || test ! -s conftest.err'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; } &&
20744 { ac_try='test -s conftest.$ac_objext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_hi=-1 ac_mid=-1
20751 while :; do
20752 cat >conftest.$ac_ext <<_ACEOF
20753/* confdefs.h. */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h. */
20758
20759int
20760main ()
20761{
20762static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
20763test_array [0] = 0
20764
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769rm -f conftest.$ac_objext
20770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20771 (eval $ac_compile) 2>conftest.er1
20772 ac_status=$?
20773 grep -v '^ *+' conftest.er1 >conftest.err
20774 rm -f conftest.er1
20775 cat conftest.err >&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } &&
20778 { ac_try='test -z "$ac_c_werror_flag"
20779 || test ! -s conftest.err'
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; } &&
20785 { ac_try='test -s conftest.$ac_objext'
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 ac_lo=$ac_mid; break
20792else
20793 echo "$as_me: failed program was:" >&5
20794sed 's/^/| /' conftest.$ac_ext >&5
20795
20796ac_hi=`expr '(' $ac_mid ')' - 1`
20797 if test $ac_mid -le $ac_hi; then
20798 ac_lo= ac_hi=
20799 break
20800 fi
20801 ac_mid=`expr 2 '*' $ac_mid`
20802fi
20803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20804 done
20805else
20806 echo "$as_me: failed program was:" >&5
20807sed 's/^/| /' conftest.$ac_ext >&5
20808
20809ac_lo= ac_hi=
20810fi
20811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20812fi
20813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20814# Binary search between lo and hi bounds.
20815while test "x$ac_lo" != "x$ac_hi"; do
20816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20817 cat >conftest.$ac_ext <<_ACEOF
20818/* confdefs.h. */
20819_ACEOF
20820cat confdefs.h >>conftest.$ac_ext
20821cat >>conftest.$ac_ext <<_ACEOF
20822/* end confdefs.h. */
20823
20824int
20825main ()
20826{
20827static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20828test_array [0] = 0
20829
20830 ;
20831 return 0;
20832}
20833_ACEOF
20834rm -f conftest.$ac_objext
20835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20836 (eval $ac_compile) 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } &&
20843 { ac_try='test -z "$ac_c_werror_flag"
20844 || test ! -s conftest.err'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_hi=$ac_mid
20857else
20858 echo "$as_me: failed program was:" >&5
20859sed 's/^/| /' conftest.$ac_ext >&5
20860
20861ac_lo=`expr '(' $ac_mid ')' + 1`
20862fi
20863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864done
20865case $ac_lo in
20866?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20867'') ;;
20868esac
20869else
20870 if test "$cross_compiling" = yes; then
18c04407
RW
20871 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20872echo "$as_me: error: in \`$ac_pwd':" >&2;}
20873{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
20874See \`config.log' for more details." >&5
20875echo "$as_me: error: cannot run test program while cross compiling
20876See \`config.log' for more details." >&2;}
18c04407 20877 { (exit 1); exit 1; }; }; }
a68ab351
JJ
20878else
20879 cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885
20886long longval () { return __alignof (omp_lock_25_t); }
20887unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20888#include <stdio.h>
20889#include <stdlib.h>
20890int
20891main ()
20892{
20893
20894 FILE *f = fopen ("conftest.val", "w");
20895 if (! f)
20896 exit (1);
20897 if ((__alignof (omp_lock_25_t)) < 0)
20898 {
20899 long i = longval ();
20900 if (i != (__alignof (omp_lock_25_t)))
20901 exit (1);
20902 fprintf (f, "%ld\n", i);
20903 }
20904 else
20905 {
20906 unsigned long i = ulongval ();
20907 if (i != (__alignof (omp_lock_25_t)))
20908 exit (1);
20909 fprintf (f, "%lu\n", i);
20910 }
20911 exit (ferror (f) || fclose (f) != 0);
20912
20913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest$ac_exeext
20918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20919 (eval $ac_link) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 OMP_LOCK_25_ALIGN=`cat conftest.val`
20929else
20930 echo "$as_me: program exited with status $ac_status" >&5
20931echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934fi
20935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20936fi
20937fi
20938rm -f conftest.val
20939if test "$cross_compiling" = yes; then
20940 # Depending upon the size, compute the lo and hi bounds.
20941cat >conftest.$ac_ext <<_ACEOF
20942/* confdefs.h. */
20943_ACEOF
20944cat confdefs.h >>conftest.$ac_ext
20945cat >>conftest.$ac_ext <<_ACEOF
20946/* end confdefs.h. */
20947
20948int
20949main ()
20950{
20951static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
20952test_array [0] = 0
20953
20954 ;
20955 return 0;
20956}
20957_ACEOF
20958rm -f conftest.$ac_objext
20959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20960 (eval $ac_compile) 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } &&
20967 { ac_try='test -z "$ac_c_werror_flag"
20968 || test ! -s conftest.err'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; } &&
20974 { ac_try='test -s conftest.$ac_objext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_lo=0 ac_mid=0
20981 while :; do
20982 cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
20988
20989int
20990main ()
20991{
20992static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20993test_array [0] = 0
20994
20995 ;
20996 return 0;
20997}
20998_ACEOF
20999rm -f conftest.$ac_objext
21000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>conftest.er1
21002 ac_status=$?
21003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_c_werror_flag"
21009 || test ! -s conftest.err'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 ac_hi=$ac_mid; break
21022else
21023 echo "$as_me: failed program was:" >&5
21024sed 's/^/| /' conftest.$ac_ext >&5
21025
21026ac_lo=`expr $ac_mid + 1`
21027 if test $ac_lo -le $ac_mid; then
21028 ac_lo= ac_hi=
21029 break
21030 fi
21031 ac_mid=`expr 2 '*' $ac_mid + 1`
21032fi
21033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21034 done
21035else
21036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039cat >conftest.$ac_ext <<_ACEOF
21040/* confdefs.h. */
21041_ACEOF
21042cat confdefs.h >>conftest.$ac_ext
21043cat >>conftest.$ac_ext <<_ACEOF
21044/* end confdefs.h. */
21045
21046int
21047main ()
21048{
21049static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
21050test_array [0] = 0
21051
21052 ;
21053 return 0;
21054}
21055_ACEOF
21056rm -f conftest.$ac_objext
21057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058 (eval $ac_compile) 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_c_werror_flag"
21066 || test ! -s conftest.err'
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest.$ac_objext'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 ac_hi=-1 ac_mid=-1
21079 while :; do
21080 cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h. */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h. */
21086
21087int
21088main ()
21089{
21090static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
21091test_array [0] = 0
21092
21093 ;
21094 return 0;
21095}
21096_ACEOF
21097rm -f conftest.$ac_objext
21098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21099 (eval $ac_compile) 2>conftest.er1
21100 ac_status=$?
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
21106 { ac_try='test -z "$ac_c_werror_flag"
21107 || test ! -s conftest.err'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest.$ac_objext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_lo=$ac_mid; break
21120else
21121 echo "$as_me: failed program was:" >&5
21122sed 's/^/| /' conftest.$ac_ext >&5
21123
21124ac_hi=`expr '(' $ac_mid ')' - 1`
21125 if test $ac_mid -le $ac_hi; then
21126 ac_lo= ac_hi=
21127 break
21128 fi
21129 ac_mid=`expr 2 '*' $ac_mid`
21130fi
21131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21132 done
21133else
21134 echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
21137ac_lo= ac_hi=
21138fi
21139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21140fi
21141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21142# Binary search between lo and hi bounds.
21143while test "x$ac_lo" != "x$ac_hi"; do
21144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21145 cat >conftest.$ac_ext <<_ACEOF
21146/* confdefs.h. */
21147_ACEOF
21148cat confdefs.h >>conftest.$ac_ext
21149cat >>conftest.$ac_ext <<_ACEOF
21150/* end confdefs.h. */
21151
21152int
21153main ()
21154{
21155static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
21156test_array [0] = 0
21157
21158 ;
21159 return 0;
21160}
21161_ACEOF
21162rm -f conftest.$ac_objext
21163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164 (eval $ac_compile) 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_c_werror_flag"
21172 || test ! -s conftest.err'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try='test -s conftest.$ac_objext'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184 ac_hi=$ac_mid
21185else
21186 echo "$as_me: failed program was:" >&5
21187sed 's/^/| /' conftest.$ac_ext >&5
21188
21189ac_lo=`expr '(' $ac_mid ')' + 1`
21190fi
21191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21192done
21193case $ac_lo in
21194?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
21195'') ;;
21196esac
21197else
21198 if test "$cross_compiling" = yes; then
18c04407
RW
21199 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21200echo "$as_me: error: in \`$ac_pwd':" >&2;}
21201{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
21202See \`config.log' for more details." >&5
21203echo "$as_me: error: cannot run test program while cross compiling
21204See \`config.log' for more details." >&2;}
18c04407 21205 { (exit 1); exit 1; }; }; }
a68ab351
JJ
21206else
21207 cat >conftest.$ac_ext <<_ACEOF
21208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h. */
21213
21214long longval () { return sizeof (omp_nest_lock_25_t); }
21215unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
21216#include <stdio.h>
21217#include <stdlib.h>
21218int
21219main ()
21220{
21221
21222 FILE *f = fopen ("conftest.val", "w");
21223 if (! f)
21224 exit (1);
21225 if ((sizeof (omp_nest_lock_25_t)) < 0)
21226 {
21227 long i = longval ();
21228 if (i != (sizeof (omp_nest_lock_25_t)))
21229 exit (1);
21230 fprintf (f, "%ld\n", i);
21231 }
21232 else
21233 {
21234 unsigned long i = ulongval ();
21235 if (i != (sizeof (omp_nest_lock_25_t)))
21236 exit (1);
21237 fprintf (f, "%lu\n", i);
21238 }
21239 exit (ferror (f) || fclose (f) != 0);
21240
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245rm -f conftest$ac_exeext
21246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21247 (eval $ac_link) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21253 ac_status=$?
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; }; then
21256 OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
21257else
21258 echo "$as_me: program exited with status $ac_status" >&5
21259echo "$as_me: failed program was:" >&5
21260sed 's/^/| /' conftest.$ac_ext >&5
21261
21262fi
21263rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21264fi
21265fi
21266rm -f conftest.val
21267if test "$cross_compiling" = yes; then
21268 # Depending upon the size, compute the lo and hi bounds.
21269cat >conftest.$ac_ext <<_ACEOF
21270/* confdefs.h. */
21271_ACEOF
21272cat confdefs.h >>conftest.$ac_ext
21273cat >>conftest.$ac_ext <<_ACEOF
21274/* end confdefs.h. */
21275
21276int
21277main ()
21278{
21279static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
21280test_array [0] = 0
21281
21282 ;
21283 return 0;
21284}
21285_ACEOF
21286rm -f conftest.$ac_objext
21287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21288 (eval $ac_compile) 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -z "$ac_c_werror_flag"
21296 || test ! -s conftest.err'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest.$ac_objext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ac_lo=0 ac_mid=0
21309 while :; do
21310 cat >conftest.$ac_ext <<_ACEOF
21311/* confdefs.h. */
21312_ACEOF
21313cat confdefs.h >>conftest.$ac_ext
21314cat >>conftest.$ac_ext <<_ACEOF
21315/* end confdefs.h. */
21316
21317int
21318main ()
21319{
21320static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
21321test_array [0] = 0
21322
21323 ;
21324 return 0;
21325}
21326_ACEOF
21327rm -f conftest.$ac_objext
21328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21329 (eval $ac_compile) 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_c_werror_flag"
21337 || test ! -s conftest.err'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; } &&
21343 { ac_try='test -s conftest.$ac_objext'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; }; then
21349 ac_hi=$ac_mid; break
21350else
21351 echo "$as_me: failed program was:" >&5
21352sed 's/^/| /' conftest.$ac_ext >&5
21353
21354ac_lo=`expr $ac_mid + 1`
21355 if test $ac_lo -le $ac_mid; then
21356 ac_lo= ac_hi=
21357 break
21358 fi
21359 ac_mid=`expr 2 '*' $ac_mid + 1`
21360fi
21361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21362 done
21363else
21364 echo "$as_me: failed program was:" >&5
21365sed 's/^/| /' conftest.$ac_ext >&5
21366
21367cat >conftest.$ac_ext <<_ACEOF
21368/* confdefs.h. */
21369_ACEOF
21370cat confdefs.h >>conftest.$ac_ext
21371cat >>conftest.$ac_ext <<_ACEOF
21372/* end confdefs.h. */
21373
21374int
21375main ()
21376{
21377static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
21378test_array [0] = 0
21379
21380 ;
21381 return 0;
21382}
21383_ACEOF
21384rm -f conftest.$ac_objext
21385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21386 (eval $ac_compile) 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
21393 { ac_try='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try='test -s conftest.$ac_objext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_hi=-1 ac_mid=-1
21407 while :; do
21408 cat >conftest.$ac_ext <<_ACEOF
21409/* confdefs.h. */
21410_ACEOF
21411cat confdefs.h >>conftest.$ac_ext
21412cat >>conftest.$ac_ext <<_ACEOF
21413/* end confdefs.h. */
21414
21415int
21416main ()
21417{
21418static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
21419test_array [0] = 0
21420
21421 ;
21422 return 0;
21423}
21424_ACEOF
21425rm -f conftest.$ac_objext
21426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21427 (eval $ac_compile) 2>conftest.er1
21428 ac_status=$?
21429 grep -v '^ *+' conftest.er1 >conftest.err
21430 rm -f conftest.er1
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } &&
21434 { ac_try='test -z "$ac_c_werror_flag"
21435 || test ! -s conftest.err'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; } &&
21441 { ac_try='test -s conftest.$ac_objext'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 ac_lo=$ac_mid; break
21448else
21449 echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452ac_hi=`expr '(' $ac_mid ')' - 1`
21453 if test $ac_mid -le $ac_hi; then
21454 ac_lo= ac_hi=
21455 break
21456 fi
21457 ac_mid=`expr 2 '*' $ac_mid`
21458fi
21459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21460 done
21461else
21462 echo "$as_me: failed program was:" >&5
21463sed 's/^/| /' conftest.$ac_ext >&5
21464
21465ac_lo= ac_hi=
21466fi
21467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21468fi
21469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470# Binary search between lo and hi bounds.
21471while test "x$ac_lo" != "x$ac_hi"; do
21472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21473 cat >conftest.$ac_ext <<_ACEOF
21474/* confdefs.h. */
21475_ACEOF
21476cat confdefs.h >>conftest.$ac_ext
21477cat >>conftest.$ac_ext <<_ACEOF
21478/* end confdefs.h. */
21479
21480int
21481main ()
21482{
21483static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
21484test_array [0] = 0
21485
21486 ;
21487 return 0;
21488}
21489_ACEOF
21490rm -f conftest.$ac_objext
21491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21492 (eval $ac_compile) 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } &&
21499 { ac_try='test -z "$ac_c_werror_flag"
21500 || test ! -s conftest.err'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; } &&
21506 { ac_try='test -s conftest.$ac_objext'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21512 ac_hi=$ac_mid
21513else
21514 echo "$as_me: failed program was:" >&5
21515sed 's/^/| /' conftest.$ac_ext >&5
21516
21517ac_lo=`expr '(' $ac_mid ')' + 1`
21518fi
21519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21520done
21521case $ac_lo in
21522?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
21523'') ;;
21524esac
21525else
21526 if test "$cross_compiling" = yes; then
18c04407
RW
21527 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21528echo "$as_me: error: in \`$ac_pwd':" >&2;}
21529{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a68ab351
JJ
21530See \`config.log' for more details." >&5
21531echo "$as_me: error: cannot run test program while cross compiling
21532See \`config.log' for more details." >&2;}
18c04407 21533 { (exit 1); exit 1; }; }; }
a68ab351
JJ
21534else
21535 cat >conftest.$ac_ext <<_ACEOF
21536/* confdefs.h. */
21537_ACEOF
21538cat confdefs.h >>conftest.$ac_ext
21539cat >>conftest.$ac_ext <<_ACEOF
21540/* end confdefs.h. */
21541
21542long longval () { return __alignof (omp_nest_lock_25_t); }
21543unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
21544#include <stdio.h>
21545#include <stdlib.h>
21546int
21547main ()
21548{
21549
21550 FILE *f = fopen ("conftest.val", "w");
21551 if (! f)
21552 exit (1);
21553 if ((__alignof (omp_nest_lock_25_t)) < 0)
21554 {
21555 long i = longval ();
21556 if (i != (__alignof (omp_nest_lock_25_t)))
21557 exit (1);
21558 fprintf (f, "%ld\n", i);
21559 }
21560 else
21561 {
21562 unsigned long i = ulongval ();
21563 if (i != (__alignof (omp_nest_lock_25_t)))
21564 exit (1);
21565 fprintf (f, "%lu\n", i);
21566 }
21567 exit (ferror (f) || fclose (f) != 0);
21568
21569 ;
21570 return 0;
21571}
21572_ACEOF
21573rm -f conftest$ac_exeext
21574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21575 (eval $ac_link) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }; then
21584 OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
21585else
21586 echo "$as_me: program exited with status $ac_status" >&5
21587echo "$as_me: failed program was:" >&5
21588sed 's/^/| /' conftest.$ac_ext >&5
21589
21590fi
21591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21592fi
21593fi
21594rm -f conftest.val
21595
21596# If the lock fits in an integer, then arrange for Fortran to use that
21597# integer. If it doesn't, then arrange for Fortran to use a pointer.
21598# Except that we don't have a way at present to multi-lib the installed
21599# Fortran modules, so we assume 8 bytes for pointers, regardless of the
21600# actual target.
21601OMP_LOCK_KIND=$OMP_LOCK_SIZE
21602OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
21603if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
21604 OMP_LOCK_KIND=8
21605fi
21606if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
21607 OMP_NEST_LOCK_KIND=8
21608fi
21609OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
21610OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
21611if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
21612 OMP_LOCK_25_KIND=8
21613fi
21614if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
21615 OMP_NEST_LOCK_25_KIND=8
21616fi
21617
21618
21619
21620
21621
21622
03b8fe49
PB
21623
21624
21625
21626
21627
21628
21629
21630CFLAGS="$save_CFLAGS"
21631
21632 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
21633
953ff289
DN
21634 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
21635
21636cat >confcache <<\_ACEOF
21637# This file is a shell script that caches the results of configure
21638# tests run on this system so they can be shared between configure
21639# scripts and configure runs, see configure's option --config-cache.
21640# It is not useful on other systems. If it contains results you don't
21641# want to keep, you may remove or edit it.
21642#
21643# config.status only pays attention to the cache file if you give it
21644# the --recheck option to rerun configure.
21645#
21646# `ac_cv_env_foo' variables (set or unset) will be overridden when
21647# loading this file, other *unset* `ac_cv_foo' will be assigned the
21648# following values.
21649
21650_ACEOF
21651
21652# The following way of writing the cache mishandles newlines in values,
21653# but we know of no workaround that is simple, portable, and efficient.
21654# So, don't put newlines in cache variables' values.
21655# Ultrix sh set writes to stderr and can't be redirected directly,
21656# and sets the high bit in the cache file unless we assign to the vars.
21657{
21658 (set) 2>&1 |
21659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21660 *ac_space=\ *)
21661 # `set' does not quote correctly, so add quotes (double-quote
21662 # substitution turns \\\\ into \\, and sed turns \\ into \).
21663 sed -n \
21664 "s/'/'\\\\''/g;
21665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21666 ;;
21667 *)
21668 # `set' quotes correctly as required by POSIX, so do not add quotes.
21669 sed -n \
21670 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21671 ;;
21672 esac;
21673} |
21674 sed '
21675 t clear
21676 : clear
21677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21678 t end
21679 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21680 : end' >>confcache
21681if diff $cache_file confcache >/dev/null 2>&1; then :; else
21682 if test -w $cache_file; then
21683 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21684 cat confcache >$cache_file
21685 else
21686 echo "not updating unwritable cache $cache_file"
21687 fi
21688fi
21689rm -f confcache
21690
21691test "x$prefix" = xNONE && prefix=$ac_default_prefix
21692# Let make expand exec_prefix.
21693test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21694
21695# VPATH may cause trouble with some makes, so we remove $(srcdir),
21696# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21697# trailing colons and then remove the whole line if VPATH becomes empty
21698# (actually we leave an empty line to preserve line numbers).
21699if test "x$srcdir" = x.; then
21700 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21701s/:*\$(srcdir):*/:/;
21702s/:*\${srcdir}:*/:/;
21703s/:*@srcdir@:*/:/;
21704s/^\([^=]*=[ ]*\):*/\1/;
21705s/:*$//;
21706s/^[^=]*=[ ]*$//;
21707}'
21708fi
21709
21710DEFS=-DHAVE_CONFIG_H
21711
21712ac_libobjs=
21713ac_ltlibobjs=
21714for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21715 # 1. Remove the extension, and $U if already installed.
21716 ac_i=`echo "$ac_i" |
21717 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21718 # 2. Add them.
21719 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21720 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21721done
21722LIBOBJS=$ac_libobjs
21723
21724LTLIBOBJS=$ac_ltlibobjs
21725
21726
627ab4b8
TT
21727if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
21728 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
21729Usually this means the macro was only invoked conditionally." >&5
21730echo "$as_me: error: conditional \"GENINSRC\" was never defined.
21731Usually this means the macro was only invoked conditionally." >&2;}
21732 { (exit 1); exit 1; }; }
21733fi
953ff289
DN
21734if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21735 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21736Usually this means the macro was only invoked conditionally." >&5
21737echo "$as_me: error: conditional \"AMDEP\" was never defined.
21738Usually this means the macro was only invoked conditionally." >&2;}
21739 { (exit 1); exit 1; }; }
21740fi
21741if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21742 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21743Usually this means the macro was only invoked conditionally." >&5
21744echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21745Usually this means the macro was only invoked conditionally." >&2;}
21746 { (exit 1); exit 1; }; }
21747fi
748b9d7c
DF
21748if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
21749 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
21750Usually this means the macro was only invoked conditionally." >&5
21751echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
21752Usually this means the macro was only invoked conditionally." >&2;}
21753 { (exit 1); exit 1; }; }
21754fi
c41303c6
RH
21755if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21756 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21757Usually this means the macro was only invoked conditionally." >&5
21758echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21759Usually this means the macro was only invoked conditionally." >&2;}
21760 { (exit 1); exit 1; }; }
21761fi
953ff289
DN
21762if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
21763 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21764Usually this means the macro was only invoked conditionally." >&5
21765echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21766Usually this means the macro was only invoked conditionally." >&2;}
21767 { (exit 1); exit 1; }; }
21768fi
21769if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
21770 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
21771Usually this means the macro was only invoked conditionally." >&5
21772echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
21773Usually this means the macro was only invoked conditionally." >&2;}
21774 { (exit 1); exit 1; }; }
21775fi
21776
21777: ${CONFIG_STATUS=./config.status}
21778ac_clean_files_save=$ac_clean_files
21779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21780{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21781echo "$as_me: creating $CONFIG_STATUS" >&6;}
21782cat >$CONFIG_STATUS <<_ACEOF
21783#! $SHELL
21784# Generated by $as_me.
21785# Run this file to recreate the current configuration.
21786# Compiler output produced by configure, useful for debugging
21787# configure, is in config.log if it exists.
21788
21789debug=false
21790ac_cs_recheck=false
21791ac_cs_silent=false
21792SHELL=\${CONFIG_SHELL-$SHELL}
21793_ACEOF
21794
21795cat >>$CONFIG_STATUS <<\_ACEOF
21796## --------------------- ##
21797## M4sh Initialization. ##
21798## --------------------- ##
21799
21800# Be Bourne compatible
21801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21802 emulate sh
21803 NULLCMD=:
21804 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21805 # is contrary to our usage. Disable this feature.
21806 alias -g '${1+"$@"}'='"$@"'
21807elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21808 set -o posix
21809fi
21810DUALCASE=1; export DUALCASE # for MKS sh
21811
21812# Support unset when possible.
21813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21814 as_unset=unset
21815else
21816 as_unset=false
21817fi
21818
21819
21820# Work around bugs in pre-3.0 UWIN ksh.
21821$as_unset ENV MAIL MAILPATH
21822PS1='$ '
21823PS2='> '
21824PS4='+ '
21825
21826# NLS nuisances.
21827for as_var in \
21828 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21829 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21830 LC_TELEPHONE LC_TIME
21831do
21832 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21833 eval $as_var=C; export $as_var
21834 else
21835 $as_unset $as_var
21836 fi
21837done
21838
21839# Required to use basename.
21840if expr a : '\(a\)' >/dev/null 2>&1; then
21841 as_expr=expr
21842else
21843 as_expr=false
21844fi
21845
21846if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21847 as_basename=basename
21848else
21849 as_basename=false
21850fi
21851
21852
21853# Name of the executable.
21854as_me=`$as_basename "$0" ||
21855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21856 X"$0" : 'X\(//\)$' \| \
21857 X"$0" : 'X\(/\)$' \| \
21858 . : '\(.\)' 2>/dev/null ||
21859echo X/"$0" |
21860 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21861 /^X\/\(\/\/\)$/{ s//\1/; q; }
21862 /^X\/\(\/\).*/{ s//\1/; q; }
21863 s/.*/./; q'`
21864
21865
21866# PATH needs CR, and LINENO needs CR and PATH.
21867# Avoid depending upon Character Ranges.
21868as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21870as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21871as_cr_digits='0123456789'
21872as_cr_alnum=$as_cr_Letters$as_cr_digits
21873
21874# The user is always right.
21875if test "${PATH_SEPARATOR+set}" != set; then
21876 echo "#! /bin/sh" >conf$$.sh
21877 echo "exit 0" >>conf$$.sh
21878 chmod +x conf$$.sh
21879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21880 PATH_SEPARATOR=';'
21881 else
21882 PATH_SEPARATOR=:
21883 fi
21884 rm -f conf$$.sh
21885fi
21886
21887
21888 as_lineno_1=$LINENO
21889 as_lineno_2=$LINENO
21890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21891 test "x$as_lineno_1" != "x$as_lineno_2" &&
21892 test "x$as_lineno_3" = "x$as_lineno_2" || {
21893 # Find who we are. Look in the path if we contain no path at all
21894 # relative or not.
21895 case $0 in
21896 *[\\/]* ) as_myself=$0 ;;
21897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21898for as_dir in $PATH
21899do
21900 IFS=$as_save_IFS
21901 test -z "$as_dir" && as_dir=.
21902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21903done
21904
21905 ;;
21906 esac
21907 # We did not find ourselves, most probably we were run as `sh COMMAND'
21908 # in which case we are not to be found in the path.
21909 if test "x$as_myself" = x; then
21910 as_myself=$0
21911 fi
21912 if test ! -f "$as_myself"; then
21913 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21914echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21915 { (exit 1); exit 1; }; }
21916 fi
21917 case $CONFIG_SHELL in
21918 '')
21919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21920for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21921do
21922 IFS=$as_save_IFS
21923 test -z "$as_dir" && as_dir=.
21924 for as_base in sh bash ksh sh5; do
21925 case $as_dir in
21926 /*)
21927 if ("$as_dir/$as_base" -c '
21928 as_lineno_1=$LINENO
21929 as_lineno_2=$LINENO
21930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21931 test "x$as_lineno_1" != "x$as_lineno_2" &&
21932 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21933 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21934 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21935 CONFIG_SHELL=$as_dir/$as_base
21936 export CONFIG_SHELL
21937 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21938 fi;;
21939 esac
21940 done
21941done
21942;;
21943 esac
21944
21945 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21946 # uniformly replaced by the line number. The first 'sed' inserts a
21947 # line-number line before each line; the second 'sed' does the real
21948 # work. The second script uses 'N' to pair each line-number line
21949 # with the numbered line, and appends trailing '-' during
21950 # substitution so that $LINENO is not a special case at line end.
21951 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21952 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21953 sed '=' <$as_myself |
21954 sed '
21955 N
21956 s,$,-,
21957 : loop
21958 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21959 t loop
21960 s,-$,,
21961 s,^['$as_cr_digits']*\n,,
21962 ' >$as_me.lineno &&
21963 chmod +x $as_me.lineno ||
21964 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21965echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21966 { (exit 1); exit 1; }; }
21967
21968 # Don't try to exec as it changes $[0], causing all sort of problems
21969 # (the dirname of $[0] is not the place where we might find the
21970 # original and so on. Autoconf is especially sensible to this).
21971 . ./$as_me.lineno
21972 # Exit status is that of the last command.
21973 exit
21974}
21975
21976
21977case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21978 *c*,-n*) ECHO_N= ECHO_C='
21979' ECHO_T=' ' ;;
21980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21982esac
21983
21984if expr a : '\(a\)' >/dev/null 2>&1; then
21985 as_expr=expr
21986else
21987 as_expr=false
21988fi
21989
21990rm -f conf$$ conf$$.exe conf$$.file
21991echo >conf$$.file
21992if ln -s conf$$.file conf$$ 2>/dev/null; then
21993 # We could just check for DJGPP; but this test a) works b) is more generic
21994 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21995 if test -f conf$$.exe; then
21996 # Don't use ln at all; we don't have any links
21997 as_ln_s='cp -p'
21998 else
21999 as_ln_s='ln -s'
22000 fi
22001elif ln conf$$.file conf$$ 2>/dev/null; then
22002 as_ln_s=ln
22003else
22004 as_ln_s='cp -p'
22005fi
22006rm -f conf$$ conf$$.exe conf$$.file
22007
22008if mkdir -p . 2>/dev/null; then
22009 as_mkdir_p=:
22010else
22011 test -d ./-p && rmdir ./-p
22012 as_mkdir_p=false
22013fi
22014
22015as_executable_p="test -f"
22016
22017# Sed expression to map a string onto a valid CPP name.
22018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22019
22020# Sed expression to map a string onto a valid variable name.
22021as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22022
22023
22024# IFS
22025# We need space, tab and new line, in precisely that order.
22026as_nl='
22027'
22028IFS=" $as_nl"
22029
22030# CDPATH.
22031$as_unset CDPATH
22032
22033exec 6>&1
22034
22035# Open the log real soon, to keep \$[0] and so on meaningful, and to
22036# report actual input values of CONFIG_FILES etc. instead of their
22037# values after options handling. Logging --version etc. is OK.
22038exec 5>>config.log
22039{
22040 echo
22041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22042## Running $as_me. ##
22043_ASBOX
22044} >&5
22045cat >&5 <<_CSEOF
22046
22047This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
22048generated by GNU Autoconf 2.59. Invocation command line was
22049
22050 CONFIG_FILES = $CONFIG_FILES
22051 CONFIG_HEADERS = $CONFIG_HEADERS
22052 CONFIG_LINKS = $CONFIG_LINKS
22053 CONFIG_COMMANDS = $CONFIG_COMMANDS
22054 $ $0 $@
22055
22056_CSEOF
22057echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22058echo >&5
22059_ACEOF
22060
22061# Files that config.status was made for.
22062if test -n "$ac_config_files"; then
22063 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22064fi
22065
22066if test -n "$ac_config_headers"; then
22067 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22068fi
22069
22070if test -n "$ac_config_links"; then
22071 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22072fi
22073
22074if test -n "$ac_config_commands"; then
22075 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22076fi
22077
22078cat >>$CONFIG_STATUS <<\_ACEOF
22079
22080ac_cs_usage="\
22081\`$as_me' instantiates files from templates according to the
22082current configuration.
22083
22084Usage: $0 [OPTIONS] [FILE]...
22085
22086 -h, --help print this help, then exit
22087 -V, --version print version number, then exit
22088 -q, --quiet do not print progress messages
22089 -d, --debug don't remove temporary files
22090 --recheck update $as_me by reconfiguring in the same conditions
22091 --file=FILE[:TEMPLATE]
22092 instantiate the configuration file FILE
22093 --header=FILE[:TEMPLATE]
22094 instantiate the configuration header FILE
22095
22096Configuration files:
22097$config_files
22098
22099Configuration headers:
22100$config_headers
22101
22102Configuration commands:
22103$config_commands
22104
22105Report bugs to <bug-autoconf@gnu.org>."
22106_ACEOF
22107
22108cat >>$CONFIG_STATUS <<_ACEOF
22109ac_cs_version="\\
22110GNU OpenMP Runtime Library config.status 1.0
22111configured by $0, generated by GNU Autoconf 2.59,
22112 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22113
22114Copyright (C) 2003 Free Software Foundation, Inc.
22115This config.status script is free software; the Free Software Foundation
22116gives unlimited permission to copy, distribute and modify it."
22117srcdir=$srcdir
22118INSTALL="$INSTALL"
22119_ACEOF
22120
22121cat >>$CONFIG_STATUS <<\_ACEOF
22122# If no file are specified by the user, then we need to provide default
22123# value. By we need to know if files were specified by the user.
22124ac_need_defaults=:
22125while test $# != 0
22126do
22127 case $1 in
22128 --*=*)
22129 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22130 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22131 ac_shift=:
22132 ;;
22133 -*)
22134 ac_option=$1
22135 ac_optarg=$2
22136 ac_shift=shift
22137 ;;
22138 *) # This is not an option, so the user has probably given explicit
22139 # arguments.
22140 ac_option=$1
22141 ac_need_defaults=false;;
22142 esac
22143
22144 case $ac_option in
22145 # Handling of the options.
22146_ACEOF
22147cat >>$CONFIG_STATUS <<\_ACEOF
22148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22149 ac_cs_recheck=: ;;
22150 --version | --vers* | -V )
22151 echo "$ac_cs_version"; exit 0 ;;
22152 --he | --h)
22153 # Conflict between --help and --header
22154 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22155Try \`$0 --help' for more information." >&5
22156echo "$as_me: error: ambiguous option: $1
22157Try \`$0 --help' for more information." >&2;}
22158 { (exit 1); exit 1; }; };;
22159 --help | --hel | -h )
22160 echo "$ac_cs_usage"; exit 0 ;;
22161 --debug | --d* | -d )
22162 debug=: ;;
22163 --file | --fil | --fi | --f )
22164 $ac_shift
22165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22166 ac_need_defaults=false;;
22167 --header | --heade | --head | --hea )
22168 $ac_shift
22169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22170 ac_need_defaults=false;;
22171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22173 ac_cs_silent=: ;;
22174
22175 # This is an error.
22176 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22177Try \`$0 --help' for more information." >&5
22178echo "$as_me: error: unrecognized option: $1
22179Try \`$0 --help' for more information." >&2;}
22180 { (exit 1); exit 1; }; } ;;
22181
22182 *) ac_config_targets="$ac_config_targets $1" ;;
22183
22184 esac
22185 shift
22186done
22187
22188ac_configure_extra_args=
22189
22190if $ac_cs_silent; then
22191 exec 6>/dev/null
22192 ac_configure_extra_args="$ac_configure_extra_args --silent"
22193fi
22194
22195_ACEOF
22196cat >>$CONFIG_STATUS <<_ACEOF
22197if \$ac_cs_recheck; then
22198 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22199 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22200fi
22201
22202_ACEOF
22203
22204cat >>$CONFIG_STATUS <<_ACEOF
22205#
22206# INIT-COMMANDS section.
22207#
22208
22209
22210srcdir="$srcdir"
22211host="$host"
22212target="$target"
22213with_multisubdir="$with_multisubdir"
22214with_multisrctop="$with_multisrctop"
22215with_target_subdir="$with_target_subdir"
22216ac_configure_args="${multilib_arg} ${ac_configure_args}"
22217multi_basedir="$multi_basedir"
22218CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22219CC="$CC"
22220AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22221
1cf3d07d
SE
22222
22223# The HP-UX ksh and POSIX shell print the target directory to stdout
22224# if CDPATH is set.
22225(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22226
22227sed_quote_subst='$sed_quote_subst'
22228double_quote_subst='$double_quote_subst'
22229delay_variable_subst='$delay_variable_subst'
22230macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22231macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22232enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22233enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22234pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22235enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22236host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22237host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22238host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22239build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22240build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22241build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22242SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22243Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22244GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22245EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22246FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22247LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22248NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22249LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22250max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22251ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22252exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22253lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22254lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22255lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22256reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22257reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed 22258OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
22259deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22260file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22261AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22262AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22263STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22264RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22265old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22266old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22267old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22268CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22269CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22270compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22271GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22272lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22273lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22274lt_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"`'
6b4a97ed 22275lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
22276objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22277SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22278ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22279MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22280lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22281lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22282lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22283lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22284lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22285need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed
PG
22286DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22287NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22288LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22289OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22290OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
22291libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22292shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22293extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22294archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22295enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22296export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22297whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22298compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22299old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22300old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22301archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22302archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22303module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22304module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22305with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22306allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22307no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22308hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22309hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22310hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22311hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22312hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22313hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22314hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22315hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22316inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22317link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22318fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22319always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22320export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22321exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22322include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22323prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22324file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22325variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22326need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22327need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22328version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22329runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22330shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22331shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22332libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22333library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22334soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22335postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22336postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22337finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22338finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22339hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22340sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22341sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22342hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22343enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22344enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22345enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22346old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22347striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed 22348compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
22349predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22350postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22351predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
22352postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
22353compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
22354LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
22355old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22356compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
22357GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
22358lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22359lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
22360lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
22361lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
22362lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
22363archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
22364enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
22365export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22366whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22367compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
22368old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22369old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22370archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22371archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22372module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22373module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22374with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
22375allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22376no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22377hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22378hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
22379hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
22380hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
22381hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
22382hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
22383hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
22384hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
22385inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
22386link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
22387fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
22388always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
22389export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22390exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
22391include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
22392prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22393file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22394hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed 22395compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
22396predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
22397postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
22398predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
22399postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
22400compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
22401
22402LTCC='$LTCC'
22403LTCFLAGS='$LTCFLAGS'
22404compiler='$compiler_DEFAULT'
22405
22406# Quote evaled strings.
22407for var in SED \
22408GREP \
22409EGREP \
22410FGREP \
22411LD \
22412NM \
22413LN_S \
22414lt_SP2NL \
22415lt_NL2SP \
22416reload_flag \
6b4a97ed 22417OBJDUMP \
1cf3d07d
SE
22418deplibs_check_method \
22419file_magic_cmd \
22420AR \
22421AR_FLAGS \
22422STRIP \
22423RANLIB \
22424CC \
22425CFLAGS \
22426compiler \
22427lt_cv_sys_global_symbol_pipe \
22428lt_cv_sys_global_symbol_to_cdecl \
22429lt_cv_sys_global_symbol_to_c_name_address \
6b4a97ed 22430lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
22431SHELL \
22432ECHO \
22433lt_prog_compiler_no_builtin_flag \
22434lt_prog_compiler_wl \
22435lt_prog_compiler_pic \
22436lt_prog_compiler_static \
22437lt_cv_prog_compiler_c_o \
22438need_locks \
6b4a97ed
PG
22439DSYMUTIL \
22440NMEDIT \
22441LIPO \
22442OTOOL \
22443OTOOL64 \
1cf3d07d
SE
22444shrext_cmds \
22445export_dynamic_flag_spec \
22446whole_archive_flag_spec \
22447compiler_needs_object \
22448with_gnu_ld \
22449allow_undefined_flag \
22450no_undefined_flag \
22451hardcode_libdir_flag_spec \
22452hardcode_libdir_flag_spec_ld \
22453hardcode_libdir_separator \
22454fix_srcfile_path \
22455exclude_expsyms \
22456include_expsyms \
22457file_list_spec \
22458variables_saved_for_relink \
22459libname_spec \
22460library_names_spec \
22461soname_spec \
22462finish_eval \
22463old_striplib \
22464striplib \
6b4a97ed 22465compiler_lib_search_dirs \
1cf3d07d
SE
22466predep_objects \
22467postdep_objects \
22468predeps \
22469postdeps \
22470compiler_lib_search_path \
22471LD_FC \
22472compiler_FC \
22473lt_prog_compiler_no_builtin_flag_FC \
22474lt_prog_compiler_wl_FC \
22475lt_prog_compiler_pic_FC \
22476lt_prog_compiler_static_FC \
22477lt_cv_prog_compiler_c_o_FC \
22478export_dynamic_flag_spec_FC \
22479whole_archive_flag_spec_FC \
22480compiler_needs_object_FC \
22481with_gnu_ld_FC \
22482allow_undefined_flag_FC \
22483no_undefined_flag_FC \
22484hardcode_libdir_flag_spec_FC \
22485hardcode_libdir_flag_spec_ld_FC \
22486hardcode_libdir_separator_FC \
22487fix_srcfile_path_FC \
22488exclude_expsyms_FC \
22489include_expsyms_FC \
22490file_list_spec_FC \
6b4a97ed 22491compiler_lib_search_dirs_FC \
1cf3d07d
SE
22492predep_objects_FC \
22493postdep_objects_FC \
22494predeps_FC \
22495postdeps_FC \
22496compiler_lib_search_path_FC; do
22497 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22498 *[\\\\\\\`\\"\\\$]*)
22499 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22500 ;;
22501 *)
22502 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22503 ;;
22504 esac
22505done
22506
22507# Double-quote double-evaled strings.
22508for var in reload_cmds \
22509old_postinstall_cmds \
22510old_postuninstall_cmds \
22511old_archive_cmds \
22512extract_expsyms_cmds \
22513old_archive_from_new_cmds \
22514old_archive_from_expsyms_cmds \
22515archive_cmds \
22516archive_expsym_cmds \
22517module_cmds \
22518module_expsym_cmds \
22519export_symbols_cmds \
22520prelink_cmds \
22521postinstall_cmds \
22522postuninstall_cmds \
22523finish_cmds \
22524sys_lib_search_path_spec \
22525sys_lib_dlsearch_path_spec \
22526old_archive_cmds_FC \
22527old_archive_from_new_cmds_FC \
22528old_archive_from_expsyms_cmds_FC \
22529archive_cmds_FC \
22530archive_expsym_cmds_FC \
22531module_cmds_FC \
22532module_expsym_cmds_FC \
22533export_symbols_cmds_FC \
22534prelink_cmds_FC; do
22535 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22536 *[\\\\\\\`\\"\\\$]*)
22537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22538 ;;
22539 *)
22540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22541 ;;
22542 esac
22543done
22544
22545# Fix-up fallback echo if it was mangled by the above quoting rules.
22546case \$lt_ECHO in
22547*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22548 ;;
22549esac
22550
22551ac_aux_dir='$ac_aux_dir'
22552xsi_shell='$xsi_shell'
22553lt_shell_append='$lt_shell_append'
22554
22555# See if we are running on zsh, and set the options which allow our
22556# commands through without removal of \ escapes INIT.
22557if test -n "\${ZSH_VERSION+set}" ; then
22558 setopt NO_GLOB_SUBST
22559fi
22560
22561
22562 PACKAGE='$PACKAGE'
22563 VERSION='$VERSION'
22564 TIMESTAMP='$TIMESTAMP'
22565 RM='$RM'
22566 ofile='$ofile'
22567
22568
22569
22570
22571
22572
18cbfd85
PB
22573GCC="$GCC"
22574CC="$CC"
22575acx_cv_header_stdint="$acx_cv_header_stdint"
22576acx_cv_type_int8_t="$acx_cv_type_int8_t"
22577acx_cv_type_int16_t="$acx_cv_type_int16_t"
22578acx_cv_type_int32_t="$acx_cv_type_int32_t"
22579acx_cv_type_int64_t="$acx_cv_type_int64_t"
22580acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22581ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22582ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
22583ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
22584ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
22585ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
22586ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
22587ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
22588ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
22589
22590
953ff289
DN
22591_ACEOF
22592
22593
22594
22595cat >>$CONFIG_STATUS <<\_ACEOF
22596for ac_config_target in $ac_config_targets
22597do
22598 case "$ac_config_target" in
22599 # Handling of arguments.
03b8fe49
PB
22600 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
22601 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
22602 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
22603 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
953ff289
DN
22604 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22605 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
22606 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
22607 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22608 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 22609 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18cbfd85 22610 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
953ff289
DN
22611 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22612 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22613echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22614 { (exit 1); exit 1; }; };;
22615 esac
22616done
22617
22618# If the user did not use the arguments to specify the items to instantiate,
22619# then the envvar interface is used. Set only those that are not.
22620# We use the long form for the default assignment because of an extremely
22621# bizarre bug on SunOS 4.1.3.
22622if $ac_need_defaults; then
22623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22626fi
22627
22628# Have a temporary directory for convenience. Make it in the build tree
22629# simply because there is no reason to put it here, and in addition,
22630# creating and moving files from /tmp can sometimes cause problems.
22631# Create a temporary directory, and hook for its removal unless debugging.
22632$debug ||
22633{
22634 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22635 trap '{ (exit 1); exit 1; }' 1 2 13 15
22636}
22637
22638# Create a (secure) tmp directory for tmp files.
22639
22640{
22641 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22642 test -n "$tmp" && test -d "$tmp"
22643} ||
22644{
22645 tmp=./confstat$$-$RANDOM
22646 (umask 077 && mkdir $tmp)
22647} ||
22648{
22649 echo "$me: cannot create a temporary directory in ." >&2
22650 { (exit 1); exit 1; }
22651}
22652
22653_ACEOF
22654
22655cat >>$CONFIG_STATUS <<_ACEOF
22656
22657#
22658# CONFIG_FILES section.
22659#
22660
22661# No need to generate the scripts if there are no CONFIG_FILES.
22662# This happens for instance when ./config.status config.h
22663if test -n "\$CONFIG_FILES"; then
22664 # Protect against being on the right side of a sed subst in config.status.
22665 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22666 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22667s,@SHELL@,$SHELL,;t t
22668s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22669s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22670s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22671s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22672s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22673s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22674s,@exec_prefix@,$exec_prefix,;t t
22675s,@prefix@,$prefix,;t t
22676s,@program_transform_name@,$program_transform_name,;t t
22677s,@bindir@,$bindir,;t t
22678s,@sbindir@,$sbindir,;t t
22679s,@libexecdir@,$libexecdir,;t t
22680s,@datadir@,$datadir,;t t
22681s,@sysconfdir@,$sysconfdir,;t t
22682s,@sharedstatedir@,$sharedstatedir,;t t
22683s,@localstatedir@,$localstatedir,;t t
22684s,@libdir@,$libdir,;t t
22685s,@includedir@,$includedir,;t t
22686s,@oldincludedir@,$oldincludedir,;t t
22687s,@infodir@,$infodir,;t t
22688s,@mandir@,$mandir,;t t
22689s,@build_alias@,$build_alias,;t t
22690s,@host_alias@,$host_alias,;t t
22691s,@target_alias@,$target_alias,;t t
22692s,@DEFS@,$DEFS,;t t
22693s,@ECHO_C@,$ECHO_C,;t t
22694s,@ECHO_N@,$ECHO_N,;t t
22695s,@ECHO_T@,$ECHO_T,;t t
22696s,@LIBS@,$LIBS,;t t
627ab4b8
TT
22697s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
22698s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
953ff289
DN
22699s,@build@,$build,;t t
22700s,@build_cpu@,$build_cpu,;t t
22701s,@build_vendor@,$build_vendor,;t t
22702s,@build_os@,$build_os,;t t
22703s,@host@,$host,;t t
22704s,@host_cpu@,$host_cpu,;t t
22705s,@host_vendor@,$host_vendor,;t t
22706s,@host_os@,$host_os,;t t
22707s,@target@,$target,;t t
22708s,@target_cpu@,$target_cpu,;t t
22709s,@target_vendor@,$target_vendor,;t t
22710s,@target_os@,$target_os,;t t
22711s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22712s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22713s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22714s,@CYGPATH_W@,$CYGPATH_W,;t t
22715s,@PACKAGE@,$PACKAGE,;t t
22716s,@VERSION@,$VERSION,;t t
22717s,@ACLOCAL@,$ACLOCAL,;t t
22718s,@AUTOCONF@,$AUTOCONF,;t t
22719s,@AUTOMAKE@,$AUTOMAKE,;t t
22720s,@AUTOHEADER@,$AUTOHEADER,;t t
22721s,@MAKEINFO@,$MAKEINFO,;t t
22722s,@install_sh@,$install_sh,;t t
22723s,@STRIP@,$STRIP,;t t
22724s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22725s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22726s,@mkdir_p@,$mkdir_p,;t t
22727s,@AWK@,$AWK,;t t
22728s,@SET_MAKE@,$SET_MAKE,;t t
22729s,@am__leading_dot@,$am__leading_dot,;t t
22730s,@AMTAR@,$AMTAR,;t t
22731s,@am__tar@,$am__tar,;t t
22732s,@am__untar@,$am__untar,;t t
22733s,@multi_basedir@,$multi_basedir,;t t
22734s,@toolexecdir@,$toolexecdir,;t t
22735s,@toolexeclibdir@,$toolexeclibdir,;t t
22736s,@CC@,$CC,;t t
22737s,@ac_ct_CC@,$ac_ct_CC,;t t
22738s,@EXEEXT@,$EXEEXT,;t t
22739s,@OBJEXT@,$OBJEXT,;t t
22740s,@DEPDIR@,$DEPDIR,;t t
22741s,@am__include@,$am__include,;t t
22742s,@am__quote@,$am__quote,;t t
22743s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22744s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22745s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22746s,@CCDEPMODE@,$CCDEPMODE,;t t
22747s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22748s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22749s,@CFLAGS@,$CFLAGS,;t t
22750s,@AR@,$AR,;t t
22751s,@ac_ct_AR@,$ac_ct_AR,;t t
22752s,@RANLIB@,$RANLIB,;t t
22753s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22754s,@PERL@,$PERL,;t t
748b9d7c
DF
22755s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
22756s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
953ff289 22757s,@LIBTOOL@,$LIBTOOL,;t t
1cf3d07d
SE
22758s,@SED@,$SED,;t t
22759s,@EGREP@,$EGREP,;t t
22760s,@FGREP@,$FGREP,;t t
22761s,@GREP@,$GREP,;t t
22762s,@LD@,$LD,;t t
22763s,@DUMPBIN@,$DUMPBIN,;t t
22764s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22765s,@NM@,$NM,;t t
22766s,@LN_S@,$LN_S,;t t
6b4a97ed
PG
22767s,@OBJDUMP@,$OBJDUMP,;t t
22768s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1cf3d07d 22769s,@lt_ECHO@,$lt_ECHO,;t t
6b4a97ed
PG
22770s,@DSYMUTIL@,$DSYMUTIL,;t t
22771s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
22772s,@NMEDIT@,$NMEDIT,;t t
22773s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
22774s,@LIPO@,$LIPO,;t t
22775s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
22776s,@OTOOL@,$OTOOL,;t t
22777s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
22778s,@OTOOL64@,$OTOOL64,;t t
22779s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
1cf3d07d
SE
22780s,@CPP@,$CPP,;t t
22781s,@CPPFLAGS@,$CPPFLAGS,;t t
953ff289
DN
22782s,@enable_shared@,$enable_shared,;t t
22783s,@enable_static@,$enable_static,;t t
c41303c6
RH
22784s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22785s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22786s,@MAINT@,$MAINT,;t t
953ff289
DN
22787s,@FC@,$FC,;t t
22788s,@FCFLAGS@,$FCFLAGS,;t t
22789s,@LDFLAGS@,$LDFLAGS,;t t
22790s,@ac_ct_FC@,$ac_ct_FC,;t t
22791s,@libtool_VERSION@,$libtool_VERSION,;t t
953ff289
DN
22792s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
22793s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
22794s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
22795s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
22796s,@config_path@,$config_path,;t t
22797s,@XCFLAGS@,$XCFLAGS,;t t
22798s,@XLDFLAGS@,$XLDFLAGS,;t t
22799s,@link_gomp@,$link_gomp,;t t
22800s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
22801s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
03b8fe49
PB
22802s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
22803s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
22804s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
22805s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
22806s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
22807s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
a68ab351
JJ
22808s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
22809s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
22810s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
22811s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
22812s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
22813s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
953ff289
DN
22814s,@LIBOBJS@,$LIBOBJS,;t t
22815s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22816CEOF
22817
22818_ACEOF
22819
22820 cat >>$CONFIG_STATUS <<\_ACEOF
22821 # Split the substitutions into bite-sized pieces for seds with
22822 # small command number limits, like on Digital OSF/1 and HP-UX.
22823 ac_max_sed_lines=48
22824 ac_sed_frag=1 # Number of current file.
22825 ac_beg=1 # First line for current file.
22826 ac_end=$ac_max_sed_lines # Line after last line for current file.
22827 ac_more_lines=:
22828 ac_sed_cmds=
22829 while $ac_more_lines; do
22830 if test $ac_beg -gt 1; then
22831 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22832 else
22833 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22834 fi
22835 if test ! -s $tmp/subs.frag; then
22836 ac_more_lines=false
22837 else
22838 # The purpose of the label and of the branching condition is to
22839 # speed up the sed processing (if there are no `@' at all, there
22840 # is no need to browse any of the substitutions).
22841 # These are the two extra sed commands mentioned above.
22842 (echo ':t
22843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22844 if test -z "$ac_sed_cmds"; then
22845 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22846 else
22847 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22848 fi
22849 ac_sed_frag=`expr $ac_sed_frag + 1`
22850 ac_beg=$ac_end
22851 ac_end=`expr $ac_end + $ac_max_sed_lines`
22852 fi
22853 done
22854 if test -z "$ac_sed_cmds"; then
22855 ac_sed_cmds=cat
22856 fi
22857fi # test -n "$CONFIG_FILES"
22858
22859_ACEOF
22860cat >>$CONFIG_STATUS <<\_ACEOF
22861for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22862 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22863 case $ac_file in
22864 - | *:- | *:-:* ) # input from stdin
22865 cat >$tmp/stdin
22866 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22868 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22869 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22870 * ) ac_file_in=$ac_file.in ;;
22871 esac
22872
22873 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22874 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22875$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22876 X"$ac_file" : 'X\(//\)[^/]' \| \
22877 X"$ac_file" : 'X\(//\)$' \| \
22878 X"$ac_file" : 'X\(/\)' \| \
22879 . : '\(.\)' 2>/dev/null ||
22880echo X"$ac_file" |
22881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22883 /^X\(\/\/\)$/{ s//\1/; q; }
22884 /^X\(\/\).*/{ s//\1/; q; }
22885 s/.*/./; q'`
22886 { if $as_mkdir_p; then
22887 mkdir -p "$ac_dir"
22888 else
22889 as_dir="$ac_dir"
22890 as_dirs=
22891 while test ! -d "$as_dir"; do
22892 as_dirs="$as_dir $as_dirs"
22893 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22894$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22895 X"$as_dir" : 'X\(//\)[^/]' \| \
22896 X"$as_dir" : 'X\(//\)$' \| \
22897 X"$as_dir" : 'X\(/\)' \| \
22898 . : '\(.\)' 2>/dev/null ||
22899echo X"$as_dir" |
22900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22902 /^X\(\/\/\)$/{ s//\1/; q; }
22903 /^X\(\/\).*/{ s//\1/; q; }
22904 s/.*/./; q'`
22905 done
22906 test ! -n "$as_dirs" || mkdir $as_dirs
22907 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22908echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22909 { (exit 1); exit 1; }; }; }
22910
22911 ac_builddir=.
22912
22913if test "$ac_dir" != .; then
22914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22915 # A "../" for each directory in $ac_dir_suffix.
22916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22917else
22918 ac_dir_suffix= ac_top_builddir=
22919fi
22920
22921case $srcdir in
22922 .) # No --srcdir option. We are building in place.
22923 ac_srcdir=.
22924 if test -z "$ac_top_builddir"; then
22925 ac_top_srcdir=.
22926 else
22927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22928 fi ;;
22929 [\\/]* | ?:[\\/]* ) # Absolute path.
22930 ac_srcdir=$srcdir$ac_dir_suffix;
22931 ac_top_srcdir=$srcdir ;;
22932 *) # Relative path.
22933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22935esac
22936
22937# Do not use `cd foo && pwd` to compute absolute paths, because
22938# the directories may not exist.
22939case `pwd` in
22940.) ac_abs_builddir="$ac_dir";;
22941*)
22942 case "$ac_dir" in
22943 .) ac_abs_builddir=`pwd`;;
22944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22946 esac;;
22947esac
22948case $ac_abs_builddir in
22949.) ac_abs_top_builddir=${ac_top_builddir}.;;
22950*)
22951 case ${ac_top_builddir}. in
22952 .) ac_abs_top_builddir=$ac_abs_builddir;;
22953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22955 esac;;
22956esac
22957case $ac_abs_builddir in
22958.) ac_abs_srcdir=$ac_srcdir;;
22959*)
22960 case $ac_srcdir in
22961 .) ac_abs_srcdir=$ac_abs_builddir;;
22962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22964 esac;;
22965esac
22966case $ac_abs_builddir in
22967.) ac_abs_top_srcdir=$ac_top_srcdir;;
22968*)
22969 case $ac_top_srcdir in
22970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22973 esac;;
22974esac
22975
22976
22977 case $INSTALL in
22978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22979 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22980 esac
22981
d349482e
AT
22982 if test x"$ac_file" != x-; then
22983 { echo "$as_me:$LINENO: creating $ac_file" >&5
22984echo "$as_me: creating $ac_file" >&6;}
22985 rm -f "$ac_file"
22986 fi
953ff289
DN
22987 # Let's still pretend it is `configure' which instantiates (i.e., don't
22988 # use $as_me), people would be surprised to read:
22989 # /* config.h. Generated by config.status. */
22990 if test x"$ac_file" = x-; then
22991 configure_input=
22992 else
22993 configure_input="$ac_file. "
22994 fi
22995 configure_input=$configure_input"Generated from `echo $ac_file_in |
22996 sed 's,.*/,,'` by configure."
22997
22998 # First look for the input files in the build tree, otherwise in the
22999 # src tree.
23000 ac_file_inputs=`IFS=:
23001 for f in $ac_file_in; do
23002 case $f in
23003 -) echo $tmp/stdin ;;
23004 [\\/$]*)
23005 # Absolute (can't be DOS-style, as IFS=:)
23006 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23007echo "$as_me: error: cannot find input file: $f" >&2;}
23008 { (exit 1); exit 1; }; }
23009 echo "$f";;
23010 *) # Relative
23011 if test -f "$f"; then
23012 # Build tree
23013 echo "$f"
23014 elif test -f "$srcdir/$f"; then
23015 # Source tree
23016 echo "$srcdir/$f"
23017 else
23018 # /dev/null tree
23019 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23020echo "$as_me: error: cannot find input file: $f" >&2;}
23021 { (exit 1); exit 1; }; }
23022 fi;;
23023 esac
23024 done` || { (exit 1); exit 1; }
23025_ACEOF
23026cat >>$CONFIG_STATUS <<_ACEOF
23027 sed "$ac_vpsub
23028$extrasub
23029_ACEOF
23030cat >>$CONFIG_STATUS <<\_ACEOF
23031:t
23032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23033s,@configure_input@,$configure_input,;t t
23034s,@srcdir@,$ac_srcdir,;t t
23035s,@abs_srcdir@,$ac_abs_srcdir,;t t
23036s,@top_srcdir@,$ac_top_srcdir,;t t
23037s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23038s,@builddir@,$ac_builddir,;t t
23039s,@abs_builddir@,$ac_abs_builddir,;t t
23040s,@top_builddir@,$ac_top_builddir,;t t
23041s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23042s,@INSTALL@,$ac_INSTALL,;t t
23043" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23044 rm -f $tmp/stdin
23045 if test x"$ac_file" != x-; then
23046 mv $tmp/out $ac_file
23047 else
23048 cat $tmp/out
23049 rm -f $tmp/out
23050 fi
23051
23052done
23053_ACEOF
23054cat >>$CONFIG_STATUS <<\_ACEOF
23055
23056#
23057# CONFIG_HEADER section.
23058#
23059
23060# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23061# NAME is the cpp macro being defined and VALUE is the value it is being given.
23062#
23063# ac_d sets the value in "#define NAME VALUE" lines.
23064ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23065ac_dB='[ ].*$,\1#\2'
23066ac_dC=' '
23067ac_dD=',;t'
23068# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23069ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23070ac_uB='$,\1#\2define\3'
23071ac_uC=' '
23072ac_uD=',;t'
23073
23074for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23075 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23076 case $ac_file in
23077 - | *:- | *:-:* ) # input from stdin
23078 cat >$tmp/stdin
23079 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23080 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23081 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23083 * ) ac_file_in=$ac_file.in ;;
23084 esac
23085
23086 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23087echo "$as_me: creating $ac_file" >&6;}
23088
23089 # First look for the input files in the build tree, otherwise in the
23090 # src tree.
23091 ac_file_inputs=`IFS=:
23092 for f in $ac_file_in; do
23093 case $f in
23094 -) echo $tmp/stdin ;;
23095 [\\/$]*)
23096 # Absolute (can't be DOS-style, as IFS=:)
23097 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23098echo "$as_me: error: cannot find input file: $f" >&2;}
23099 { (exit 1); exit 1; }; }
23100 # Do quote $f, to prevent DOS paths from being IFS'd.
23101 echo "$f";;
23102 *) # Relative
23103 if test -f "$f"; then
23104 # Build tree
23105 echo "$f"
23106 elif test -f "$srcdir/$f"; then
23107 # Source tree
23108 echo "$srcdir/$f"
23109 else
23110 # /dev/null tree
23111 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23112echo "$as_me: error: cannot find input file: $f" >&2;}
23113 { (exit 1); exit 1; }; }
23114 fi;;
23115 esac
23116 done` || { (exit 1); exit 1; }
23117 # Remove the trailing spaces.
23118 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23119
23120_ACEOF
23121
23122# Transform confdefs.h into two sed scripts, `conftest.defines' and
23123# `conftest.undefs', that substitutes the proper values into
23124# config.h.in to produce config.h. The first handles `#define'
23125# templates, and the second `#undef' templates.
23126# And first: Protect against being on the right side of a sed subst in
23127# config.status. Protect against being in an unquoted here document
23128# in config.status.
23129rm -f conftest.defines conftest.undefs
23130# Using a here document instead of a string reduces the quoting nightmare.
23131# Putting comments in sed scripts is not portable.
23132#
23133# `end' is used to avoid that the second main sed command (meant for
23134# 0-ary CPP macros) applies to n-ary macro definitions.
23135# See the Autoconf documentation for `clear'.
23136cat >confdef2sed.sed <<\_ACEOF
23137s/[\\&,]/\\&/g
23138s,[\\$`],\\&,g
23139t clear
23140: clear
23141s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23142t end
23143s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23144: end
23145_ACEOF
23146# If some macros were called several times there might be several times
23147# the same #defines, which is useless. Nevertheless, we may not want to
23148# sort them, since we want the *last* AC-DEFINE to be honored.
23149uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23150sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23151rm -f confdef2sed.sed
23152
23153# This sed command replaces #undef with comments. This is necessary, for
23154# example, in the case of _POSIX_SOURCE, which is predefined and required
23155# on some systems where configure will not decide to define it.
23156cat >>conftest.undefs <<\_ACEOF
23157s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23158_ACEOF
23159
23160# Break up conftest.defines because some shells have a limit on the size
23161# of here documents, and old seds have small limits too (100 cmds).
23162echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23163echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23164echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23165echo ' :' >>$CONFIG_STATUS
23166rm -f conftest.tail
23167while grep . conftest.defines >/dev/null
23168do
23169 # Write a limited-size here document to $tmp/defines.sed.
23170 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23171 # Speed up: don't consider the non `#define' lines.
23172 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23173 # Work around the forget-to-reset-the-flag bug.
23174 echo 't clr' >>$CONFIG_STATUS
23175 echo ': clr' >>$CONFIG_STATUS
23176 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23177 echo 'CEOF
23178 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23179 rm -f $tmp/in
23180 mv $tmp/out $tmp/in
23181' >>$CONFIG_STATUS
23182 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23183 rm -f conftest.defines
23184 mv conftest.tail conftest.defines
23185done
23186rm -f conftest.defines
23187echo ' fi # grep' >>$CONFIG_STATUS
23188echo >>$CONFIG_STATUS
23189
23190# Break up conftest.undefs because some shells have a limit on the size
23191# of here documents, and old seds have small limits too (100 cmds).
23192echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23193rm -f conftest.tail
23194while grep . conftest.undefs >/dev/null
23195do
23196 # Write a limited-size here document to $tmp/undefs.sed.
23197 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23198 # Speed up: don't consider the non `#undef'
23199 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23200 # Work around the forget-to-reset-the-flag bug.
23201 echo 't clr' >>$CONFIG_STATUS
23202 echo ': clr' >>$CONFIG_STATUS
23203 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23204 echo 'CEOF
23205 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23206 rm -f $tmp/in
23207 mv $tmp/out $tmp/in
23208' >>$CONFIG_STATUS
23209 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23210 rm -f conftest.undefs
23211 mv conftest.tail conftest.undefs
23212done
23213rm -f conftest.undefs
23214
23215cat >>$CONFIG_STATUS <<\_ACEOF
23216 # Let's still pretend it is `configure' which instantiates (i.e., don't
23217 # use $as_me), people would be surprised to read:
23218 # /* config.h. Generated by config.status. */
23219 if test x"$ac_file" = x-; then
23220 echo "/* Generated by configure. */" >$tmp/config.h
23221 else
23222 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23223 fi
23224 cat $tmp/in >>$tmp/config.h
23225 rm -f $tmp/in
23226 if test x"$ac_file" != x-; then
23227 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23228 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23229echo "$as_me: $ac_file is unchanged" >&6;}
23230 else
23231 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23232$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23233 X"$ac_file" : 'X\(//\)[^/]' \| \
23234 X"$ac_file" : 'X\(//\)$' \| \
23235 X"$ac_file" : 'X\(/\)' \| \
23236 . : '\(.\)' 2>/dev/null ||
23237echo X"$ac_file" |
23238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23240 /^X\(\/\/\)$/{ s//\1/; q; }
23241 /^X\(\/\).*/{ s//\1/; q; }
23242 s/.*/./; q'`
23243 { if $as_mkdir_p; then
23244 mkdir -p "$ac_dir"
23245 else
23246 as_dir="$ac_dir"
23247 as_dirs=
23248 while test ! -d "$as_dir"; do
23249 as_dirs="$as_dir $as_dirs"
23250 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23251$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23252 X"$as_dir" : 'X\(//\)[^/]' \| \
23253 X"$as_dir" : 'X\(//\)$' \| \
23254 X"$as_dir" : 'X\(/\)' \| \
23255 . : '\(.\)' 2>/dev/null ||
23256echo X"$as_dir" |
23257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23259 /^X\(\/\/\)$/{ s//\1/; q; }
23260 /^X\(\/\).*/{ s//\1/; q; }
23261 s/.*/./; q'`
23262 done
23263 test ! -n "$as_dirs" || mkdir $as_dirs
23264 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23265echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23266 { (exit 1); exit 1; }; }; }
23267
23268 rm -f $ac_file
23269 mv $tmp/config.h $ac_file
23270 fi
23271 else
23272 cat $tmp/config.h
23273 rm -f $tmp/config.h
23274 fi
23275# Compute $ac_file's index in $config_headers.
23276_am_stamp_count=1
23277for _am_header in $config_headers :; do
23278 case $_am_header in
23279 $ac_file | $ac_file:* )
23280 break ;;
23281 * )
23282 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23283 esac
23284done
23285echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23286$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23287 X$ac_file : 'X\(//\)[^/]' \| \
23288 X$ac_file : 'X\(//\)$' \| \
23289 X$ac_file : 'X\(/\)' \| \
23290 . : '\(.\)' 2>/dev/null ||
23291echo X$ac_file |
23292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23294 /^X\(\/\/\)$/{ s//\1/; q; }
23295 /^X\(\/\).*/{ s//\1/; q; }
23296 s/.*/./; q'`/stamp-h$_am_stamp_count
23297done
23298_ACEOF
23299cat >>$CONFIG_STATUS <<\_ACEOF
23300
23301#
23302# CONFIG_COMMANDS section.
23303#
23304for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23305 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23306 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23307 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23308$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23309 X"$ac_dest" : 'X\(//\)[^/]' \| \
23310 X"$ac_dest" : 'X\(//\)$' \| \
23311 X"$ac_dest" : 'X\(/\)' \| \
23312 . : '\(.\)' 2>/dev/null ||
23313echo X"$ac_dest" |
23314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23316 /^X\(\/\/\)$/{ s//\1/; q; }
23317 /^X\(\/\).*/{ s//\1/; q; }
23318 s/.*/./; q'`
23319 { if $as_mkdir_p; then
23320 mkdir -p "$ac_dir"
23321 else
23322 as_dir="$ac_dir"
23323 as_dirs=
23324 while test ! -d "$as_dir"; do
23325 as_dirs="$as_dir $as_dirs"
23326 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23327$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23328 X"$as_dir" : 'X\(//\)[^/]' \| \
23329 X"$as_dir" : 'X\(//\)$' \| \
23330 X"$as_dir" : 'X\(/\)' \| \
23331 . : '\(.\)' 2>/dev/null ||
23332echo X"$as_dir" |
23333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23335 /^X\(\/\/\)$/{ s//\1/; q; }
23336 /^X\(\/\).*/{ s//\1/; q; }
23337 s/.*/./; q'`
23338 done
23339 test ! -n "$as_dirs" || mkdir $as_dirs
23340 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23341echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23342 { (exit 1); exit 1; }; }; }
23343
23344 ac_builddir=.
23345
23346if test "$ac_dir" != .; then
23347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23348 # A "../" for each directory in $ac_dir_suffix.
23349 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23350else
23351 ac_dir_suffix= ac_top_builddir=
23352fi
23353
23354case $srcdir in
23355 .) # No --srcdir option. We are building in place.
23356 ac_srcdir=.
23357 if test -z "$ac_top_builddir"; then
23358 ac_top_srcdir=.
23359 else
23360 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23361 fi ;;
23362 [\\/]* | ?:[\\/]* ) # Absolute path.
23363 ac_srcdir=$srcdir$ac_dir_suffix;
23364 ac_top_srcdir=$srcdir ;;
23365 *) # Relative path.
23366 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23367 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23368esac
23369
23370# Do not use `cd foo && pwd` to compute absolute paths, because
23371# the directories may not exist.
23372case `pwd` in
23373.) ac_abs_builddir="$ac_dir";;
23374*)
23375 case "$ac_dir" in
23376 .) ac_abs_builddir=`pwd`;;
23377 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23378 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23379 esac;;
23380esac
23381case $ac_abs_builddir in
23382.) ac_abs_top_builddir=${ac_top_builddir}.;;
23383*)
23384 case ${ac_top_builddir}. in
23385 .) ac_abs_top_builddir=$ac_abs_builddir;;
23386 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23387 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23388 esac;;
23389esac
23390case $ac_abs_builddir in
23391.) ac_abs_srcdir=$ac_srcdir;;
23392*)
23393 case $ac_srcdir in
23394 .) ac_abs_srcdir=$ac_abs_builddir;;
23395 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23396 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23397 esac;;
23398esac
23399case $ac_abs_builddir in
23400.) ac_abs_top_srcdir=$ac_top_srcdir;;
23401*)
23402 case $ac_top_srcdir in
23403 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23404 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23405 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23406 esac;;
23407esac
23408
23409
23410 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23411echo "$as_me: executing $ac_dest commands" >&6;}
23412 case $ac_dest in
23413 default-1 )
23414# Only add multilib support code if we just rebuilt the top-level
23415# Makefile.
23416case " $CONFIG_FILES " in
23417 *" Makefile "*)
23418 ac_file=Makefile . ${multi_basedir}/config-ml.in
23419 ;;
23420esac ;;
23421 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23422 # Strip MF so we end up with the name of the file.
23423 mf=`echo "$mf" | sed -e 's/:.*$//'`
23424 # Check whether this is an Automake generated Makefile or not.
23425 # We used to match only the files named `Makefile.in', but
23426 # some people rename them; so instead we look at the file content.
23427 # Grep'ing the first line is not enough: some people post-process
23428 # each Makefile.in and add a new line on top of each file to say so.
23429 # So let's grep whole file.
23430 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23431 dirpart=`(dirname "$mf") 2>/dev/null ||
23432$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23433 X"$mf" : 'X\(//\)[^/]' \| \
23434 X"$mf" : 'X\(//\)$' \| \
23435 X"$mf" : 'X\(/\)' \| \
23436 . : '\(.\)' 2>/dev/null ||
23437echo X"$mf" |
23438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23440 /^X\(\/\/\)$/{ s//\1/; q; }
23441 /^X\(\/\).*/{ s//\1/; q; }
23442 s/.*/./; q'`
23443 else
23444 continue
23445 fi
23446 # Extract the definition of DEPDIR, am__include, and am__quote
23447 # from the Makefile without running `make'.
23448 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23449 test -z "$DEPDIR" && continue
23450 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23451 test -z "am__include" && continue
23452 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23453 # When using ansi2knr, U may be empty or an underscore; expand it
23454 U=`sed -n 's/^U = //p' < "$mf"`
23455 # Find all dependency output files, they are included files with
23456 # $(DEPDIR) in their names. We invoke sed twice because it is the
23457 # simplest approach to changing $(DEPDIR) to its actual value in the
23458 # expansion.
23459 for file in `sed -n "
23460 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23461 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23462 # Make sure the directory exists.
23463 test -f "$dirpart/$file" && continue
23464 fdir=`(dirname "$file") 2>/dev/null ||
23465$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23466 X"$file" : 'X\(//\)[^/]' \| \
23467 X"$file" : 'X\(//\)$' \| \
23468 X"$file" : 'X\(/\)' \| \
23469 . : '\(.\)' 2>/dev/null ||
23470echo X"$file" |
23471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23473 /^X\(\/\/\)$/{ s//\1/; q; }
23474 /^X\(\/\).*/{ s//\1/; q; }
23475 s/.*/./; q'`
23476 { if $as_mkdir_p; then
23477 mkdir -p $dirpart/$fdir
23478 else
23479 as_dir=$dirpart/$fdir
23480 as_dirs=
23481 while test ! -d "$as_dir"; do
23482 as_dirs="$as_dir $as_dirs"
23483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23485 X"$as_dir" : 'X\(//\)[^/]' \| \
23486 X"$as_dir" : 'X\(//\)$' \| \
23487 X"$as_dir" : 'X\(/\)' \| \
23488 . : '\(.\)' 2>/dev/null ||
23489echo X"$as_dir" |
23490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23492 /^X\(\/\/\)$/{ s//\1/; q; }
23493 /^X\(\/\).*/{ s//\1/; q; }
23494 s/.*/./; q'`
23495 done
23496 test ! -n "$as_dirs" || mkdir $as_dirs
23497 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23498echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23499 { (exit 1); exit 1; }; }; }
23500
23501 # echo "creating $dirpart/$file"
23502 echo '# dummy' > "$dirpart/$file"
23503 done
23504done
1cf3d07d
SE
23505 ;;
23506 libtool )
23507
23508 # See if we are running on zsh, and set the options which allow our
23509 # commands through without removal of \ escapes.
23510 if test -n "${ZSH_VERSION+set}" ; then
23511 setopt NO_GLOB_SUBST
23512 fi
23513
23514 cfgfile="${ofile}T"
23515 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23516 $RM "$cfgfile"
23517
23518 cat <<_LT_EOF >> "$cfgfile"
23519#! $SHELL
23520
23521# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6b4a97ed 23522# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
23523# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23524# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23525#
6b4a97ed
PG
23526# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23527# 2006, 2007, 2008 Free Software Foundation, Inc.
23528# Written by Gordon Matzigkeit, 1996
1cf3d07d 23529#
6b4a97ed 23530# This file is part of GNU Libtool.
1cf3d07d 23531#
6b4a97ed
PG
23532# GNU Libtool is free software; you can redistribute it and/or
23533# modify it under the terms of the GNU General Public License as
23534# published by the Free Software Foundation; either version 2 of
23535# the License, or (at your option) any later version.
1cf3d07d 23536#
6b4a97ed
PG
23537# As a special exception to the GNU General Public License,
23538# if you distribute this file as part of a program or library that
23539# is built using GNU Libtool, you may include this file under the
23540# same distribution terms that you use for the rest of that program.
1cf3d07d 23541#
6b4a97ed
PG
23542# GNU Libtool is distributed in the hope that it will be useful,
23543# but WITHOUT ANY WARRANTY; without even the implied warranty of
23544# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23545# GNU General Public License for more details.
1cf3d07d 23546#
6b4a97ed
PG
23547# You should have received a copy of the GNU General Public License
23548# along with GNU Libtool; see the file COPYING. If not, a copy
23549# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23550# obtained by writing to the Free Software Foundation, Inc.,
23551# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
23552
23553
23554# The names of the tagged configurations supported by this script.
23555available_tags="FC "
23556
23557# ### BEGIN LIBTOOL CONFIG
23558
23559# Which release of libtool.m4 was used?
23560macro_version=$macro_version
23561macro_revision=$macro_revision
23562
23563# Whether or not to build shared libraries.
23564build_libtool_libs=$enable_shared
23565
23566# Whether or not to build static libraries.
23567build_old_libs=$enable_static
23568
23569# What type of objects to build.
23570pic_mode=$pic_mode
23571
23572# Whether or not to optimize for fast installation.
23573fast_install=$enable_fast_install
23574
23575# The host system.
23576host_alias=$host_alias
23577host=$host
23578host_os=$host_os
23579
23580# The build system.
23581build_alias=$build_alias
23582build=$build
23583build_os=$build_os
23584
23585# A sed program that does not truncate output.
23586SED=$lt_SED
23587
23588# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23589Xsed="\$SED -e 1s/^X//"
23590
23591# A grep program that handles long lines.
23592GREP=$lt_GREP
23593
23594# An ERE matcher.
23595EGREP=$lt_EGREP
23596
23597# A literal string matcher.
23598FGREP=$lt_FGREP
23599
23600# A BSD- or MS-compatible name lister.
23601NM=$lt_NM
23602
23603# Whether we need soft or hard links.
23604LN_S=$lt_LN_S
23605
23606# What is the maximum length of a command?
23607max_cmd_len=$max_cmd_len
23608
23609# Object file suffix (normally "o").
23610objext=$ac_objext
23611
23612# Executable file suffix (normally "").
23613exeext=$exeext
23614
23615# whether the shell understands "unset".
23616lt_unset=$lt_unset
23617
23618# turn spaces into newlines.
23619SP2NL=$lt_lt_SP2NL
23620
23621# turn newlines into spaces.
23622NL2SP=$lt_lt_NL2SP
23623
23624# How to create reloadable object files.
23625reload_flag=$lt_reload_flag
23626reload_cmds=$lt_reload_cmds
23627
6b4a97ed
PG
23628# An object symbol dumper.
23629OBJDUMP=$lt_OBJDUMP
23630
1cf3d07d
SE
23631# Method to check whether dependent libraries are shared objects.
23632deplibs_check_method=$lt_deplibs_check_method
23633
23634# Command to use when deplibs_check_method == "file_magic".
23635file_magic_cmd=$lt_file_magic_cmd
23636
23637# The archiver.
23638AR=$lt_AR
23639AR_FLAGS=$lt_AR_FLAGS
23640
23641# A symbol stripping program.
23642STRIP=$lt_STRIP
23643
23644# Commands used to install an old-style archive.
23645RANLIB=$lt_RANLIB
23646old_postinstall_cmds=$lt_old_postinstall_cmds
23647old_postuninstall_cmds=$lt_old_postuninstall_cmds
23648
23649# A C compiler.
23650LTCC=$lt_CC
23651
23652# LTCC compiler flags.
23653LTCFLAGS=$lt_CFLAGS
23654
23655# Take the output of nm and produce a listing of raw symbols and C names.
23656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23657
23658# Transform the output of nm in a proper C declaration.
23659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23660
23661# Transform the output of nm in a C name address pair.
23662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23663
6b4a97ed
PG
23664# Transform the output of nm in a C name address pair when lib prefix is needed.
23665global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23666
1cf3d07d
SE
23667# The name of the directory that contains temporary libtool files.
23668objdir=$objdir
23669
23670# Shell to use when invoking shell scripts.
23671SHELL=$lt_SHELL
23672
23673# An echo program that does not interpret backslashes.
23674ECHO=$lt_ECHO
23675
23676# Used to examine libraries when file_magic_cmd begins with "file".
23677MAGIC_CMD=$MAGIC_CMD
23678
23679# Must we lock files when doing compilation?
23680need_locks=$lt_need_locks
23681
6b4a97ed
PG
23682# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23683DSYMUTIL=$lt_DSYMUTIL
23684
23685# Tool to change global to local symbols on Mac OS X.
23686NMEDIT=$lt_NMEDIT
23687
23688# Tool to manipulate fat objects and archives on Mac OS X.
23689LIPO=$lt_LIPO
23690
23691# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23692OTOOL=$lt_OTOOL
23693
23694# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23695OTOOL64=$lt_OTOOL64
23696
1cf3d07d
SE
23697# Old archive suffix (normally "a").
23698libext=$libext
23699
23700# Shared library suffix (normally ".so").
23701shrext_cmds=$lt_shrext_cmds
23702
23703# The commands to extract the exported symbol list from a shared archive.
23704extract_expsyms_cmds=$lt_extract_expsyms_cmds
23705
23706# Variables whose values should be saved in libtool wrapper scripts and
23707# restored at link time.
23708variables_saved_for_relink=$lt_variables_saved_for_relink
23709
23710# Do we need the "lib" prefix for modules?
23711need_lib_prefix=$need_lib_prefix
23712
23713# Do we need a version for libraries?
23714need_version=$need_version
23715
23716# Library versioning type.
23717version_type=$version_type
23718
23719# Shared library runtime path variable.
23720runpath_var=$runpath_var
23721
23722# Shared library path variable.
23723shlibpath_var=$shlibpath_var
23724
23725# Is shlibpath searched before the hard-coded library search path?
23726shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23727
23728# Format of library name prefix.
23729libname_spec=$lt_libname_spec
23730
23731# List of archive names. First name is the real one, the rest are links.
23732# The last name is the one that the linker finds with -lNAME
23733library_names_spec=$lt_library_names_spec
23734
23735# The coded name of the library, if different from the real name.
23736soname_spec=$lt_soname_spec
23737
23738# Command to use after installation of a shared archive.
23739postinstall_cmds=$lt_postinstall_cmds
23740
23741# Command to use after uninstallation of a shared archive.
23742postuninstall_cmds=$lt_postuninstall_cmds
23743
23744# Commands used to finish a libtool library installation in a directory.
23745finish_cmds=$lt_finish_cmds
23746
23747# As "finish_cmds", except a single script fragment to be evaled but
23748# not shown.
23749finish_eval=$lt_finish_eval
23750
23751# Whether we should hardcode library paths into libraries.
23752hardcode_into_libs=$hardcode_into_libs
23753
23754# Compile-time system search path for libraries.
23755sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23756
23757# Run-time system search path for libraries.
23758sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23759
23760# Whether dlopen is supported.
23761dlopen_support=$enable_dlopen
23762
23763# Whether dlopen of programs is supported.
23764dlopen_self=$enable_dlopen_self
23765
23766# Whether dlopen of statically linked programs is supported.
23767dlopen_self_static=$enable_dlopen_self_static
23768
23769# Commands to strip libraries.
23770old_striplib=$lt_old_striplib
23771striplib=$lt_striplib
23772
23773
23774# The linker used to build libraries.
23775LD=$lt_LD
23776
23777# Commands used to build an old-style archive.
23778old_archive_cmds=$lt_old_archive_cmds
23779
23780# A language specific compiler.
23781CC=$lt_compiler
23782
23783# Is the compiler the GNU compiler?
23784with_gcc=$GCC
23785
23786# Compiler flag to turn off builtin functions.
23787no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23788
23789# How to pass a linker flag through the compiler.
23790wl=$lt_lt_prog_compiler_wl
23791
23792# Additional compiler flags for building library objects.
23793pic_flag=$lt_lt_prog_compiler_pic
23794
23795# Compiler flag to prevent dynamic linking.
23796link_static_flag=$lt_lt_prog_compiler_static
23797
23798# Does compiler simultaneously support -c and -o options?
23799compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23800
23801# Whether or not to add -lc for building shared libraries.
23802build_libtool_need_lc=$archive_cmds_need_lc
23803
23804# Whether or not to disallow shared libs when runtime libs are static.
23805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23806
23807# Compiler flag to allow reflexive dlopens.
23808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23809
23810# Compiler flag to generate shared objects directly from archives.
23811whole_archive_flag_spec=$lt_whole_archive_flag_spec
23812
23813# Whether the compiler copes with passing no objects directly.
23814compiler_needs_object=$lt_compiler_needs_object
23815
23816# Create an old-style archive from a shared archive.
23817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23818
23819# Create a temporary old-style archive to link instead of a shared archive.
23820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23821
23822# Commands used to build a shared archive.
23823archive_cmds=$lt_archive_cmds
23824archive_expsym_cmds=$lt_archive_expsym_cmds
23825
23826# Commands used to build a loadable module if different from building
23827# a shared archive.
23828module_cmds=$lt_module_cmds
23829module_expsym_cmds=$lt_module_expsym_cmds
23830
23831# Whether we are building with GNU ld or not.
23832with_gnu_ld=$lt_with_gnu_ld
23833
23834# Flag that allows shared libraries with undefined symbols to be built.
23835allow_undefined_flag=$lt_allow_undefined_flag
23836
23837# Flag that enforces no undefined symbols.
23838no_undefined_flag=$lt_no_undefined_flag
23839
23840# Flag to hardcode \$libdir into a binary during linking.
23841# This must work even if \$libdir does not exist
23842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23843
23844# If ld is used when linking, flag to hardcode \$libdir into a binary
23845# during linking. This must work even if \$libdir does not exist.
23846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23847
23848# Whether we need a single "-rpath" flag with a separated argument.
23849hardcode_libdir_separator=$lt_hardcode_libdir_separator
23850
23851# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23852# DIR into the resulting binary.
23853hardcode_direct=$hardcode_direct
23854
23855# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23856# DIR into the resulting binary and the resulting library dependency is
23857# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23858# library is relocated.
23859hardcode_direct_absolute=$hardcode_direct_absolute
23860
23861# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23862# into the resulting binary.
23863hardcode_minus_L=$hardcode_minus_L
23864
23865# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23866# into the resulting binary.
23867hardcode_shlibpath_var=$hardcode_shlibpath_var
23868
23869# Set to "yes" if building a shared library automatically hardcodes DIR
23870# into the library and all subsequent libraries and executables linked
23871# against it.
23872hardcode_automatic=$hardcode_automatic
23873
23874# Set to yes if linker adds runtime paths of dependent libraries
23875# to runtime path list.
23876inherit_rpath=$inherit_rpath
23877
23878# Whether libtool must link a program against all its dependency libraries.
23879link_all_deplibs=$link_all_deplibs
23880
23881# Fix the shell variable \$srcfile for the compiler.
23882fix_srcfile_path=$lt_fix_srcfile_path
23883
23884# Set to "yes" if exported symbols are required.
23885always_export_symbols=$always_export_symbols
23886
23887# The commands to list exported symbols.
23888export_symbols_cmds=$lt_export_symbols_cmds
23889
23890# Symbols that should not be listed in the preloaded symbols.
23891exclude_expsyms=$lt_exclude_expsyms
23892
23893# Symbols that must always be exported.
23894include_expsyms=$lt_include_expsyms
23895
23896# Commands necessary for linking programs (against libraries) with templates.
23897prelink_cmds=$lt_prelink_cmds
23898
23899# Specify filename containing input files.
23900file_list_spec=$lt_file_list_spec
23901
23902# How to hardcode a shared library path into an executable.
23903hardcode_action=$hardcode_action
23904
6b4a97ed
PG
23905# The directories searched by this compiler when creating a shared library.
23906compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23907
1cf3d07d
SE
23908# Dependencies to place before and after the objects being linked to
23909# create a shared library.
23910predep_objects=$lt_predep_objects
23911postdep_objects=$lt_postdep_objects
23912predeps=$lt_predeps
23913postdeps=$lt_postdeps
23914
23915# The library search path used internally by the compiler when linking
23916# a shared library.
23917compiler_lib_search_path=$lt_compiler_lib_search_path
23918
23919# ### END LIBTOOL CONFIG
23920
23921_LT_EOF
23922
23923 case $host_os in
23924 aix3*)
23925 cat <<\_LT_EOF >> "$cfgfile"
23926# AIX sometimes has problems with the GCC collect2 program. For some
23927# reason, if we set the COLLECT_NAMES environment variable, the problems
23928# vanish in a puff of smoke.
23929if test "X${COLLECT_NAMES+set}" != Xset; then
23930 COLLECT_NAMES=
23931 export COLLECT_NAMES
23932fi
23933_LT_EOF
23934 ;;
23935 esac
23936
23937
23938ltmain="$ac_aux_dir/ltmain.sh"
23939
23940
23941 # We use sed instead of cat because bash on DJGPP gets confused if
23942 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23943 # text mode, it properly converts lines to CR/LF. This bash problem
23944 # is reportedly fixed, but why not run on old versions too?
23945 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23946 || (rm -f "$cfgfile"; exit 1)
23947
23948 case $xsi_shell in
23949 yes)
23950 cat << \_LT_EOF >> "$cfgfile"
6b4a97ed 23951
1cf3d07d
SE
23952# func_dirname file append nondir_replacement
23953# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23954# otherwise set result to NONDIR_REPLACEMENT.
23955func_dirname ()
23956{
23957 case ${1} in
23958 */*) func_dirname_result="${1%/*}${2}" ;;
23959 * ) func_dirname_result="${3}" ;;
23960 esac
23961}
23962
23963# func_basename file
23964func_basename ()
23965{
23966 func_basename_result="${1##*/}"
23967}
23968
6b4a97ed
PG
23969# func_dirname_and_basename file append nondir_replacement
23970# perform func_basename and func_dirname in a single function
23971# call:
23972# dirname: Compute the dirname of FILE. If nonempty,
23973# add APPEND to the result, otherwise set result
23974# to NONDIR_REPLACEMENT.
23975# value returned in "$func_dirname_result"
23976# basename: Compute filename of FILE.
23977# value retuned in "$func_basename_result"
23978# Implementation must be kept synchronized with func_dirname
23979# and func_basename. For efficiency, we do not delegate to
23980# those functions but instead duplicate the functionality here.
23981func_dirname_and_basename ()
23982{
23983 case ${1} in
23984 */*) func_dirname_result="${1%/*}${2}" ;;
23985 * ) func_dirname_result="${3}" ;;
23986 esac
23987 func_basename_result="${1##*/}"
23988}
23989
1cf3d07d
SE
23990# func_stripname prefix suffix name
23991# strip PREFIX and SUFFIX off of NAME.
23992# PREFIX and SUFFIX must not contain globbing or regex special
23993# characters, hashes, percent signs, but SUFFIX may contain a leading
23994# dot (in which case that matches only a dot).
23995func_stripname ()
23996{
23997 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23998 # positional parameters, so assign one to ordinary parameter first.
23999 func_stripname_result=${3}
24000 func_stripname_result=${func_stripname_result#"${1}"}
24001 func_stripname_result=${func_stripname_result%"${2}"}
24002}
24003
24004# func_opt_split
24005func_opt_split ()
24006{
24007 func_opt_split_opt=${1%%=*}
24008 func_opt_split_arg=${1#*=}
24009}
24010
24011# func_lo2o object
24012func_lo2o ()
24013{
24014 case ${1} in
24015 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24016 *) func_lo2o_result=${1} ;;
24017 esac
24018}
6b4a97ed
PG
24019
24020# func_xform libobj-or-source
24021func_xform ()
24022{
24023 func_xform_result=${1%.*}.lo
24024}
24025
24026# func_arith arithmetic-term...
24027func_arith ()
24028{
24029 func_arith_result=$(( $* ))
24030}
24031
24032# func_len string
24033# STRING may not start with a hyphen.
24034func_len ()
24035{
24036 func_len_result=${#1}
24037}
24038
1cf3d07d
SE
24039_LT_EOF
24040 ;;
24041 *) # Bourne compatible functions.
24042 cat << \_LT_EOF >> "$cfgfile"
6b4a97ed 24043
1cf3d07d
SE
24044# func_dirname file append nondir_replacement
24045# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24046# otherwise set result to NONDIR_REPLACEMENT.
24047func_dirname ()
24048{
24049 # Extract subdirectory from the argument.
24050 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24051 if test "X$func_dirname_result" = "X${1}"; then
24052 func_dirname_result="${3}"
24053 else
24054 func_dirname_result="$func_dirname_result${2}"
24055 fi
24056}
24057
24058# func_basename file
24059func_basename ()
24060{
24061 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24062}
24063
6b4a97ed 24064
1cf3d07d
SE
24065# func_stripname prefix suffix name
24066# strip PREFIX and SUFFIX off of NAME.
24067# PREFIX and SUFFIX must not contain globbing or regex special
24068# characters, hashes, percent signs, but SUFFIX may contain a leading
24069# dot (in which case that matches only a dot).
24070# func_strip_suffix prefix name
24071func_stripname ()
24072{
24073 case ${2} in
24074 .*) func_stripname_result=`$ECHO "X${3}" \
24075 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24076 *) func_stripname_result=`$ECHO "X${3}" \
24077 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24078 esac
24079}
24080
24081# sed scripts:
24082my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24083my_sed_long_arg='1s/^-[^=]*=//'
24084
24085# func_opt_split
24086func_opt_split ()
24087{
24088 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24089 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24090}
24091
24092# func_lo2o object
24093func_lo2o ()
24094{
24095 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24096}
6b4a97ed
PG
24097
24098# func_xform libobj-or-source
24099func_xform ()
24100{
24101 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24102}
24103
24104# func_arith arithmetic-term...
24105func_arith ()
24106{
24107 func_arith_result=`expr "$@"`
24108}
24109
24110# func_len string
24111# STRING may not start with a hyphen.
24112func_len ()
24113{
24114 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24115}
24116
1cf3d07d
SE
24117_LT_EOF
24118esac
24119
24120case $lt_shell_append in
24121 yes)
24122 cat << \_LT_EOF >> "$cfgfile"
24123
24124# func_append var value
24125# Append VALUE to the end of shell variable VAR.
24126func_append ()
24127{
24128 eval "$1+=\$2"
24129}
24130_LT_EOF
24131 ;;
24132 *)
24133 cat << \_LT_EOF >> "$cfgfile"
24134
24135# func_append var value
24136# Append VALUE to the end of shell variable VAR.
24137func_append ()
24138{
24139 eval "$1=\$$1\$2"
24140}
6b4a97ed 24141
1cf3d07d
SE
24142_LT_EOF
24143 ;;
24144 esac
24145
24146
24147 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24148 || (rm -f "$cfgfile"; exit 1)
24149
24150 mv -f "$cfgfile" "$ofile" ||
24151 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24152 chmod +x "$ofile"
24153
24154
24155 cat <<_LT_EOF >> "$ofile"
24156
24157# ### BEGIN LIBTOOL TAG CONFIG: FC
24158
24159# The linker used to build libraries.
24160LD=$lt_LD_FC
24161
24162# Commands used to build an old-style archive.
24163old_archive_cmds=$lt_old_archive_cmds_FC
24164
24165# A language specific compiler.
24166CC=$lt_compiler_FC
24167
24168# Is the compiler the GNU compiler?
24169with_gcc=$GCC_FC
24170
24171# Compiler flag to turn off builtin functions.
24172no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
24173
24174# How to pass a linker flag through the compiler.
24175wl=$lt_lt_prog_compiler_wl_FC
24176
24177# Additional compiler flags for building library objects.
24178pic_flag=$lt_lt_prog_compiler_pic_FC
24179
24180# Compiler flag to prevent dynamic linking.
24181link_static_flag=$lt_lt_prog_compiler_static_FC
24182
24183# Does compiler simultaneously support -c and -o options?
24184compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
24185
24186# Whether or not to add -lc for building shared libraries.
24187build_libtool_need_lc=$archive_cmds_need_lc_FC
24188
24189# Whether or not to disallow shared libs when runtime libs are static.
24190allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
24191
24192# Compiler flag to allow reflexive dlopens.
24193export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
24194
24195# Compiler flag to generate shared objects directly from archives.
24196whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
24197
24198# Whether the compiler copes with passing no objects directly.
24199compiler_needs_object=$lt_compiler_needs_object_FC
24200
24201# Create an old-style archive from a shared archive.
24202old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
24203
24204# Create a temporary old-style archive to link instead of a shared archive.
24205old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
24206
24207# Commands used to build a shared archive.
24208archive_cmds=$lt_archive_cmds_FC
24209archive_expsym_cmds=$lt_archive_expsym_cmds_FC
24210
24211# Commands used to build a loadable module if different from building
24212# a shared archive.
24213module_cmds=$lt_module_cmds_FC
24214module_expsym_cmds=$lt_module_expsym_cmds_FC
24215
24216# Whether we are building with GNU ld or not.
24217with_gnu_ld=$lt_with_gnu_ld_FC
24218
24219# Flag that allows shared libraries with undefined symbols to be built.
24220allow_undefined_flag=$lt_allow_undefined_flag_FC
24221
24222# Flag that enforces no undefined symbols.
24223no_undefined_flag=$lt_no_undefined_flag_FC
24224
24225# Flag to hardcode \$libdir into a binary during linking.
24226# This must work even if \$libdir does not exist
24227hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
24228
24229# If ld is used when linking, flag to hardcode \$libdir into a binary
24230# during linking. This must work even if \$libdir does not exist.
24231hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
24232
24233# Whether we need a single "-rpath" flag with a separated argument.
24234hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
24235
24236# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24237# DIR into the resulting binary.
24238hardcode_direct=$hardcode_direct_FC
24239
24240# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24241# DIR into the resulting binary and the resulting library dependency is
24242# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24243# library is relocated.
24244hardcode_direct_absolute=$hardcode_direct_absolute_FC
24245
24246# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24247# into the resulting binary.
24248hardcode_minus_L=$hardcode_minus_L_FC
24249
24250# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24251# into the resulting binary.
24252hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
24253
24254# Set to "yes" if building a shared library automatically hardcodes DIR
24255# into the library and all subsequent libraries and executables linked
24256# against it.
24257hardcode_automatic=$hardcode_automatic_FC
24258
24259# Set to yes if linker adds runtime paths of dependent libraries
24260# to runtime path list.
24261inherit_rpath=$inherit_rpath_FC
24262
24263# Whether libtool must link a program against all its dependency libraries.
24264link_all_deplibs=$link_all_deplibs_FC
24265
24266# Fix the shell variable \$srcfile for the compiler.
24267fix_srcfile_path=$lt_fix_srcfile_path_FC
24268
24269# Set to "yes" if exported symbols are required.
24270always_export_symbols=$always_export_symbols_FC
24271
24272# The commands to list exported symbols.
24273export_symbols_cmds=$lt_export_symbols_cmds_FC
24274
24275# Symbols that should not be listed in the preloaded symbols.
24276exclude_expsyms=$lt_exclude_expsyms_FC
24277
24278# Symbols that must always be exported.
24279include_expsyms=$lt_include_expsyms_FC
24280
24281# Commands necessary for linking programs (against libraries) with templates.
24282prelink_cmds=$lt_prelink_cmds_FC
24283
24284# Specify filename containing input files.
24285file_list_spec=$lt_file_list_spec_FC
24286
24287# How to hardcode a shared library path into an executable.
24288hardcode_action=$hardcode_action_FC
24289
6b4a97ed
PG
24290# The directories searched by this compiler when creating a shared library.
24291compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
24292
1cf3d07d
SE
24293# Dependencies to place before and after the objects being linked to
24294# create a shared library.
24295predep_objects=$lt_predep_objects_FC
24296postdep_objects=$lt_postdep_objects_FC
24297predeps=$lt_predeps_FC
24298postdeps=$lt_postdeps_FC
24299
24300# The library search path used internally by the compiler when linking
24301# a shared library.
24302compiler_lib_search_path=$lt_compiler_lib_search_path_FC
24303
24304# ### END LIBTOOL TAG CONFIG: FC
24305_LT_EOF
24306
18cbfd85
PB
24307 ;;
24308 gstdint.h )
24309if test "$GCC" = yes; then
24310 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24311else
24312 echo "/* generated for $CC */" > tmp-stdint.h
24313fi
24314
24315sed 's/^ *//' >> tmp-stdint.h <<EOF
24316
24317 #ifndef GCC_GENERATED_STDINT_H
24318 #define GCC_GENERATED_STDINT_H 1
24319
24320 #include <sys/types.h>
24321EOF
24322
24323if test "$acx_cv_header_stdint" != stdint.h; then
24324 echo "#include <stddef.h>" >> tmp-stdint.h
24325fi
24326if test "$acx_cv_header_stdint" != stddef.h; then
24327 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24328fi
24329
24330sed 's/^ *//' >> tmp-stdint.h <<EOF
24331 /* glibc uses these symbols as guards to prevent redefinitions. */
24332 #ifdef __int8_t_defined
24333 #define _INT8_T
24334 #define _INT16_T
24335 #define _INT32_T
24336 #endif
24337 #ifdef __uint32_t_defined
24338 #define _UINT32_T
24339 #endif
24340
24341EOF
24342
24343# ----------------- done header, emit basic int types -------------
24344if test "$acx_cv_header_stdint" = stddef.h; then
24345 sed 's/^ *//' >> tmp-stdint.h <<EOF
24346
24347 #ifndef _UINT8_T
24348 #define _UINT8_T
1cf3d07d
SE
24349 #ifndef __uint8_t_defined
24350 #define __uint8_t_defined
18cbfd85
PB
24351 typedef unsigned $acx_cv_type_int8_t uint8_t;
24352 #endif
1cf3d07d 24353 #endif
18cbfd85
PB
24354
24355 #ifndef _UINT16_T
24356 #define _UINT16_T
1cf3d07d
SE
24357 #ifndef __uint16_t_defined
24358 #define __uint16_t_defined
18cbfd85
PB
24359 typedef unsigned $acx_cv_type_int16_t uint16_t;
24360 #endif
1cf3d07d 24361 #endif
18cbfd85
PB
24362
24363 #ifndef _UINT32_T
24364 #define _UINT32_T
1cf3d07d
SE
24365 #ifndef __uint32_t_defined
24366 #define __uint32_t_defined
18cbfd85
PB
24367 typedef unsigned $acx_cv_type_int32_t uint32_t;
24368 #endif
1cf3d07d 24369 #endif
18cbfd85
PB
24370
24371 #ifndef _INT8_T
24372 #define _INT8_T
1cf3d07d
SE
24373 #ifndef __int8_t_defined
24374 #define __int8_t_defined
18cbfd85
PB
24375 typedef $acx_cv_type_int8_t int8_t;
24376 #endif
1cf3d07d 24377 #endif
18cbfd85
PB
24378
24379 #ifndef _INT16_T
24380 #define _INT16_T
1cf3d07d
SE
24381 #ifndef __int16_t_defined
24382 #define __int16_t_defined
18cbfd85
PB
24383 typedef $acx_cv_type_int16_t int16_t;
24384 #endif
1cf3d07d 24385 #endif
18cbfd85
PB
24386
24387 #ifndef _INT32_T
24388 #define _INT32_T
1cf3d07d
SE
24389 #ifndef __int32_t_defined
24390 #define __int32_t_defined
18cbfd85
PB
24391 typedef $acx_cv_type_int32_t int32_t;
24392 #endif
1cf3d07d 24393 #endif
18cbfd85
PB
24394EOF
24395elif test "$ac_cv_type_u_int32_t" = yes; then
24396 sed 's/^ *//' >> tmp-stdint.h <<EOF
24397
24398 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24399 #ifndef _INT8_T
24400 #define _INT8_T
24401 #endif
24402 #ifndef _INT16_T
24403 #define _INT16_T
24404 #endif
24405 #ifndef _INT32_T
24406 #define _INT32_T
24407 #endif
24408
24409 #ifndef _UINT8_T
24410 #define _UINT8_T
1cf3d07d
SE
24411 #ifndef __uint8_t_defined
24412 #define __uint8_t_defined
18cbfd85
PB
24413 typedef u_int8_t uint8_t;
24414 #endif
1cf3d07d 24415 #endif
18cbfd85
PB
24416
24417 #ifndef _UINT16_T
24418 #define _UINT16_T
1cf3d07d
SE
24419 #ifndef __uint16_t_defined
24420 #define __uint16_t_defined
18cbfd85
PB
24421 typedef u_int16_t uint16_t;
24422 #endif
1cf3d07d 24423 #endif
18cbfd85
PB
24424
24425 #ifndef _UINT32_T
24426 #define _UINT32_T
1cf3d07d
SE
24427 #ifndef __uint32_t_defined
24428 #define __uint32_t_defined
18cbfd85
PB
24429 typedef u_int32_t uint32_t;
24430 #endif
1cf3d07d 24431 #endif
18cbfd85
PB
24432EOF
24433else
24434 sed 's/^ *//' >> tmp-stdint.h <<EOF
24435
24436 /* Some systems have guard macros to prevent redefinitions, define them. */
24437 #ifndef _INT8_T
24438 #define _INT8_T
24439 #endif
24440 #ifndef _INT16_T
24441 #define _INT16_T
24442 #endif
24443 #ifndef _INT32_T
24444 #define _INT32_T
24445 #endif
24446 #ifndef _UINT8_T
24447 #define _UINT8_T
24448 #endif
24449 #ifndef _UINT16_T
24450 #define _UINT16_T
24451 #endif
24452 #ifndef _UINT32_T
24453 #define _UINT32_T
24454 #endif
24455EOF
24456fi
24457
24458# ------------- done basic int types, emit int64_t types ------------
24459if test "$ac_cv_type_uint64_t" = yes; then
24460 sed 's/^ *//' >> tmp-stdint.h <<EOF
24461
24462 /* system headers have good uint64_t and int64_t */
24463 #ifndef _INT64_T
24464 #define _INT64_T
24465 #endif
24466 #ifndef _UINT64_T
24467 #define _UINT64_T
24468 #endif
24469EOF
24470elif test "$ac_cv_type_u_int64_t" = yes; then
24471 sed 's/^ *//' >> tmp-stdint.h <<EOF
24472
24473 /* system headers have an u_int64_t (and int64_t) */
24474 #ifndef _INT64_T
24475 #define _INT64_T
24476 #endif
24477 #ifndef _UINT64_T
24478 #define _UINT64_T
1cf3d07d
SE
24479 #ifndef __uint64_t_defined
24480 #define __uint64_t_defined
18cbfd85
PB
24481 typedef u_int64_t uint64_t;
24482 #endif
1cf3d07d 24483 #endif
18cbfd85
PB
24484EOF
24485elif test -n "$acx_cv_type_int64_t"; then
24486 sed 's/^ *//' >> tmp-stdint.h <<EOF
24487
24488 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24489 #ifndef _INT64_T
24490 #define _INT64_T
24491 typedef $acx_cv_type_int64_t int64_t;
24492 #endif
24493 #ifndef _UINT64_T
24494 #define _UINT64_T
1cf3d07d
SE
24495 #ifndef __uint64_t_defined
24496 #define __uint64_t_defined
18cbfd85
PB
24497 typedef unsigned $acx_cv_type_int64_t uint64_t;
24498 #endif
1cf3d07d 24499 #endif
18cbfd85
PB
24500EOF
24501else
24502 sed 's/^ *//' >> tmp-stdint.h <<EOF
24503
24504 /* some common heuristics for int64_t, using compiler-specific tests */
24505 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24506 #ifndef _INT64_T
24507 #define _INT64_T
1cf3d07d 24508 #ifndef __int64_t_defined
18cbfd85
PB
24509 typedef long long int64_t;
24510 #endif
1cf3d07d 24511 #endif
18cbfd85
PB
24512 #ifndef _UINT64_T
24513 #define _UINT64_T
24514 typedef unsigned long long uint64_t;
24515 #endif
24516
24517 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24518 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24519 does not implement __extension__. But that compiler doesn't define
24520 __GNUC_MINOR__. */
24521 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24522 # define __extension__
24523 # endif
24524
24525 # ifndef _INT64_T
24526 # define _INT64_T
24527 __extension__ typedef long long int64_t;
24528 # endif
24529 # ifndef _UINT64_T
24530 # define _UINT64_T
24531 __extension__ typedef unsigned long long uint64_t;
24532 # endif
24533
24534 #elif !defined __STRICT_ANSI__
24535 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24536
24537 # ifndef _INT64_T
24538 # define _INT64_T
24539 typedef __int64 int64_t;
24540 # endif
24541 # ifndef _UINT64_T
24542 # define _UINT64_T
24543 typedef unsigned __int64 uint64_t;
24544 # endif
24545 # endif /* compiler */
24546
24547 #endif /* ANSI version */
24548EOF
24549fi
24550
24551# ------------- done int64_t types, emit intptr types ------------
24552if test "$ac_cv_type_uintptr_t" != yes; then
24553 sed 's/^ *//' >> tmp-stdint.h <<EOF
24554
24555 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
1cf3d07d 24556 #ifndef __uintptr_t_defined
18cbfd85 24557 typedef u$acx_cv_type_intptr_t uintptr_t;
1cf3d07d
SE
24558 #endif
24559 #ifndef __intptr_t_defined
18cbfd85 24560 typedef $acx_cv_type_intptr_t intptr_t;
1cf3d07d 24561 #endif
18cbfd85
PB
24562EOF
24563fi
24564
24565# ------------- done intptr types, emit int_least types ------------
24566if test "$ac_cv_type_int_least32_t" != yes; then
24567 sed 's/^ *//' >> tmp-stdint.h <<EOF
24568
24569 /* Define int_least types */
24570 typedef int8_t int_least8_t;
24571 typedef int16_t int_least16_t;
24572 typedef int32_t int_least32_t;
24573 #ifdef _INT64_T
24574 typedef int64_t int_least64_t;
24575 #endif
24576
24577 typedef uint8_t uint_least8_t;
24578 typedef uint16_t uint_least16_t;
24579 typedef uint32_t uint_least32_t;
24580 #ifdef _UINT64_T
24581 typedef uint64_t uint_least64_t;
24582 #endif
24583EOF
24584fi
24585
24586# ------------- done intptr types, emit int_fast types ------------
24587if test "$ac_cv_type_int_fast32_t" != yes; then
24588 sed 's/^ *//' >> tmp-stdint.h <<EOF
24589
24590 /* Define int_fast types. short is often slow */
24591 typedef int8_t int_fast8_t;
24592 typedef int int_fast16_t;
24593 typedef int32_t int_fast32_t;
24594 #ifdef _INT64_T
24595 typedef int64_t int_fast64_t;
24596 #endif
24597
24598 typedef uint8_t uint_fast8_t;
24599 typedef unsigned int uint_fast16_t;
24600 typedef uint32_t uint_fast32_t;
24601 #ifdef _UINT64_T
24602 typedef uint64_t uint_fast64_t;
24603 #endif
24604EOF
24605fi
24606
24607if test "$ac_cv_type_uintmax_t" != yes; then
24608 sed 's/^ *//' >> tmp-stdint.h <<EOF
24609
24610 /* Define intmax based on what we found */
24611 #ifdef _INT64_T
24612 typedef int64_t intmax_t;
24613 #else
24614 typedef long intmax_t;
24615 #endif
24616 #ifdef _UINT64_T
24617 typedef uint64_t uintmax_t;
24618 #else
24619 typedef unsigned long uintmax_t;
24620 #endif
24621EOF
24622fi
24623
24624sed 's/^ *//' >> tmp-stdint.h <<EOF
24625
24626 #endif /* GCC_GENERATED_STDINT_H */
24627EOF
24628
24629if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
24630 rm -f tmp-stdint.h
24631else
24632 mv -f tmp-stdint.h gstdint.h
24633fi
24634
953ff289
DN
24635 ;;
24636 esac
24637done
24638_ACEOF
24639
24640cat >>$CONFIG_STATUS <<\_ACEOF
24641
24642{ (exit 0); exit 0; }
24643_ACEOF
24644chmod +x $CONFIG_STATUS
24645ac_clean_files=$ac_clean_files_save
24646
24647
24648# configure is writing to config.log, and then calls config.status.
24649# config.status does its own redirection, appending to config.log.
24650# Unfortunately, on DOS this fails, as config.log is still kept open
24651# by configure, so config.status won't be able to write to it; its
24652# output is simply discarded. So we exec the FD to /dev/null,
24653# effectively closing config.log, so it can be properly (re)opened and
24654# appended to by config.status. When coming back to configure, we
24655# need to make the FD available again.
24656if test "$no_create" != yes; then
24657 ac_cs_success=:
24658 ac_config_status_args=
24659 test "$silent" = yes &&
24660 ac_config_status_args="$ac_config_status_args --quiet"
24661 exec 5>/dev/null
24662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24663 exec 5>>config.log
24664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24665 # would make configure fail if this is the last instruction.
24666 $ac_cs_success || { (exit 1); exit 1; }
24667fi
24668
This page took 2.624549 seconds and 5 git commands to generate.