]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
f22c8a06c318230c8a07542ca0a5f1c9cee3026c
[thirdparty/gcc.git] / libgomp / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if 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
277 fi
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
283 if 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
381 fi
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${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.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421 PACKAGE_BUGREPORT=''
422
423 # Factoring default headers for most tests.
424 ac_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
460 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND 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'
461 ac_subst_files=''
462
463 # Initialize some variables set by options.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_libraries=NONE
482
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
500
501 ac_prev=
502 for ac_option
503 do
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
507 ac_prev=
508 continue
509 fi
510
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
515 case $ac_option in
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir=$ac_optarg ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
533
534 --config-cache | -C)
535 cache_file=config.cache ;;
536
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538 ac_prev=datadir ;;
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
541 datadir=$ac_optarg ;;
542
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
551
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
562 esac
563 eval "enable_$ac_feature='$ac_optarg'" ;;
564
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
573
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
577
578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
584
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
589
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
596
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
601
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 libdir=$ac_optarg ;;
606
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
613
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
622
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 mandir=$ac_optarg ;;
627
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
631
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
634 no_create=yes ;;
635
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
639
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
648
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 prefix=$ac_optarg ;;
653
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
660
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
667
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
684
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
688
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
693 sbindir=$ac_optarg ;;
694
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
704 sharedstatedir=$ac_optarg ;;
705
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
709 site=$ac_optarg ;;
710
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 srcdir=$ac_optarg ;;
715
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
722
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
727
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
730
731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
733
734 -with-* | --with-*)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
744 esac
745 eval "with_$ac_package='$ac_optarg'" ;;
746
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
755
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
759
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
766
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
773
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
777 ;;
778
779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
787 export $ac_envvar ;;
788
789 *)
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795 ;;
796
797 esac
798 done
799
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
804 fi
805
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
808 do
809 eval ac_val=$`echo $ac_var`
810 case $ac_val in
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
814 esac
815 done
816
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
820 do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827 done
828
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
835
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
844 fi
845 fi
846
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850 test "$silent" = yes && exec 6>/dev/null
851
852
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
863 echo X"$0" |
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
869 srcdir=$ac_confdir
870 if test ! -r $srcdir/$ac_unique_file; then
871 srcdir=..
872 fi
873 else
874 ac_srcdir_defaulted=no
875 fi
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
883 fi
884 fi
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
910 ac_env_FC_value=$FC
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921
922 #
923 # Report the --help message.
924 #
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
928 cat <<_ACEOF
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
930
931 Usage: $0 [OPTION]... [VAR=VALUE]...
932
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
935
936 Defaults for the options are specified in brackets.
937
938 Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
948
949 _ACEOF
950
951 cat <<_ACEOF
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
954 [$ac_default_prefix]
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 [PREFIX]
957
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
962
963 For better control, use the options below.
964
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
978 _ACEOF
979
980 cat <<\_ACEOF
981
982 Program names:
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
986
987 System types:
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 --target=TARGET configure for building compilers for TARGET [HOST]
991 _ACEOF
992 fi
993
994 if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997 esac
998 cat <<\_ACEOF
999
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-version-specific-runtime-libs
1004 Specify that runtime libraries should be installed
1005 in a compiler-specific directory [default=no]
1006 --enable-generated-files-in-srcdir
1007 put copies of generated files in source dir intended
1008 for creating source tarballs for users without
1009 texinfo bison or flex. [default=no]
1010 --enable-multilib build many library versions (default)
1011 --disable-dependency-tracking speeds up one-time build
1012 --enable-dependency-tracking do not reject slow dependency extractors
1013 --enable-shared[=PKGS]
1014 build shared libraries [default=yes]
1015 --enable-static[=PKGS]
1016 build static libraries [default=yes]
1017 --enable-fast-install[=PKGS]
1018 optimize for fast installation [default=yes]
1019 --disable-libtool-lock avoid locking (might break parallel builds)
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-linux-futex use the Linux futex system call
1023 [default=default]
1024 --enable-tls Use thread-local storage [default=yes]
1025 --enable-symvers=STYLE enables symbol versioning of the shared library
1026 [default=yes]
1027
1028 Optional Packages:
1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1031 --with-pic try to use only PIC/non-PIC objects [default=use
1032 both]
1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1034
1035 Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1042 CPP C preprocessor
1043 FC Fortran compiler command
1044 FCFLAGS Fortran compiler flags
1045
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1048
1049 _ACEOF
1050 fi
1051
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1058
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064 ac_dir_suffix= ac_top_builddir=
1065 fi
1066
1067 case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1082
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1087 *)
1088 case "$ac_dir" in
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *)
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1105 *)
1106 case $ac_srcdir in
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *)
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 esac;;
1120 esac
1121
1122 cd $ac_dir
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1125 echo
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1128 echo
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1132 echo
1133 $ac_configure --help
1134 else
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 fi
1137 cd $ac_popdir
1138 done
1139 fi
1140
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143 cat <<\_ACEOF
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151 exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1160
1161 $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187 _ASUNAME
1188
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277 {
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290 }
1291 echo
1292
1293 cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1374
1375
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384 fi
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392 done
1393
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405 else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1443 fi
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462 done
1463 if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1465 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1466 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1467 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1468 { (exit 1); exit 1; }; }
1469 fi
1470
1471 ac_ext=c
1472 ac_cpp='$CPP $CPPFLAGS'
1473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503 ac_config_headers="$ac_config_headers config.h"
1504
1505
1506 # -------
1507 # Options
1508 # -------
1509
1510 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1511 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1512 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1513 if test "${enable_version_specific_runtime_libs+set}" = set; then
1514 enableval="$enable_version_specific_runtime_libs"
1515
1516 case "$enableval" in
1517 yes|no) ;;
1518 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1519 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1520 { (exit 1); exit 1; }; } ;;
1521 esac
1522
1523 else
1524 enable_version_specific_runtime_libs=no
1525 fi;
1526
1527 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1528 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1529
1530 # We would like our source tree to be readonly. However when releases or
1531 # pre-releases are generated, the flex/bison generated files as well as the
1532 # various formats of manuals need to be included along with the rest of the
1533 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1534 # just that.
1535 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1536 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1537 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1538 if test "${enable_generated_files_in_srcdir+set}" = set; then
1539 enableval="$enable_generated_files_in_srcdir"
1540
1541 case "$enableval" in
1542 yes|no) ;;
1543 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1544 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1545 { (exit 1); exit 1; }; } ;;
1546 esac
1547
1548 else
1549 enable_generated_files_in_srcdir=no
1550 fi;
1551
1552 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1553 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1554
1555
1556 if test "$enable_generated_files_in_srcdir" = yes; then
1557 GENINSRC_TRUE=
1558 GENINSRC_FALSE='#'
1559 else
1560 GENINSRC_TRUE='#'
1561 GENINSRC_FALSE=
1562 fi
1563
1564
1565
1566 # -------
1567 # -------
1568
1569 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1570 #
1571 # You will slowly go insane if you do not grok the following fact: when
1572 # building this library, the top-level /target/ becomes the library's /host/.
1573 #
1574 # configure then causes --target to default to --host, exactly like any
1575 # other package using autoconf. Therefore, 'target' and 'host' will
1576 # always be the same. This makes sense both for native and cross compilers
1577 # just think about it for a little while. :-)
1578 #
1579 # Also, if this library is being configured as part of a cross compiler, the
1580 # top-level configure script will pass the "real" host as $with_cross_host.
1581 #
1582 # Do not delete or change the following two lines. For why, see
1583 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1584 ac_aux_dir=
1585 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1586 if test -f $ac_dir/install-sh; then
1587 ac_aux_dir=$ac_dir
1588 ac_install_sh="$ac_aux_dir/install-sh -c"
1589 break
1590 elif test -f $ac_dir/install.sh; then
1591 ac_aux_dir=$ac_dir
1592 ac_install_sh="$ac_aux_dir/install.sh -c"
1593 break
1594 elif test -f $ac_dir/shtool; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/shtool install -c"
1597 break
1598 fi
1599 done
1600 if test -z "$ac_aux_dir"; then
1601 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1602 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1603 { (exit 1); exit 1; }; }
1604 fi
1605 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1606 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1607 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1653
1654 fi
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661
1662
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1689 NONENONEs,x,x, &&
1690 program_prefix=${target_alias}-
1691 target_alias=${target_alias-$host_alias}
1692
1693 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1694 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1695 # 1.9.0: minimum required version
1696 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1697 # of other PACKAGE_* variables will, however, and there's nothing
1698 # we can do about that; they come from AC_INIT).
1699 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1700 # file in the top srcdir, etc, etc), so stop complaining.
1701 # -Wall: turns on all automake warnings...
1702 # -Wno-portability: ...except this one, since GNU make is required.
1703 # -Wno-override: ... and this one, since we do want this in testsuite.
1704 am__api_version="1.9"
1705 # Find a good install program. We prefer a C program (faster),
1706 # so one script is as good as another. But avoid the broken or
1707 # incompatible versions:
1708 # SysV /etc/install, /usr/sbin/install
1709 # SunOS /usr/etc/install
1710 # IRIX /sbin/install
1711 # AIX /bin/install
1712 # AmigaOS /C/install, which installs bootblocks on floppy discs
1713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1716 # OS/2's system install, which has a completely different semantic
1717 # ./install, which can be erroneously created by make from ./install.sh.
1718 # Reject install programs that cannot install multiple files.
1719 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1720 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1721 if test -z "$INSTALL"; then
1722 if test "${ac_cv_path_install+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 # Account for people who put trailing slashes in PATH elements.
1731 case $as_dir/ in
1732 ./ | .// | /cC/* | \
1733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1734 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1735 /usr/ucb/* ) ;;
1736 *)
1737 # OSF1 and SCO ODT 3.0 have their own names for install.
1738 # Don't use installbsd from OSF since it installs stuff as root
1739 # by default.
1740 for ac_prog in ginstall scoinst install; do
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1743 if test $ac_prog = install &&
1744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1745 # AIX install. It has an incompatible calling convention.
1746 :
1747 elif test $ac_prog = install &&
1748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1749 # program-specific install script used by HP pwplus--don't use.
1750 :
1751 else
1752 rm -rf conftest.one conftest.two conftest.dir
1753 echo one > conftest.one
1754 echo two > conftest.two
1755 mkdir conftest.dir
1756 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1757 test -s conftest.one && test -s conftest.two &&
1758 test -s conftest.dir/conftest.one &&
1759 test -s conftest.dir/conftest.two
1760 then
1761 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1762 break 3
1763 fi
1764 fi
1765 fi
1766 done
1767 done
1768 ;;
1769 esac
1770 done
1771
1772 rm -rf conftest.one conftest.two conftest.dir
1773
1774 fi
1775 if test "${ac_cv_path_install+set}" = set; then
1776 INSTALL=$ac_cv_path_install
1777 else
1778 # As a last resort, use the slow shell script. Don't cache a
1779 # value for INSTALL within a source directory, because that will
1780 # break other packages using the cache if that directory is
1781 # removed, or if the value is a relative name.
1782 INSTALL=$ac_install_sh
1783 fi
1784 fi
1785 echo "$as_me:$LINENO: result: $INSTALL" >&5
1786 echo "${ECHO_T}$INSTALL" >&6
1787
1788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1789 # It thinks the first close brace ends the variable substitution.
1790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1791
1792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1793
1794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1795
1796 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1797 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1798 # Just in case
1799 sleep 1
1800 echo timestamp > conftest.file
1801 # Do `set' in a subshell so we don't clobber the current shell's
1802 # arguments. Must try -L first in case configure is actually a
1803 # symlink; some systems play weird games with the mod time of symlinks
1804 # (eg FreeBSD returns the mod time of the symlink's containing
1805 # directory).
1806 if (
1807 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1808 if test "$*" = "X"; then
1809 # -L didn't work.
1810 set X `ls -t $srcdir/configure conftest.file`
1811 fi
1812 rm -f conftest.file
1813 if test "$*" != "X $srcdir/configure conftest.file" \
1814 && test "$*" != "X conftest.file $srcdir/configure"; then
1815
1816 # If neither matched, then we have a broken ls. This can happen
1817 # if, for instance, CONFIG_SHELL is bash and it inherits a
1818 # broken ls alias from the environment. This has actually
1819 # happened. Such a system could not be considered "sane".
1820 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1821 alias in your environment" >&5
1822 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1823 alias in your environment" >&2;}
1824 { (exit 1); exit 1; }; }
1825 fi
1826
1827 test "$2" = conftest.file
1828 )
1829 then
1830 # Ok.
1831 :
1832 else
1833 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1834 Check your system clock" >&5
1835 echo "$as_me: error: newly created file is older than distributed files!
1836 Check your system clock" >&2;}
1837 { (exit 1); exit 1; }; }
1838 fi
1839 echo "$as_me:$LINENO: result: yes" >&5
1840 echo "${ECHO_T}yes" >&6
1841 test "$program_prefix" != NONE &&
1842 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1843 # Use a double $ so make ignores it.
1844 test "$program_suffix" != NONE &&
1845 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1846 # Double any \ or $. echo might interpret backslashes.
1847 # By default was `s,x,x', remove it if useless.
1848 cat <<\_ACEOF >conftest.sed
1849 s/[\\$]/&&/g;s/;s,x,x,$//
1850 _ACEOF
1851 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1852 rm conftest.sed
1853
1854 # expand $ac_aux_dir to an absolute path
1855 am_aux_dir=`cd $ac_aux_dir && pwd`
1856
1857 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1858 # Use eval to expand $SHELL
1859 if eval "$MISSING --run true"; then
1860 am_missing_run="$MISSING --run "
1861 else
1862 am_missing_run=
1863 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1864 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1865 fi
1866
1867 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1868 # We used to keeping the `.' as first argument, in order to
1869 # allow $(mkdir_p) to be used without argument. As in
1870 # $(mkdir_p) $(somedir)
1871 # where $(somedir) is conditionally defined. However this is wrong
1872 # for two reasons:
1873 # 1. if the package is installed by a user who cannot write `.'
1874 # make install will fail,
1875 # 2. the above comment should most certainly read
1876 # $(mkdir_p) $(DESTDIR)$(somedir)
1877 # so it does not work when $(somedir) is undefined and
1878 # $(DESTDIR) is not.
1879 # To support the latter case, we have to write
1880 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1881 # so the `.' trick is pointless.
1882 mkdir_p='mkdir -p --'
1883 else
1884 # On NextStep and OpenStep, the `mkdir' command does not
1885 # recognize any option. It will interpret all options as
1886 # directories to create, and then abort because `.' already
1887 # exists.
1888 for d in ./-p ./--version;
1889 do
1890 test -d $d && rmdir $d
1891 done
1892 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1893 if test -f "$ac_aux_dir/mkinstalldirs"; then
1894 mkdir_p='$(mkinstalldirs)'
1895 else
1896 mkdir_p='$(install_sh) -d'
1897 fi
1898 fi
1899
1900 for ac_prog in gawk mawk nawk awk
1901 do
1902 # Extract the first word of "$ac_prog", so it can be a program name with args.
1903 set dummy $ac_prog; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_AWK+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$AWK"; then
1910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_AWK="$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1922 fi
1923 done
1924 done
1925
1926 fi
1927 fi
1928 AWK=$ac_cv_prog_AWK
1929 if test -n "$AWK"; then
1930 echo "$as_me:$LINENO: result: $AWK" >&5
1931 echo "${ECHO_T}$AWK" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 test -n "$AWK" && break
1938 done
1939
1940 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1941 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1942 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1943 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 cat >conftest.make <<\_ACEOF
1947 all:
1948 @echo 'ac_maketemp="$(MAKE)"'
1949 _ACEOF
1950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1951 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1952 if test -n "$ac_maketemp"; then
1953 eval ac_cv_prog_make_${ac_make}_set=yes
1954 else
1955 eval ac_cv_prog_make_${ac_make}_set=no
1956 fi
1957 rm -f conftest.make
1958 fi
1959 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1960 echo "$as_me:$LINENO: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6
1962 SET_MAKE=
1963 else
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 SET_MAKE="MAKE=${MAKE-make}"
1967 fi
1968
1969 rm -rf .tst 2>/dev/null
1970 mkdir .tst 2>/dev/null
1971 if test -d .tst; then
1972 am__leading_dot=.
1973 else
1974 am__leading_dot=_
1975 fi
1976 rmdir .tst 2>/dev/null
1977
1978 # test to see if srcdir already configured
1979 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1980 test -f $srcdir/config.status; then
1981 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1982 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1983 { (exit 1); exit 1; }; }
1984 fi
1985
1986 # test whether we have cygpath
1987 if test -z "$CYGPATH_W"; then
1988 if (cygpath --version) >/dev/null 2>/dev/null; then
1989 CYGPATH_W='cygpath -w'
1990 else
1991 CYGPATH_W=echo
1992 fi
1993 fi
1994
1995
1996 # Define the identity of the package.
1997 PACKAGE='libgomp'
1998 VERSION='1.0'
1999
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE "$PACKAGE"
2003 _ACEOF
2004
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define VERSION "$VERSION"
2008 _ACEOF
2009
2010 # Some tools Automake needs.
2011
2012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2013
2014
2015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2016
2017
2018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2019
2020
2021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2022
2023
2024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2025
2026 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2027
2028 # Installed binaries are usually stripped using `strip' when the user
2029 # run `make install-strip'. However `strip' might not be the right
2030 # tool to use in cross-compilation environments, therefore Automake
2031 # will honor the `STRIP' environment variable to overrule this program.
2032 if test "$cross_compiling" != no; then
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$STRIP"; then
2042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055 done
2056 done
2057
2058 fi
2059 fi
2060 STRIP=$ac_cv_prog_STRIP
2061 if test -n "$STRIP"; then
2062 echo "$as_me:$LINENO: result: $STRIP" >&5
2063 echo "${ECHO_T}$STRIP" >&6
2064 else
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2067 fi
2068
2069 fi
2070 if test -z "$ac_cv_prog_STRIP"; then
2071 ac_ct_STRIP=$STRIP
2072 # Extract the first word of "strip", so it can be a program name with args.
2073 set dummy strip; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$ac_ct_STRIP"; then
2080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_STRIP="strip"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093 done
2094 done
2095
2096 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2097 fi
2098 fi
2099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2100 if test -n "$ac_ct_STRIP"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2102 echo "${ECHO_T}$ac_ct_STRIP" >&6
2103 else
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2106 fi
2107
2108 STRIP=$ac_ct_STRIP
2109 else
2110 STRIP="$ac_cv_prog_STRIP"
2111 fi
2112
2113 fi
2114 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2115
2116 # We need awk for the "check" target. The system "awk" is bad on
2117 # some platforms.
2118 # Always define AMTAR for backward compatibility.
2119
2120 AMTAR=${AMTAR-"${am_missing_run}tar"}
2121
2122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2123
2124
2125
2126
2127
2128 # Default to --enable-multilib
2129 # Check whether --enable-multilib or --disable-multilib was given.
2130 if test "${enable_multilib+set}" = set; then
2131 enableval="$enable_multilib"
2132 case "$enableval" in
2133 yes) multilib=yes ;;
2134 no) multilib=no ;;
2135 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2136 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2137 { (exit 1); exit 1; }; } ;;
2138 esac
2139 else
2140 multilib=yes
2141 fi;
2142
2143 # We may get other options which we leave undocumented:
2144 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2145 # See config-ml.in if you want the gory details.
2146
2147 if test "$srcdir" = "."; then
2148 if test "$with_target_subdir" != "."; then
2149 multi_basedir="$srcdir/$with_multisrctop../.."
2150 else
2151 multi_basedir="$srcdir/$with_multisrctop.."
2152 fi
2153 else
2154 multi_basedir="$srcdir/.."
2155 fi
2156
2157
2158 # Even if the default multilib is not a cross compilation,
2159 # it may be that some of the other multilibs are.
2160 if test $cross_compiling = no && test $multilib = yes \
2161 && test "x${with_multisubdir}" != x ; then
2162 cross_compiling=maybe
2163 fi
2164
2165 ac_config_commands="$ac_config_commands default-1"
2166
2167
2168 # Calculate toolexeclibdir
2169 # Also toolexecdir, though it's only used in toolexeclibdir
2170 case ${enable_version_specific_runtime_libs} in
2171 yes)
2172 # Need the gcc compiler version to know where to install libraries
2173 # and header files if --enable-version-specific-runtime-libs option
2174 # is selected.
2175 toolexecdir='$(libdir)/gcc/$(target_alias)'
2176 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2177 ;;
2178 no)
2179 if test -n "$with_cross_host" &&
2180 test x"$with_cross_host" != x"no"; then
2181 # Install a library built with a cross compiler in tooldir, not libdir.
2182 toolexecdir='$(exec_prefix)/$(target_alias)'
2183 toolexeclibdir='$(toolexecdir)/lib'
2184 else
2185 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2186 toolexeclibdir='$(libdir)'
2187 fi
2188 multi_os_directory=`$CC -print-multi-os-directory`
2189 case $multi_os_directory in
2190 .) ;; # Avoid trailing /.
2191 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2192 esac
2193 ;;
2194 esac
2195
2196
2197
2198 # Check the compiler.
2199 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2200 # We must force CC to /not/ be precious variables; otherwise
2201 # the wrong, non-multilib-adjusted value will be used in multilibs.
2202 # As a side effect, we have to subst CFLAGS ourselves.
2203
2204
2205
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233 done
2234 done
2235
2236 fi
2237 fi
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 fi
2246
2247 fi
2248 if test -z "$ac_cv_prog_CC"; then
2249 ac_ct_CC=$CC
2250 # Extract the first word of "gcc", so it can be a program name with args.
2251 set dummy gcc; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_ac_ct_CC="gcc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2270 fi
2271 done
2272 done
2273
2274 fi
2275 fi
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2283 fi
2284
2285 CC=$ac_ct_CC
2286 else
2287 CC="$ac_cv_prog_CC"
2288 fi
2289
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}cc; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_CC="${ac_tool_prefix}cc"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2312 fi
2313 done
2314 done
2315
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2322 else
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2325 fi
2326
2327 fi
2328 if test -z "$ac_cv_prog_CC"; then
2329 ac_ct_CC=$CC
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_CC="cc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351 done
2352 done
2353
2354 fi
2355 fi
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2360 else
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2363 fi
2364
2365 CC=$ac_ct_CC
2366 else
2367 CC="$ac_cv_prog_CC"
2368 fi
2369
2370 fi
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 ac_prog_rejected=no
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2392 continue
2393 fi
2394 ac_cv_prog_CC="cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398 done
2399 done
2400
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy $ac_cv_prog_CC
2404 shift
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2409 shift
2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2411 fi
2412 fi
2413 fi
2414 fi
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417 echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2419 else
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2422 fi
2423
2424 fi
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2427 for ac_prog in cl
2428 do
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6
2459 else
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2462 fi
2463
2464 test -n "$CC" && break
2465 done
2466 fi
2467 if test -z "$CC"; then
2468 ac_ct_CC=$CC
2469 for ac_prog in cl
2470 do
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_ac_ct_CC="$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494
2495 fi
2496 fi
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2504 fi
2505
2506 test -n "$ac_ct_CC" && break
2507 done
2508
2509 CC=$ac_ct_CC
2510 fi
2511
2512 fi
2513
2514
2515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2520
2521 # Provide some information about the compiler.
2522 echo "$as_me:$LINENO:" \
2523 "checking for C compiler version" >&5
2524 ac_compiler=`set X $ac_compile; echo $2`
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2526 (eval $ac_compiler --version </dev/null >&5) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2531 (eval $ac_compiler -v </dev/null >&5) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2536 (eval $ac_compiler -V </dev/null >&5) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2540
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547
2548 int
2549 main ()
2550 {
2551
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2560 # of exeext.
2561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2565 (eval $ac_link_default) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; then
2569 # Find the output, starting from the most likely. This scheme is
2570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2571 # resort.
2572
2573 # Be careful to initialize this variable, since it used to be cached.
2574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2575 ac_cv_exeext=
2576 # b.out is created by i960 compilers.
2577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2578 do
2579 test -f "$ac_file" || continue
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2582 ;;
2583 conftest.$ac_ext )
2584 # This is the source file.
2585 ;;
2586 [ab].out )
2587 # We found the default executable, but exeext='' is most
2588 # certainly right.
2589 break;;
2590 *.* )
2591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 # FIXME: I believe we export ac_cv_exeext for Libtool,
2593 # but it would be cool to find out if it's true. Does anybody
2594 # maintain Libtool? --akim.
2595 export ac_cv_exeext
2596 break;;
2597 * )
2598 break;;
2599 esac
2600 done
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609 { (exit 77); exit 77; }; }
2610 fi
2611
2612 ac_exeext=$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6
2615
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2621 # If not cross compiling, check that we can run a simple program.
2622 if test "$cross_compiling" != yes; then
2623 if { ac_try='./$ac_file'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 cross_compiling=no
2630 else
2631 if test "$cross_compiling" = maybe; then
2632 cross_compiling=yes
2633 else
2634 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'.
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2641 fi
2642 fi
2643 fi
2644 echo "$as_me:$LINENO: result: yes" >&5
2645 echo "${ECHO_T}yes" >&6
2646
2647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2648 ac_clean_files=$ac_clean_files_save
2649 # Check the compiler produces executables we can run. If not, either
2650 # the compiler is broken, or we cross compile.
2651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2654 echo "${ECHO_T}$cross_compiling" >&6
2655
2656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2666 # `rm'.
2667 for ac_file in conftest.exe conftest conftest.*; do
2668 test -f "$ac_file" || continue
2669 case $ac_file in
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2672 export ac_cv_exeext
2673 break;;
2674 * ) break;;
2675 esac
2676 done
2677 else
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2683 fi
2684
2685 rm -f conftest$ac_cv_exeext
2686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2687 echo "${ECHO_T}$ac_cv_exeext" >&6
2688
2689 rm -f conftest.$ac_ext
2690 EXEEXT=$ac_cv_exeext
2691 ac_exeext=$EXEEXT
2692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2694 if test "${ac_cv_objext+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703
2704 int
2705 main ()
2706 {
2707
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.o conftest.obj
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2719 case $ac_file in
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2722 break;;
2723 esac
2724 done
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2734 fi
2735
2736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2737 fi
2738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2739 echo "${ECHO_T}$ac_cv_objext" >&6
2740 OBJEXT=$ac_cv_objext
2741 ac_objext=$OBJEXT
2742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753
2754 int
2755 main ()
2756 {
2757 #ifndef __GNUC__
2758 choke me
2759 #endif
2760
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_compiler_gnu=yes
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 ac_compiler_gnu=no
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2796
2797 fi
2798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2800 GCC=`test $ac_compiler_gnu = yes && echo yes`
2801 ac_test_CFLAGS=${CFLAGS+set}
2802 ac_save_CFLAGS=$CFLAGS
2803 CFLAGS="-g"
2804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_g+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815
2816 int
2817 main ()
2818 {
2819
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 ac_cv_prog_cc_g=yes
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 ac_cv_prog_cc_g=no
2852 fi
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 fi
2855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2857 if test "$ac_test_CFLAGS" = set; then
2858 CFLAGS=$ac_save_CFLAGS
2859 elif test $ac_cv_prog_cc_g = yes; then
2860 if test "$GCC" = yes; then
2861 CFLAGS="-g -O2"
2862 else
2863 CFLAGS="-g"
2864 fi
2865 else
2866 if test "$GCC" = yes; then
2867 CFLAGS="-O2"
2868 else
2869 CFLAGS=
2870 fi
2871 fi
2872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 ac_cv_prog_cc_stdc=no
2878 ac_save_CC=$CC
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 #include <stdarg.h>
2886 #include <stdio.h>
2887 #include <sys/types.h>
2888 #include <sys/stat.h>
2889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2890 struct buf { int x; };
2891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2892 static char *e (p, i)
2893 char **p;
2894 int i;
2895 {
2896 return p[i];
2897 }
2898 static char *f (char * (*g) (char **, int), char **p, ...)
2899 {
2900 char *s;
2901 va_list v;
2902 va_start (v,p);
2903 s = g (p, va_arg (v,int));
2904 va_end (v);
2905 return s;
2906 }
2907
2908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2909 function prototypes and stuff, but not '\xHH' hex character constants.
2910 These don't provoke an error unfortunately, instead are silently treated
2911 as 'x'. The following induces an error, until -std1 is added to get
2912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2913 array size at least. It's necessary to write '\x00'==0 to get something
2914 that's true only with -std1. */
2915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2921 int argc;
2922 char **argv;
2923 int
2924 main ()
2925 {
2926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 # Don't try gcc -ansi; that turns off useful extensions and
2932 # breaks some systems' header files.
2933 # AIX -qlanglvl=ansi
2934 # Ultrix and OSF/1 -std1
2935 # HP-UX 10.20 and later -Ae
2936 # HP-UX older versions -Aa -D_HPUX_SOURCE
2937 # SVR4 -Xc -D__EXTENSIONS__
2938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2939 do
2940 CC="$ac_save_CC $ac_arg"
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_prog_cc_stdc=$ac_arg
2964 break
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 fi
2970 rm -f conftest.err conftest.$ac_objext
2971 done
2972 rm -f conftest.$ac_ext conftest.$ac_objext
2973 CC=$ac_save_CC
2974
2975 fi
2976
2977 case "x$ac_cv_prog_cc_stdc" in
2978 x|xno)
2979 echo "$as_me:$LINENO: result: none needed" >&5
2980 echo "${ECHO_T}none needed" >&6 ;;
2981 *)
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2984 CC="$CC $ac_cv_prog_cc_stdc" ;;
2985 esac
2986
2987 # Some people use a C++ compiler to compile C. Since we use `exit',
2988 # in C++ we need to declare it. In case someone uses the same compiler
2989 # for both compiling C and C++ we need to have the C++ compiler decide
2990 # the declaration of exit, since it's the most demanding environment.
2991 cat >conftest.$ac_ext <<_ACEOF
2992 #ifndef __cplusplus
2993 choke me
2994 #endif
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 (eval $ac_try) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 for ac_declaration in \
3019 '' \
3020 'extern "C" void std::exit (int) throw (); using std::exit;' \
3021 'extern "C" void std::exit (int); using std::exit;' \
3022 'extern "C" void exit (int) throw ();' \
3023 'extern "C" void exit (int);' \
3024 'void exit (int);'
3025 do
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 $ac_declaration
3033 #include <stdlib.h>
3034 int
3035 main ()
3036 {
3037 exit (42);
3038 ;
3039 return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 :
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 $ac_declaration
3079 int
3080 main ()
3081 {
3082 exit (42);
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag"
3097 || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 break
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 fi
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 done
3117 rm -f conftest*
3118 if test -n "$ac_declaration"; then
3119 echo '#ifdef __cplusplus' >>confdefs.h
3120 echo $ac_declaration >>confdefs.h
3121 echo '#endif' >>confdefs.h
3122 fi
3123
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 fi
3129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 DEPDIR="${am__leading_dot}deps"
3136
3137 ac_config_commands="$ac_config_commands depfiles"
3138
3139
3140 am_make=${MAKE-make}
3141 cat > confinc << 'END'
3142 am__doit:
3143 @echo done
3144 .PHONY: am__doit
3145 END
3146 # If we don't find an include directive, just comment out the code.
3147 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3148 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3149 am__include="#"
3150 am__quote=
3151 _am_result=none
3152 # First try GNU make style include.
3153 echo "include confinc" > confmf
3154 # We grep out `Entering directory' and `Leaving directory'
3155 # messages which can occur if `w' ends up in MAKEFLAGS.
3156 # In particular we don't look at `^make:' because GNU make might
3157 # be invoked under some other name (usually "gmake"), in which
3158 # case it prints its new name instead of `make'.
3159 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3160 am__include=include
3161 am__quote=
3162 _am_result=GNU
3163 fi
3164 # Now try BSD make style include.
3165 if test "$am__include" = "#"; then
3166 echo '.include "confinc"' > confmf
3167 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3168 am__include=.include
3169 am__quote="\""
3170 _am_result=BSD
3171 fi
3172 fi
3173
3174
3175 echo "$as_me:$LINENO: result: $_am_result" >&5
3176 echo "${ECHO_T}$_am_result" >&6
3177 rm -f confinc confmf
3178
3179 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3180 if test "${enable_dependency_tracking+set}" = set; then
3181 enableval="$enable_dependency_tracking"
3182
3183 fi;
3184 if test "x$enable_dependency_tracking" != xno; then
3185 am_depcomp="$ac_aux_dir/depcomp"
3186 AMDEPBACKSLASH='\'
3187 fi
3188
3189
3190 if test "x$enable_dependency_tracking" != xno; then
3191 AMDEP_TRUE=
3192 AMDEP_FALSE='#'
3193 else
3194 AMDEP_TRUE='#'
3195 AMDEP_FALSE=
3196 fi
3197
3198
3199
3200
3201 depcc="$CC" am_compiler_list=
3202
3203 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209 # We make a subdir and do the tests there. Otherwise we can end up
3210 # making bogus files that we don't know about and never remove. For
3211 # instance it was reported that on HP-UX the gcc test will end up
3212 # making a dummy file named `D' -- because `-MD' means `put the output
3213 # in D'.
3214 mkdir conftest.dir
3215 # Copy depcomp to subdir because otherwise we won't find it if we're
3216 # using a relative directory.
3217 cp "$am_depcomp" conftest.dir
3218 cd conftest.dir
3219 # We will build objects and dependencies in a subdirectory because
3220 # it helps to detect inapplicable dependency modes. For instance
3221 # both Tru64's cc and ICC support -MD to output dependencies as a
3222 # side effect of compilation, but ICC will put the dependencies in
3223 # the current directory while Tru64 will put them in the object
3224 # directory.
3225 mkdir sub
3226
3227 am_cv_CC_dependencies_compiler_type=none
3228 if test "$am_compiler_list" = ""; then
3229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3230 fi
3231 for depmode in $am_compiler_list; do
3232 # Setup a source with many dependencies, because some compilers
3233 # like to wrap large dependency lists on column 80 (with \), and
3234 # we should not choose a depcomp mode which is confused by this.
3235 #
3236 # We need to recreate these files for each test, as the compiler may
3237 # overwrite some of them when testing with obscure command lines.
3238 # This happens at least with the AIX C compiler.
3239 : > sub/conftest.c
3240 for i in 1 2 3 4 5 6; do
3241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243 # Solaris 8's {/usr,}/bin/sh.
3244 touch sub/conftst$i.h
3245 done
3246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3247
3248 case $depmode in
3249 nosideeffect)
3250 # after this tag, mechanisms are not by side-effect, so they'll
3251 # only be used when explicitly requested
3252 if test "x$enable_dependency_tracking" = xyes; then
3253 continue
3254 else
3255 break
3256 fi
3257 ;;
3258 none) break ;;
3259 esac
3260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261 # mode. It turns out that the SunPro C++ compiler does not properly
3262 # handle `-M -o', and we need to detect this.
3263 if depmode=$depmode \
3264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267 >/dev/null 2>conftest.err &&
3268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271 # icc doesn't choke on unknown options, it will just issue warnings
3272 # or remarks (even with -Werror). So we grep stderr for any message
3273 # that says an option was ignored or not supported.
3274 # When given -MP, icc 7.0 and 7.1 complain thusly:
3275 # icc: Command line warning: ignoring option '-M'; no argument required
3276 # The diagnosis changed in icc 8.0:
3277 # icc: Command line remark: option '-MP' not supported
3278 if (grep 'ignoring option' conftest.err ||
3279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280 am_cv_CC_dependencies_compiler_type=$depmode
3281 break
3282 fi
3283 fi
3284 done
3285
3286 cd ..
3287 rm -rf conftest.dir
3288 else
3289 am_cv_CC_dependencies_compiler_type=none
3290 fi
3291
3292 fi
3293 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3294 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3296
3297
3298
3299 if
3300 test "x$enable_dependency_tracking" != xno \
3301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3302 am__fastdepCC_TRUE=
3303 am__fastdepCC_FALSE='#'
3304 else
3305 am__fastdepCC_TRUE='#'
3306 am__fastdepCC_FALSE=
3307 fi
3308
3309
3310
3311
3312
3313
3314 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3315 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3316 # in both places for now and restore CFLAGS at the end of config.
3317 save_CFLAGS="$CFLAGS"
3318
3319 # Add -Wall -Werror if we are using GCC.
3320 if test "x$GCC" = "xyes"; then
3321 XCFLAGS="$XCFLAGS -Wall -Werror"
3322 fi
3323
3324 # Find other programs we need.
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}ar; ac_word=$2
3328 echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_AR+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 if test -n "$AR"; then
3334 ac_cv_prog_AR="$AR" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_AR="${ac_tool_prefix}ar"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349
3350 fi
3351 fi
3352 AR=$ac_cv_prog_AR
3353 if test -n "$AR"; then
3354 echo "$as_me:$LINENO: result: $AR" >&5
3355 echo "${ECHO_T}$AR" >&6
3356 else
3357 echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6
3359 fi
3360
3361 fi
3362 if test -z "$ac_cv_prog_AR"; then
3363 ac_ct_AR=$AR
3364 # Extract the first word of "ar", so it can be a program name with args.
3365 set dummy ar; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$ac_ct_AR"; then
3372 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_AR="ar"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387
3388 fi
3389 fi
3390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3391 if test -n "$ac_ct_AR"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3393 echo "${ECHO_T}$ac_ct_AR" >&6
3394 else
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3397 fi
3398
3399 AR=$ac_ct_AR
3400 else
3401 AR="$ac_cv_prog_AR"
3402 fi
3403
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3407 echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_prog_RANLIB+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 if test -n "$RANLIB"; then
3413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426 done
3427 done
3428
3429 fi
3430 fi
3431 RANLIB=$ac_cv_prog_RANLIB
3432 if test -n "$RANLIB"; then
3433 echo "$as_me:$LINENO: result: $RANLIB" >&5
3434 echo "${ECHO_T}$RANLIB" >&6
3435 else
3436 echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3438 fi
3439
3440 fi
3441 if test -z "$ac_cv_prog_RANLIB"; then
3442 ac_ct_RANLIB=$RANLIB
3443 # Extract the first word of "ranlib", so it can be a program name with args.
3444 set dummy ranlib; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 if test -n "$ac_ct_RANLIB"; then
3451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_ac_ct_RANLIB="ranlib"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464 done
3465 done
3466
3467 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3468 fi
3469 fi
3470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3471 if test -n "$ac_ct_RANLIB"; then
3472 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3473 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3474 else
3475 echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3477 fi
3478
3479 RANLIB=$ac_ct_RANLIB
3480 else
3481 RANLIB="$ac_cv_prog_RANLIB"
3482 fi
3483
3484 # Extract the first word of "perl", so it can be a program name with args.
3485 set dummy perl; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_path_PERL+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 case $PERL in
3492 [\\/]* | ?:[\\/]*)
3493 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3494 ;;
3495 *)
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3506 fi
3507 done
3508 done
3509
3510 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3511 ;;
3512 esac
3513 fi
3514 PERL=$ac_cv_path_PERL
3515
3516 if test -n "$PERL"; then
3517 echo "$as_me:$LINENO: result: $PERL" >&5
3518 echo "${ECHO_T}$PERL" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3522 fi
3523
3524 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3525 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3526 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3527 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 cat >conftest.make <<\_ACEOF
3531 all:
3532 @echo 'ac_maketemp="$(MAKE)"'
3533 _ACEOF
3534 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3535 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3536 if test -n "$ac_maketemp"; then
3537 eval ac_cv_prog_make_${ac_make}_set=yes
3538 else
3539 eval ac_cv_prog_make_${ac_make}_set=no
3540 fi
3541 rm -f conftest.make
3542 fi
3543 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3544 echo "$as_me:$LINENO: result: yes" >&5
3545 echo "${ECHO_T}yes" >&6
3546 SET_MAKE=
3547 else
3548 echo "$as_me:$LINENO: result: no" >&5
3549 echo "${ECHO_T}no" >&6
3550 SET_MAKE="MAKE=${MAKE-make}"
3551 fi
3552
3553 # Find a good install program. We prefer a C program (faster),
3554 # so one script is as good as another. But avoid the broken or
3555 # incompatible versions:
3556 # SysV /etc/install, /usr/sbin/install
3557 # SunOS /usr/etc/install
3558 # IRIX /sbin/install
3559 # AIX /bin/install
3560 # AmigaOS /C/install, which installs bootblocks on floppy discs
3561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3564 # OS/2's system install, which has a completely different semantic
3565 # ./install, which can be erroneously created by make from ./install.sh.
3566 # Reject install programs that cannot install multiple files.
3567 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3568 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3569 if test -z "$INSTALL"; then
3570 if test "${ac_cv_path_install+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 # Account for people who put trailing slashes in PATH elements.
3579 case $as_dir/ in
3580 ./ | .// | /cC/* | \
3581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3582 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3583 /usr/ucb/* ) ;;
3584 *)
3585 # OSF1 and SCO ODT 3.0 have their own names for install.
3586 # Don't use installbsd from OSF since it installs stuff as root
3587 # by default.
3588 for ac_prog in ginstall scoinst install; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3591 if test $ac_prog = install &&
3592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3594 :
3595 elif test $ac_prog = install &&
3596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3598 :
3599 else
3600 rm -rf conftest.one conftest.two conftest.dir
3601 echo one > conftest.one
3602 echo two > conftest.two
3603 mkdir conftest.dir
3604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3605 test -s conftest.one && test -s conftest.two &&
3606 test -s conftest.dir/conftest.one &&
3607 test -s conftest.dir/conftest.two
3608 then
3609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3610 break 3
3611 fi
3612 fi
3613 fi
3614 done
3615 done
3616 ;;
3617 esac
3618 done
3619
3620 rm -rf conftest.one conftest.two conftest.dir
3621
3622 fi
3623 if test "${ac_cv_path_install+set}" = set; then
3624 INSTALL=$ac_cv_path_install
3625 else
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for INSTALL within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 INSTALL=$ac_install_sh
3631 fi
3632 fi
3633 echo "$as_me:$LINENO: result: $INSTALL" >&5
3634 echo "${ECHO_T}$INSTALL" >&6
3635
3636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3637 # It thinks the first close brace ends the variable substitution.
3638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3639
3640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3641
3642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3643
3644
3645 # See if makeinfo has been installed and is modern enough
3646 # that we can use it.
3647
3648 # Extract the first word of "makeinfo", so it can be a program name with args.
3649 set dummy makeinfo; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -n "$MAKEINFO"; then
3656 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_MAKEINFO="makeinfo"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669 done
3670 done
3671
3672 fi
3673 fi
3674 MAKEINFO=$ac_cv_prog_MAKEINFO
3675 if test -n "$MAKEINFO"; then
3676 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3677 echo "${ECHO_T}$MAKEINFO" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681 fi
3682
3683 if test -n "$MAKEINFO"; then
3684 # Found it, now check the version.
3685 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3686 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3687 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3691 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3692
3693 case $ac_prog_version in
3694 '') gcc_cv_prog_makeinfo_modern=no;;
3695 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3696 *) gcc_cv_prog_makeinfo_modern=no;;
3697 esac
3698
3699 fi
3700 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3701 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3702 else
3703 gcc_cv_prog_makeinfo_modern=no
3704 fi
3705 if test $gcc_cv_prog_makeinfo_modern = no; then
3706 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3707 fi
3708
3709
3710
3711 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3712 BUILD_INFO_TRUE=
3713 BUILD_INFO_FALSE='#'
3714 else
3715 BUILD_INFO_TRUE='#'
3716 BUILD_INFO_FALSE=
3717 fi
3718
3719
3720
3721 # Configure libtool
3722
3723
3724 macro_version='2.1a'
3725 macro_revision='1.2435'
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738 ltmain="$ac_aux_dir/ltmain.sh"
3739
3740 # Set options
3741
3742 enable_dlopen=no
3743
3744
3745 enable_win32_dll=no
3746
3747
3748 # Check whether --enable-shared or --disable-shared was given.
3749 if test "${enable_shared+set}" = set; then
3750 enableval="$enable_shared"
3751 p=${PACKAGE-default}
3752 case $enableval in
3753 yes) enable_shared=yes ;;
3754 no) enable_shared=no ;;
3755 *)
3756 enable_shared=no
3757 # Look at the argument we got. We use all the common list separators.
3758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3759 for pkg in $enableval; do
3760 IFS="$lt_save_ifs"
3761 if test "X$pkg" = "X$p"; then
3762 enable_shared=yes
3763 fi
3764 done
3765 IFS="$lt_save_ifs"
3766 ;;
3767 esac
3768 else
3769 enable_shared=yes
3770 fi;
3771
3772
3773
3774
3775
3776
3777
3778
3779 # Check whether --enable-static or --disable-static was given.
3780 if test "${enable_static+set}" = set; then
3781 enableval="$enable_static"
3782 p=${PACKAGE-default}
3783 case $enableval in
3784 yes) enable_static=yes ;;
3785 no) enable_static=no ;;
3786 *)
3787 enable_static=no
3788 # Look at the argument we got. We use all the common list separators.
3789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3790 for pkg in $enableval; do
3791 IFS="$lt_save_ifs"
3792 if test "X$pkg" = "X$p"; then
3793 enable_static=yes
3794 fi
3795 done
3796 IFS="$lt_save_ifs"
3797 ;;
3798 esac
3799 else
3800 enable_static=yes
3801 fi;
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811 # Check whether --with-pic or --without-pic was given.
3812 if test "${with_pic+set}" = set; then
3813 withval="$with_pic"
3814 pic_mode="$withval"
3815 else
3816 pic_mode=default
3817 fi;
3818
3819 test -z "$pic_mode" && pic_mode=default
3820
3821
3822
3823
3824
3825
3826
3827 # Check whether --enable-fast-install or --disable-fast-install was given.
3828 if test "${enable_fast_install+set}" = set; then
3829 enableval="$enable_fast_install"
3830 p=${PACKAGE-default}
3831 case $enableval in
3832 yes) enable_fast_install=yes ;;
3833 no) enable_fast_install=no ;;
3834 *)
3835 enable_fast_install=no
3836 # Look at the argument we got. We use all the common list separators.
3837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3838 for pkg in $enableval; do
3839 IFS="$lt_save_ifs"
3840 if test "X$pkg" = "X$p"; then
3841 enable_fast_install=yes
3842 fi
3843 done
3844 IFS="$lt_save_ifs"
3845 ;;
3846 esac
3847 else
3848 enable_fast_install=yes
3849 fi;
3850
3851
3852
3853
3854
3855
3856
3857
3858 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3859 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3860 if test "${lt_cv_path_SED+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 # Loop through the user's path and test for sed and gsed.
3864 # Then use that list of sed's as ones to test for truncation.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for lt_ac_prog in sed gsed; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3873 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3874 fi
3875 done
3876 done
3877 done
3878 IFS=$as_save_IFS
3879 lt_ac_max=0
3880 lt_ac_count=0
3881 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3882 # along with /bin/sed that truncates output.
3883 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3884 test ! -f $lt_ac_sed && continue
3885 cat /dev/null > conftest.in
3886 lt_ac_count=0
3887 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3888 # Check for GNU sed and select it if it is found.
3889 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3890 lt_cv_path_SED=$lt_ac_sed
3891 break
3892 fi
3893 while true; do
3894 cat conftest.in conftest.in >conftest.tmp
3895 mv conftest.tmp conftest.in
3896 cp conftest.in conftest.nl
3897 echo >>conftest.nl
3898 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3899 cmp -s conftest.out conftest.nl || break
3900 # 10000 chars as input seems more than enough
3901 test $lt_ac_count -gt 10 && break
3902 lt_ac_count=`expr $lt_ac_count + 1`
3903 if test $lt_ac_count -gt $lt_ac_max; then
3904 lt_ac_max=$lt_ac_count
3905 lt_cv_path_SED=$lt_ac_sed
3906 fi
3907 done
3908 done
3909
3910 fi
3911
3912 SED=$lt_cv_path_SED
3913
3914 echo "$as_me:$LINENO: result: $SED" >&5
3915 echo "${ECHO_T}$SED" >&6
3916
3917 test -z "$SED" && SED=sed
3918 Xsed="$SED -e 1s/^X//"
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930 echo "$as_me:$LINENO: checking for egrep" >&5
3931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3932 if test "${ac_cv_prog_egrep+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3936 then ac_cv_prog_egrep='grep -E'
3937 else ac_cv_prog_egrep='egrep'
3938 fi
3939 fi
3940 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3941 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3942 EGREP=$ac_cv_prog_egrep
3943
3944
3945 echo "$as_me:$LINENO: checking for fgrep" >&5
3946 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3947 if test "${ac_cv_prog_fgrep+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3951 then ac_cv_prog_fgrep='grep -F'
3952 else ac_cv_prog_fgrep='fgrep'
3953 fi
3954 fi
3955 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3956 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3957 FGREP=$ac_cv_prog_fgrep
3958
3959
3960 test -z "$GREP" && GREP=grep
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3981 if test "${with_gnu_ld+set}" = set; then
3982 withval="$with_gnu_ld"
3983 test "$withval" = no || with_gnu_ld=yes
3984 else
3985 with_gnu_ld=no
3986 fi;
3987 ac_prog=ld
3988 if test "$GCC" = yes; then
3989 # Check if gcc -print-prog-name=ld gives a path.
3990 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3991 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3992 case $host in
3993 *-*-mingw*)
3994 # gcc leaves a trailing carriage return which upsets mingw
3995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3996 *)
3997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3998 esac
3999 case $ac_prog in
4000 # Accept absolute paths.
4001 [\\/]* | ?:[\\/]*)
4002 re_direlt='/[^/][^/]*/\.\./'
4003 # Canonicalize the pathname of ld
4004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4007 done
4008 test -z "$LD" && LD="$ac_prog"
4009 ;;
4010 "")
4011 # If it fails, then pretend we aren't using GCC.
4012 ac_prog=ld
4013 ;;
4014 *)
4015 # If it is relative, then search for the first ld in PATH.
4016 with_gnu_ld=unknown
4017 ;;
4018 esac
4019 elif test "$with_gnu_ld" = yes; then
4020 echo "$as_me:$LINENO: checking for GNU ld" >&5
4021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4022 else
4023 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4025 fi
4026 if test "${lt_cv_path_LD+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029 if test -z "$LD"; then
4030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4031 for ac_dir in $PATH; do
4032 IFS="$lt_save_ifs"
4033 test -z "$ac_dir" && ac_dir=.
4034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4035 lt_cv_path_LD="$ac_dir/$ac_prog"
4036 # Check to see if the program is GNU ld. I'd rather use --version,
4037 # but apparently some variants of GNU ld only accept -v.
4038 # Break only if it was the GNU/non-GNU ld that we prefer.
4039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 test "$with_gnu_ld" != no && break
4042 ;;
4043 *)
4044 test "$with_gnu_ld" != yes && break
4045 ;;
4046 esac
4047 fi
4048 done
4049 IFS="$lt_save_ifs"
4050 else
4051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4052 fi
4053 fi
4054
4055 LD="$lt_cv_path_LD"
4056 if test -n "$LD"; then
4057 echo "$as_me:$LINENO: result: $LD" >&5
4058 echo "${ECHO_T}$LD" >&6
4059 else
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4062 fi
4063 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4064 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4065 { (exit 1); exit 1; }; }
4066 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4067 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4068 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4072 case `$LD -v 2>&1 </dev/null` in
4073 *GNU* | *'with BFD'*)
4074 lt_cv_prog_gnu_ld=yes
4075 ;;
4076 *)
4077 lt_cv_prog_gnu_ld=no
4078 ;;
4079 esac
4080 fi
4081 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4082 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4083 with_gnu_ld=$lt_cv_prog_gnu_ld
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4095 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4096 if test "${lt_cv_path_NM+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 if test -n "$NM"; then
4100 # Let the user override the test.
4101 lt_cv_path_NM="$NM"
4102 else
4103 lt_nm_to_check="${ac_tool_prefix}nm"
4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4105 lt_nm_to_check="$lt_nm_to_check nm"
4106 fi
4107 for lt_tmp_nm in $lt_nm_to_check; do
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4110 IFS="$lt_save_ifs"
4111 test -z "$ac_dir" && ac_dir=.
4112 tmp_nm="$ac_dir/$lt_tmp_nm"
4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4114 # Check to see if the nm accepts a BSD-compat flag.
4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116 # nm: unknown option "B" ignored
4117 # Tru64's nm complains that /dev/null is an invalid object file
4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119 */dev/null* | *'Invalid file or object type'*)
4120 lt_cv_path_NM="$tmp_nm -B"
4121 break
4122 ;;
4123 *)
4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4125 */dev/null*)
4126 lt_cv_path_NM="$tmp_nm -p"
4127 break
4128 ;;
4129 *)
4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131 continue # so that we can try to find one that supports BSD flags
4132 ;;
4133 esac
4134 ;;
4135 esac
4136 fi
4137 done
4138 IFS="$lt_save_ifs"
4139 done
4140 : ${lt_cv_path_NM=no}
4141 fi
4142 fi
4143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4144 echo "${ECHO_T}$lt_cv_path_NM" >&6
4145 if test "$lt_cv_path_NM" != "no"; then
4146 NM="$lt_cv_path_NM"
4147 else
4148 # Didn't find any BSD compatible name lister, look for dumpbin.
4149 if test -n "$ac_tool_prefix"; then
4150 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4151 do
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 if test -n "$DUMPBIN"; then
4160 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173 done
4174 done
4175
4176 fi
4177 fi
4178 DUMPBIN=$ac_cv_prog_DUMPBIN
4179 if test -n "$DUMPBIN"; then
4180 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4181 echo "${ECHO_T}$DUMPBIN" >&6
4182 else
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187 test -n "$DUMPBIN" && break
4188 done
4189 fi
4190 if test -z "$DUMPBIN"; then
4191 ac_ct_DUMPBIN=$DUMPBIN
4192 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4193 do
4194 # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 if test -n "$ac_ct_DUMPBIN"; then
4202 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215 done
4216 done
4217
4218 fi
4219 fi
4220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4221 if test -n "$ac_ct_DUMPBIN"; then
4222 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4223 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4224 else
4225 echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4227 fi
4228
4229 test -n "$ac_ct_DUMPBIN" && break
4230 done
4231 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4232
4233 DUMPBIN=$ac_ct_DUMPBIN
4234 fi
4235
4236
4237 if test "$DUMPBIN" != ":"; then
4238 NM="$DUMPBIN"
4239 fi
4240 fi
4241 test -z "$NM" && NM=nm
4242
4243
4244
4245
4246
4247
4248 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4249 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4250 if test "${lt_cv_nm_interface+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 lt_cv_nm_interface="BSD nm"
4254 echo "int some_variable = 0;" > conftest.$ac_ext
4255 (eval echo "\"\$as_me:4255: $ac_compile\"" >&5)
4256 (eval "$ac_compile" 2>conftest.err)
4257 cat conftest.err >&5
4258 (eval echo "\"\$as_me:4258: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4260 cat conftest.err >&5
4261 (eval echo "\"\$as_me:4261: output\"" >&5)
4262 cat conftest.out >&5
4263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4264 lt_cv_nm_interface="MS dumpbin"
4265 fi
4266 rm -f conftest*
4267 fi
4268 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4269 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4270
4271 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4272 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4273 LN_S=$as_ln_s
4274 if test "$LN_S" = "ln -s"; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276 echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4279 echo "${ECHO_T}no, using $LN_S" >&6
4280 fi
4281
4282 # find the maximum length of command line arguments
4283 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4284 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 i=0
4289 teststring="ABCD"
4290
4291 case $build_os in
4292 msdosdjgpp*)
4293 # On DJGPP, this test can blow up pretty badly due to problems in libc
4294 # (any single argument exceeding 2000 bytes causes a buffer overrun
4295 # during glob expansion). Even if it were fixed, the result of this
4296 # check would be larger than it should be.
4297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4298 ;;
4299
4300 gnu*)
4301 # Under GNU Hurd, this test is not required because there is
4302 # no limit to the length of command line arguments.
4303 # Libtool will interpret -1 as no limit whatsoever
4304 lt_cv_sys_max_cmd_len=-1;
4305 ;;
4306
4307 cygwin* | mingw*)
4308 # On Win9x/ME, this test blows up -- it succeeds, but takes
4309 # about 5 minutes as the teststring grows exponentially.
4310 # Worse, since 9x/ME are not pre-emptively multitasking,
4311 # you end up with a "frozen" computer, even though with patience
4312 # the test eventually succeeds (with a max line length of 256k).
4313 # Instead, let's just punt: use the minimum linelength reported by
4314 # all of the supported platforms: 8192 (on NT/2K/XP).
4315 lt_cv_sys_max_cmd_len=8192;
4316 ;;
4317
4318 amigaos*)
4319 # On AmigaOS with pdksh, this test takes hours, literally.
4320 # So we just punt and use a minimum line length of 8192.
4321 lt_cv_sys_max_cmd_len=8192;
4322 ;;
4323
4324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4325 # This has been around since 386BSD, at least. Likely further.
4326 if test -x /sbin/sysctl; then
4327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4328 elif test -x /usr/sbin/sysctl; then
4329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4330 else
4331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4332 fi
4333 # And add a safety zone
4334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4336 ;;
4337
4338 interix*)
4339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4340 lt_cv_sys_max_cmd_len=196608
4341 ;;
4342
4343 osf*)
4344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4346 # nice to cause kernel panics so lets avoid the loop below.
4347 # First set a reasonable default.
4348 lt_cv_sys_max_cmd_len=16384
4349 #
4350 if test -x /sbin/sysconfig; then
4351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4353 esac
4354 fi
4355 ;;
4356 sco3.2v5*)
4357 lt_cv_sys_max_cmd_len=102400
4358 ;;
4359 sysv5* | sco5v6* | sysv4.2uw2*)
4360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4361 if test -n "$kargmax"; then
4362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4363 else
4364 lt_cv_sys_max_cmd_len=32768
4365 fi
4366 ;;
4367 *)
4368 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4369 if test -n $lt_cv_sys_max_cmd_len; then
4370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4372 else
4373 # Make teststring a little bigger before we do anything with it.
4374 # a 1K string should be a reasonable start.
4375 for i in 1 2 3 4 5 6 7 8 ; do
4376 teststring=$teststring$teststring
4377 done
4378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4379 # If test is not a shell built-in, we'll probably end up computing a
4380 # maximum length that is only half of the actual maximum length, but
4381 # we can't tell.
4382 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4383 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4384 test $i != 17 # 1/2 MB should be enough
4385 do
4386 i=`expr $i + 1`
4387 teststring=$teststring$teststring
4388 done
4389 # Only check the string length outside the loop.
4390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4391 teststring=
4392 # Add a significant safety factor because C++ compilers can tack on
4393 # massive amounts of additional arguments before passing them to the
4394 # linker. It appears as though 1/2 is a usable value.
4395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4396 fi
4397 ;;
4398 esac
4399
4400 fi
4401
4402 if test -n $lt_cv_sys_max_cmd_len ; then
4403 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4404 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4405 else
4406 echo "$as_me:$LINENO: result: none" >&5
4407 echo "${ECHO_T}none" >&6
4408 fi
4409 max_cmd_len=$lt_cv_sys_max_cmd_len
4410
4411
4412
4413
4414
4415
4416
4417 : ${CP="cp -f"}
4418 : ${MV="mv -f"}
4419 : ${RM="rm -f"}
4420
4421 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4422 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4423 # Try some XSI features
4424 xsi_shell=no
4425 ( _lt_dummy="a/b/c"
4426 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4427 = c,a/b,, ) >/dev/null 2>&1 \
4428 && xsi_shell=yes
4429 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4430 echo "${ECHO_T}$xsi_shell" >&6
4431
4432
4433 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4434 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4435 lt_shell_append=no
4436 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4437 >/dev/null 2>&1 \
4438 && lt_shell_append=yes
4439 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4440 echo "${ECHO_T}$lt_shell_append" >&6
4441
4442
4443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4444 lt_unset=unset
4445 else
4446 lt_unset=false
4447 fi
4448
4449
4450
4451
4452
4453 # test EBCDIC or ASCII
4454 case `echo X|tr X '\101'` in
4455 A) # ASCII based system
4456 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4457 lt_SP2NL='tr \040 \012'
4458 lt_NL2SP='tr \015\012 \040\040'
4459 ;;
4460 *) # EBCDIC based system
4461 lt_SP2NL='tr \100 \n'
4462 lt_NL2SP='tr \r\n \100\100'
4463 ;;
4464 esac
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4475 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4476 if test "${lt_cv_ld_reload_flag+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 lt_cv_ld_reload_flag='-r'
4480 fi
4481 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4482 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4483 reload_flag=$lt_cv_ld_reload_flag
4484 case $reload_flag in
4485 "" | " "*) ;;
4486 *) reload_flag=" $reload_flag" ;;
4487 esac
4488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4489 case $host_os in
4490 darwin*)
4491 if test "$GCC" = yes; then
4492 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4493 else
4494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4495 fi
4496 ;;
4497 esac
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4509 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4510 if test "${lt_cv_deplibs_check_method+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 lt_cv_file_magic_cmd='$MAGIC_CMD'
4514 lt_cv_file_magic_test_file=
4515 lt_cv_deplibs_check_method='unknown'
4516 # Need to set the preceding variable on all platforms that support
4517 # interlibrary dependencies.
4518 # 'none' -- dependencies not supported.
4519 # `unknown' -- same as none, but documents that we really don't know.
4520 # 'pass_all' -- all dependencies passed with no checks.
4521 # 'test_compile' -- check by making test program.
4522 # 'file_magic [[regex]]' -- check by looking for files in library path
4523 # which responds to the $file_magic_cmd with a given extended regex.
4524 # If you have `file' or equivalent on your system and you're not sure
4525 # whether `pass_all' will *always* work, you probably want this one.
4526
4527 case $host_os in
4528 aix[4-9]*)
4529 lt_cv_deplibs_check_method=pass_all
4530 ;;
4531
4532 beos*)
4533 lt_cv_deplibs_check_method=pass_all
4534 ;;
4535
4536 bsdi[45]*)
4537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4538 lt_cv_file_magic_cmd='/usr/bin/file -L'
4539 lt_cv_file_magic_test_file=/shlib/libc.so
4540 ;;
4541
4542 cygwin*)
4543 # func_win32_libid is a shell function defined in ltmain.sh
4544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4545 lt_cv_file_magic_cmd='func_win32_libid'
4546 ;;
4547
4548 mingw* | pw32*)
4549 # Base MSYS/MinGW do not provide the 'file' command needed by
4550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4551 # unless we find 'file', for example because we are cross-compiling.
4552 if ( file / ) >/dev/null 2>&1; then
4553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4554 lt_cv_file_magic_cmd='func_win32_libid'
4555 else
4556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4557 lt_cv_file_magic_cmd='$OBJDUMP -f'
4558 fi
4559 ;;
4560
4561 darwin* | rhapsody*)
4562 lt_cv_deplibs_check_method=pass_all
4563 ;;
4564
4565 freebsd* | dragonfly*)
4566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
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.
4571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
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
4581 gnu*)
4582 lt_cv_deplibs_check_method=pass_all
4583 ;;
4584
4585 hpux10.20* | hpux11*)
4586 lt_cv_file_magic_cmd=/usr/bin/file
4587 case $host_cpu in
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'
4590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4591 ;;
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
4595 ;;
4596 *)
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
4599 ;;
4600 esac
4601 ;;
4602
4603 interix[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
4608 irix5* | 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
4615 lt_cv_deplibs_check_method=pass_all
4616 ;;
4617
4618 # This must be Linux ELF.
4619 linux* | k*bsd*-gnu)
4620 lt_cv_deplibs_check_method=pass_all
4621 ;;
4622
4623 netbsd*)
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)$'
4626 else
4627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4628 fi
4629 ;;
4630
4631 newos6*)
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
4637 *nto* | *qnx*)
4638 lt_cv_deplibs_check_method=pass_all
4639 ;;
4640
4641 openbsd*)
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
4649 osf3* | osf4* | osf5*)
4650 lt_cv_deplibs_check_method=pass_all
4651 ;;
4652
4653 rdos*)
4654 lt_cv_deplibs_check_method=pass_all
4655 ;;
4656
4657 solaris*)
4658 lt_cv_deplibs_check_method=pass_all
4659 ;;
4660
4661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4662 lt_cv_deplibs_check_method=pass_all
4663 ;;
4664
4665 sysv4 | sysv4.3*)
4666 case $host_vendor in
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 ;;
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 ;;
4689 esac
4690 ;;
4691
4692 tpf*)
4693 lt_cv_deplibs_check_method=pass_all
4694 ;;
4695 esac
4696
4697 fi
4698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4700 file_magic_cmd=$lt_cv_file_magic_cmd
4701 deplibs_check_method=$lt_cv_deplibs_check_method
4702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ar; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_AR+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 if test -n "$AR"; then
4724 ac_cv_prog_AR="$AR" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
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
4733 ac_cv_prog_AR="${ac_tool_prefix}ar"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 AR=$ac_cv_prog_AR
4743 if test -n "$AR"; then
4744 echo "$as_me:$LINENO: result: $AR" >&5
4745 echo "${ECHO_T}$AR" >&6
4746 else
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if 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.
4755 set dummy ar; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$ac_ct_AR"; then
4762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
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
4771 ac_cv_prog_ac_ct_AR="ar"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777
4778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4779 fi
4780 fi
4781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4782 if test -n "$ac_ct_AR"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4784 echo "${ECHO_T}$ac_ct_AR" >&6
4785 else
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790 AR=$ac_ct_AR
4791 else
4792 AR="$ac_cv_prog_AR"
4793 fi
4794
4795 test -z "$AR" && AR=ar
4796 test -z "$AR_FLAGS" && AR_FLAGS=cru
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 if 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.
4810 set dummy ${ac_tool_prefix}strip; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_STRIP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 if test -n "$STRIP"; then
4817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
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
4830 done
4831 done
4832
4833 fi
4834 fi
4835 STRIP=$ac_cv_prog_STRIP
4836 if test -n "$STRIP"; then
4837 echo "$as_me:$LINENO: result: $STRIP" >&5
4838 echo "${ECHO_T}$STRIP" >&6
4839 else
4840 echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842 fi
4843
4844 fi
4845 if 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.
4848 set dummy strip; ac_word=$2
4849 echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 if test -n "$ac_ct_STRIP"; then
4855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
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
4868 done
4869 done
4870
4871 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4872 fi
4873 fi
4874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4875 if test -n "$ac_ct_STRIP"; then
4876 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4877 echo "${ECHO_T}$ac_ct_STRIP" >&6
4878 else
4879 echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4881 fi
4882
4883 STRIP=$ac_ct_STRIP
4884 else
4885 STRIP="$ac_cv_prog_STRIP"
4886 fi
4887
4888 test -z "$STRIP" && STRIP=:
4889
4890
4891
4892
4893
4894
4895 if 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.
4897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 if test -n "$RANLIB"; then
4904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
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
4917 done
4918 done
4919
4920 fi
4921 fi
4922 RANLIB=$ac_cv_prog_RANLIB
4923 if test -n "$RANLIB"; then
4924 echo "$as_me:$LINENO: result: $RANLIB" >&5
4925 echo "${ECHO_T}$RANLIB" >&6
4926 else
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4929 fi
4930
4931 fi
4932 if 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.
4935 set dummy ranlib; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 if test -n "$ac_ct_RANLIB"; then
4942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
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
4955 done
4956 done
4957
4958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4959 fi
4960 fi
4961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4962 if test -n "$ac_ct_RANLIB"; then
4963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4965 else
4966 echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4968 fi
4969
4970 RANLIB=$ac_ct_RANLIB
4971 else
4972 RANLIB="$ac_cv_prog_RANLIB"
4973 fi
4974
4975 test -z "$RANLIB" && RANLIB=:
4976
4977
4978
4979
4980
4981
4982 # Determine commands to create old-style static archives.
4983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4984 old_postinstall_cmds='chmod 644 $oldlib'
4985 old_postuninstall_cmds=
4986
4987 if 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"
4997 fi
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.
5033 LTCC=${LTCC-"$CC"}
5034
5035 # If no C compiler flags were specified, use CFLAGS.
5036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5037
5038 # Allow CC to be a program name with arguments.
5039 compiler=$CC
5040
5041
5042 # Check for command to grab the raw symbol name followed by C symbol from nm.
5043 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5044 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
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.
5053 symcode='[BCDEGRST]'
5054
5055 # Regexp to match symbols that can be accessed directly from C.
5056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5057
5058 # Define system-specific variables.
5059 case $host_os in
5060 aix*)
5061 symcode='[BCDT]'
5062 ;;
5063 cygwin* | mingw* | pw32*)
5064 symcode='[ABCDGISTW]'
5065 ;;
5066 hpux*)
5067 if test "$host_cpu" = ia64; then
5068 symcode='[ABCDEGRST]'
5069 fi
5070 ;;
5071 irix* | nonstopux*)
5072 symcode='[BCDEGRST]'
5073 ;;
5074 osf*)
5075 symcode='[BCDEGQRST]'
5076 ;;
5077 solaris*)
5078 symcode='[BDRT]'
5079 ;;
5080 sco3.2v5*)
5081 symcode='[DT]'
5082 ;;
5083 sysv4.2uw2*)
5084 symcode='[DT]'
5085 ;;
5086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5087 symcode='[ABDT]'
5088 ;;
5089 sysv4)
5090 symcode='[DFNSTU]'
5091 ;;
5092 esac
5093
5094 # If we're using GNU nm, then use its standard symbol codes.
5095 case `$NM -V 2>&1` in
5096 *GNU* | *'with BFD'*)
5097 symcode='[ABCDGIRSTW]' ;;
5098 esac
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.
5103 lt_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
5106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5107
5108 # Handle CRLF in mingw tool chain
5109 opt_cr=
5110 case $build_os in
5111 mingw*)
5112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5113 ;;
5114 esac
5115
5116 # Try without a prefix underscore, then with it.
5117 for ac_symprfx in "" "_"; do
5118
5119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5120 symxfrm="\\1 $ac_symprfx\\2 \\2"
5121
5122 # Write the raw and C identifiers.
5123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5124 # Fake it for dumpbin and say T for any non-static function
5125 # and D for any global variable.
5126 # Also find C++ and __fastcall symbols from MSVC++,
5127 # which start with @ or ?.
5128 lt_cv_sys_global_symbol_pipe="$AWK '"\
5129 " {last_section=section; section=\$ 3};"\
5130 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5131 " \$ 0!~/External *\|/{next};"\
5132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5133 " {if(hide[section]) next};"\
5134 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5135 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5136 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5137 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5138 " ' prfx=^$ac_symprfx"
5139 else
5140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5141 fi
5142
5143 # Check to see that the pipe works correctly.
5144 pipe_works=no
5145
5146 rm -f conftest*
5147 cat > conftest.$ac_ext <<_LT_EOF
5148 #ifdef __cplusplus
5149 extern "C" {
5150 #endif
5151 char nm_test_var;
5152 void nm_test_func(void);
5153 void nm_test_func(void){}
5154 #ifdef __cplusplus
5155 }
5156 #endif
5157 int main(){nm_test_var='a';nm_test_func();return(0);}
5158 _LT_EOF
5159
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; then
5165 # Now try to grab the symbols.
5166 nlist=conftest.nm
5167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && test -s "$nlist"; then
5172 # Try sorting and uniquifying the output.
5173 if sort "$nlist" | uniq > "$nlist"T; then
5174 mv -f "$nlist"T "$nlist"
5175 else
5176 rm -f "$nlist"T
5177 fi
5178
5179 # Make sure that we snagged all the symbols we need.
5180 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5181 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5182 cat <<_LT_EOF > conftest.$ac_ext
5183 #ifdef __cplusplus
5184 extern "C" {
5185 #endif
5186
5187 _LT_EOF
5188 # Now generate the symbol file.
5189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5190
5191 cat <<_LT_EOF >> conftest.$ac_ext
5192
5193 /* The mapping between symbol names and symbols. */
5194 const struct {
5195 const char *name;
5196 void *address;
5197 }
5198 lt__PROGRAM__LTX_preloaded_symbols[] =
5199 {
5200 { "@PROGRAM@", (void *) 0 },
5201 _LT_EOF
5202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5203 cat <<\_LT_EOF >> conftest.$ac_ext
5204 {0, (void *) 0}
5205 };
5206
5207 /* This works around a problem in FreeBSD linker */
5208 #ifdef FREEBSD_WORKAROUND
5209 static const void *lt_preloaded_setup() {
5210 return lt__PROGRAM__LTX_preloaded_symbols;
5211 }
5212 #endif
5213
5214 #ifdef __cplusplus
5215 }
5216 #endif
5217 _LT_EOF
5218 # Now try linking the two files.
5219 mv conftest.$ac_objext conftstm.$ac_objext
5220 lt_save_LIBS="$LIBS"
5221 lt_save_CFLAGS="$CFLAGS"
5222 LIBS="conftstm.$ac_objext"
5223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5229 pipe_works=yes
5230 fi
5231 LIBS="$lt_save_LIBS"
5232 CFLAGS="$lt_save_CFLAGS"
5233 else
5234 echo "cannot find nm_test_func in $nlist" >&5
5235 fi
5236 else
5237 echo "cannot find nm_test_var in $nlist" >&5
5238 fi
5239 else
5240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5241 fi
5242 else
5243 echo "$progname: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5245 fi
5246 rm -f conftest* conftst*
5247
5248 # Do not use the global_symbol_pipe unless it works.
5249 if test "$pipe_works" = yes; then
5250 break
5251 else
5252 lt_cv_sys_global_symbol_pipe=
5253 fi
5254 done
5255
5256 fi
5257
5258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5259 lt_cv_sys_global_symbol_to_cdecl=
5260 fi
5261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5262 echo "$as_me:$LINENO: result: failed" >&5
5263 echo "${ECHO_T}failed" >&6
5264 else
5265 echo "$as_me:$LINENO: result: ok" >&5
5266 echo "${ECHO_T}ok" >&6
5267 fi
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5287 if test "${enable_libtool_lock+set}" = set; then
5288 enableval="$enable_libtool_lock"
5289
5290 fi;
5291 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5292
5293 # Some flags need to be propagated to the compiler or linker for good
5294 # libtool support.
5295 case $host in
5296 ia64-*-hpux*)
5297 # Find out which ABI we are using.
5298 echo 'int i;' > conftest.$ac_ext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; then
5304 case `/usr/bin/file conftest.$ac_objext` in
5305 *ELF-32*)
5306 HPUX_IA64_MODE="32"
5307 ;;
5308 *ELF-64*)
5309 HPUX_IA64_MODE="64"
5310 ;;
5311 esac
5312 fi
5313 rm -rf conftest*
5314 ;;
5315 *-*-irix6*)
5316 # Find out which ABI we are using.
5317 echo '#line 5317 "configure"' > conftest.$ac_ext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; then
5323 if test "$lt_cv_prog_gnu_ld" = yes; then
5324 case `/usr/bin/file conftest.$ac_objext` in
5325 *32-bit*)
5326 LD="${LD-ld} -melf32bsmip"
5327 ;;
5328 *N32*)
5329 LD="${LD-ld} -melf32bmipn32"
5330 ;;
5331 *64-bit*)
5332 LD="${LD-ld} -melf64bmip"
5333 ;;
5334 esac
5335 else
5336 case `/usr/bin/file conftest.$ac_objext` in
5337 *32-bit*)
5338 LD="${LD-ld} -32"
5339 ;;
5340 *N32*)
5341 LD="${LD-ld} -n32"
5342 ;;
5343 *64-bit*)
5344 LD="${LD-ld} -64"
5345 ;;
5346 esac
5347 fi
5348 fi
5349 rm -rf conftest*
5350 ;;
5351
5352 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5353 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5354 # Find out which ABI we are using.
5355 echo 'int i;' > conftest.$ac_ext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; then
5361 case `/usr/bin/file conftest.o` in
5362 *32-bit*)
5363 case $host in
5364 x86_64-*kfreebsd*-gnu)
5365 LD="${LD-ld} -m elf_i386_fbsd"
5366 ;;
5367 x86_64-*linux*)
5368 LD="${LD-ld} -m elf_i386"
5369 ;;
5370 ppc64-*linux*|powerpc64-*linux*)
5371 LD="${LD-ld} -m elf32ppclinux"
5372 ;;
5373 s390x-*linux*)
5374 LD="${LD-ld} -m elf_s390"
5375 ;;
5376 sparc64-*linux*)
5377 LD="${LD-ld} -m elf32_sparc"
5378 ;;
5379 esac
5380 ;;
5381 *64-bit*)
5382 case $host in
5383 x86_64-*kfreebsd*-gnu)
5384 LD="${LD-ld} -m elf_x86_64_fbsd"
5385 ;;
5386 x86_64-*linux*)
5387 LD="${LD-ld} -m elf_x86_64"
5388 ;;
5389 ppc*-*linux*|powerpc*-*linux*)
5390 LD="${LD-ld} -m elf64ppc"
5391 ;;
5392 s390*-*linux*|s390*-*tpf*)
5393 LD="${LD-ld} -m elf64_s390"
5394 ;;
5395 sparc*-*linux*)
5396 LD="${LD-ld} -m elf64_sparc"
5397 ;;
5398 esac
5399 ;;
5400 esac
5401 fi
5402 rm -rf conftest*
5403 ;;
5404
5405 *-*-sco3.2v5*)
5406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5407 SAVE_CFLAGS="$CFLAGS"
5408 CFLAGS="$CFLAGS -belf"
5409 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5410 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5411 if test "${lt_cv_cc_needs_belf+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426
5427 int
5428 main ()
5429 {
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 rm -f conftest.$ac_objext conftest$ac_exeext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5437 (eval $ac_link) 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5457 lt_cv_cc_needs_belf=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 lt_cv_cc_needs_belf=no
5463 fi
5464 rm -f conftest.err conftest.$ac_objext \
5465 conftest$ac_exeext conftest.$ac_ext
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471
5472 fi
5473 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5474 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5477 CFLAGS="$SAVE_CFLAGS"
5478 fi
5479 ;;
5480 sparc*-*solaris*)
5481 # Find out which ABI we are using.
5482 echo 'int i;' > conftest.$ac_ext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; then
5488 case `/usr/bin/file conftest.o` in
5489 *64-bit*)
5490 case $lt_cv_prog_gnu_ld in
5491 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5492 *) LD="${LD-ld} -64" ;;
5493 esac
5494 ;;
5495 esac
5496 fi
5497 rm -rf conftest*
5498 ;;
5499 esac
5500
5501 need_locks="$enable_libtool_lock"
5502
5503 ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5510 # On Suns, sometimes $CPP names a directory.
5511 if test -n "$CPP" && test -d "$CPP"; then
5512 CPP=
5513 fi
5514 if test -z "$CPP"; then
5515 if test "${ac_cv_prog_CPP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5520 do
5521 ac_preproc_ok=false
5522 for ac_c_preproc_warn_flag in '' yes
5523 do
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #ifdef __STDC__
5537 # include <limits.h>
5538 #else
5539 # include <assert.h>
5540 #endif
5541 Syntax error
5542 _ACEOF
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev/null; then
5551 if test -s conftest.err; then
5552 ac_cpp_err=$ac_c_preproc_warn_flag
5553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5554 else
5555 ac_cpp_err=
5556 fi
5557 else
5558 ac_cpp_err=yes
5559 fi
5560 if test -z "$ac_cpp_err"; then
5561 :
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 # Broken: fails on valid input.
5567 continue
5568 fi
5569 rm -f conftest.err conftest.$ac_ext
5570
5571 # OK, works on sane cases. Now check whether non-existent headers
5572 # can be detected and how.
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null; then
5589 if test -s conftest.err; then
5590 ac_cpp_err=$ac_c_preproc_warn_flag
5591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5592 else
5593 ac_cpp_err=
5594 fi
5595 else
5596 ac_cpp_err=yes
5597 fi
5598 if test -z "$ac_cpp_err"; then
5599 # Broken: success on invalid input.
5600 continue
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5608 fi
5609 rm -f conftest.err conftest.$ac_ext
5610
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then
5615 break
5616 fi
5617
5618 done
5619 ac_cv_prog_CPP=$CPP
5620
5621 fi
5622 CPP=$ac_cv_prog_CPP
5623 else
5624 ac_cv_prog_CPP=$CPP
5625 fi
5626 echo "$as_me:$LINENO: result: $CPP" >&5
5627 echo "${ECHO_T}$CPP" >&6
5628 ac_preproc_ok=false
5629 for ac_c_preproc_warn_flag in '' yes
5630 do
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #ifdef __STDC__
5644 # include <limits.h>
5645 #else
5646 # include <assert.h>
5647 #endif
5648 Syntax error
5649 _ACEOF
5650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } >/dev/null; then
5658 if test -s conftest.err; then
5659 ac_cpp_err=$ac_c_preproc_warn_flag
5660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5661 else
5662 ac_cpp_err=
5663 fi
5664 else
5665 ac_cpp_err=yes
5666 fi
5667 if test -z "$ac_cpp_err"; then
5668 :
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 # Broken: fails on valid input.
5674 continue
5675 fi
5676 rm -f conftest.err conftest.$ac_ext
5677
5678 # OK, works on sane cases. Now check whether non-existent headers
5679 # can be detected and how.
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #include <ac_nonexistent.h>
5687 _ACEOF
5688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } >/dev/null; then
5696 if test -s conftest.err; then
5697 ac_cpp_err=$ac_c_preproc_warn_flag
5698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5699 else
5700 ac_cpp_err=
5701 fi
5702 else
5703 ac_cpp_err=yes
5704 fi
5705 if test -z "$ac_cpp_err"; then
5706 # Broken: success on invalid input.
5707 continue
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 # Passes both tests.
5713 ac_preproc_ok=:
5714 break
5715 fi
5716 rm -f conftest.err conftest.$ac_ext
5717
5718 done
5719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5720 rm -f conftest.err conftest.$ac_ext
5721 if $ac_preproc_ok; then
5722 :
5723 else
5724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
5729 fi
5730
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736
5737
5738 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5739 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5740 if test "${ac_cv_header_stdc+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <stdlib.h>
5750 #include <stdarg.h>
5751 #include <string.h>
5752 #include <float.h>
5753
5754 int
5755 main ()
5756 {
5757
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_header_stdc=yes
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_cv_header_stdc=no
5790 fi
5791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5792
5793 if test $ac_cv_header_stdc = yes; then
5794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <string.h>
5802
5803 _ACEOF
5804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5805 $EGREP "memchr" >/dev/null 2>&1; then
5806 :
5807 else
5808 ac_cv_header_stdc=no
5809 fi
5810 rm -f conftest*
5811
5812 fi
5813
5814 if test $ac_cv_header_stdc = yes; then
5815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <stdlib.h>
5823
5824 _ACEOF
5825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826 $EGREP "free" >/dev/null 2>&1; then
5827 :
5828 else
5829 ac_cv_header_stdc=no
5830 fi
5831 rm -f conftest*
5832
5833 fi
5834
5835 if test $ac_cv_header_stdc = yes; then
5836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5837 if test "$cross_compiling" = yes; then
5838 :
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <ctype.h>
5847 #if ((' ' & 0x0FF) == 0x020)
5848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5850 #else
5851 # define ISLOWER(c) \
5852 (('a' <= (c) && (c) <= 'i') \
5853 || ('j' <= (c) && (c) <= 'r') \
5854 || ('s' <= (c) && (c) <= 'z'))
5855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5856 #endif
5857
5858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5859 int
5860 main ()
5861 {
5862 int i;
5863 for (i = 0; i < 256; i++)
5864 if (XOR (islower (i), ISLOWER (i))
5865 || toupper (i) != TOUPPER (i))
5866 exit(2);
5867 exit (0);
5868 }
5869 _ACEOF
5870 rm -f conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 :
5882 else
5883 echo "$as_me: program exited with status $ac_status" >&5
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ( exit $ac_status )
5888 ac_cv_header_stdc=no
5889 fi
5890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5891 fi
5892 fi
5893 fi
5894 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5895 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5896 if test $ac_cv_header_stdc = yes; then
5897
5898 cat >>confdefs.h <<\_ACEOF
5899 #define STDC_HEADERS 1
5900 _ACEOF
5901
5902 fi
5903
5904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5915 inttypes.h stdint.h unistd.h
5916 do
5917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918 echo "$as_me:$LINENO: checking for $ac_header" >&5
5919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5930
5931 #include <$ac_header>
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 eval "$as_ac_Header=yes"
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 eval "$as_ac_Header=no"
5961 fi
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5963 fi
5964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5969 _ACEOF
5970
5971 fi
5972
5973 done
5974
5975
5976
5977 for ac_header in dlfcn.h
5978 do
5979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 $ac_includes_default
5992
5993 #include <$ac_header>
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 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_objext'
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 eval "$as_ac_Header=yes"
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 eval "$as_ac_Header=no"
6023 fi
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6029 cat >>confdefs.h <<_ACEOF
6030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6032
6033 fi
6034
6035 done
6036
6037
6038
6039 # This can be used to rebuild libtool when needed
6040 LIBTOOL_DEPS="$ltmain"
6041
6042 # Always use our own libtool.
6043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 test -z "$LN_S" && LN_S="ln -s"
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 if test -n "${ZSH_VERSION+set}" ; then
6085 setopt NO_GLOB_SUBST
6086 fi
6087
6088 echo "$as_me:$LINENO: checking for objdir" >&5
6089 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6090 if test "${lt_cv_objdir+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 rm -f .libs 2>/dev/null
6094 mkdir .libs 2>/dev/null
6095 if test -d .libs; then
6096 lt_cv_objdir=.libs
6097 else
6098 # MS-DOS does not allow filenames that begin with a dot.
6099 lt_cv_objdir=_libs
6100 fi
6101 rmdir .libs 2>/dev/null
6102 fi
6103 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6104 echo "${ECHO_T}$lt_cv_objdir" >&6
6105 objdir=$lt_cv_objdir
6106
6107
6108
6109
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define LT_OBJDIR "$lt_cv_objdir/"
6113 _ACEOF
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 case $host_os in
6132 aix3*)
6133 # AIX sometimes has problems with the GCC collect2 program. For some
6134 # reason, if we set the COLLECT_NAMES environment variable, the problems
6135 # vanish in a puff of smoke.
6136 if test "X${COLLECT_NAMES+set}" != Xset; then
6137 COLLECT_NAMES=
6138 export COLLECT_NAMES
6139 fi
6140 ;;
6141 esac
6142
6143 # Sed substitution that helps us do robust quoting. It backslashifies
6144 # metacharacters that are still active within double-quoted strings.
6145 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6146
6147 # Same as above, but do not quote variable references.
6148 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6149
6150 # Sed substitution to delay expansion of an escaped shell variable in a
6151 # double_quote_subst'ed string.
6152 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6153
6154 # Sed substitution to delay expansion of an escaped single quote.
6155 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6156
6157 # Sed substitution to avoid accidental globbing in evaled expressions
6158 no_glob_subst='s/\*/\\\*/g'
6159
6160 # Global variables:
6161 ofile=libtool
6162 can_build_shared=yes
6163
6164 # All known linkers require a `.a' archive for static linking (except MSVC,
6165 # which needs '.lib').
6166 libext=a
6167
6168 with_gnu_ld="$lt_cv_prog_gnu_ld"
6169
6170 old_CC="$CC"
6171 old_CFLAGS="$CFLAGS"
6172
6173 # Set sane defaults for various variables
6174 test -z "$CC" && CC=cc
6175 test -z "$LTCC" && LTCC=$CC
6176 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6177 test -z "$LD" && LD=ld
6178 test -z "$ac_objext" && ac_objext=o
6179
6180 for cc_temp in $compiler""; do
6181 case $cc_temp in
6182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6184 \-*) ;;
6185 *) break;;
6186 esac
6187 done
6188 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6189
6190
6191 # Only perform the check for file, if the check method requires it
6192 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6193 case $deplibs_check_method in
6194 file_magic*)
6195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6196 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6197 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 case $MAGIC_CMD in
6202 [\\/*] | ?:[\\/]*)
6203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6204 ;;
6205 *)
6206 lt_save_MAGIC_CMD="$MAGIC_CMD"
6207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6209 for ac_dir in $ac_dummy; do
6210 IFS="$lt_save_ifs"
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f $ac_dir/${ac_tool_prefix}file; then
6213 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6214 if test -n "$file_magic_test_file"; then
6215 case $deplibs_check_method in
6216 "file_magic "*)
6217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6220 $EGREP "$file_magic_regex" > /dev/null; then
6221 :
6222 else
6223 cat <<_LT_EOF 1>&2
6224
6225 *** Warning: the command libtool uses to detect shared libraries,
6226 *** $file_magic_cmd, produces output that libtool cannot recognize.
6227 *** The result is that libtool may fail to recognize shared libraries
6228 *** as such. This will affect the creation of libtool libraries that
6229 *** depend on shared libraries, but programs linked with such libtool
6230 *** libraries will work regardless of this problem. Nevertheless, you
6231 *** may want to report the problem to your system manager and/or to
6232 *** bug-libtool@gnu.org
6233
6234 _LT_EOF
6235 fi ;;
6236 esac
6237 fi
6238 break
6239 fi
6240 done
6241 IFS="$lt_save_ifs"
6242 MAGIC_CMD="$lt_save_MAGIC_CMD"
6243 ;;
6244 esac
6245 fi
6246
6247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248 if test -n "$MAGIC_CMD"; then
6249 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6250 echo "${ECHO_T}$MAGIC_CMD" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257
6258
6259
6260 if test -z "$lt_cv_path_MAGIC_CMD"; then
6261 if test -n "$ac_tool_prefix"; then
6262 echo "$as_me:$LINENO: checking for file" >&5
6263 echo $ECHO_N "checking for file... $ECHO_C" >&6
6264 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 case $MAGIC_CMD in
6268 [\\/*] | ?:[\\/]*)
6269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6270 ;;
6271 *)
6272 lt_save_MAGIC_CMD="$MAGIC_CMD"
6273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6275 for ac_dir in $ac_dummy; do
6276 IFS="$lt_save_ifs"
6277 test -z "$ac_dir" && ac_dir=.
6278 if test -f $ac_dir/file; then
6279 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6280 if test -n "$file_magic_test_file"; then
6281 case $deplibs_check_method in
6282 "file_magic "*)
6283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6286 $EGREP "$file_magic_regex" > /dev/null; then
6287 :
6288 else
6289 cat <<_LT_EOF 1>&2
6290
6291 *** Warning: the command libtool uses to detect shared libraries,
6292 *** $file_magic_cmd, produces output that libtool cannot recognize.
6293 *** The result is that libtool may fail to recognize shared libraries
6294 *** as such. This will affect the creation of libtool libraries that
6295 *** depend on shared libraries, but programs linked with such libtool
6296 *** libraries will work regardless of this problem. Nevertheless, you
6297 *** may want to report the problem to your system manager and/or to
6298 *** bug-libtool@gnu.org
6299
6300 _LT_EOF
6301 fi ;;
6302 esac
6303 fi
6304 break
6305 fi
6306 done
6307 IFS="$lt_save_ifs"
6308 MAGIC_CMD="$lt_save_MAGIC_CMD"
6309 ;;
6310 esac
6311 fi
6312
6313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314 if test -n "$MAGIC_CMD"; then
6315 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6316 echo "${ECHO_T}$MAGIC_CMD" >&6
6317 else
6318 echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6
6320 fi
6321
6322
6323 else
6324 MAGIC_CMD=:
6325 fi
6326 fi
6327
6328 fi
6329 ;;
6330 esac
6331
6332 # Use C for the default configuration in the libtool script
6333
6334 lt_save_CC="$CC"
6335 ac_ext=c
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
6341
6342 # Source file extension for C test sources.
6343 ac_ext=c
6344
6345 # Object file extension for compiled C test sources.
6346 objext=o
6347 objext=$objext
6348
6349 # Code to be used in simple compile tests
6350 lt_simple_compile_test_code="int some_variable = 0;"
6351
6352 # Code to be used in simple link tests
6353 lt_simple_link_test_code='int main(){return(0);}'
6354
6355
6356
6357
6358
6359
6360
6361 # If no C compiler was specified, use CC.
6362 LTCC=${LTCC-"$CC"}
6363
6364 # If no C compiler flags were specified, use CFLAGS.
6365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6366
6367 # Allow CC to be a program name with arguments.
6368 compiler=$CC
6369
6370 # Save the default compiler, since it gets overwritten when the other
6371 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6372 compiler_DEFAULT=$CC
6373
6374 # save warnings/boilerplate of simple test code
6375 ac_outfile=conftest.$ac_objext
6376 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6378 _lt_compiler_boilerplate=`cat conftest.err`
6379 $RM conftest*
6380
6381 ac_outfile=conftest.$ac_objext
6382 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6384 _lt_linker_boilerplate=`cat conftest.err`
6385 $RM conftest*
6386
6387
6388 ## CAVEAT EMPTOR:
6389 ## There is no encapsulation within the following macros, do not change
6390 ## the running order or otherwise move them around unless you know exactly
6391 ## what you are doing...
6392 if test -n "$compiler"; then
6393
6394 lt_prog_compiler_no_builtin_flag=
6395
6396 if test "$GCC" = yes; then
6397 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6398
6399 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 lt_cv_prog_compiler_rtti_exceptions=no
6405 ac_outfile=conftest.$ac_objext
6406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6407 lt_compiler_flag="-fno-rtti -fno-exceptions"
6408 # Insert the option either (1) after the last *FLAGS variable, or
6409 # (2) before a word containing "conftest.", or (3) at the end.
6410 # Note that $ac_compile itself does not contain backslashes and begins
6411 # with a dollar sign (not a hyphen), so the echo should work correctly.
6412 # The option is referenced via a variable to avoid confusing sed.
6413 lt_compile=`echo "$ac_compile" | $SED \
6414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416 -e 's:$: $lt_compiler_flag:'`
6417 (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
6418 (eval "$lt_compile" 2>conftest.err)
6419 ac_status=$?
6420 cat conftest.err >&5
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 if (exit $ac_status) && test -s "$ac_outfile"; then
6423 # The compiler can only warn and ignore the option if not recognized
6424 # So say no if there are warnings other than the usual output.
6425 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6428 lt_cv_prog_compiler_rtti_exceptions=yes
6429 fi
6430 fi
6431 $RM conftest*
6432
6433 fi
6434 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6436
6437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6439 else
6440 :
6441 fi
6442
6443 fi
6444
6445
6446
6447
6448
6449
6450 lt_prog_compiler_wl=
6451 lt_prog_compiler_pic=
6452 lt_prog_compiler_static=
6453
6454 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6456
6457 if test "$GCC" = yes; then
6458 lt_prog_compiler_wl='-Wl,'
6459 lt_prog_compiler_static='-static'
6460
6461 case $host_os in
6462 aix*)
6463 # All AIX code is PIC.
6464 if test "$host_cpu" = ia64; then
6465 # AIX 5 now supports IA64 processor
6466 lt_prog_compiler_static='-Bstatic'
6467 fi
6468 ;;
6469
6470 amigaos*)
6471 if test "$host_cpu" = m68k; then
6472 # FIXME: we need at least 68020 code to build shared libraries, but
6473 # adding the `-m68020' flag to GCC prevents building anything better,
6474 # like `-m68040'.
6475 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6476 fi
6477 ;;
6478
6479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6480 # PIC is the default for these OSes.
6481 ;;
6482
6483 mingw* | cygwin* | pw32* | os2*)
6484 # This hack is so that the source file can tell whether it is being
6485 # built for inclusion in a dll (and should export symbols for example).
6486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6487 # (--disable-auto-import) libraries
6488 lt_prog_compiler_pic='-DDLL_EXPORT'
6489 ;;
6490
6491 darwin* | rhapsody*)
6492 # PIC is the default on this platform
6493 # Common symbols not allowed in MH_DYLIB files
6494 lt_prog_compiler_pic='-fno-common'
6495 ;;
6496
6497 hpux*)
6498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6499 # not for PA HP-UX.
6500 case $host_cpu in
6501 hppa*64*|ia64*)
6502 # +Z the default
6503 ;;
6504 *)
6505 lt_prog_compiler_pic='-fPIC'
6506 ;;
6507 esac
6508 ;;
6509
6510 interix[3-9]*)
6511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6512 # Instead, we relocate shared libraries at runtime.
6513 ;;
6514
6515 msdosdjgpp*)
6516 # Just because we use GCC doesn't mean we suddenly get shared libraries
6517 # on systems that don't support them.
6518 lt_prog_compiler_can_build_shared=no
6519 enable_shared=no
6520 ;;
6521
6522 *nto* | *qnx*)
6523 # QNX uses GNU C++, but need to define -shared option too, otherwise
6524 # it will coredump.
6525 lt_prog_compiler_pic='-fPIC -shared'
6526 ;;
6527
6528 sysv4*MP*)
6529 if test -d /usr/nec; then
6530 lt_prog_compiler_pic=-Kconform_pic
6531 fi
6532 ;;
6533
6534 *)
6535 lt_prog_compiler_pic='-fPIC'
6536 ;;
6537 esac
6538 else
6539 # PORTME Check for flag to pass linker flags through the system compiler.
6540 case $host_os in
6541 aix*)
6542 lt_prog_compiler_wl='-Wl,'
6543 if test "$host_cpu" = ia64; then
6544 # AIX 5 now supports IA64 processor
6545 lt_prog_compiler_static='-Bstatic'
6546 else
6547 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6548 fi
6549 ;;
6550 darwin*)
6551 # PIC is the default on this platform
6552 # Common symbols not allowed in MH_DYLIB files
6553 case $cc_basename in
6554 xlc*)
6555 lt_prog_compiler_pic='-qnocommon'
6556 lt_prog_compiler_wl='-Wl,'
6557 ;;
6558 esac
6559 ;;
6560
6561 mingw* | cygwin* | pw32* | os2*)
6562 # This hack is so that the source file can tell whether it is being
6563 # built for inclusion in a dll (and should export symbols for example).
6564 lt_prog_compiler_pic='-DDLL_EXPORT'
6565 ;;
6566
6567 hpux9* | hpux10* | hpux11*)
6568 lt_prog_compiler_wl='-Wl,'
6569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6570 # not for PA HP-UX.
6571 case $host_cpu in
6572 hppa*64*|ia64*)
6573 # +Z the default
6574 ;;
6575 *)
6576 lt_prog_compiler_pic='+Z'
6577 ;;
6578 esac
6579 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6580 lt_prog_compiler_static='${wl}-a ${wl}archive'
6581 ;;
6582
6583 irix5* | irix6* | nonstopux*)
6584 lt_prog_compiler_wl='-Wl,'
6585 # PIC (with -KPIC) is the default.
6586 lt_prog_compiler_static='-non_shared'
6587 ;;
6588
6589 linux* | k*bsd*-gnu)
6590 case $cc_basename in
6591 icc* | ecc*)
6592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_pic='-KPIC'
6594 lt_prog_compiler_static='-static'
6595 ;;
6596 pgcc* | pgf77* | pgf90* | pgf95*)
6597 # Portland Group compilers (*not* the Pentium gcc compiler,
6598 # which looks to be a dead project)
6599 lt_prog_compiler_wl='-Wl,'
6600 lt_prog_compiler_pic='-fpic'
6601 lt_prog_compiler_static='-Bstatic'
6602 ;;
6603 ccc*)
6604 lt_prog_compiler_wl='-Wl,'
6605 # All Alpha code is PIC.
6606 lt_prog_compiler_static='-non_shared'
6607 ;;
6608 *)
6609 case `$CC -V 2>&1 | sed 5q` in
6610 *Sun\ C*)
6611 # Sun C 5.9
6612 lt_prog_compiler_pic='-KPIC'
6613 lt_prog_compiler_static='-Bstatic'
6614 lt_prog_compiler_wl='-Wl,'
6615 ;;
6616 *Sun\ F*)
6617 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6620 lt_prog_compiler_wl=''
6621 ;;
6622 esac
6623 ;;
6624 esac
6625 ;;
6626
6627 newsos6)
6628 lt_prog_compiler_pic='-KPIC'
6629 lt_prog_compiler_static='-Bstatic'
6630 ;;
6631
6632 *nto* | *qnx*)
6633 # QNX uses GNU C++, but need to define -shared option too, otherwise
6634 # it will coredump.
6635 lt_prog_compiler_pic='-fPIC -shared'
6636 ;;
6637
6638 osf3* | osf4* | osf5*)
6639 lt_prog_compiler_wl='-Wl,'
6640 # All OSF/1 code is PIC.
6641 lt_prog_compiler_static='-non_shared'
6642 ;;
6643
6644 rdos*)
6645 lt_prog_compiler_static='-non_shared'
6646 ;;
6647
6648 solaris*)
6649 lt_prog_compiler_pic='-KPIC'
6650 lt_prog_compiler_static='-Bstatic'
6651 case $cc_basename in
6652 f77* | f90* | f95*)
6653 lt_prog_compiler_wl='-Qoption ld ';;
6654 *)
6655 lt_prog_compiler_wl='-Wl,';;
6656 esac
6657 ;;
6658
6659 sunos4*)
6660 lt_prog_compiler_wl='-Qoption ld '
6661 lt_prog_compiler_pic='-PIC'
6662 lt_prog_compiler_static='-Bstatic'
6663 ;;
6664
6665 sysv4 | sysv4.2uw2* | sysv4.3*)
6666 lt_prog_compiler_wl='-Wl,'
6667 lt_prog_compiler_pic='-KPIC'
6668 lt_prog_compiler_static='-Bstatic'
6669 ;;
6670
6671 sysv4*MP*)
6672 if test -d /usr/nec ;then
6673 lt_prog_compiler_pic='-Kconform_pic'
6674 lt_prog_compiler_static='-Bstatic'
6675 fi
6676 ;;
6677
6678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6679 lt_prog_compiler_wl='-Wl,'
6680 lt_prog_compiler_pic='-KPIC'
6681 lt_prog_compiler_static='-Bstatic'
6682 ;;
6683
6684 unicos*)
6685 lt_prog_compiler_wl='-Wl,'
6686 lt_prog_compiler_can_build_shared=no
6687 ;;
6688
6689 uts4*)
6690 lt_prog_compiler_pic='-pic'
6691 lt_prog_compiler_static='-Bstatic'
6692 ;;
6693
6694 *)
6695 lt_prog_compiler_can_build_shared=no
6696 ;;
6697 esac
6698 fi
6699
6700 case $host_os in
6701 # For platforms which do not support PIC, -DPIC is meaningless:
6702 *djgpp*)
6703 lt_prog_compiler_pic=
6704 ;;
6705 *)
6706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6707 ;;
6708 esac
6709 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6710 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6711
6712
6713
6714
6715
6716
6717 #
6718 # Check to make sure the PIC flag actually works.
6719 #
6720 if test -n "$lt_prog_compiler_pic"; then
6721 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6723 if test "${lt_prog_compiler_pic_works+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 lt_prog_compiler_pic_works=no
6727 ac_outfile=conftest.$ac_objext
6728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6729 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6730 # Insert the option either (1) after the last *FLAGS variable, or
6731 # (2) before a word containing "conftest.", or (3) at the end.
6732 # Note that $ac_compile itself does not contain backslashes and begins
6733 # with a dollar sign (not a hyphen), so the echo should work correctly.
6734 # The option is referenced via a variable to avoid confusing sed.
6735 lt_compile=`echo "$ac_compile" | $SED \
6736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6738 -e 's:$: $lt_compiler_flag:'`
6739 (eval echo "\"\$as_me:6739: $lt_compile\"" >&5)
6740 (eval "$lt_compile" 2>conftest.err)
6741 ac_status=$?
6742 cat conftest.err >&5
6743 echo "$as_me:6743: \$? = $ac_status" >&5
6744 if (exit $ac_status) && test -s "$ac_outfile"; then
6745 # The compiler can only warn and ignore the option if not recognized
6746 # So say no if there are warnings other than the usual output.
6747 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6750 lt_prog_compiler_pic_works=yes
6751 fi
6752 fi
6753 $RM conftest*
6754
6755 fi
6756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6757 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6758
6759 if test x"$lt_prog_compiler_pic_works" = xyes; then
6760 case $lt_prog_compiler_pic in
6761 "" | " "*) ;;
6762 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6763 esac
6764 else
6765 lt_prog_compiler_pic=
6766 lt_prog_compiler_can_build_shared=no
6767 fi
6768
6769 fi
6770
6771
6772
6773
6774
6775
6776 #
6777 # Check to make sure the static flag actually works.
6778 #
6779 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6780 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6781 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6782 if test "${lt_prog_compiler_static_works+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 lt_prog_compiler_static_works=no
6786 save_LDFLAGS="$LDFLAGS"
6787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6790 # The linker can only warn and ignore the option if not recognized
6791 # So say no if there are warnings
6792 if test -s conftest.err; then
6793 # Append any errors to the config.log.
6794 cat conftest.err 1>&5
6795 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6797 if diff conftest.exp conftest.er2 >/dev/null; then
6798 lt_prog_compiler_static_works=yes
6799 fi
6800 else
6801 lt_prog_compiler_static_works=yes
6802 fi
6803 fi
6804 $RM conftest*
6805 LDFLAGS="$save_LDFLAGS"
6806
6807 fi
6808 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6809 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6810
6811 if test x"$lt_prog_compiler_static_works" = xyes; then
6812 :
6813 else
6814 lt_prog_compiler_static=
6815 fi
6816
6817
6818
6819
6820
6821
6822
6823 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6824 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6825 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 lt_cv_prog_compiler_c_o=no
6829 $RM -r conftest 2>/dev/null
6830 mkdir conftest
6831 cd conftest
6832 mkdir out
6833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6834
6835 lt_compiler_flag="-o out/conftest2.$ac_objext"
6836 # Insert the option either (1) after the last *FLAGS variable, or
6837 # (2) before a word containing "conftest.", or (3) at the end.
6838 # Note that $ac_compile itself does not contain backslashes and begins
6839 # with a dollar sign (not a hyphen), so the echo should work correctly.
6840 lt_compile=`echo "$ac_compile" | $SED \
6841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6843 -e 's:$: $lt_compiler_flag:'`
6844 (eval echo "\"\$as_me:6844: $lt_compile\"" >&5)
6845 (eval "$lt_compile" 2>out/conftest.err)
6846 ac_status=$?
6847 cat out/conftest.err >&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6850 then
6851 # The compiler can only warn and ignore the option if not recognized
6852 # So say no if there are warnings
6853 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6856 lt_cv_prog_compiler_c_o=yes
6857 fi
6858 fi
6859 chmod u+w . 2>&5
6860 $RM conftest*
6861 # SGI C++ compiler will create directory out/ii_files/ for
6862 # template instantiation
6863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6864 $RM out/* && rmdir out
6865 cd ..
6866 $RM -r conftest
6867 $RM conftest*
6868
6869 fi
6870 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6872
6873
6874
6875
6876
6877
6878 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6880 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883 lt_cv_prog_compiler_c_o=no
6884 $RM -r conftest 2>/dev/null
6885 mkdir conftest
6886 cd conftest
6887 mkdir out
6888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6889
6890 lt_compiler_flag="-o out/conftest2.$ac_objext"
6891 # Insert the option either (1) after the last *FLAGS variable, or
6892 # (2) before a word containing "conftest.", or (3) at the end.
6893 # Note that $ac_compile itself does not contain backslashes and begins
6894 # with a dollar sign (not a hyphen), so the echo should work correctly.
6895 lt_compile=`echo "$ac_compile" | $SED \
6896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6898 -e 's:$: $lt_compiler_flag:'`
6899 (eval echo "\"\$as_me:6899: $lt_compile\"" >&5)
6900 (eval "$lt_compile" 2>out/conftest.err)
6901 ac_status=$?
6902 cat out/conftest.err >&5
6903 echo "$as_me:6903: \$? = $ac_status" >&5
6904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6905 then
6906 # The compiler can only warn and ignore the option if not recognized
6907 # So say no if there are warnings
6908 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6911 lt_cv_prog_compiler_c_o=yes
6912 fi
6913 fi
6914 chmod u+w . 2>&5
6915 $RM conftest*
6916 # SGI C++ compiler will create directory out/ii_files/ for
6917 # template instantiation
6918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6919 $RM out/* && rmdir out
6920 cd ..
6921 $RM -r conftest
6922 $RM conftest*
6923
6924 fi
6925 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6927
6928
6929
6930
6931 hard_links="nottested"
6932 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6933 # do not overwrite the value of need_locks provided by the user
6934 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6935 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6936 hard_links=yes
6937 $RM conftest*
6938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6939 touch conftest.a
6940 ln conftest.a conftest.b 2>&5 || hard_links=no
6941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6942 echo "$as_me:$LINENO: result: $hard_links" >&5
6943 echo "${ECHO_T}$hard_links" >&6
6944 if test "$hard_links" = no; then
6945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6946 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6947 need_locks=warn
6948 fi
6949 else
6950 need_locks=no
6951 fi
6952
6953
6954
6955
6956
6957
6958 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6959 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6960
6961 runpath_var=
6962 allow_undefined_flag=
6963 always_export_symbols=no
6964 archive_cmds=
6965 archive_expsym_cmds=
6966 compiler_needs_object=no
6967 enable_shared_with_static_runtimes=no
6968 export_dynamic_flag_spec=
6969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6970 hardcode_automatic=no
6971 hardcode_direct=no
6972 hardcode_direct_absolute=no
6973 hardcode_libdir_flag_spec=
6974 hardcode_libdir_flag_spec_ld=
6975 hardcode_libdir_separator=
6976 hardcode_minus_L=no
6977 hardcode_shlibpath_var=unsupported
6978 inherit_rpath=no
6979 link_all_deplibs=unknown
6980 module_cmds=
6981 module_expsym_cmds=
6982 old_archive_from_new_cmds=
6983 old_archive_from_expsyms_cmds=
6984 thread_safe_flag_spec=
6985 whole_archive_flag_spec=
6986 # include_expsyms should be a list of space-separated symbols to be *always*
6987 # included in the symbol list
6988 include_expsyms=
6989 # exclude_expsyms can be an extended regexp of symbols to exclude
6990 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6992 # as well as any symbol that contains `d'.
6993 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6995 # platforms (ab)use it in PIC code, but their linkers get confused if
6996 # the symbol is explicitly referenced. Since portable code cannot
6997 # rely on this symbol name, it's probably fine to never include it in
6998 # preloaded symbol tables.
6999 extract_expsyms_cmds=
7000
7001 case $host_os in
7002 cygwin* | mingw* | pw32*)
7003 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7004 # When not using gcc, we currently assume that we are using
7005 # Microsoft Visual C++.
7006 if test "$GCC" != yes; then
7007 with_gnu_ld=no
7008 fi
7009 ;;
7010 interix*)
7011 # we just hope/assume this is gcc and not c89 (= MSVC++)
7012 with_gnu_ld=yes
7013 ;;
7014 openbsd*)
7015 with_gnu_ld=no
7016 ;;
7017 esac
7018
7019 ld_shlibs=yes
7020 if test "$with_gnu_ld" = yes; then
7021 # If archive_cmds runs LD, not CC, wlarc should be empty
7022 wlarc='${wl}'
7023
7024 # Set some defaults for GNU ld with shared library support. These
7025 # are reset later if shared libraries are not supported. Putting them
7026 # here allows them to be overridden if necessary.
7027 runpath_var=LD_RUN_PATH
7028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7029 export_dynamic_flag_spec='${wl}--export-dynamic'
7030 # ancient GNU ld didn't support --whole-archive et. al.
7031 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7033 else
7034 whole_archive_flag_spec=
7035 fi
7036 supports_anon_versioning=no
7037 case `$LD -v 2>&1` in
7038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7041 *\ 2.11.*) ;; # other 2.11 versions
7042 *) supports_anon_versioning=yes ;;
7043 esac
7044
7045 # See if GNU ld supports shared libraries.
7046 case $host_os in
7047 aix[3-9]*)
7048 # On AIX/PPC, the GNU linker is very broken
7049 if test "$host_cpu" != ia64; then
7050 ld_shlibs=no
7051 cat <<_LT_EOF 1>&2
7052
7053 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7054 *** to be unable to reliably create shared libraries on AIX.
7055 *** Therefore, libtool is disabling shared libraries support. If you
7056 *** really care for shared libraries, you may want to modify your PATH
7057 *** so that a non-GNU linker is found, and then restart.
7058
7059 _LT_EOF
7060 fi
7061 ;;
7062
7063 amigaos*)
7064 if test "$host_cpu" = m68k; then
7065 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)'
7066 hardcode_libdir_flag_spec='-L$libdir'
7067 hardcode_minus_L=yes
7068 fi
7069
7070 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7071 # that the semantics of dynamic libraries on AmigaOS, at least up
7072 # to version 4, is to share data among multiple programs linked
7073 # with the same dynamic library. Since this doesn't match the
7074 # behavior of shared libraries on other platforms, we can't use
7075 # them.
7076 ld_shlibs=no
7077 ;;
7078
7079 beos*)
7080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7081 allow_undefined_flag=unsupported
7082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7083 # support --undefined. This deserves some investigation. FIXME
7084 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7085 else
7086 ld_shlibs=no
7087 fi
7088 ;;
7089
7090 cygwin* | mingw* | pw32*)
7091 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7092 # as there is no search path for DLLs.
7093 hardcode_libdir_flag_spec='-L$libdir'
7094 allow_undefined_flag=unsupported
7095 always_export_symbols=no
7096 enable_shared_with_static_runtimes=yes
7097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7098
7099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7101 # If the export-symbols file already is a .def file (1st line
7102 # is EXPORTS), use it as is; otherwise, prepend...
7103 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7104 cp $export_symbols $output_objdir/$soname.def;
7105 else
7106 echo EXPORTS > $output_objdir/$soname.def;
7107 cat $export_symbols >> $output_objdir/$soname.def;
7108 fi~
7109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7110 else
7111 ld_shlibs=no
7112 fi
7113 ;;
7114
7115 interix[3-9]*)
7116 hardcode_direct=no
7117 hardcode_shlibpath_var=no
7118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7119 export_dynamic_flag_spec='${wl}-E'
7120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7121 # Instead, shared libraries are loaded at an image base (0x10000000 by
7122 # default) and relocated if they conflict, which is a slow very memory
7123 # consuming and fragmenting process. To avoid this, we pick a random,
7124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7127 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'
7128 ;;
7129
7130 gnu* | linux* | tpf* | k*bsd*-gnu)
7131 tmp_diet=no
7132 if test "$host_os" = linux-dietlibc; then
7133 case $cc_basename in
7134 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7135 esac
7136 fi
7137 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7138 && test "$tmp_diet" = no
7139 then
7140 tmp_addflag=
7141 case $cc_basename,$host_cpu in
7142 pgcc*) # Portland Group C compiler
7143 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'
7144 tmp_addflag=' $pic_flag'
7145 ;;
7146 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7147 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'
7148 tmp_addflag=' $pic_flag -Mnomain' ;;
7149 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7150 tmp_addflag=' -i_dynamic' ;;
7151 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7152 tmp_addflag=' -i_dynamic -nofor_main' ;;
7153 ifc* | ifort*) # Intel Fortran compiler
7154 tmp_addflag=' -nofor_main' ;;
7155 esac
7156 case `$CC -V 2>&1 | sed 5q` in
7157 *Sun\ C*) # Sun C 5.9
7158 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'
7159 compiler_needs_object=yes
7160 tmp_sharedflag='-G' ;;
7161 *Sun\ F*) # Sun Fortran 8.3
7162 tmp_sharedflag='-G' ;;
7163 *)
7164 tmp_sharedflag='-shared' ;;
7165 esac
7166 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7167
7168 if test "x$supports_anon_versioning" = xyes; then
7169 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7171 echo "local: *; };" >> $output_objdir/$libname.ver~
7172 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7173 fi
7174 else
7175 ld_shlibs=no
7176 fi
7177 ;;
7178
7179 netbsd*)
7180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7181 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7182 wlarc=
7183 else
7184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7186 fi
7187 ;;
7188
7189 solaris*)
7190 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7191 ld_shlibs=no
7192 cat <<_LT_EOF 1>&2
7193
7194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7195 *** create shared libraries on Solaris systems. Therefore, libtool
7196 *** is disabling shared libraries support. We urge you to upgrade GNU
7197 *** binutils to release 2.9.1 or newer. Another option is to modify
7198 *** your PATH or compiler configuration so that the native linker is
7199 *** used, and then restart.
7200
7201 _LT_EOF
7202 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7205 else
7206 ld_shlibs=no
7207 fi
7208 ;;
7209
7210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7211 case `$LD -v 2>&1` in
7212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7213 ld_shlibs=no
7214 cat <<_LT_EOF 1>&2
7215
7216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7217 *** reliably create shared libraries on SCO systems. Therefore, libtool
7218 *** is disabling shared libraries support. We urge you to upgrade GNU
7219 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7220 *** your PATH or compiler configuration so that the native linker is
7221 *** used, and then restart.
7222
7223 _LT_EOF
7224 ;;
7225 *)
7226 # For security reasons, it is highly recommended that you always
7227 # use absolute paths for naming shared libraries, and exclude the
7228 # DT_RUNPATH tag from executables and libraries. But doing so
7229 # requires that you compile everything twice, which is a pain.
7230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7234 else
7235 ld_shlibs=no
7236 fi
7237 ;;
7238 esac
7239 ;;
7240
7241 sunos4*)
7242 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7243 wlarc=
7244 hardcode_direct=yes
7245 hardcode_shlibpath_var=no
7246 ;;
7247
7248 *)
7249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7252 else
7253 ld_shlibs=no
7254 fi
7255 ;;
7256 esac
7257
7258 if test "$ld_shlibs" = no; then
7259 runpath_var=
7260 hardcode_libdir_flag_spec=
7261 export_dynamic_flag_spec=
7262 whole_archive_flag_spec=
7263 fi
7264 else
7265 # PORTME fill in a description of your system's linker (not GNU ld)
7266 case $host_os in
7267 aix3*)
7268 allow_undefined_flag=unsupported
7269 always_export_symbols=yes
7270 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'
7271 # Note: this linker hardcodes the directories in LIBPATH if there
7272 # are no directories specified by -L.
7273 hardcode_minus_L=yes
7274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7275 # Neither direct hardcoding nor static linking is supported with a
7276 # broken collect2.
7277 hardcode_direct=unsupported
7278 fi
7279 ;;
7280
7281 aix[4-9]*)
7282 if test "$host_cpu" = ia64; then
7283 # On IA64, the linker does run time linking by default, so we don't
7284 # have to do anything special.
7285 aix_use_runtimelinking=no
7286 exp_sym_flag='-Bexport'
7287 no_entry_flag=""
7288 else
7289 # If we're using GNU nm, then we don't want the "-C" option.
7290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7291 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7292 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'
7293 else
7294 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'
7295 fi
7296 aix_use_runtimelinking=no
7297
7298 # Test if we are trying to use run time linking or normal
7299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7300 # need to do runtime linking.
7301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7302 for ld_flag in $LDFLAGS; do
7303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7304 aix_use_runtimelinking=yes
7305 break
7306 fi
7307 done
7308 ;;
7309 esac
7310
7311 exp_sym_flag='-bexport'
7312 no_entry_flag='-bnoentry'
7313 fi
7314
7315 # When large executables or shared objects are built, AIX ld can
7316 # have problems creating the table of contents. If linking a library
7317 # or program results in "error TOC overflow" add -mminimal-toc to
7318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7320
7321 archive_cmds=''
7322 hardcode_direct=yes
7323 hardcode_direct_absolute=yes
7324 hardcode_libdir_separator=':'
7325 link_all_deplibs=yes
7326 file_list_spec='${wl}-f,'
7327
7328 if test "$GCC" = yes; then
7329 case $host_os in aix4.[012]|aix4.[012].*)
7330 # We only want to do this on AIX 4.2 and lower, the check
7331 # below for broken collect2 doesn't work under 4.3+
7332 collect2name=`${CC} -print-prog-name=collect2`
7333 if test -f "$collect2name" &&
7334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7335 then
7336 # We have reworked collect2
7337 :
7338 else
7339 # We have old collect2
7340 hardcode_direct=unsupported
7341 # It fails to find uninstalled libraries when the uninstalled
7342 # path is not listed in the libpath. Setting hardcode_minus_L
7343 # to unsupported forces relinking
7344 hardcode_minus_L=yes
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_libdir_separator=
7347 fi
7348 ;;
7349 esac
7350 shared_flag='-shared'
7351 if test "$aix_use_runtimelinking" = yes; then
7352 shared_flag="$shared_flag "'${wl}-G'
7353 fi
7354 else
7355 # not using gcc
7356 if test "$host_cpu" = ia64; then
7357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7358 # chokes on -Wl,-G. The following line is correct:
7359 shared_flag='-G'
7360 else
7361 if test "$aix_use_runtimelinking" = yes; then
7362 shared_flag='${wl}-G'
7363 else
7364 shared_flag='${wl}-bM:SRE'
7365 fi
7366 fi
7367 fi
7368
7369 # It seems that -bexpall does not export symbols beginning with
7370 # underscore (_), so it is better to generate a list of symbols to export.
7371 always_export_symbols=yes
7372 if test "$aix_use_runtimelinking" = yes; then
7373 # Warning - without using the other runtime loading flags (-brtl),
7374 # -berok will link without error, but may produce a broken library.
7375 allow_undefined_flag='-berok'
7376 # Determine the default libpath from the value encoded in an
7377 # empty executable.
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384
7385 int
7386 main ()
7387 {
7388
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415
7416 lt_aix_libpath_sed='
7417 /Import File Strings/,/^$/ {
7418 /^0/ {
7419 s/^0 *\(.*\)$/\1/
7420 p
7421 }
7422 }'
7423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7424 # Check for a 64-bit object if we didn't find anything.
7425 if test -z "$aix_libpath"; then
7426 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7427 fi
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7431
7432 fi
7433 rm -f conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7436
7437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7438 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"
7439 else
7440 if test "$host_cpu" = ia64; then
7441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7442 allow_undefined_flag="-z nodefs"
7443 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"
7444 else
7445 # Determine the default libpath from the value encoded in an
7446 # empty executable.
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453
7454 int
7455 main ()
7456 {
7457
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext conftest$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } &&
7471 { ac_try='test -z "$ac_c_werror_flag"
7472 || test ! -s conftest.err'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try='test -s conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484
7485 lt_aix_libpath_sed='
7486 /Import File Strings/,/^$/ {
7487 /^0/ {
7488 s/^0 *\(.*\)$/\1/
7489 p
7490 }
7491 }'
7492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7493 # Check for a 64-bit object if we didn't find anything.
7494 if test -z "$aix_libpath"; then
7495 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7496 fi
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501 fi
7502 rm -f conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7505
7506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7507 # Warning - without using the other run time loading flags,
7508 # -berok will link without error, but may produce a broken library.
7509 no_undefined_flag=' ${wl}-bernotok'
7510 allow_undefined_flag=' ${wl}-berok'
7511 # Exported symbols can be pulled into shared objects from archives
7512 whole_archive_flag_spec='$convenience'
7513 archive_cmds_need_lc=yes
7514 # This is similar to how AIX traditionally builds its shared libraries.
7515 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'
7516 fi
7517 fi
7518 ;;
7519
7520 amigaos*)
7521 if test "$host_cpu" = m68k; then
7522 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)'
7523 hardcode_libdir_flag_spec='-L$libdir'
7524 hardcode_minus_L=yes
7525 fi
7526 # see comment about different semantics on the GNU ld section
7527 ld_shlibs=no
7528 ;;
7529
7530 bsdi[45]*)
7531 export_dynamic_flag_spec=-rdynamic
7532 ;;
7533
7534 cygwin* | mingw* | pw32*)
7535 # When not using gcc, we currently assume that we are using
7536 # Microsoft Visual C++.
7537 # hardcode_libdir_flag_spec is actually meaningless, as there is
7538 # no search path for DLLs.
7539 hardcode_libdir_flag_spec=' '
7540 allow_undefined_flag=unsupported
7541 # Tell ltmain to make .lib files, not .a files.
7542 libext=lib
7543 # Tell ltmain to make .dll files, not .so files.
7544 shrext_cmds=".dll"
7545 # FIXME: Setting linknames here is a bad hack.
7546 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7547 # The linker will automatically build a .lib file if we build a DLL.
7548 old_archive_from_new_cmds='true'
7549 # FIXME: Should let the user specify the lib program.
7550 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7551 fix_srcfile_path='`cygpath -w "$srcfile"`'
7552 enable_shared_with_static_runtimes=yes
7553 ;;
7554
7555 darwin* | rhapsody*)
7556 case $host_os in
7557 rhapsody* | darwin1.[012])
7558 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7559 ;;
7560 *) # Darwin 1.3 on
7561 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7562 10.[012])
7563 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7564 ;;
7565 10.*)
7566 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7567 ;;
7568 esac
7569 ;;
7570 esac
7571 archive_cmds_need_lc=no
7572 hardcode_direct=no
7573 hardcode_automatic=yes
7574 hardcode_shlibpath_var=unsupported
7575 whole_archive_flag_spec=''
7576 link_all_deplibs=yes
7577 if test "$GCC" = yes ; then
7578 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 lt_cv_apple_cc_single_mod=no
7582 if test -z "${LT_MULTI_MODULE}"; then
7583 # By default we will add the -single_module flag. You can override
7584 # by either setting the environment variable LT_MULTI_MODULE
7585 # non-empty at configure time, or by adding -multi-module to the
7586 # link flags.
7587 echo "int foo(void){return 1;}" > conftest.c
7588 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7589 -dynamiclib ${wl}-single_module conftest.c
7590 if test -f libconftest.dylib; then
7591 lt_cv_apple_cc_single_mod=yes
7592 rm libconftest.dylib
7593 fi
7594 rm conftest.$ac_ext
7595 fi
7596 fi
7597
7598 output_verbose_link_cmd=echo
7599 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7600 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7601 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7602 else
7603 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7604 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7605 fi
7606 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7607 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7608 else
7609 case $cc_basename in
7610 xlc*)
7611 output_verbose_link_cmd=echo
7612 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7613 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7615 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7616 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7617 ;;
7618 *)
7619 ld_shlibs=no
7620 ;;
7621 esac
7622 fi
7623 ;;
7624
7625 dgux*)
7626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627 hardcode_libdir_flag_spec='-L$libdir'
7628 hardcode_shlibpath_var=no
7629 ;;
7630
7631 freebsd1*)
7632 ld_shlibs=no
7633 ;;
7634
7635 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7636 # support. Future versions do this automatically, but an explicit c++rt0.o
7637 # does not break anything, and helps significantly (at the cost of a little
7638 # extra space).
7639 freebsd2.2*)
7640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7641 hardcode_libdir_flag_spec='-R$libdir'
7642 hardcode_direct=yes
7643 hardcode_shlibpath_var=no
7644 ;;
7645
7646 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7647 freebsd2*)
7648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7649 hardcode_direct=yes
7650 hardcode_minus_L=yes
7651 hardcode_shlibpath_var=no
7652 ;;
7653
7654 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7655 freebsd* | dragonfly*)
7656 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7657 hardcode_libdir_flag_spec='-R$libdir'
7658 hardcode_direct=yes
7659 hardcode_shlibpath_var=no
7660 ;;
7661
7662 hpux9*)
7663 if test "$GCC" = yes; then
7664 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'
7665 else
7666 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'
7667 fi
7668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7669 hardcode_libdir_separator=:
7670 hardcode_direct=yes
7671
7672 # hardcode_minus_L: Not really in the search PATH,
7673 # but as the default location of the library.
7674 hardcode_minus_L=yes
7675 export_dynamic_flag_spec='${wl}-E'
7676 ;;
7677
7678 hpux10*)
7679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7681 else
7682 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7683 fi
7684 if test "$with_gnu_ld" = no; then
7685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7686 hardcode_libdir_flag_spec_ld='+b $libdir'
7687 hardcode_libdir_separator=:
7688 hardcode_direct=yes
7689 hardcode_direct_absolute=yes
7690 export_dynamic_flag_spec='${wl}-E'
7691 # hardcode_minus_L: Not really in the search PATH,
7692 # but as the default location of the library.
7693 hardcode_minus_L=yes
7694 fi
7695 ;;
7696
7697 hpux11*)
7698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7699 case $host_cpu in
7700 hppa*64*)
7701 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7702 ;;
7703 ia64*)
7704 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7705 ;;
7706 *)
7707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7708 ;;
7709 esac
7710 else
7711 case $host_cpu in
7712 hppa*64*)
7713 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7714 ;;
7715 ia64*)
7716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7717 ;;
7718 *)
7719 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7720 ;;
7721 esac
7722 fi
7723 if test "$with_gnu_ld" = no; then
7724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7725 hardcode_libdir_separator=:
7726
7727 case $host_cpu in
7728 hppa*64*|ia64*)
7729 hardcode_direct=no
7730 hardcode_shlibpath_var=no
7731 ;;
7732 *)
7733 hardcode_direct=yes
7734 hardcode_direct_absolute=yes
7735 export_dynamic_flag_spec='${wl}-E'
7736
7737 # hardcode_minus_L: Not really in the search PATH,
7738 # but as the default location of the library.
7739 hardcode_minus_L=yes
7740 ;;
7741 esac
7742 fi
7743 ;;
7744
7745 irix5* | irix6* | nonstopux*)
7746 if test "$GCC" = yes; then
7747 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'
7748 # Try to use the -exported_symbol ld option, if it does not
7749 # work, assume that -exports_file does not work either and
7750 # implicitly export all symbols.
7751 save_LDFLAGS="$LDFLAGS"
7752 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7753 cat >conftest.$ac_ext <<_ACEOF
7754 int foo(void) {}
7755 _ACEOF
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 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'
7779
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784 fi
7785 rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 LDFLAGS="$save_LDFLAGS"
7788 else
7789 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'
7790 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'
7791 fi
7792 archive_cmds_need_lc='no'
7793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7794 hardcode_libdir_separator=:
7795 inherit_rpath=yes
7796 link_all_deplibs=yes
7797 ;;
7798
7799 netbsd*)
7800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7802 else
7803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7804 fi
7805 hardcode_libdir_flag_spec='-R$libdir'
7806 hardcode_direct=yes
7807 hardcode_shlibpath_var=no
7808 ;;
7809
7810 newsos6)
7811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7812 hardcode_direct=yes
7813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7814 hardcode_libdir_separator=:
7815 hardcode_shlibpath_var=no
7816 ;;
7817
7818 *nto* | *qnx*)
7819 ;;
7820
7821 openbsd*)
7822 hardcode_direct=yes
7823 hardcode_shlibpath_var=no
7824 hardcode_direct_absolute=yes
7825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829 export_dynamic_flag_spec='${wl}-E'
7830 else
7831 case $host_os in
7832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_libdir_flag_spec='-R$libdir'
7835 ;;
7836 *)
7837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7839 ;;
7840 esac
7841 fi
7842 ;;
7843
7844 os2*)
7845 hardcode_libdir_flag_spec='-L$libdir'
7846 hardcode_minus_L=yes
7847 allow_undefined_flag=unsupported
7848 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'
7849 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7850 ;;
7851
7852 osf3*)
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855 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'
7856 else
7857 allow_undefined_flag=' -expect_unresolved \*'
7858 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'
7859 fi
7860 archive_cmds_need_lc='no'
7861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7862 hardcode_libdir_separator=:
7863 ;;
7864
7865 osf4* | osf5*) # as osf3* with the addition of -msym flag
7866 if test "$GCC" = yes; then
7867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7868 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'
7869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7870 else
7871 allow_undefined_flag=' -expect_unresolved \*'
7872 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'
7873 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~
7874 $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'
7875
7876 # Both c and cxx compiler support -rpath directly
7877 hardcode_libdir_flag_spec='-rpath $libdir'
7878 fi
7879 archive_cmds_need_lc='no'
7880 hardcode_libdir_separator=:
7881 ;;
7882
7883 solaris*)
7884 no_undefined_flag=' -z defs'
7885 if test "$GCC" = yes; then
7886 wlarc='${wl}'
7887 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7889 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7890 else
7891 case `$CC -V 2>&1` in
7892 *"Compilers 5.0"*)
7893 wlarc=''
7894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7897 ;;
7898 *)
7899 wlarc='${wl}'
7900 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7902 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7903 ;;
7904 esac
7905 fi
7906 hardcode_libdir_flag_spec='-R$libdir'
7907 hardcode_shlibpath_var=no
7908 case $host_os in
7909 solaris2.[0-5] | solaris2.[0-5].*) ;;
7910 *)
7911 # The compiler driver will combine and reorder linker options,
7912 # but understands `-z linker_flag'. GCC discards it without `$wl',
7913 # but is careful enough not to reorder.
7914 # Supported since Solaris 2.6 (maybe 2.5.1?)
7915 if test "$GCC" = yes; then
7916 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7917 else
7918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7919 fi
7920 ;;
7921 esac
7922 link_all_deplibs=yes
7923 ;;
7924
7925 sunos4*)
7926 if test "x$host_vendor" = xsequent; then
7927 # Use $CC to link under sequent, because it throws in some extra .o
7928 # files that make .init and .fini sections work.
7929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7930 else
7931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7932 fi
7933 hardcode_libdir_flag_spec='-L$libdir'
7934 hardcode_direct=yes
7935 hardcode_minus_L=yes
7936 hardcode_shlibpath_var=no
7937 ;;
7938
7939 sysv4)
7940 case $host_vendor in
7941 sni)
7942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct=yes # is this really true???
7944 ;;
7945 siemens)
7946 ## LD is ld it makes a PLAMLIB
7947 ## CC just makes a GrossModule.
7948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7949 reload_cmds='$CC -r -o $output$reload_objs'
7950 hardcode_direct=no
7951 ;;
7952 motorola)
7953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7955 ;;
7956 esac
7957 runpath_var='LD_RUN_PATH'
7958 hardcode_shlibpath_var=no
7959 ;;
7960
7961 sysv4.3*)
7962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7963 hardcode_shlibpath_var=no
7964 export_dynamic_flag_spec='-Bexport'
7965 ;;
7966
7967 sysv4*MP*)
7968 if test -d /usr/nec; then
7969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_shlibpath_var=no
7971 runpath_var=LD_RUN_PATH
7972 hardcode_runpath_var=yes
7973 ld_shlibs=yes
7974 fi
7975 ;;
7976
7977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7978 no_undefined_flag='${wl}-z,text'
7979 archive_cmds_need_lc=no
7980 hardcode_shlibpath_var=no
7981 runpath_var='LD_RUN_PATH'
7982
7983 if test "$GCC" = yes; then
7984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7986 else
7987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7989 fi
7990 ;;
7991
7992 sysv5* | sco3.2v5* | sco5v6*)
7993 # Note: We can NOT use -z defs as we might desire, because we do not
7994 # link with -lc, and that would cause any symbols used from libc to
7995 # always be unresolved, which means just about no library would
7996 # ever link correctly. If we're not using GNU ld we use -z text
7997 # though, which does catch some bad symbols but isn't as heavy-handed
7998 # as -z defs.
7999 no_undefined_flag='${wl}-z,text'
8000 allow_undefined_flag='${wl}-z,nodefs'
8001 archive_cmds_need_lc=no
8002 hardcode_shlibpath_var=no
8003 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8004 hardcode_libdir_separator=':'
8005 link_all_deplibs=yes
8006 export_dynamic_flag_spec='${wl}-Bexport'
8007 runpath_var='LD_RUN_PATH'
8008
8009 if test "$GCC" = yes; then
8010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8012 else
8013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8015 fi
8016 ;;
8017
8018 uts4*)
8019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_libdir_flag_spec='-L$libdir'
8021 hardcode_shlibpath_var=no
8022 ;;
8023
8024 *)
8025 ld_shlibs=no
8026 ;;
8027 esac
8028
8029 if test x$host_vendor = xsni; then
8030 case $host in
8031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8032 export_dynamic_flag_spec='${wl}-Blargedynsym'
8033 ;;
8034 esac
8035 fi
8036 fi
8037
8038 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8039 echo "${ECHO_T}$ld_shlibs" >&6
8040 test "$ld_shlibs" = no && can_build_shared=no
8041
8042 with_gnu_ld=$with_gnu_ld
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 #
8059 # Do we need to explicitly link libc?
8060 #
8061 case "x$archive_cmds_need_lc" in
8062 x|xyes)
8063 # Assume -lc should be added
8064 archive_cmds_need_lc=yes
8065
8066 if test "$enable_shared" = yes && test "$GCC" = yes; then
8067 case $archive_cmds in
8068 *'~'*)
8069 # FIXME: we may have to deal with multi-command sequences.
8070 ;;
8071 '$CC '*)
8072 # Test whether the compiler implicitly links with -lc since on some
8073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8074 # to ld, don't add -lc before -lgcc.
8075 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8077 $RM conftest*
8078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8079
8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } 2>conftest.err; then
8085 soname=conftest
8086 lib=conftest
8087 libobjs=conftest.$ac_objext
8088 deplibs=
8089 wl=$lt_prog_compiler_wl
8090 pic_flag=$lt_prog_compiler_pic
8091 compiler_flags=-v
8092 linker_flags=-v
8093 verstring=
8094 output_objdir=.
8095 libname=conftest
8096 lt_save_allow_undefined_flag=$allow_undefined_flag
8097 allow_undefined_flag=
8098 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8099 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }
8103 then
8104 archive_cmds_need_lc=no
8105 else
8106 archive_cmds_need_lc=yes
8107 fi
8108 allow_undefined_flag=$lt_save_allow_undefined_flag
8109 else
8110 cat conftest.err 1>&5
8111 fi
8112 $RM conftest*
8113 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8114 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8115 ;;
8116 esac
8117 fi
8118 ;;
8119 esac
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8279 withGCC=$GCC
8280 if test "$withGCC" = yes; then
8281 case $host_os in
8282 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8283 *) lt_awk_arg="/^libraries:/" ;;
8284 esac
8285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8286 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8287 # if the path contains ";" then we assume it to be the separator
8288 # otherwise default to the standard path separator (i.e. ":") - it is
8289 # assumed that no part of a normal pathname contains ";" but that should
8290 # okay in the real world where ";" in dirpaths is itself problematic.
8291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8292 else
8293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8294 fi
8295 # Ok, now we have the path, separated by spaces, we can step through it
8296 # and add multilib dir if necessary.
8297 lt_tmp_lt_search_path_spec=
8298 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8299 for lt_sys_path in $lt_search_path_spec; do
8300 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8301 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8302 else
8303 test -d "$lt_sys_path" && \
8304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8305 fi
8306 done
8307 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8308 BEGIN {RS=" "; FS="/|\n";} {
8309 lt_foo="";
8310 lt_count=0;
8311 for (lt_i = NF; lt_i > 0; lt_i--) {
8312 if ($lt_i != "" && $lt_i != ".") {
8313 if ($lt_i == "..") {
8314 lt_count++;
8315 } else {
8316 if (lt_count == 0) {
8317 lt_foo="/" $lt_i lt_foo;
8318 } else {
8319 lt_count--;
8320 }
8321 }
8322 }
8323 }
8324 if (lt_foo != "") { lt_freq[lt_foo]++; }
8325 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8326 }'`
8327 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8328 else
8329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8330 fi
8331 library_names_spec=
8332 libname_spec='lib$name'
8333 soname_spec=
8334 shrext_cmds=".so"
8335 postinstall_cmds=
8336 postuninstall_cmds=
8337 finish_cmds=
8338 finish_eval=
8339 shlibpath_var=
8340 shlibpath_overrides_runpath=unknown
8341 version_type=none
8342 dynamic_linker="$host_os ld.so"
8343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8344 need_lib_prefix=unknown
8345 hardcode_into_libs=no
8346
8347 # when you set need_version to no, make sure it does not cause -set_version
8348 # flags to be left without arguments
8349 need_version=unknown
8350
8351 case $host_os in
8352 aix3*)
8353 version_type=linux
8354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8355 shlibpath_var=LIBPATH
8356
8357 # AIX 3 has no versioning support, so we append a major version to the name.
8358 soname_spec='${libname}${release}${shared_ext}$major'
8359 ;;
8360
8361 aix[4-9]*)
8362 version_type=linux
8363 need_lib_prefix=no
8364 need_version=no
8365 hardcode_into_libs=yes
8366 if test "$host_cpu" = ia64; then
8367 # AIX 5 supports IA64
8368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 else
8371 # With GCC up to 2.95.x, collect2 would create an import file
8372 # for dependence libraries. The import file would start with
8373 # the line `#! .'. This would cause the generated library to
8374 # depend on `.', always an invalid library. This was fixed in
8375 # development snapshots of GCC prior to 3.0.
8376 case $host_os in
8377 aix4 | aix4.[01] | aix4.[01].*)
8378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8379 echo ' yes '
8380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8381 :
8382 else
8383 can_build_shared=no
8384 fi
8385 ;;
8386 esac
8387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8388 # soname into executable. Probably we can add versioning support to
8389 # collect2, so additional links can be useful in future.
8390 if test "$aix_use_runtimelinking" = yes; then
8391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8392 # instead of lib<name>.a to let people know that these are not
8393 # typical AIX shared libraries.
8394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8395 else
8396 # We preserve .a as extension for shared libraries through AIX4.2
8397 # and later when we are not doing run time linking.
8398 library_names_spec='${libname}${release}.a $libname.a'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8400 fi
8401 shlibpath_var=LIBPATH
8402 fi
8403 ;;
8404
8405 amigaos*)
8406 if test "$host_cpu" = m68k; then
8407 library_names_spec='$libname.ixlibrary $libname.a'
8408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8409 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'
8410 else
8411 dynamic_linker=no
8412 fi
8413 ;;
8414
8415 beos*)
8416 library_names_spec='${libname}${shared_ext}'
8417 dynamic_linker="$host_os ld.so"
8418 shlibpath_var=LIBRARY_PATH
8419 ;;
8420
8421 bsdi[45]*)
8422 version_type=linux
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8430 # the default ld.so.conf also contains /usr/contrib/lib and
8431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8432 # libtool to hard-code these into programs
8433 ;;
8434
8435 cygwin* | mingw* | pw32*)
8436 version_type=windows
8437 shrext_cmds=".dll"
8438 need_version=no
8439 need_lib_prefix=no
8440
8441 case $withGCC,$host_os in
8442 yes,cygwin* | yes,mingw* | yes,pw32*)
8443 library_names_spec='$libname.dll.a'
8444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8445 postinstall_cmds='base_file=`basename \${file}`~
8446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8447 dldir=$destdir/`dirname \$dlpath`~
8448 test -d \$dldir || mkdir -p \$dldir~
8449 $install_prog $dir/$dlname \$dldir/$dlname~
8450 chmod a+x \$dldir/$dlname~
8451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8453 fi'
8454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8455 dlpath=$dir/\$dldll~
8456 $RM \$dlpath'
8457 shlibpath_overrides_runpath=yes
8458
8459 case $host_os in
8460 cygwin*)
8461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8463 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8464 ;;
8465 mingw*)
8466 # MinGW DLLs use traditional 'lib' prefix
8467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8468 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8470 # It is most probably a Windows format PATH printed by
8471 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8472 # path with ; separators, and with drive letters. We can handle the
8473 # drive letters (cygwin fileutils understands them), so leave them,
8474 # especially as we might pass files found there to a mingw objdump,
8475 # which wouldn't understand a cygwinified path. Ahh.
8476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8477 else
8478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8479 fi
8480 ;;
8481 pw32*)
8482 # pw32 DLLs use 'pw' prefix rather than 'lib'
8483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8484 ;;
8485 esac
8486 ;;
8487
8488 *)
8489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8490 ;;
8491 esac
8492 dynamic_linker='Win32 ld.exe'
8493 # FIXME: first we should search . and the directory the executable is in
8494 shlibpath_var=PATH
8495 ;;
8496
8497 darwin* | rhapsody*)
8498 dynamic_linker="$host_os dyld"
8499 version_type=darwin
8500 need_lib_prefix=no
8501 need_version=no
8502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8503 soname_spec='${libname}${release}${major}$shared_ext'
8504 shlibpath_overrides_runpath=yes
8505 shlibpath_var=DYLD_LIBRARY_PATH
8506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8507
8508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8510 ;;
8511
8512 dgux*)
8513 version_type=linux
8514 need_lib_prefix=no
8515 need_version=no
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8519 ;;
8520
8521 freebsd1*)
8522 dynamic_linker=no
8523 ;;
8524
8525 freebsd* | dragonfly*)
8526 # DragonFly does not have aout. When/if they implement a new
8527 # versioning mechanism, adjust this.
8528 if test -x /usr/bin/objformat; then
8529 objformat=`/usr/bin/objformat`
8530 else
8531 case $host_os in
8532 freebsd[123]*) objformat=aout ;;
8533 *) objformat=elf ;;
8534 esac
8535 fi
8536 version_type=freebsd-$objformat
8537 case $version_type in
8538 freebsd-elf*)
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8540 need_version=no
8541 need_lib_prefix=no
8542 ;;
8543 freebsd-*)
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8545 need_version=yes
8546 ;;
8547 esac
8548 shlibpath_var=LD_LIBRARY_PATH
8549 case $host_os in
8550 freebsd2*)
8551 shlibpath_overrides_runpath=yes
8552 ;;
8553 freebsd3.[01]* | freebsdelf3.[01]*)
8554 shlibpath_overrides_runpath=yes
8555 hardcode_into_libs=yes
8556 ;;
8557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8559 shlibpath_overrides_runpath=no
8560 hardcode_into_libs=yes
8561 ;;
8562 *) # from 4.6 on, and DragonFly
8563 shlibpath_overrides_runpath=yes
8564 hardcode_into_libs=yes
8565 ;;
8566 esac
8567 ;;
8568
8569 gnu*)
8570 version_type=linux
8571 need_lib_prefix=no
8572 need_version=no
8573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8574 soname_spec='${libname}${release}${shared_ext}$major'
8575 shlibpath_var=LD_LIBRARY_PATH
8576 hardcode_into_libs=yes
8577 ;;
8578
8579 hpux9* | hpux10* | hpux11*)
8580 # Give a soname corresponding to the major version so that dld.sl refuses to
8581 # link against other versions.
8582 version_type=sunos
8583 need_lib_prefix=no
8584 need_version=no
8585 case $host_cpu in
8586 ia64*)
8587 shrext_cmds='.so'
8588 hardcode_into_libs=yes
8589 dynamic_linker="$host_os dld.so"
8590 shlibpath_var=LD_LIBRARY_PATH
8591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 if test "X$HPUX_IA64_MODE" = X32; then
8595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8596 else
8597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8598 fi
8599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8600 ;;
8601 hppa*64*)
8602 shrext_cmds='.sl'
8603 hardcode_into_libs=yes
8604 dynamic_linker="$host_os dld.sl"
8605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8611 ;;
8612 *)
8613 shrext_cmds='.sl'
8614 dynamic_linker="$host_os dld.sl"
8615 shlibpath_var=SHLIB_PATH
8616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8619 ;;
8620 esac
8621 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8622 postinstall_cmds='chmod 555 $lib'
8623 ;;
8624
8625 interix[3-9]*)
8626 version_type=linux
8627 need_lib_prefix=no
8628 need_version=no
8629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8630 soname_spec='${libname}${release}${shared_ext}$major'
8631 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 shlibpath_overrides_runpath=no
8634 hardcode_into_libs=yes
8635 ;;
8636
8637 irix5* | irix6* | nonstopux*)
8638 case $host_os in
8639 nonstopux*) version_type=nonstopux ;;
8640 *)
8641 if test "$lt_cv_prog_gnu_ld" = yes; then
8642 version_type=linux
8643 else
8644 version_type=irix
8645 fi ;;
8646 esac
8647 need_lib_prefix=no
8648 need_version=no
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8651 case $host_os in
8652 irix5* | nonstopux*)
8653 libsuff= shlibsuff=
8654 ;;
8655 *)
8656 case $LD in # libtool.m4 will add one of these switches to LD
8657 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8658 libsuff= shlibsuff= libmagic=32-bit;;
8659 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8660 libsuff=32 shlibsuff=N32 libmagic=N32;;
8661 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8662 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8663 *) libsuff= shlibsuff= libmagic=never-match;;
8664 esac
8665 ;;
8666 esac
8667 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8668 shlibpath_overrides_runpath=no
8669 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8670 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8671 hardcode_into_libs=yes
8672 ;;
8673
8674 # No shared lib support for Linux oldld, aout, or coff.
8675 linux*oldld* | linux*aout* | linux*coff*)
8676 dynamic_linker=no
8677 ;;
8678
8679 # This must be Linux ELF.
8680 linux* | k*bsd*-gnu)
8681 version_type=linux
8682 need_lib_prefix=no
8683 need_version=no
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8687 shlibpath_var=LD_LIBRARY_PATH
8688 shlibpath_overrides_runpath=no
8689 # Some binutils ld are patched to set DT_RUNPATH
8690 save_LDFLAGS=$LDFLAGS
8691 save_libdir=$libdir
8692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700
8701 int
8702 main ()
8703 {
8704
8705 ;
8706 return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8732 shlibpath_overrides_runpath=yes
8733 fi
8734
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 fi
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LDFLAGS=$save_LDFLAGS
8743 libdir=$save_libdir
8744
8745 # This implies no fast_install, which is unacceptable.
8746 # Some rework will be needed to allow for fast_install
8747 # before this can be enabled.
8748 hardcode_into_libs=yes
8749
8750 # Append ld.so.conf contents to the search path
8751 if test -f /etc/ld.so.conf; then
8752 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8753 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8754 fi
8755
8756 # We used to test for /lib/ld.so.1 and disable shared libraries on
8757 # powerpc, because MkLinux only supported shared libraries with the
8758 # GNU dynamic linker. Since this was broken with cross compilers,
8759 # most powerpc-linux boxes support dynamic linking these days and
8760 # people can always --disable-shared, the test was removed, and we
8761 # assume the GNU/Linux dynamic linker is in use.
8762 dynamic_linker='GNU/Linux ld.so'
8763 ;;
8764
8765 netbsd*)
8766 version_type=sunos
8767 need_lib_prefix=no
8768 need_version=no
8769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8772 dynamic_linker='NetBSD (a.out) ld.so'
8773 else
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 dynamic_linker='NetBSD ld.elf_so'
8777 fi
8778 shlibpath_var=LD_LIBRARY_PATH
8779 shlibpath_overrides_runpath=yes
8780 hardcode_into_libs=yes
8781 ;;
8782
8783 newsos6)
8784 version_type=linux
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 shlibpath_overrides_runpath=yes
8788 ;;
8789
8790 *nto* | *qnx*)
8791 version_type=qnx
8792 need_lib_prefix=no
8793 need_version=no
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 shlibpath_var=LD_LIBRARY_PATH
8797 shlibpath_overrides_runpath=no
8798 hardcode_into_libs=yes
8799 dynamic_linker='ldqnx.so'
8800 ;;
8801
8802 openbsd*)
8803 version_type=sunos
8804 sys_lib_dlsearch_path_spec="/usr/lib"
8805 need_lib_prefix=no
8806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8807 case $host_os in
8808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8809 *) need_version=no ;;
8810 esac
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8815 case $host_os in
8816 openbsd2.[89] | openbsd2.[89].*)
8817 shlibpath_overrides_runpath=no
8818 ;;
8819 *)
8820 shlibpath_overrides_runpath=yes
8821 ;;
8822 esac
8823 else
8824 shlibpath_overrides_runpath=yes
8825 fi
8826 ;;
8827
8828 os2*)
8829 libname_spec='$name'
8830 shrext_cmds=".dll"
8831 need_lib_prefix=no
8832 library_names_spec='$libname${shared_ext} $libname.a'
8833 dynamic_linker='OS/2 ld.exe'
8834 shlibpath_var=LIBPATH
8835 ;;
8836
8837 osf3* | osf4* | osf5*)
8838 version_type=osf
8839 need_lib_prefix=no
8840 need_version=no
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8846 ;;
8847
8848 rdos*)
8849 dynamic_linker=no
8850 ;;
8851
8852 solaris*)
8853 version_type=linux
8854 need_lib_prefix=no
8855 need_version=no
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8861 # ldd complains unless libraries are executable
8862 postinstall_cmds='chmod +x $lib'
8863 ;;
8864
8865 sunos4*)
8866 version_type=sunos
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes
8871 if test "$with_gnu_ld" = yes; then
8872 need_lib_prefix=no
8873 fi
8874 need_version=yes
8875 ;;
8876
8877 sysv4 | sysv4.3*)
8878 version_type=linux
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 case $host_vendor in
8883 sni)
8884 shlibpath_overrides_runpath=no
8885 need_lib_prefix=no
8886 runpath_var=LD_RUN_PATH
8887 ;;
8888 siemens)
8889 need_lib_prefix=no
8890 ;;
8891 motorola)
8892 need_lib_prefix=no
8893 need_version=no
8894 shlibpath_overrides_runpath=no
8895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8896 ;;
8897 esac
8898 ;;
8899
8900 sysv4*MP*)
8901 if test -d /usr/nec ;then
8902 version_type=linux
8903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8904 soname_spec='$libname${shared_ext}.$major'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 fi
8907 ;;
8908
8909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8910 version_type=freebsd-elf
8911 need_lib_prefix=no
8912 need_version=no
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8917 hardcode_into_libs=yes
8918 if test "$with_gnu_ld" = yes; then
8919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8920 else
8921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8922 case $host_os in
8923 sco3.2v5*)
8924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8925 ;;
8926 esac
8927 fi
8928 sys_lib_dlsearch_path_spec='/usr/lib'
8929 ;;
8930
8931 tpf*)
8932 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8933 version_type=linux
8934 need_lib_prefix=no
8935 need_version=no
8936 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8940 ;;
8941
8942 uts4*)
8943 version_type=linux
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 ;;
8948
8949 *)
8950 dynamic_linker=no
8951 ;;
8952 esac
8953 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8954 echo "${ECHO_T}$dynamic_linker" >&6
8955 test "$dynamic_linker" = no && can_build_shared=no
8956
8957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8958 if test "$GCC" = yes; then
8959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8960 fi
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9049 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9050 hardcode_action=
9051 if test -n "$hardcode_libdir_flag_spec" ||
9052 test -n "$runpath_var" ||
9053 test "X$hardcode_automatic" = "Xyes" ; then
9054
9055 # We can hardcode non-existent directories.
9056 if test "$hardcode_direct" != no &&
9057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9058 # have to relink, otherwise we might link with an installed library
9059 # when we should be linking with a yet-to-be-installed one
9060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9061 test "$hardcode_minus_L" != no; then
9062 # Linking always hardcodes the temporary library directory.
9063 hardcode_action=relink
9064 else
9065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9066 hardcode_action=immediate
9067 fi
9068 else
9069 # We cannot hardcode anything, or else we can only hardcode existing
9070 # directories.
9071 hardcode_action=unsupported
9072 fi
9073 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9074 echo "${ECHO_T}$hardcode_action" >&6
9075
9076 if test "$hardcode_action" = relink ||
9077 test "$inherit_rpath" = yes; then
9078 # Fast installation is not supported
9079 enable_fast_install=no
9080 elif test "$shlibpath_overrides_runpath" = yes ||
9081 test "$enable_shared" = no; then
9082 # Fast installation is not necessary
9083 enable_fast_install=needless
9084 fi
9085
9086
9087
9088
9089
9090
9091 if test "x$enable_dlopen" != xyes; then
9092 enable_dlopen=unknown
9093 enable_dlopen_self=unknown
9094 enable_dlopen_self_static=unknown
9095 else
9096 lt_cv_dlopen=no
9097 lt_cv_dlopen_libs=
9098
9099 case $host_os in
9100 beos*)
9101 lt_cv_dlopen="load_add_on"
9102 lt_cv_dlopen_libs=
9103 lt_cv_dlopen_self=yes
9104 ;;
9105
9106 mingw* | pw32*)
9107 lt_cv_dlopen="LoadLibrary"
9108 lt_cv_dlopen_libs=
9109 ;;
9110
9111 cygwin*)
9112 lt_cv_dlopen="dlopen"
9113 lt_cv_dlopen_libs=
9114 ;;
9115
9116 darwin*)
9117 # if libdl is installed we need to link against it
9118 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9119 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123 ac_check_lib_save_LIBS=$LIBS
9124 LIBS="-ldl $LIBS"
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 /* We use char because int might match the return type of a gcc2
9137 builtin and then its argument prototype would still apply. */
9138 char dlopen ();
9139 int
9140 main ()
9141 {
9142 dlopen ();
9143 ;
9144 return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_lib_dl_dlopen=yes
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9173
9174 ac_cv_lib_dl_dlopen=no
9175 fi
9176 rm -f conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9179 fi
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9181 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9182 if test $ac_cv_lib_dl_dlopen = yes; then
9183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9184 else
9185
9186 lt_cv_dlopen="dyld"
9187 lt_cv_dlopen_libs=
9188 lt_cv_dlopen_self=yes
9189
9190 fi
9191
9192 ;;
9193
9194 *)
9195 echo "$as_me:$LINENO: checking for shl_load" >&5
9196 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9197 if test "${ac_cv_func_shl_load+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h. */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9208 #define shl_load innocuous_shl_load
9209
9210 /* System header to define __stub macros and hopefully few prototypes,
9211 which can conflict with char shl_load (); below.
9212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9213 <limits.h> exists even on freestanding compilers. */
9214
9215 #ifdef __STDC__
9216 # include <limits.h>
9217 #else
9218 # include <assert.h>
9219 #endif
9220
9221 #undef shl_load
9222
9223 /* Override any gcc2 internal prototype to avoid an error. */
9224 #ifdef __cplusplus
9225 extern "C"
9226 {
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char shl_load ();
9231 /* The GNU C library defines this for functions which it implements
9232 to always fail with ENOSYS. Some functions are actually named
9233 something starting with __ and the normal name is an alias. */
9234 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9235 choke me
9236 #else
9237 char (*f) () = shl_load;
9238 #endif
9239 #ifdef __cplusplus
9240 }
9241 #endif
9242
9243 int
9244 main ()
9245 {
9246 return f != shl_load;
9247 ;
9248 return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_func_shl_load=yes
9274 else
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278 ac_cv_func_shl_load=no
9279 fi
9280 rm -f conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 fi
9283 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9284 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9285 if test $ac_cv_func_shl_load = yes; then
9286 lt_cv_dlopen="shl_load"
9287 else
9288 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9289 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9290 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-ldld $LIBS"
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h. */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9301
9302 /* Override any gcc2 internal prototype to avoid an error. */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9308 char shl_load ();
9309 int
9310 main ()
9311 {
9312 shl_load ();
9313 ;
9314 return 0;
9315 }
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_cv_lib_dld_shl_load=yes
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344 ac_cv_lib_dld_shl_load=no
9345 fi
9346 rm -f conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS=$ac_check_lib_save_LIBS
9349 fi
9350 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9351 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9352 if test $ac_cv_lib_dld_shl_load = yes; then
9353 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9354 else
9355 echo "$as_me:$LINENO: checking for dlopen" >&5
9356 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9357 if test "${ac_cv_func_dlopen+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9368 #define dlopen innocuous_dlopen
9369
9370 /* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char dlopen (); below.
9372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 <limits.h> exists even on freestanding compilers. */
9374
9375 #ifdef __STDC__
9376 # include <limits.h>
9377 #else
9378 # include <assert.h>
9379 #endif
9380
9381 #undef dlopen
9382
9383 /* Override any gcc2 internal prototype to avoid an error. */
9384 #ifdef __cplusplus
9385 extern "C"
9386 {
9387 #endif
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9390 char dlopen ();
9391 /* The GNU C library defines this for functions which it implements
9392 to always fail with ENOSYS. Some functions are actually named
9393 something starting with __ and the normal name is an alias. */
9394 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9395 choke me
9396 #else
9397 char (*f) () = dlopen;
9398 #endif
9399 #ifdef __cplusplus
9400 }
9401 #endif
9402
9403 int
9404 main ()
9405 {
9406 return f != dlopen;
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9433 ac_cv_func_dlopen=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 ac_cv_func_dlopen=no
9439 fi
9440 rm -f conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9442 fi
9443 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9444 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9445 if test $ac_cv_func_dlopen = yes; then
9446 lt_cv_dlopen="dlopen"
9447 else
9448 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9449 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9450 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 ac_check_lib_save_LIBS=$LIBS
9454 LIBS="-ldl $LIBS"
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461
9462 /* Override any gcc2 internal prototype to avoid an error. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9468 char dlopen ();
9469 int
9470 main ()
9471 {
9472 dlopen ();
9473 ;
9474 return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_cv_lib_dl_dlopen=yes
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_cv_lib_dl_dlopen=no
9505 fi
9506 rm -f conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9509 fi
9510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9511 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9512 if test $ac_cv_lib_dl_dlopen = yes; then
9513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9514 else
9515 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9516 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9517 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-lsvld $LIBS"
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528
9529 /* Override any gcc2 internal prototype to avoid an error. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535 char dlopen ();
9536 int
9537 main ()
9538 {
9539 dlopen ();
9540 ;
9541 return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -z "$ac_c_werror_flag"
9554 || test ! -s conftest.err'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_lib_svld_dlopen=yes
9567 else
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_cv_lib_svld_dlopen=no
9572 fi
9573 rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 LIBS=$ac_check_lib_save_LIBS
9576 fi
9577 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9578 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9579 if test $ac_cv_lib_svld_dlopen = yes; then
9580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9581 else
9582 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9583 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9584 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 ac_check_lib_save_LIBS=$LIBS
9588 LIBS="-ldld $LIBS"
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595
9596 /* Override any gcc2 internal prototype to avoid an error. */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 /* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9602 char dld_link ();
9603 int
9604 main ()
9605 {
9606 dld_link ();
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dld_dld_link=yes
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 ac_cv_lib_dld_dld_link=no
9639 fi
9640 rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9643 fi
9644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9646 if test $ac_cv_lib_dld_dld_link = yes; then
9647 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9648 fi
9649
9650
9651 fi
9652
9653
9654 fi
9655
9656
9657 fi
9658
9659
9660 fi
9661
9662
9663 fi
9664
9665 ;;
9666 esac
9667
9668 if test "x$lt_cv_dlopen" != xno; then
9669 enable_dlopen=yes
9670 else
9671 enable_dlopen=no
9672 fi
9673
9674 case $lt_cv_dlopen in
9675 dlopen)
9676 save_CPPFLAGS="$CPPFLAGS"
9677 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9678
9679 save_LDFLAGS="$LDFLAGS"
9680 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9681
9682 save_LIBS="$LIBS"
9683 LIBS="$lt_cv_dlopen_libs $LIBS"
9684
9685 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9687 if test "${lt_cv_dlopen_self+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 if test "$cross_compiling" = yes; then :
9691 lt_cv_dlopen_self=cross
9692 else
9693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9694 lt_status=$lt_dlunknown
9695 cat > conftest.$ac_ext <<_LT_EOF
9696 #line 9696 "configure"
9697 #include "confdefs.h"
9698
9699 #if HAVE_DLFCN_H
9700 #include <dlfcn.h>
9701 #endif
9702
9703 #include <stdio.h>
9704
9705 #ifdef RTLD_GLOBAL
9706 # define LT_DLGLOBAL RTLD_GLOBAL
9707 #else
9708 # ifdef DL_GLOBAL
9709 # define LT_DLGLOBAL DL_GLOBAL
9710 # else
9711 # define LT_DLGLOBAL 0
9712 # endif
9713 #endif
9714
9715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9716 find out it does not work in some platform. */
9717 #ifndef LT_DLLAZY_OR_NOW
9718 # ifdef RTLD_LAZY
9719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9720 # else
9721 # ifdef DL_LAZY
9722 # define LT_DLLAZY_OR_NOW DL_LAZY
9723 # else
9724 # ifdef RTLD_NOW
9725 # define LT_DLLAZY_OR_NOW RTLD_NOW
9726 # else
9727 # ifdef DL_NOW
9728 # define LT_DLLAZY_OR_NOW DL_NOW
9729 # else
9730 # define LT_DLLAZY_OR_NOW 0
9731 # endif
9732 # endif
9733 # endif
9734 # endif
9735 #endif
9736
9737 #ifdef __cplusplus
9738 extern "C" void exit (int);
9739 #endif
9740
9741 void fnord() { int i=42;}
9742 int main ()
9743 {
9744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9745 int status = $lt_dlunknown;
9746
9747 if (self)
9748 {
9749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9751 /* dlclose (self); */
9752 }
9753 else
9754 puts (dlerror ());
9755
9756 exit (status);
9757 }
9758 _LT_EOF
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9764 (./conftest; exit; ) >&5 2>/dev/null
9765 lt_status=$?
9766 case x$lt_status in
9767 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9768 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9769 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9770 esac
9771 else :
9772 # compilation failed
9773 lt_cv_dlopen_self=no
9774 fi
9775 fi
9776 rm -fr conftest*
9777
9778
9779 fi
9780 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9781 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9782
9783 if test "x$lt_cv_dlopen_self" = xyes; then
9784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9785 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9786 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9787 if test "${lt_cv_dlopen_self_static+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790 if test "$cross_compiling" = yes; then :
9791 lt_cv_dlopen_self_static=cross
9792 else
9793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9794 lt_status=$lt_dlunknown
9795 cat > conftest.$ac_ext <<_LT_EOF
9796 #line 9796 "configure"
9797 #include "confdefs.h"
9798
9799 #if HAVE_DLFCN_H
9800 #include <dlfcn.h>
9801 #endif
9802
9803 #include <stdio.h>
9804
9805 #ifdef RTLD_GLOBAL
9806 # define LT_DLGLOBAL RTLD_GLOBAL
9807 #else
9808 # ifdef DL_GLOBAL
9809 # define LT_DLGLOBAL DL_GLOBAL
9810 # else
9811 # define LT_DLGLOBAL 0
9812 # endif
9813 #endif
9814
9815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9816 find out it does not work in some platform. */
9817 #ifndef LT_DLLAZY_OR_NOW
9818 # ifdef RTLD_LAZY
9819 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9820 # else
9821 # ifdef DL_LAZY
9822 # define LT_DLLAZY_OR_NOW DL_LAZY
9823 # else
9824 # ifdef RTLD_NOW
9825 # define LT_DLLAZY_OR_NOW RTLD_NOW
9826 # else
9827 # ifdef DL_NOW
9828 # define LT_DLLAZY_OR_NOW DL_NOW
9829 # else
9830 # define LT_DLLAZY_OR_NOW 0
9831 # endif
9832 # endif
9833 # endif
9834 # endif
9835 #endif
9836
9837 #ifdef __cplusplus
9838 extern "C" void exit (int);
9839 #endif
9840
9841 void fnord() { int i=42;}
9842 int main ()
9843 {
9844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9845 int status = $lt_dlunknown;
9846
9847 if (self)
9848 {
9849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9851 /* dlclose (self); */
9852 }
9853 else
9854 puts (dlerror ());
9855
9856 exit (status);
9857 }
9858 _LT_EOF
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9864 (./conftest; exit; ) >&5 2>/dev/null
9865 lt_status=$?
9866 case x$lt_status in
9867 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9868 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9869 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9870 esac
9871 else :
9872 # compilation failed
9873 lt_cv_dlopen_self_static=no
9874 fi
9875 fi
9876 rm -fr conftest*
9877
9878
9879 fi
9880 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9881 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9882 fi
9883
9884 CPPFLAGS="$save_CPPFLAGS"
9885 LDFLAGS="$save_LDFLAGS"
9886 LIBS="$save_LIBS"
9887 ;;
9888 esac
9889
9890 case $lt_cv_dlopen_self in
9891 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9892 *) enable_dlopen_self=unknown ;;
9893 esac
9894
9895 case $lt_cv_dlopen_self_static in
9896 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9897 *) enable_dlopen_self_static=unknown ;;
9898 esac
9899 fi
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917 striplib=
9918 old_striplib=
9919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9921 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9924 echo "$as_me:$LINENO: result: yes" >&5
9925 echo "${ECHO_T}yes" >&6
9926 else
9927 # FIXME - insert some real tests, host_os isn't really good enough
9928 case $host_os in
9929 darwin*)
9930 if test -n "$STRIP" ; then
9931 striplib="$STRIP -x"
9932 old_striplib="$STRIP -S"
9933 echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9938 fi
9939 ;;
9940 *)
9941 echo "$as_me:$LINENO: result: no" >&5
9942 echo "${ECHO_T}no" >&6
9943 ;;
9944 esac
9945 fi
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958 # Report which library types will actually be built
9959 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9961 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9962 echo "${ECHO_T}$can_build_shared" >&6
9963
9964 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9966 test "$can_build_shared" = "no" && enable_shared=no
9967
9968 # On AIX, shared libraries and static libraries use the same namespace, and
9969 # are all built from PIC.
9970 case $host_os in
9971 aix3*)
9972 test "$enable_shared" = yes && enable_static=no
9973 if test -n "$RANLIB"; then
9974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9975 postinstall_cmds='$RANLIB $lib'
9976 fi
9977 ;;
9978
9979 aix[4-9]*)
9980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9981 test "$enable_shared" = yes && enable_static=no
9982 fi
9983 ;;
9984 esac
9985 echo "$as_me:$LINENO: result: $enable_shared" >&5
9986 echo "${ECHO_T}$enable_shared" >&6
9987
9988 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9989 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9990 # Make sure either enable_shared or enable_static is yes.
9991 test "$enable_shared" = yes || enable_static=yes
9992 echo "$as_me:$LINENO: result: $enable_static" >&5
9993 echo "${ECHO_T}$enable_static" >&6
9994
9995
9996
9997
9998 fi
9999 ac_ext=c
10000 ac_cpp='$CPP $CPPFLAGS'
10001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10004
10005 CC="$lt_save_CC"
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019 ac_config_commands="$ac_config_commands libtool"
10020
10021
10022
10023
10024 # Only expand once:
10025
10026
10027
10028
10029
10030 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10031 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10032 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10033 if test "${enable_maintainer_mode+set}" = set; then
10034 enableval="$enable_maintainer_mode"
10035 USE_MAINTAINER_MODE=$enableval
10036 else
10037 USE_MAINTAINER_MODE=no
10038 fi;
10039 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10040 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10041
10042
10043 if test $USE_MAINTAINER_MODE = yes; then
10044 MAINTAINER_MODE_TRUE=
10045 MAINTAINER_MODE_FALSE='#'
10046 else
10047 MAINTAINER_MODE_TRUE='#'
10048 MAINTAINER_MODE_FALSE=
10049 fi
10050
10051 MAINT=$MAINTAINER_MODE_TRUE
10052
10053
10054
10055 # We need gfortran to compile parts of the library
10056 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10057 #AC_PROG_FC(gfortran)
10058 FC="$GFORTRAN"
10059 ac_ext=${FC_SRCEXT-f}
10060 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10061 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10062 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10063 if test -n "$ac_tool_prefix"; then
10064 for ac_prog in gfortran
10065 do
10066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10068 echo "$as_me:$LINENO: checking for $ac_word" >&5
10069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10070 if test "${ac_cv_prog_FC+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 if test -n "$FC"; then
10074 ac_cv_prog_FC="$FC" # Let the user override the test.
10075 else
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10078 do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10086 fi
10087 done
10088 done
10089
10090 fi
10091 fi
10092 FC=$ac_cv_prog_FC
10093 if test -n "$FC"; then
10094 echo "$as_me:$LINENO: result: $FC" >&5
10095 echo "${ECHO_T}$FC" >&6
10096 else
10097 echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10099 fi
10100
10101 test -n "$FC" && break
10102 done
10103 fi
10104 if test -z "$FC"; then
10105 ac_ct_FC=$FC
10106 for ac_prog in gfortran
10107 do
10108 # Extract the first word of "$ac_prog", so it can be a program name with args.
10109 set dummy $ac_prog; ac_word=$2
10110 echo "$as_me:$LINENO: checking for $ac_word" >&5
10111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10112 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 if test -n "$ac_ct_FC"; then
10116 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10117 else
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10120 do
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_prog_ac_ct_FC="$ac_prog"
10126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10128 fi
10129 done
10130 done
10131
10132 fi
10133 fi
10134 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10135 if test -n "$ac_ct_FC"; then
10136 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10137 echo "${ECHO_T}$ac_ct_FC" >&6
10138 else
10139 echo "$as_me:$LINENO: result: no" >&5
10140 echo "${ECHO_T}no" >&6
10141 fi
10142
10143 test -n "$ac_ct_FC" && break
10144 done
10145
10146 FC=$ac_ct_FC
10147 fi
10148
10149
10150 # Provide some information about the compiler.
10151 echo "$as_me:10151:" \
10152 "checking for Fortran compiler version" >&5
10153 ac_compiler=`set X $ac_compile; echo $2`
10154 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10155 (eval $ac_compiler --version </dev/null >&5) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }
10159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10160 (eval $ac_compiler -v </dev/null >&5) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }
10164 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10165 (eval $ac_compiler -V </dev/null >&5) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }
10169 rm -f a.out
10170
10171 # If we don't use `.F' as extension, the preprocessor is not run on the
10172 # input file. (Note that this only needs to work for GNU compilers.)
10173 ac_save_ext=$ac_ext
10174 ac_ext=F
10175 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10176 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10177 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 cat >conftest.$ac_ext <<_ACEOF
10181 program main
10182 #ifndef __GNUC__
10183 choke me
10184 #endif
10185
10186 end
10187 _ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_fc_werror_flag"
10198 || test ! -s conftest.err'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_compiler_gnu=yes
10211 else
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10214
10215 ac_compiler_gnu=no
10216 fi
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10219
10220 fi
10221 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10222 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10223 ac_ext=$ac_save_ext
10224 ac_test_FFLAGS=${FCFLAGS+set}
10225 ac_save_FFLAGS=$FCFLAGS
10226 FCFLAGS=
10227 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10228 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10229 if test "${ac_cv_prog_fc_g+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 FCFLAGS=-g
10233 cat >conftest.$ac_ext <<_ACEOF
10234 program main
10235
10236 end
10237 _ACEOF
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10240 (eval $ac_compile) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_fc_werror_flag"
10248 || test ! -s conftest.err'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest.$ac_objext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_prog_fc_g=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_cv_prog_fc_g=no
10266 fi
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10268
10269 fi
10270 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10271 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10272 if test "$ac_test_FFLAGS" = set; then
10273 FCFLAGS=$ac_save_FFLAGS
10274 elif test $ac_cv_prog_fc_g = yes; then
10275 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10276 FCFLAGS="-g -O2"
10277 else
10278 FCFLAGS="-g"
10279 fi
10280 else
10281 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10282 FCFLAGS="-O2"
10283 else
10284 FCFLAGS=
10285 fi
10286 fi
10287
10288 ac_ext=c
10289 ac_cpp='$CPP $CPPFLAGS'
10290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10293
10294
10295 ac_ext=${FC_SRCEXT-f}
10296 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10297 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10299 if test -n "$ac_tool_prefix"; then
10300 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10301 do
10302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10304 echo "$as_me:$LINENO: checking for $ac_word" >&5
10305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306 if test "${ac_cv_prog_FC+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 if test -n "$FC"; then
10310 ac_cv_prog_FC="$FC" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323 done
10324 done
10325
10326 fi
10327 fi
10328 FC=$ac_cv_prog_FC
10329 if test -n "$FC"; then
10330 echo "$as_me:$LINENO: result: $FC" >&5
10331 echo "${ECHO_T}$FC" >&6
10332 else
10333 echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10335 fi
10336
10337 test -n "$FC" && break
10338 done
10339 fi
10340 if test -z "$FC"; then
10341 ac_ct_FC=$FC
10342 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10343 do
10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 echo "$as_me:$LINENO: checking for $ac_word" >&5
10347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 if test -n "$ac_ct_FC"; then
10352 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10356 do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_ac_ct_FC="$ac_prog"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365 done
10366 done
10367
10368 fi
10369 fi
10370 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10371 if test -n "$ac_ct_FC"; then
10372 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10373 echo "${ECHO_T}$ac_ct_FC" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376 echo "${ECHO_T}no" >&6
10377 fi
10378
10379 test -n "$ac_ct_FC" && break
10380 done
10381
10382 FC=$ac_ct_FC
10383 fi
10384
10385
10386 # Provide some information about the compiler.
10387 echo "$as_me:10387:" \
10388 "checking for Fortran compiler version" >&5
10389 ac_compiler=`set X $ac_compile; echo $2`
10390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10391 (eval $ac_compiler --version </dev/null >&5) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }
10395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10396 (eval $ac_compiler -v </dev/null >&5) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }
10400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10401 (eval $ac_compiler -V </dev/null >&5) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }
10405 rm -f a.out
10406
10407 # If we don't use `.F' as extension, the preprocessor is not run on the
10408 # input file. (Note that this only needs to work for GNU compilers.)
10409 ac_save_ext=$ac_ext
10410 ac_ext=F
10411 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10412 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10413 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416 cat >conftest.$ac_ext <<_ACEOF
10417 program main
10418 #ifndef __GNUC__
10419 choke me
10420 #endif
10421
10422 end
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_fc_werror_flag"
10434 || test ! -s conftest.err'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest.$ac_objext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_compiler_gnu=yes
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10450
10451 ac_compiler_gnu=no
10452 fi
10453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10455
10456 fi
10457 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10458 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10459 ac_ext=$ac_save_ext
10460 ac_test_FFLAGS=${FCFLAGS+set}
10461 ac_save_FFLAGS=$FCFLAGS
10462 FCFLAGS=
10463 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10464 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10465 if test "${ac_cv_prog_fc_g+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468 FCFLAGS=-g
10469 cat >conftest.$ac_ext <<_ACEOF
10470 program main
10471
10472 end
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_fc_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_prog_fc_g=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 ac_cv_prog_fc_g=no
10502 fi
10503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10504
10505 fi
10506 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10507 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10508 if test "$ac_test_FFLAGS" = set; then
10509 FCFLAGS=$ac_save_FFLAGS
10510 elif test $ac_cv_prog_fc_g = yes; then
10511 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10512 FCFLAGS="-g -O2"
10513 else
10514 FCFLAGS="-g"
10515 fi
10516 else
10517 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10518 FCFLAGS="-O2"
10519 else
10520 FCFLAGS=
10521 fi
10522 fi
10523
10524 ac_ext=c
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529
10530 if test -z "$FC" || test "X$FC" = "Xno"; then
10531 _lt_disable_FC=yes
10532 fi
10533
10534
10535
10536 ac_ext=${FC_SRCEXT-f}
10537 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10538 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10540
10541
10542 archive_cmds_need_lc_FC=no
10543 allow_undefined_flag_FC=
10544 always_export_symbols_FC=no
10545 archive_expsym_cmds_FC=
10546 export_dynamic_flag_spec_FC=
10547 hardcode_direct_FC=no
10548 hardcode_direct_absolute_FC=no
10549 hardcode_libdir_flag_spec_FC=
10550 hardcode_libdir_flag_spec_ld_FC=
10551 hardcode_libdir_separator_FC=
10552 hardcode_minus_L_FC=no
10553 hardcode_automatic_FC=no
10554 inherit_rpath_FC=no
10555 module_cmds_FC=
10556 module_expsym_cmds_FC=
10557 link_all_deplibs_FC=unknown
10558 old_archive_cmds_FC=$old_archive_cmds
10559 no_undefined_flag_FC=
10560 whole_archive_flag_spec_FC=
10561 enable_shared_with_static_runtimes_FC=no
10562
10563 # Source file extension for fc test sources.
10564 ac_ext=${ac_fc_srcext-f}
10565
10566 # Object file extension for compiled fc test sources.
10567 objext=o
10568 objext_FC=$objext
10569
10570 # No sense in running all these tests if we already determined that
10571 # the FC compiler isn't working. Some variables (like enable_shared)
10572 # are currently assumed to apply to all compilers on this platform,
10573 # and will be corrupted by setting them based on a non-working compiler.
10574 if test "$_lt_disable_FC" != yes; then
10575 # Code to be used in simple compile tests
10576 lt_simple_compile_test_code="\
10577 subroutine t
10578 return
10579 end
10580 "
10581
10582 # Code to be used in simple link tests
10583 lt_simple_link_test_code="\
10584 program t
10585 end
10586 "
10587
10588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10589
10590
10591
10592
10593
10594
10595 # If no C compiler was specified, use CC.
10596 LTCC=${LTCC-"$CC"}
10597
10598 # If no C compiler flags were specified, use CFLAGS.
10599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10600
10601 # Allow CC to be a program name with arguments.
10602 compiler=$CC
10603
10604
10605 # save warnings/boilerplate of simple test code
10606 ac_outfile=conftest.$ac_objext
10607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10609 _lt_compiler_boilerplate=`cat conftest.err`
10610 $RM conftest*
10611
10612 ac_outfile=conftest.$ac_objext
10613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10615 _lt_linker_boilerplate=`cat conftest.err`
10616 $RM conftest*
10617
10618
10619 # Allow CC to be a program name with arguments.
10620 lt_save_CC="$CC"
10621 CC=${FC-"f95"}
10622 compiler=$CC
10623 compiler_FC=$CC
10624 for cc_temp in $compiler""; do
10625 case $cc_temp in
10626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10628 \-*) ;;
10629 *) break;;
10630 esac
10631 done
10632 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10633
10634
10635 if test -n "$compiler"; then
10636 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10637 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10638 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10639 echo "${ECHO_T}$can_build_shared" >&6
10640
10641 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10642 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10643 test "$can_build_shared" = "no" && enable_shared=no
10644
10645 # On AIX, shared libraries and static libraries use the same namespace, and
10646 # are all built from PIC.
10647 case $host_os in
10648 aix3*)
10649 test "$enable_shared" = yes && enable_static=no
10650 if test -n "$RANLIB"; then
10651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10652 postinstall_cmds='$RANLIB $lib'
10653 fi
10654 ;;
10655 aix[4-9]*)
10656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10657 test "$enable_shared" = yes && enable_static=no
10658 fi
10659 ;;
10660 esac
10661 echo "$as_me:$LINENO: result: $enable_shared" >&5
10662 echo "${ECHO_T}$enable_shared" >&6
10663
10664 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10665 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10666 # Make sure either enable_shared or enable_static is yes.
10667 test "$enable_shared" = yes || enable_static=yes
10668 echo "$as_me:$LINENO: result: $enable_static" >&5
10669 echo "${ECHO_T}$enable_static" >&6
10670
10671 GCC_FC="$ac_cv_fc_compiler_gnu"
10672 LD_FC="$LD"
10673
10674 ## CAVEAT EMPTOR:
10675 ## There is no encapsulation within the following macros, do not change
10676 ## the running order or otherwise move them around unless you know exactly
10677 ## what you are doing...
10678 # Dependencies to place before and after the object being linked:
10679 predep_objects_FC=
10680 postdep_objects_FC=
10681 predeps_FC=
10682 postdeps_FC=
10683 compiler_lib_search_path_FC=
10684
10685 cat > conftest.$ac_ext <<_LT_EOF
10686 subroutine foo
10687 implicit none
10688 integer a
10689 a=0
10690 return
10691 end
10692 _LT_EOF
10693
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; then
10699 # Parse the compiler output and extract the necessary
10700 # objects, libraries and library flags.
10701
10702 # Sentinel used to keep track of whether or not we are before
10703 # the conftest object file.
10704 pre_test_object_deps_done=no
10705
10706 # The `*' in the case matches for architectures that use `case' in
10707 # $output_verbose_cmd can trigger glob expansion during the loop
10708 # eval without this substitution.
10709 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10710
10711 for p in `eval $output_verbose_link_cmd`; do
10712 case $p in
10713
10714 -L* | -R* | -l*)
10715 # Some compilers place space between "-{L,R}" and the path.
10716 # Remove the space.
10717 if test $p = "-L" ||
10718 test $p = "-R"; then
10719 prev=$p
10720 continue
10721 else
10722 prev=
10723 fi
10724
10725 if test "$pre_test_object_deps_done" = no; then
10726 case $p in
10727 -L* | -R*)
10728 # Internal compiler library paths should come after those
10729 # provided the user. The postdeps already come after the
10730 # user supplied libs so there is no need to process them.
10731 if test -z "$compiler_lib_search_path_FC"; then
10732 compiler_lib_search_path_FC="${prev}${p}"
10733 else
10734 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10735 fi
10736 ;;
10737 # The "-l" case would never come before the object being
10738 # linked, so don't bother handling this case.
10739 esac
10740 else
10741 if test -z "$postdeps_FC"; then
10742 postdeps_FC="${prev}${p}"
10743 else
10744 postdeps_FC="${postdeps_FC} ${prev}${p}"
10745 fi
10746 fi
10747 ;;
10748
10749 *.$objext)
10750 # This assumes that the test object file only shows up
10751 # once in the compiler output.
10752 if test "$p" = "conftest.$objext"; then
10753 pre_test_object_deps_done=yes
10754 continue
10755 fi
10756
10757 if test "$pre_test_object_deps_done" = no; then
10758 if test -z "$predep_objects_FC"; then
10759 predep_objects_FC="$p"
10760 else
10761 predep_objects_FC="$predep_objects_FC $p"
10762 fi
10763 else
10764 if test -z "$postdep_objects_FC"; then
10765 postdep_objects_FC="$p"
10766 else
10767 postdep_objects_FC="$postdep_objects_FC $p"
10768 fi
10769 fi
10770 ;;
10771
10772 *) ;; # Ignore the rest.
10773
10774 esac
10775 done
10776
10777 # Clean up.
10778 rm -f a.out a.exe
10779 else
10780 echo "libtool.m4: error: problem compiling FC test program"
10781 fi
10782
10783 $RM -f confest.$objext
10784
10785 # PORTME: override above test on systems where it is broken
10786
10787
10788 case " $postdeps_FC " in
10789 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10790 esac
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817 lt_prog_compiler_wl_FC=
10818 lt_prog_compiler_pic_FC=
10819 lt_prog_compiler_static_FC=
10820
10821 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10822 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10823
10824 if test "$GCC" = yes; then
10825 lt_prog_compiler_wl_FC='-Wl,'
10826 lt_prog_compiler_static_FC='-static'
10827
10828 case $host_os in
10829 aix*)
10830 # All AIX code is PIC.
10831 if test "$host_cpu" = ia64; then
10832 # AIX 5 now supports IA64 processor
10833 lt_prog_compiler_static_FC='-Bstatic'
10834 fi
10835 ;;
10836
10837 amigaos*)
10838 if test "$host_cpu" = m68k; then
10839 # FIXME: we need at least 68020 code to build shared libraries, but
10840 # adding the `-m68020' flag to GCC prevents building anything better,
10841 # like `-m68040'.
10842 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10843 fi
10844 ;;
10845
10846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10847 # PIC is the default for these OSes.
10848 ;;
10849
10850 mingw* | cygwin* | pw32* | os2*)
10851 # This hack is so that the source file can tell whether it is being
10852 # built for inclusion in a dll (and should export symbols for example).
10853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10854 # (--disable-auto-import) libraries
10855 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10856 ;;
10857
10858 darwin* | rhapsody*)
10859 # PIC is the default on this platform
10860 # Common symbols not allowed in MH_DYLIB files
10861 lt_prog_compiler_pic_FC='-fno-common'
10862 ;;
10863
10864 hpux*)
10865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10866 # not for PA HP-UX.
10867 case $host_cpu in
10868 hppa*64*|ia64*)
10869 # +Z the default
10870 ;;
10871 *)
10872 lt_prog_compiler_pic_FC='-fPIC'
10873 ;;
10874 esac
10875 ;;
10876
10877 interix[3-9]*)
10878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10879 # Instead, we relocate shared libraries at runtime.
10880 ;;
10881
10882 msdosdjgpp*)
10883 # Just because we use GCC doesn't mean we suddenly get shared libraries
10884 # on systems that don't support them.
10885 lt_prog_compiler_can_build_shared_FC=no
10886 enable_shared=no
10887 ;;
10888
10889 *nto* | *qnx*)
10890 # QNX uses GNU C++, but need to define -shared option too, otherwise
10891 # it will coredump.
10892 lt_prog_compiler_pic_FC='-fPIC -shared'
10893 ;;
10894
10895 sysv4*MP*)
10896 if test -d /usr/nec; then
10897 lt_prog_compiler_pic_FC=-Kconform_pic
10898 fi
10899 ;;
10900
10901 *)
10902 lt_prog_compiler_pic_FC='-fPIC'
10903 ;;
10904 esac
10905 else
10906 # PORTME Check for flag to pass linker flags through the system compiler.
10907 case $host_os in
10908 aix*)
10909 lt_prog_compiler_wl_FC='-Wl,'
10910 if test "$host_cpu" = ia64; then
10911 # AIX 5 now supports IA64 processor
10912 lt_prog_compiler_static_FC='-Bstatic'
10913 else
10914 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10915 fi
10916 ;;
10917 darwin*)
10918 # PIC is the default on this platform
10919 # Common symbols not allowed in MH_DYLIB files
10920 case $cc_basename in
10921 xlc*)
10922 lt_prog_compiler_pic_FC='-qnocommon'
10923 lt_prog_compiler_wl_FC='-Wl,'
10924 ;;
10925 esac
10926 ;;
10927
10928 mingw* | cygwin* | pw32* | os2*)
10929 # This hack is so that the source file can tell whether it is being
10930 # built for inclusion in a dll (and should export symbols for example).
10931 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10932 ;;
10933
10934 hpux9* | hpux10* | hpux11*)
10935 lt_prog_compiler_wl_FC='-Wl,'
10936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10937 # not for PA HP-UX.
10938 case $host_cpu in
10939 hppa*64*|ia64*)
10940 # +Z the default
10941 ;;
10942 *)
10943 lt_prog_compiler_pic_FC='+Z'
10944 ;;
10945 esac
10946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10947 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10948 ;;
10949
10950 irix5* | irix6* | nonstopux*)
10951 lt_prog_compiler_wl_FC='-Wl,'
10952 # PIC (with -KPIC) is the default.
10953 lt_prog_compiler_static_FC='-non_shared'
10954 ;;
10955
10956 linux* | k*bsd*-gnu)
10957 case $cc_basename in
10958 icc* | ecc*)
10959 lt_prog_compiler_wl_FC='-Wl,'
10960 lt_prog_compiler_pic_FC='-KPIC'
10961 lt_prog_compiler_static_FC='-static'
10962 ;;
10963 pgcc* | pgf77* | pgf90* | pgf95*)
10964 # Portland Group compilers (*not* the Pentium gcc compiler,
10965 # which looks to be a dead project)
10966 lt_prog_compiler_wl_FC='-Wl,'
10967 lt_prog_compiler_pic_FC='-fpic'
10968 lt_prog_compiler_static_FC='-Bstatic'
10969 ;;
10970 ccc*)
10971 lt_prog_compiler_wl_FC='-Wl,'
10972 # All Alpha code is PIC.
10973 lt_prog_compiler_static_FC='-non_shared'
10974 ;;
10975 *)
10976 case `$CC -V 2>&1 | sed 5q` in
10977 *Sun\ C*)
10978 # Sun C 5.9
10979 lt_prog_compiler_pic_FC='-KPIC'
10980 lt_prog_compiler_static_FC='-Bstatic'
10981 lt_prog_compiler_wl_FC='-Wl,'
10982 ;;
10983 *Sun\ F*)
10984 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10985 lt_prog_compiler_pic_FC='-KPIC'
10986 lt_prog_compiler_static_FC='-Bstatic'
10987 lt_prog_compiler_wl_FC=''
10988 ;;
10989 esac
10990 ;;
10991 esac
10992 ;;
10993
10994 newsos6)
10995 lt_prog_compiler_pic_FC='-KPIC'
10996 lt_prog_compiler_static_FC='-Bstatic'
10997 ;;
10998
10999 *nto* | *qnx*)
11000 # QNX uses GNU C++, but need to define -shared option too, otherwise
11001 # it will coredump.
11002 lt_prog_compiler_pic_FC='-fPIC -shared'
11003 ;;
11004
11005 osf3* | osf4* | osf5*)
11006 lt_prog_compiler_wl_FC='-Wl,'
11007 # All OSF/1 code is PIC.
11008 lt_prog_compiler_static_FC='-non_shared'
11009 ;;
11010
11011 rdos*)
11012 lt_prog_compiler_static_FC='-non_shared'
11013 ;;
11014
11015 solaris*)
11016 lt_prog_compiler_pic_FC='-KPIC'
11017 lt_prog_compiler_static_FC='-Bstatic'
11018 case $cc_basename in
11019 f77* | f90* | f95*)
11020 lt_prog_compiler_wl_FC='-Qoption ld ';;
11021 *)
11022 lt_prog_compiler_wl_FC='-Wl,';;
11023 esac
11024 ;;
11025
11026 sunos4*)
11027 lt_prog_compiler_wl_FC='-Qoption ld '
11028 lt_prog_compiler_pic_FC='-PIC'
11029 lt_prog_compiler_static_FC='-Bstatic'
11030 ;;
11031
11032 sysv4 | sysv4.2uw2* | sysv4.3*)
11033 lt_prog_compiler_wl_FC='-Wl,'
11034 lt_prog_compiler_pic_FC='-KPIC'
11035 lt_prog_compiler_static_FC='-Bstatic'
11036 ;;
11037
11038 sysv4*MP*)
11039 if test -d /usr/nec ;then
11040 lt_prog_compiler_pic_FC='-Kconform_pic'
11041 lt_prog_compiler_static_FC='-Bstatic'
11042 fi
11043 ;;
11044
11045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11046 lt_prog_compiler_wl_FC='-Wl,'
11047 lt_prog_compiler_pic_FC='-KPIC'
11048 lt_prog_compiler_static_FC='-Bstatic'
11049 ;;
11050
11051 unicos*)
11052 lt_prog_compiler_wl_FC='-Wl,'
11053 lt_prog_compiler_can_build_shared_FC=no
11054 ;;
11055
11056 uts4*)
11057 lt_prog_compiler_pic_FC='-pic'
11058 lt_prog_compiler_static_FC='-Bstatic'
11059 ;;
11060
11061 *)
11062 lt_prog_compiler_can_build_shared_FC=no
11063 ;;
11064 esac
11065 fi
11066
11067 case $host_os in
11068 # For platforms which do not support PIC, -DPIC is meaningless:
11069 *djgpp*)
11070 lt_prog_compiler_pic_FC=
11071 ;;
11072 *)
11073 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11074 ;;
11075 esac
11076 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11077 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11078
11079
11080
11081 #
11082 # Check to make sure the PIC flag actually works.
11083 #
11084 if test -n "$lt_prog_compiler_pic_FC"; then
11085 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11086 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11087 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090 lt_prog_compiler_pic_works_FC=no
11091 ac_outfile=conftest.$ac_objext
11092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11093 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11094 # Insert the option either (1) after the last *FLAGS variable, or
11095 # (2) before a word containing "conftest.", or (3) at the end.
11096 # Note that $ac_compile itself does not contain backslashes and begins
11097 # with a dollar sign (not a hyphen), so the echo should work correctly.
11098 # The option is referenced via a variable to avoid confusing sed.
11099 lt_compile=`echo "$ac_compile" | $SED \
11100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102 -e 's:$: $lt_compiler_flag:'`
11103 (eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
11104 (eval "$lt_compile" 2>conftest.err)
11105 ac_status=$?
11106 cat conftest.err >&5
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 if (exit $ac_status) && test -s "$ac_outfile"; then
11109 # The compiler can only warn and ignore the option if not recognized
11110 # So say no if there are warnings other than the usual output.
11111 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11114 lt_prog_compiler_pic_works_FC=yes
11115 fi
11116 fi
11117 $RM conftest*
11118
11119 fi
11120 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11121 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11122
11123 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11124 case $lt_prog_compiler_pic_FC in
11125 "" | " "*) ;;
11126 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11127 esac
11128 else
11129 lt_prog_compiler_pic_FC=
11130 lt_prog_compiler_can_build_shared_FC=no
11131 fi
11132
11133 fi
11134
11135
11136
11137 #
11138 # Check to make sure the static flag actually works.
11139 #
11140 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11141 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11142 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11143 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 lt_prog_compiler_static_works_FC=no
11147 save_LDFLAGS="$LDFLAGS"
11148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11151 # The linker can only warn and ignore the option if not recognized
11152 # So say no if there are warnings
11153 if test -s conftest.err; then
11154 # Append any errors to the config.log.
11155 cat conftest.err 1>&5
11156 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11158 if diff conftest.exp conftest.er2 >/dev/null; then
11159 lt_prog_compiler_static_works_FC=yes
11160 fi
11161 else
11162 lt_prog_compiler_static_works_FC=yes
11163 fi
11164 fi
11165 $RM conftest*
11166 LDFLAGS="$save_LDFLAGS"
11167
11168 fi
11169 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11170 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11171
11172 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11173 :
11174 else
11175 lt_prog_compiler_static_FC=
11176 fi
11177
11178
11179
11180
11181 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11182 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11183 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 lt_cv_prog_compiler_c_o_FC=no
11187 $RM -r conftest 2>/dev/null
11188 mkdir conftest
11189 cd conftest
11190 mkdir out
11191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11192
11193 lt_compiler_flag="-o out/conftest2.$ac_objext"
11194 # Insert the option either (1) after the last *FLAGS variable, or
11195 # (2) before a word containing "conftest.", or (3) at the end.
11196 # Note that $ac_compile itself does not contain backslashes and begins
11197 # with a dollar sign (not a hyphen), so the echo should work correctly.
11198 lt_compile=`echo "$ac_compile" | $SED \
11199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11201 -e 's:$: $lt_compiler_flag:'`
11202 (eval echo "\"\$as_me:11202: $lt_compile\"" >&5)
11203 (eval "$lt_compile" 2>out/conftest.err)
11204 ac_status=$?
11205 cat out/conftest.err >&5
11206 echo "$as_me:11206: \$? = $ac_status" >&5
11207 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11208 then
11209 # The compiler can only warn and ignore the option if not recognized
11210 # So say no if there are warnings
11211 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11212 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11213 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11214 lt_cv_prog_compiler_c_o_FC=yes
11215 fi
11216 fi
11217 chmod u+w . 2>&5
11218 $RM conftest*
11219 # SGI C++ compiler will create directory out/ii_files/ for
11220 # template instantiation
11221 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11222 $RM out/* && rmdir out
11223 cd ..
11224 $RM -r conftest
11225 $RM conftest*
11226
11227 fi
11228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11229 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11230
11231
11232
11233 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11234 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11235 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238 lt_cv_prog_compiler_c_o_FC=no
11239 $RM -r conftest 2>/dev/null
11240 mkdir conftest
11241 cd conftest
11242 mkdir out
11243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11244
11245 lt_compiler_flag="-o out/conftest2.$ac_objext"
11246 # Insert the option either (1) after the last *FLAGS variable, or
11247 # (2) before a word containing "conftest.", or (3) at the end.
11248 # Note that $ac_compile itself does not contain backslashes and begins
11249 # with a dollar sign (not a hyphen), so the echo should work correctly.
11250 lt_compile=`echo "$ac_compile" | $SED \
11251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11253 -e 's:$: $lt_compiler_flag:'`
11254 (eval echo "\"\$as_me:11254: $lt_compile\"" >&5)
11255 (eval "$lt_compile" 2>out/conftest.err)
11256 ac_status=$?
11257 cat out/conftest.err >&5
11258 echo "$as_me:11258: \$? = $ac_status" >&5
11259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11260 then
11261 # The compiler can only warn and ignore the option if not recognized
11262 # So say no if there are warnings
11263 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11266 lt_cv_prog_compiler_c_o_FC=yes
11267 fi
11268 fi
11269 chmod u+w . 2>&5
11270 $RM conftest*
11271 # SGI C++ compiler will create directory out/ii_files/ for
11272 # template instantiation
11273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11274 $RM out/* && rmdir out
11275 cd ..
11276 $RM -r conftest
11277 $RM conftest*
11278
11279 fi
11280 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11281 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11282
11283
11284
11285
11286 hard_links="nottested"
11287 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11288 # do not overwrite the value of need_locks provided by the user
11289 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11290 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11291 hard_links=yes
11292 $RM conftest*
11293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11294 touch conftest.a
11295 ln conftest.a conftest.b 2>&5 || hard_links=no
11296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11297 echo "$as_me:$LINENO: result: $hard_links" >&5
11298 echo "${ECHO_T}$hard_links" >&6
11299 if test "$hard_links" = no; then
11300 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11301 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11302 need_locks=warn
11303 fi
11304 else
11305 need_locks=no
11306 fi
11307
11308
11309
11310 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11311 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11312
11313 runpath_var=
11314 allow_undefined_flag_FC=
11315 always_export_symbols_FC=no
11316 archive_cmds_FC=
11317 archive_expsym_cmds_FC=
11318 compiler_needs_object_FC=no
11319 enable_shared_with_static_runtimes_FC=no
11320 export_dynamic_flag_spec_FC=
11321 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11322 hardcode_automatic_FC=no
11323 hardcode_direct_FC=no
11324 hardcode_direct_absolute_FC=no
11325 hardcode_libdir_flag_spec_FC=
11326 hardcode_libdir_flag_spec_ld_FC=
11327 hardcode_libdir_separator_FC=
11328 hardcode_minus_L_FC=no
11329 hardcode_shlibpath_var_FC=unsupported
11330 inherit_rpath_FC=no
11331 link_all_deplibs_FC=unknown
11332 module_cmds_FC=
11333 module_expsym_cmds_FC=
11334 old_archive_from_new_cmds_FC=
11335 old_archive_from_expsyms_cmds_FC=
11336 thread_safe_flag_spec_FC=
11337 whole_archive_flag_spec_FC=
11338 # include_expsyms should be a list of space-separated symbols to be *always*
11339 # included in the symbol list
11340 include_expsyms_FC=
11341 # exclude_expsyms can be an extended regexp of symbols to exclude
11342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11344 # as well as any symbol that contains `d'.
11345 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11347 # platforms (ab)use it in PIC code, but their linkers get confused if
11348 # the symbol is explicitly referenced. Since portable code cannot
11349 # rely on this symbol name, it's probably fine to never include it in
11350 # preloaded symbol tables.
11351 extract_expsyms_cmds=
11352
11353 case $host_os in
11354 cygwin* | mingw* | pw32*)
11355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11356 # When not using gcc, we currently assume that we are using
11357 # Microsoft Visual C++.
11358 if test "$GCC" != yes; then
11359 with_gnu_ld=no
11360 fi
11361 ;;
11362 interix*)
11363 # we just hope/assume this is gcc and not c89 (= MSVC++)
11364 with_gnu_ld=yes
11365 ;;
11366 openbsd*)
11367 with_gnu_ld=no
11368 ;;
11369 esac
11370
11371 ld_shlibs_FC=yes
11372 if test "$with_gnu_ld" = yes; then
11373 # If archive_cmds runs LD, not CC, wlarc should be empty
11374 wlarc='${wl}'
11375
11376 # Set some defaults for GNU ld with shared library support. These
11377 # are reset later if shared libraries are not supported. Putting them
11378 # here allows them to be overridden if necessary.
11379 runpath_var=LD_RUN_PATH
11380 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11381 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11382 # ancient GNU ld didn't support --whole-archive et. al.
11383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11384 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11385 else
11386 whole_archive_flag_spec_FC=
11387 fi
11388 supports_anon_versioning=no
11389 case `$LD -v 2>&1` in
11390 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11393 *\ 2.11.*) ;; # other 2.11 versions
11394 *) supports_anon_versioning=yes ;;
11395 esac
11396
11397 # See if GNU ld supports shared libraries.
11398 case $host_os in
11399 aix[3-9]*)
11400 # On AIX/PPC, the GNU linker is very broken
11401 if test "$host_cpu" != ia64; then
11402 ld_shlibs_FC=no
11403 cat <<_LT_EOF 1>&2
11404
11405 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11406 *** to be unable to reliably create shared libraries on AIX.
11407 *** Therefore, libtool is disabling shared libraries support. If you
11408 *** really care for shared libraries, you may want to modify your PATH
11409 *** so that a non-GNU linker is found, and then restart.
11410
11411 _LT_EOF
11412 fi
11413 ;;
11414
11415 amigaos*)
11416 if test "$host_cpu" = m68k; then
11417 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)'
11418 hardcode_libdir_flag_spec_FC='-L$libdir'
11419 hardcode_minus_L_FC=yes
11420 fi
11421
11422 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11423 # that the semantics of dynamic libraries on AmigaOS, at least up
11424 # to version 4, is to share data among multiple programs linked
11425 # with the same dynamic library. Since this doesn't match the
11426 # behavior of shared libraries on other platforms, we can't use
11427 # them.
11428 ld_shlibs_FC=no
11429 ;;
11430
11431 beos*)
11432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11433 allow_undefined_flag_FC=unsupported
11434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11435 # support --undefined. This deserves some investigation. FIXME
11436 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437 else
11438 ld_shlibs_FC=no
11439 fi
11440 ;;
11441
11442 cygwin* | mingw* | pw32*)
11443 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11444 # as there is no search path for DLLs.
11445 hardcode_libdir_flag_spec_FC='-L$libdir'
11446 allow_undefined_flag_FC=unsupported
11447 always_export_symbols_FC=no
11448 enable_shared_with_static_runtimes_FC=yes
11449 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11450
11451 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11452 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11453 # If the export-symbols file already is a .def file (1st line
11454 # is EXPORTS), use it as is; otherwise, prepend...
11455 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11456 cp $export_symbols $output_objdir/$soname.def;
11457 else
11458 echo EXPORTS > $output_objdir/$soname.def;
11459 cat $export_symbols >> $output_objdir/$soname.def;
11460 fi~
11461 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11462 else
11463 ld_shlibs_FC=no
11464 fi
11465 ;;
11466
11467 interix[3-9]*)
11468 hardcode_direct_FC=no
11469 hardcode_shlibpath_var_FC=no
11470 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11471 export_dynamic_flag_spec_FC='${wl}-E'
11472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11473 # Instead, shared libraries are loaded at an image base (0x10000000 by
11474 # default) and relocated if they conflict, which is a slow very memory
11475 # consuming and fragmenting process. To avoid this, we pick a random,
11476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11477 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11478 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'
11479 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'
11480 ;;
11481
11482 gnu* | linux* | tpf* | k*bsd*-gnu)
11483 tmp_diet=no
11484 if test "$host_os" = linux-dietlibc; then
11485 case $cc_basename in
11486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11487 esac
11488 fi
11489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11490 && test "$tmp_diet" = no
11491 then
11492 tmp_addflag=
11493 case $cc_basename,$host_cpu in
11494 pgcc*) # Portland Group C compiler
11495 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'
11496 tmp_addflag=' $pic_flag'
11497 ;;
11498 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11499 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'
11500 tmp_addflag=' $pic_flag -Mnomain' ;;
11501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11502 tmp_addflag=' -i_dynamic' ;;
11503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11504 tmp_addflag=' -i_dynamic -nofor_main' ;;
11505 ifc* | ifort*) # Intel Fortran compiler
11506 tmp_addflag=' -nofor_main' ;;
11507 esac
11508 case `$CC -V 2>&1 | sed 5q` in
11509 *Sun\ C*) # Sun C 5.9
11510 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'
11511 compiler_needs_object_FC=yes
11512 tmp_sharedflag='-G' ;;
11513 *Sun\ F*) # Sun Fortran 8.3
11514 tmp_sharedflag='-G' ;;
11515 *)
11516 tmp_sharedflag='-shared' ;;
11517 esac
11518 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519
11520 if test "x$supports_anon_versioning" = xyes; then
11521 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11523 echo "local: *; };" >> $output_objdir/$libname.ver~
11524 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11525 fi
11526 else
11527 ld_shlibs_FC=no
11528 fi
11529 ;;
11530
11531 netbsd*)
11532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11533 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11534 wlarc=
11535 else
11536 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11537 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11538 fi
11539 ;;
11540
11541 solaris*)
11542 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11543 ld_shlibs_FC=no
11544 cat <<_LT_EOF 1>&2
11545
11546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11547 *** create shared libraries on Solaris systems. Therefore, libtool
11548 *** is disabling shared libraries support. We urge you to upgrade GNU
11549 *** binutils to release 2.9.1 or newer. Another option is to modify
11550 *** your PATH or compiler configuration so that the native linker is
11551 *** used, and then restart.
11552
11553 _LT_EOF
11554 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11555 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11556 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11557 else
11558 ld_shlibs_FC=no
11559 fi
11560 ;;
11561
11562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11563 case `$LD -v 2>&1` in
11564 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11565 ld_shlibs_FC=no
11566 cat <<_LT_EOF 1>&2
11567
11568 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11569 *** reliably create shared libraries on SCO systems. Therefore, libtool
11570 *** is disabling shared libraries support. We urge you to upgrade GNU
11571 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11572 *** your PATH or compiler configuration so that the native linker is
11573 *** used, and then restart.
11574
11575 _LT_EOF
11576 ;;
11577 *)
11578 # For security reasons, it is highly recommended that you always
11579 # use absolute paths for naming shared libraries, and exclude the
11580 # DT_RUNPATH tag from executables and libraries. But doing so
11581 # requires that you compile everything twice, which is a pain.
11582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11583 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11584 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11586 else
11587 ld_shlibs_FC=no
11588 fi
11589 ;;
11590 esac
11591 ;;
11592
11593 sunos4*)
11594 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11595 wlarc=
11596 hardcode_direct_FC=yes
11597 hardcode_shlibpath_var_FC=no
11598 ;;
11599
11600 *)
11601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11602 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11604 else
11605 ld_shlibs_FC=no
11606 fi
11607 ;;
11608 esac
11609
11610 if test "$ld_shlibs_FC" = no; then
11611 runpath_var=
11612 hardcode_libdir_flag_spec_FC=
11613 export_dynamic_flag_spec_FC=
11614 whole_archive_flag_spec_FC=
11615 fi
11616 else
11617 # PORTME fill in a description of your system's linker (not GNU ld)
11618 case $host_os in
11619 aix3*)
11620 allow_undefined_flag_FC=unsupported
11621 always_export_symbols_FC=yes
11622 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'
11623 # Note: this linker hardcodes the directories in LIBPATH if there
11624 # are no directories specified by -L.
11625 hardcode_minus_L_FC=yes
11626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11627 # Neither direct hardcoding nor static linking is supported with a
11628 # broken collect2.
11629 hardcode_direct_FC=unsupported
11630 fi
11631 ;;
11632
11633 aix[4-9]*)
11634 if test "$host_cpu" = ia64; then
11635 # On IA64, the linker does run time linking by default, so we don't
11636 # have to do anything special.
11637 aix_use_runtimelinking=no
11638 exp_sym_flag='-Bexport'
11639 no_entry_flag=""
11640 else
11641 # If we're using GNU nm, then we don't want the "-C" option.
11642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11644 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'
11645 else
11646 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'
11647 fi
11648 aix_use_runtimelinking=no
11649
11650 # Test if we are trying to use run time linking or normal
11651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11652 # need to do runtime linking.
11653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11654 for ld_flag in $LDFLAGS; do
11655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11656 aix_use_runtimelinking=yes
11657 break
11658 fi
11659 done
11660 ;;
11661 esac
11662
11663 exp_sym_flag='-bexport'
11664 no_entry_flag='-bnoentry'
11665 fi
11666
11667 # When large executables or shared objects are built, AIX ld can
11668 # have problems creating the table of contents. If linking a library
11669 # or program results in "error TOC overflow" add -mminimal-toc to
11670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11672
11673 archive_cmds_FC=''
11674 hardcode_direct_FC=yes
11675 hardcode_direct_absolute_FC=yes
11676 hardcode_libdir_separator_FC=':'
11677 link_all_deplibs_FC=yes
11678 file_list_spec_FC='${wl}-f,'
11679
11680 if test "$GCC" = yes; then
11681 case $host_os in aix4.[012]|aix4.[012].*)
11682 # We only want to do this on AIX 4.2 and lower, the check
11683 # below for broken collect2 doesn't work under 4.3+
11684 collect2name=`${CC} -print-prog-name=collect2`
11685 if test -f "$collect2name" &&
11686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11687 then
11688 # We have reworked collect2
11689 :
11690 else
11691 # We have old collect2
11692 hardcode_direct_FC=unsupported
11693 # It fails to find uninstalled libraries when the uninstalled
11694 # path is not listed in the libpath. Setting hardcode_minus_L
11695 # to unsupported forces relinking
11696 hardcode_minus_L_FC=yes
11697 hardcode_libdir_flag_spec_FC='-L$libdir'
11698 hardcode_libdir_separator_FC=
11699 fi
11700 ;;
11701 esac
11702 shared_flag='-shared'
11703 if test "$aix_use_runtimelinking" = yes; then
11704 shared_flag="$shared_flag "'${wl}-G'
11705 fi
11706 else
11707 # not using gcc
11708 if test "$host_cpu" = ia64; then
11709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11710 # chokes on -Wl,-G. The following line is correct:
11711 shared_flag='-G'
11712 else
11713 if test "$aix_use_runtimelinking" = yes; then
11714 shared_flag='${wl}-G'
11715 else
11716 shared_flag='${wl}-bM:SRE'
11717 fi
11718 fi
11719 fi
11720
11721 # It seems that -bexpall does not export symbols beginning with
11722 # underscore (_), so it is better to generate a list of symbols to export.
11723 always_export_symbols_FC=yes
11724 if test "$aix_use_runtimelinking" = yes; then
11725 # Warning - without using the other runtime loading flags (-brtl),
11726 # -berok will link without error, but may produce a broken library.
11727 allow_undefined_flag_FC='-berok'
11728 # Determine the default libpath from the value encoded in an
11729 # empty executable.
11730 cat >conftest.$ac_ext <<_ACEOF
11731 program main
11732
11733 end
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_fc_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757
11758 lt_aix_libpath_sed='
11759 /Import File Strings/,/^$/ {
11760 /^0/ {
11761 s/^0 *\(.*\)$/\1/
11762 p
11763 }
11764 }'
11765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766 # Check for a 64-bit object if we didn't find anything.
11767 if test -z "$aix_libpath"; then
11768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11769 fi
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 fi
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11778
11779 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11780 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"
11781 else
11782 if test "$host_cpu" = ia64; then
11783 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11784 allow_undefined_flag_FC="-z nodefs"
11785 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"
11786 else
11787 # Determine the default libpath from the value encoded in an
11788 # empty executable.
11789 cat >conftest.$ac_ext <<_ACEOF
11790 program main
11791
11792 end
11793 _ACEOF
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796 (eval $ac_link) 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_fc_werror_flag"
11804 || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816
11817 lt_aix_libpath_sed='
11818 /Import File Strings/,/^$/ {
11819 /^0/ {
11820 s/^0 *\(.*\)$/\1/
11821 p
11822 }
11823 }'
11824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11825 # Check for a 64-bit object if we didn't find anything.
11826 if test -z "$aix_libpath"; then
11827 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11828 fi
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 fi
11834 rm -f conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11837
11838 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11839 # Warning - without using the other run time loading flags,
11840 # -berok will link without error, but may produce a broken library.
11841 no_undefined_flag_FC=' ${wl}-bernotok'
11842 allow_undefined_flag_FC=' ${wl}-berok'
11843 # Exported symbols can be pulled into shared objects from archives
11844 whole_archive_flag_spec_FC='$convenience'
11845 archive_cmds_need_lc_FC=yes
11846 # This is similar to how AIX traditionally builds its shared libraries.
11847 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'
11848 fi
11849 fi
11850 ;;
11851
11852 amigaos*)
11853 if test "$host_cpu" = m68k; then
11854 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)'
11855 hardcode_libdir_flag_spec_FC='-L$libdir'
11856 hardcode_minus_L_FC=yes
11857 fi
11858 # see comment about different semantics on the GNU ld section
11859 ld_shlibs_FC=no
11860 ;;
11861
11862 bsdi[45]*)
11863 export_dynamic_flag_spec_FC=-rdynamic
11864 ;;
11865
11866 cygwin* | mingw* | pw32*)
11867 # When not using gcc, we currently assume that we are using
11868 # Microsoft Visual C++.
11869 # hardcode_libdir_flag_spec is actually meaningless, as there is
11870 # no search path for DLLs.
11871 hardcode_libdir_flag_spec_FC=' '
11872 allow_undefined_flag_FC=unsupported
11873 # Tell ltmain to make .lib files, not .a files.
11874 libext=lib
11875 # Tell ltmain to make .dll files, not .so files.
11876 shrext_cmds=".dll"
11877 # FIXME: Setting linknames here is a bad hack.
11878 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11879 # The linker will automatically build a .lib file if we build a DLL.
11880 old_archive_from_new_cmds_FC='true'
11881 # FIXME: Should let the user specify the lib program.
11882 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11883 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11884 enable_shared_with_static_runtimes_FC=yes
11885 ;;
11886
11887 darwin* | rhapsody*)
11888 case $host_os in
11889 rhapsody* | darwin1.[012])
11890 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11891 ;;
11892 *) # Darwin 1.3 on
11893 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11894 10.[012])
11895 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11896 ;;
11897 10.*)
11898 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11899 ;;
11900 esac
11901 ;;
11902 esac
11903 archive_cmds_need_lc_FC=no
11904 hardcode_direct_FC=no
11905 hardcode_automatic_FC=yes
11906 hardcode_shlibpath_var_FC=unsupported
11907 whole_archive_flag_spec_FC=''
11908 link_all_deplibs_FC=yes
11909 if test "$GCC" = yes ; then
11910 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913 lt_cv_apple_cc_single_mod=no
11914 if test -z "${LT_MULTI_MODULE}"; then
11915 # By default we will add the -single_module flag. You can override
11916 # by either setting the environment variable LT_MULTI_MODULE
11917 # non-empty at configure time, or by adding -multi-module to the
11918 # link flags.
11919 echo "int foo(void){return 1;}" > conftest.c
11920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11921 -dynamiclib ${wl}-single_module conftest.c
11922 if test -f libconftest.dylib; then
11923 lt_cv_apple_cc_single_mod=yes
11924 rm libconftest.dylib
11925 fi
11926 rm conftest.$ac_ext
11927 fi
11928 fi
11929
11930 output_verbose_link_cmd=echo
11931 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11932 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11933 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11934 else
11935 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11936 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11937 fi
11938 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11939 module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11940 else
11941 case $cc_basename in
11942 xlc*)
11943 output_verbose_link_cmd=echo
11944 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11945 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11946 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11947 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11948 module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11949 ;;
11950 *)
11951 ld_shlibs_FC=no
11952 ;;
11953 esac
11954 fi
11955 ;;
11956
11957 dgux*)
11958 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11959 hardcode_libdir_flag_spec_FC='-L$libdir'
11960 hardcode_shlibpath_var_FC=no
11961 ;;
11962
11963 freebsd1*)
11964 ld_shlibs_FC=no
11965 ;;
11966
11967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11968 # support. Future versions do this automatically, but an explicit c++rt0.o
11969 # does not break anything, and helps significantly (at the cost of a little
11970 # extra space).
11971 freebsd2.2*)
11972 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11973 hardcode_libdir_flag_spec_FC='-R$libdir'
11974 hardcode_direct_FC=yes
11975 hardcode_shlibpath_var_FC=no
11976 ;;
11977
11978 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11979 freebsd2*)
11980 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11981 hardcode_direct_FC=yes
11982 hardcode_minus_L_FC=yes
11983 hardcode_shlibpath_var_FC=no
11984 ;;
11985
11986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11987 freebsd* | dragonfly*)
11988 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11989 hardcode_libdir_flag_spec_FC='-R$libdir'
11990 hardcode_direct_FC=yes
11991 hardcode_shlibpath_var_FC=no
11992 ;;
11993
11994 hpux9*)
11995 if test "$GCC" = yes; then
11996 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'
11997 else
11998 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'
11999 fi
12000 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12001 hardcode_libdir_separator_FC=:
12002 hardcode_direct_FC=yes
12003
12004 # hardcode_minus_L: Not really in the search PATH,
12005 # but as the default location of the library.
12006 hardcode_minus_L_FC=yes
12007 export_dynamic_flag_spec_FC='${wl}-E'
12008 ;;
12009
12010 hpux10*)
12011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12012 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12013 else
12014 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12015 fi
12016 if test "$with_gnu_ld" = no; then
12017 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12018 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12019 hardcode_libdir_separator_FC=:
12020 hardcode_direct_FC=yes
12021 hardcode_direct_absolute_FC=yes
12022 export_dynamic_flag_spec_FC='${wl}-E'
12023 # hardcode_minus_L: Not really in the search PATH,
12024 # but as the default location of the library.
12025 hardcode_minus_L_FC=yes
12026 fi
12027 ;;
12028
12029 hpux11*)
12030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12031 case $host_cpu in
12032 hppa*64*)
12033 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12034 ;;
12035 ia64*)
12036 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12037 ;;
12038 *)
12039 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12040 ;;
12041 esac
12042 else
12043 case $host_cpu in
12044 hppa*64*)
12045 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12046 ;;
12047 ia64*)
12048 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12049 ;;
12050 *)
12051 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12052 ;;
12053 esac
12054 fi
12055 if test "$with_gnu_ld" = no; then
12056 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12057 hardcode_libdir_separator_FC=:
12058
12059 case $host_cpu in
12060 hppa*64*|ia64*)
12061 hardcode_direct_FC=no
12062 hardcode_shlibpath_var_FC=no
12063 ;;
12064 *)
12065 hardcode_direct_FC=yes
12066 hardcode_direct_absolute_FC=yes
12067 export_dynamic_flag_spec_FC='${wl}-E'
12068
12069 # hardcode_minus_L: Not really in the search PATH,
12070 # but as the default location of the library.
12071 hardcode_minus_L_FC=yes
12072 ;;
12073 esac
12074 fi
12075 ;;
12076
12077 irix5* | irix6* | nonstopux*)
12078 if test "$GCC" = yes; then
12079 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'
12080 # Try to use the -exported_symbol ld option, if it does not
12081 # work, assume that -exports_file does not work either and
12082 # implicitly export all symbols.
12083 save_LDFLAGS="$LDFLAGS"
12084 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12085 cat >conftest.$ac_ext <<_ACEOF
12086 int foo(void) {}
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_fc_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 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'
12111
12112 else
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116 fi
12117 rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LDFLAGS="$save_LDFLAGS"
12120 else
12121 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'
12122 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'
12123 fi
12124 archive_cmds_need_lc_FC='no'
12125 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12126 hardcode_libdir_separator_FC=:
12127 inherit_rpath_FC=yes
12128 link_all_deplibs_FC=yes
12129 ;;
12130
12131 netbsd*)
12132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12133 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12134 else
12135 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12136 fi
12137 hardcode_libdir_flag_spec_FC='-R$libdir'
12138 hardcode_direct_FC=yes
12139 hardcode_shlibpath_var_FC=no
12140 ;;
12141
12142 newsos6)
12143 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12144 hardcode_direct_FC=yes
12145 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12146 hardcode_libdir_separator_FC=:
12147 hardcode_shlibpath_var_FC=no
12148 ;;
12149
12150 *nto* | *qnx*)
12151 ;;
12152
12153 openbsd*)
12154 hardcode_direct_FC=yes
12155 hardcode_shlibpath_var_FC=no
12156 hardcode_direct_absolute_FC=yes
12157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12158 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12159 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12160 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12161 export_dynamic_flag_spec_FC='${wl}-E'
12162 else
12163 case $host_os in
12164 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12165 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12166 hardcode_libdir_flag_spec_FC='-R$libdir'
12167 ;;
12168 *)
12169 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12170 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12171 ;;
12172 esac
12173 fi
12174 ;;
12175
12176 os2*)
12177 hardcode_libdir_flag_spec_FC='-L$libdir'
12178 hardcode_minus_L_FC=yes
12179 allow_undefined_flag_FC=unsupported
12180 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'
12181 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12182 ;;
12183
12184 osf3*)
12185 if test "$GCC" = yes; then
12186 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12187 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'
12188 else
12189 allow_undefined_flag_FC=' -expect_unresolved \*'
12190 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'
12191 fi
12192 archive_cmds_need_lc_FC='no'
12193 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12194 hardcode_libdir_separator_FC=:
12195 ;;
12196
12197 osf4* | osf5*) # as osf3* with the addition of -msym flag
12198 if test "$GCC" = yes; then
12199 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12200 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'
12201 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12202 else
12203 allow_undefined_flag_FC=' -expect_unresolved \*'
12204 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'
12205 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~
12206 $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'
12207
12208 # Both c and cxx compiler support -rpath directly
12209 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12210 fi
12211 archive_cmds_need_lc_FC='no'
12212 hardcode_libdir_separator_FC=:
12213 ;;
12214
12215 solaris*)
12216 no_undefined_flag_FC=' -z defs'
12217 if test "$GCC" = yes; then
12218 wlarc='${wl}'
12219 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12221 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12222 else
12223 case `$CC -V 2>&1` in
12224 *"Compilers 5.0"*)
12225 wlarc=''
12226 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12227 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12229 ;;
12230 *)
12231 wlarc='${wl}'
12232 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12233 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12234 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12235 ;;
12236 esac
12237 fi
12238 hardcode_libdir_flag_spec_FC='-R$libdir'
12239 hardcode_shlibpath_var_FC=no
12240 case $host_os in
12241 solaris2.[0-5] | solaris2.[0-5].*) ;;
12242 *)
12243 # The compiler driver will combine and reorder linker options,
12244 # but understands `-z linker_flag'. GCC discards it without `$wl',
12245 # but is careful enough not to reorder.
12246 # Supported since Solaris 2.6 (maybe 2.5.1?)
12247 if test "$GCC" = yes; then
12248 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12249 else
12250 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12251 fi
12252 ;;
12253 esac
12254 link_all_deplibs_FC=yes
12255 ;;
12256
12257 sunos4*)
12258 if test "x$host_vendor" = xsequent; then
12259 # Use $CC to link under sequent, because it throws in some extra .o
12260 # files that make .init and .fini sections work.
12261 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12262 else
12263 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12264 fi
12265 hardcode_libdir_flag_spec_FC='-L$libdir'
12266 hardcode_direct_FC=yes
12267 hardcode_minus_L_FC=yes
12268 hardcode_shlibpath_var_FC=no
12269 ;;
12270
12271 sysv4)
12272 case $host_vendor in
12273 sni)
12274 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12275 hardcode_direct_FC=yes # is this really true???
12276 ;;
12277 siemens)
12278 ## LD is ld it makes a PLAMLIB
12279 ## CC just makes a GrossModule.
12280 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12281 reload_cmds_FC='$CC -r -o $output$reload_objs'
12282 hardcode_direct_FC=no
12283 ;;
12284 motorola)
12285 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12286 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12287 ;;
12288 esac
12289 runpath_var='LD_RUN_PATH'
12290 hardcode_shlibpath_var_FC=no
12291 ;;
12292
12293 sysv4.3*)
12294 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12295 hardcode_shlibpath_var_FC=no
12296 export_dynamic_flag_spec_FC='-Bexport'
12297 ;;
12298
12299 sysv4*MP*)
12300 if test -d /usr/nec; then
12301 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12302 hardcode_shlibpath_var_FC=no
12303 runpath_var=LD_RUN_PATH
12304 hardcode_runpath_var=yes
12305 ld_shlibs_FC=yes
12306 fi
12307 ;;
12308
12309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12310 no_undefined_flag_FC='${wl}-z,text'
12311 archive_cmds_need_lc_FC=no
12312 hardcode_shlibpath_var_FC=no
12313 runpath_var='LD_RUN_PATH'
12314
12315 if test "$GCC" = yes; then
12316 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12318 else
12319 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 fi
12322 ;;
12323
12324 sysv5* | sco3.2v5* | sco5v6*)
12325 # Note: We can NOT use -z defs as we might desire, because we do not
12326 # link with -lc, and that would cause any symbols used from libc to
12327 # always be unresolved, which means just about no library would
12328 # ever link correctly. If we're not using GNU ld we use -z text
12329 # though, which does catch some bad symbols but isn't as heavy-handed
12330 # as -z defs.
12331 no_undefined_flag_FC='${wl}-z,text'
12332 allow_undefined_flag_FC='${wl}-z,nodefs'
12333 archive_cmds_need_lc_FC=no
12334 hardcode_shlibpath_var_FC=no
12335 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12336 hardcode_libdir_separator_FC=':'
12337 link_all_deplibs_FC=yes
12338 export_dynamic_flag_spec_FC='${wl}-Bexport'
12339 runpath_var='LD_RUN_PATH'
12340
12341 if test "$GCC" = yes; then
12342 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12344 else
12345 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12346 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347 fi
12348 ;;
12349
12350 uts4*)
12351 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12352 hardcode_libdir_flag_spec_FC='-L$libdir'
12353 hardcode_shlibpath_var_FC=no
12354 ;;
12355
12356 *)
12357 ld_shlibs_FC=no
12358 ;;
12359 esac
12360
12361 if test x$host_vendor = xsni; then
12362 case $host in
12363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12364 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12365 ;;
12366 esac
12367 fi
12368 fi
12369
12370 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12371 echo "${ECHO_T}$ld_shlibs_FC" >&6
12372 test "$ld_shlibs_FC" = no && can_build_shared=no
12373
12374 with_gnu_ld_FC=$with_gnu_ld
12375
12376
12377
12378
12379
12380
12381 #
12382 # Do we need to explicitly link libc?
12383 #
12384 case "x$archive_cmds_need_lc_FC" in
12385 x|xyes)
12386 # Assume -lc should be added
12387 archive_cmds_need_lc_FC=yes
12388
12389 if test "$enable_shared" = yes && test "$GCC" = yes; then
12390 case $archive_cmds_FC in
12391 *'~'*)
12392 # FIXME: we may have to deal with multi-command sequences.
12393 ;;
12394 '$CC '*)
12395 # Test whether the compiler implicitly links with -lc since on some
12396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12397 # to ld, don't add -lc before -lgcc.
12398 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12400 $RM conftest*
12401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12402
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } 2>conftest.err; then
12408 soname=conftest
12409 lib=conftest
12410 libobjs=conftest.$ac_objext
12411 deplibs=
12412 wl=$lt_prog_compiler_wl_FC
12413 pic_flag=$lt_prog_compiler_pic_FC
12414 compiler_flags=-v
12415 linker_flags=-v
12416 verstring=
12417 output_objdir=.
12418 libname=conftest
12419 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12420 allow_undefined_flag_FC=
12421 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12422 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }
12426 then
12427 archive_cmds_need_lc_FC=no
12428 else
12429 archive_cmds_need_lc_FC=yes
12430 fi
12431 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12432 else
12433 cat conftest.err 1>&5
12434 fi
12435 $RM conftest*
12436 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12437 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12438 ;;
12439 esac
12440 fi
12441 ;;
12442 esac
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12509 withGCC=$ac_cv_fc_compiler_gnu
12510 library_names_spec=
12511 libname_spec='lib$name'
12512 soname_spec=
12513 shrext_cmds=".so"
12514 postinstall_cmds=
12515 postuninstall_cmds=
12516 finish_cmds=
12517 finish_eval=
12518 shlibpath_var=
12519 shlibpath_overrides_runpath=unknown
12520 version_type=none
12521 dynamic_linker="$host_os ld.so"
12522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12523 need_lib_prefix=unknown
12524 hardcode_into_libs=no
12525
12526 # when you set need_version to no, make sure it does not cause -set_version
12527 # flags to be left without arguments
12528 need_version=unknown
12529
12530 case $host_os in
12531 aix3*)
12532 version_type=linux
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12534 shlibpath_var=LIBPATH
12535
12536 # AIX 3 has no versioning support, so we append a major version to the name.
12537 soname_spec='${libname}${release}${shared_ext}$major'
12538 ;;
12539
12540 aix[4-9]*)
12541 version_type=linux
12542 need_lib_prefix=no
12543 need_version=no
12544 hardcode_into_libs=yes
12545 if test "$host_cpu" = ia64; then
12546 # AIX 5 supports IA64
12547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12548 shlibpath_var=LD_LIBRARY_PATH
12549 else
12550 # With GCC up to 2.95.x, collect2 would create an import file
12551 # for dependence libraries. The import file would start with
12552 # the line `#! .'. This would cause the generated library to
12553 # depend on `.', always an invalid library. This was fixed in
12554 # development snapshots of GCC prior to 3.0.
12555 case $host_os in
12556 aix4 | aix4.[01] | aix4.[01].*)
12557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12558 echo ' yes '
12559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12560 :
12561 else
12562 can_build_shared=no
12563 fi
12564 ;;
12565 esac
12566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12567 # soname into executable. Probably we can add versioning support to
12568 # collect2, so additional links can be useful in future.
12569 if test "$aix_use_runtimelinking" = yes; then
12570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12571 # instead of lib<name>.a to let people know that these are not
12572 # typical AIX shared libraries.
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574 else
12575 # We preserve .a as extension for shared libraries through AIX4.2
12576 # and later when we are not doing run time linking.
12577 library_names_spec='${libname}${release}.a $libname.a'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 fi
12580 shlibpath_var=LIBPATH
12581 fi
12582 ;;
12583
12584 amigaos*)
12585 if test "$host_cpu" = m68k; then
12586 library_names_spec='$libname.ixlibrary $libname.a'
12587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12588 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'
12589 else
12590 dynamic_linker=no
12591 fi
12592 ;;
12593
12594 beos*)
12595 library_names_spec='${libname}${shared_ext}'
12596 dynamic_linker="$host_os ld.so"
12597 shlibpath_var=LIBRARY_PATH
12598 ;;
12599
12600 bsdi[45]*)
12601 version_type=linux
12602 need_version=no
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12609 # the default ld.so.conf also contains /usr/contrib/lib and
12610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12611 # libtool to hard-code these into programs
12612 ;;
12613
12614 cygwin* | mingw* | pw32*)
12615 version_type=windows
12616 shrext_cmds=".dll"
12617 need_version=no
12618 need_lib_prefix=no
12619
12620 case $withGCC,$host_os in
12621 yes,cygwin* | yes,mingw* | yes,pw32*)
12622 library_names_spec='$libname.dll.a'
12623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12624 postinstall_cmds='base_file=`basename \${file}`~
12625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12626 dldir=$destdir/`dirname \$dlpath`~
12627 test -d \$dldir || mkdir -p \$dldir~
12628 $install_prog $dir/$dlname \$dldir/$dlname~
12629 chmod a+x \$dldir/$dlname~
12630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12632 fi'
12633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12634 dlpath=$dir/\$dldll~
12635 $RM \$dlpath'
12636 shlibpath_overrides_runpath=yes
12637
12638 case $host_os in
12639 cygwin*)
12640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12643 ;;
12644 mingw*)
12645 # MinGW DLLs use traditional 'lib' prefix
12646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12647 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12648 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12649 # It is most probably a Windows format PATH printed by
12650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12651 # path with ; separators, and with drive letters. We can handle the
12652 # drive letters (cygwin fileutils understands them), so leave them,
12653 # especially as we might pass files found there to a mingw objdump,
12654 # which wouldn't understand a cygwinified path. Ahh.
12655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12656 else
12657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12658 fi
12659 ;;
12660 pw32*)
12661 # pw32 DLLs use 'pw' prefix rather than 'lib'
12662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12663 ;;
12664 esac
12665 ;;
12666
12667 *)
12668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12669 ;;
12670 esac
12671 dynamic_linker='Win32 ld.exe'
12672 # FIXME: first we should search . and the directory the executable is in
12673 shlibpath_var=PATH
12674 ;;
12675
12676 darwin* | rhapsody*)
12677 dynamic_linker="$host_os dyld"
12678 version_type=darwin
12679 need_lib_prefix=no
12680 need_version=no
12681 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12682 soname_spec='${libname}${release}${major}$shared_ext'
12683 shlibpath_overrides_runpath=yes
12684 shlibpath_var=DYLD_LIBRARY_PATH
12685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12686
12687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12688 ;;
12689
12690 dgux*)
12691 version_type=linux
12692 need_lib_prefix=no
12693 need_version=no
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 shlibpath_var=LD_LIBRARY_PATH
12697 ;;
12698
12699 freebsd1*)
12700 dynamic_linker=no
12701 ;;
12702
12703 freebsd* | dragonfly*)
12704 # DragonFly does not have aout. When/if they implement a new
12705 # versioning mechanism, adjust this.
12706 if test -x /usr/bin/objformat; then
12707 objformat=`/usr/bin/objformat`
12708 else
12709 case $host_os in
12710 freebsd[123]*) objformat=aout ;;
12711 *) objformat=elf ;;
12712 esac
12713 fi
12714 version_type=freebsd-$objformat
12715 case $version_type in
12716 freebsd-elf*)
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12718 need_version=no
12719 need_lib_prefix=no
12720 ;;
12721 freebsd-*)
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12723 need_version=yes
12724 ;;
12725 esac
12726 shlibpath_var=LD_LIBRARY_PATH
12727 case $host_os in
12728 freebsd2*)
12729 shlibpath_overrides_runpath=yes
12730 ;;
12731 freebsd3.[01]* | freebsdelf3.[01]*)
12732 shlibpath_overrides_runpath=yes
12733 hardcode_into_libs=yes
12734 ;;
12735 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12736 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12737 shlibpath_overrides_runpath=no
12738 hardcode_into_libs=yes
12739 ;;
12740 *) # from 4.6 on, and DragonFly
12741 shlibpath_overrides_runpath=yes
12742 hardcode_into_libs=yes
12743 ;;
12744 esac
12745 ;;
12746
12747 gnu*)
12748 version_type=linux
12749 need_lib_prefix=no
12750 need_version=no
12751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12752 soname_spec='${libname}${release}${shared_ext}$major'
12753 shlibpath_var=LD_LIBRARY_PATH
12754 hardcode_into_libs=yes
12755 ;;
12756
12757 hpux9* | hpux10* | hpux11*)
12758 # Give a soname corresponding to the major version so that dld.sl refuses to
12759 # link against other versions.
12760 version_type=sunos
12761 need_lib_prefix=no
12762 need_version=no
12763 case $host_cpu in
12764 ia64*)
12765 shrext_cmds='.so'
12766 hardcode_into_libs=yes
12767 dynamic_linker="$host_os dld.so"
12768 shlibpath_var=LD_LIBRARY_PATH
12769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771 soname_spec='${libname}${release}${shared_ext}$major'
12772 if test "X$HPUX_IA64_MODE" = X32; then
12773 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12774 else
12775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12776 fi
12777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12778 ;;
12779 hppa*64*)
12780 shrext_cmds='.sl'
12781 hardcode_into_libs=yes
12782 dynamic_linker="$host_os dld.sl"
12783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12789 ;;
12790 *)
12791 shrext_cmds='.sl'
12792 dynamic_linker="$host_os dld.sl"
12793 shlibpath_var=SHLIB_PATH
12794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796 soname_spec='${libname}${release}${shared_ext}$major'
12797 ;;
12798 esac
12799 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12800 postinstall_cmds='chmod 555 $lib'
12801 ;;
12802
12803 interix[3-9]*)
12804 version_type=linux
12805 need_lib_prefix=no
12806 need_version=no
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12810 shlibpath_var=LD_LIBRARY_PATH
12811 shlibpath_overrides_runpath=no
12812 hardcode_into_libs=yes
12813 ;;
12814
12815 irix5* | irix6* | nonstopux*)
12816 case $host_os in
12817 nonstopux*) version_type=nonstopux ;;
12818 *)
12819 if test "$lt_cv_prog_gnu_ld" = yes; then
12820 version_type=linux
12821 else
12822 version_type=irix
12823 fi ;;
12824 esac
12825 need_lib_prefix=no
12826 need_version=no
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12829 case $host_os in
12830 irix5* | nonstopux*)
12831 libsuff= shlibsuff=
12832 ;;
12833 *)
12834 case $LD in # libtool.m4 will add one of these switches to LD
12835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12836 libsuff= shlibsuff= libmagic=32-bit;;
12837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12838 libsuff=32 shlibsuff=N32 libmagic=N32;;
12839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12841 *) libsuff= shlibsuff= libmagic=never-match;;
12842 esac
12843 ;;
12844 esac
12845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12846 shlibpath_overrides_runpath=no
12847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12849 hardcode_into_libs=yes
12850 ;;
12851
12852 # No shared lib support for Linux oldld, aout, or coff.
12853 linux*oldld* | linux*aout* | linux*coff*)
12854 dynamic_linker=no
12855 ;;
12856
12857 # This must be Linux ELF.
12858 linux* | k*bsd*-gnu)
12859 version_type=linux
12860 need_lib_prefix=no
12861 need_version=no
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12863 soname_spec='${libname}${release}${shared_ext}$major'
12864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 shlibpath_overrides_runpath=no
12867 # Some binutils ld are patched to set DT_RUNPATH
12868 save_LDFLAGS=$LDFLAGS
12869 save_libdir=$libdir
12870 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12871 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12872 cat >conftest.$ac_ext <<_ACEOF
12873 program main
12874
12875 end
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_fc_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12900 shlibpath_overrides_runpath=yes
12901 fi
12902
12903 else
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907 fi
12908 rm -f conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LDFLAGS=$save_LDFLAGS
12911 libdir=$save_libdir
12912
12913 # This implies no fast_install, which is unacceptable.
12914 # Some rework will be needed to allow for fast_install
12915 # before this can be enabled.
12916 hardcode_into_libs=yes
12917
12918 # Append ld.so.conf contents to the search path
12919 if test -f /etc/ld.so.conf; then
12920 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12922 fi
12923
12924 # We used to test for /lib/ld.so.1 and disable shared libraries on
12925 # powerpc, because MkLinux only supported shared libraries with the
12926 # GNU dynamic linker. Since this was broken with cross compilers,
12927 # most powerpc-linux boxes support dynamic linking these days and
12928 # people can always --disable-shared, the test was removed, and we
12929 # assume the GNU/Linux dynamic linker is in use.
12930 dynamic_linker='GNU/Linux ld.so'
12931 ;;
12932
12933 netbsd*)
12934 version_type=sunos
12935 need_lib_prefix=no
12936 need_version=no
12937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12940 dynamic_linker='NetBSD (a.out) ld.so'
12941 else
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 dynamic_linker='NetBSD ld.elf_so'
12945 fi
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12948 hardcode_into_libs=yes
12949 ;;
12950
12951 newsos6)
12952 version_type=linux
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 shlibpath_overrides_runpath=yes
12956 ;;
12957
12958 *nto* | *qnx*)
12959 version_type=qnx
12960 need_lib_prefix=no
12961 need_version=no
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 shlibpath_overrides_runpath=no
12966 hardcode_into_libs=yes
12967 dynamic_linker='ldqnx.so'
12968 ;;
12969
12970 openbsd*)
12971 version_type=sunos
12972 sys_lib_dlsearch_path_spec="/usr/lib"
12973 need_lib_prefix=no
12974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12975 case $host_os in
12976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12977 *) need_version=no ;;
12978 esac
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12983 case $host_os in
12984 openbsd2.[89] | openbsd2.[89].*)
12985 shlibpath_overrides_runpath=no
12986 ;;
12987 *)
12988 shlibpath_overrides_runpath=yes
12989 ;;
12990 esac
12991 else
12992 shlibpath_overrides_runpath=yes
12993 fi
12994 ;;
12995
12996 os2*)
12997 libname_spec='$name'
12998 shrext_cmds=".dll"
12999 need_lib_prefix=no
13000 library_names_spec='$libname${shared_ext} $libname.a'
13001 dynamic_linker='OS/2 ld.exe'
13002 shlibpath_var=LIBPATH
13003 ;;
13004
13005 osf3* | osf4* | osf5*)
13006 version_type=osf
13007 need_lib_prefix=no
13008 need_version=no
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13014 ;;
13015
13016 rdos*)
13017 dynamic_linker=no
13018 ;;
13019
13020 solaris*)
13021 version_type=linux
13022 need_lib_prefix=no
13023 need_version=no
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec='${libname}${release}${shared_ext}$major'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 hardcode_into_libs=yes
13029 # ldd complains unless libraries are executable
13030 postinstall_cmds='chmod +x $lib'
13031 ;;
13032
13033 sunos4*)
13034 version_type=sunos
13035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13037 shlibpath_var=LD_LIBRARY_PATH
13038 shlibpath_overrides_runpath=yes
13039 if test "$with_gnu_ld" = yes; then
13040 need_lib_prefix=no
13041 fi
13042 need_version=yes
13043 ;;
13044
13045 sysv4 | sysv4.3*)
13046 version_type=linux
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 case $host_vendor in
13051 sni)
13052 shlibpath_overrides_runpath=no
13053 need_lib_prefix=no
13054 runpath_var=LD_RUN_PATH
13055 ;;
13056 siemens)
13057 need_lib_prefix=no
13058 ;;
13059 motorola)
13060 need_lib_prefix=no
13061 need_version=no
13062 shlibpath_overrides_runpath=no
13063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13064 ;;
13065 esac
13066 ;;
13067
13068 sysv4*MP*)
13069 if test -d /usr/nec ;then
13070 version_type=linux
13071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13072 soname_spec='$libname${shared_ext}.$major'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 fi
13075 ;;
13076
13077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13078 version_type=freebsd-elf
13079 need_lib_prefix=no
13080 need_version=no
13081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13082 soname_spec='${libname}${release}${shared_ext}$major'
13083 shlibpath_var=LD_LIBRARY_PATH
13084 shlibpath_overrides_runpath=yes
13085 hardcode_into_libs=yes
13086 if test "$with_gnu_ld" = yes; then
13087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13088 else
13089 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13090 case $host_os in
13091 sco3.2v5*)
13092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13093 ;;
13094 esac
13095 fi
13096 sys_lib_dlsearch_path_spec='/usr/lib'
13097 ;;
13098
13099 tpf*)
13100 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13101 version_type=linux
13102 need_lib_prefix=no
13103 need_version=no
13104 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=no
13107 hardcode_into_libs=yes
13108 ;;
13109
13110 uts4*)
13111 version_type=linux
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 ;;
13116
13117 *)
13118 dynamic_linker=no
13119 ;;
13120 esac
13121 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13122 echo "${ECHO_T}$dynamic_linker" >&6
13123 test "$dynamic_linker" = no && can_build_shared=no
13124
13125 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13126 if test "$GCC" = yes; then
13127 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13128 fi
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13167 hardcode_action_FC=
13168 if test -n "$hardcode_libdir_flag_spec_FC" ||
13169 test -n "$runpath_var_FC" ||
13170 test "X$hardcode_automatic_FC" = "Xyes" ; then
13171
13172 # We can hardcode non-existent directories.
13173 if test "$hardcode_direct_FC" != no &&
13174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13175 # have to relink, otherwise we might link with an installed library
13176 # when we should be linking with a yet-to-be-installed one
13177 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13178 test "$hardcode_minus_L_FC" != no; then
13179 # Linking always hardcodes the temporary library directory.
13180 hardcode_action_FC=relink
13181 else
13182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13183 hardcode_action_FC=immediate
13184 fi
13185 else
13186 # We cannot hardcode anything, or else we can only hardcode existing
13187 # directories.
13188 hardcode_action_FC=unsupported
13189 fi
13190 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13191 echo "${ECHO_T}$hardcode_action_FC" >&6
13192
13193 if test "$hardcode_action_FC" = relink ||
13194 test "$inherit_rpath_FC" = yes; then
13195 # Fast installation is not supported
13196 enable_fast_install=no
13197 elif test "$shlibpath_overrides_runpath" = yes ||
13198 test "$enable_shared" = no; then
13199 # Fast installation is not necessary
13200 enable_fast_install=needless
13201 fi
13202
13203
13204
13205
13206
13207
13208
13209 fi # test -n "$compiler"
13210
13211 CC="$lt_save_CC"
13212 fi # test "$_lt_disable_FC" != yes
13213
13214 ac_ext=c
13215 ac_cpp='$CPP $CPPFLAGS'
13216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13219
13220
13221 FCFLAGS="$FCFLAGS -Wall"
13222
13223 # For libtool versioning info, format is CURRENT:REVISION:AGE
13224 libtool_VERSION=1:0:0
13225
13226
13227 # Check header files.
13228 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13230 if test "${ac_cv_header_stdc+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233 cat >conftest.$ac_ext <<_ACEOF
13234 /* confdefs.h. */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include <stdlib.h>
13240 #include <stdarg.h>
13241 #include <string.h>
13242 #include <float.h>
13243
13244 int
13245 main ()
13246 {
13247
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_header_stdc=yes
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279 ac_cv_header_stdc=no
13280 fi
13281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282
13283 if test $ac_cv_header_stdc = yes; then
13284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <string.h>
13292
13293 _ACEOF
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295 $EGREP "memchr" >/dev/null 2>&1; then
13296 :
13297 else
13298 ac_cv_header_stdc=no
13299 fi
13300 rm -f conftest*
13301
13302 fi
13303
13304 if test $ac_cv_header_stdc = yes; then
13305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <stdlib.h>
13313
13314 _ACEOF
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "free" >/dev/null 2>&1; then
13317 :
13318 else
13319 ac_cv_header_stdc=no
13320 fi
13321 rm -f conftest*
13322
13323 fi
13324
13325 if test $ac_cv_header_stdc = yes; then
13326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13327 if test "$cross_compiling" = yes; then
13328 :
13329 else
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 #include <ctype.h>
13337 #if ((' ' & 0x0FF) == 0x020)
13338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13340 #else
13341 # define ISLOWER(c) \
13342 (('a' <= (c) && (c) <= 'i') \
13343 || ('j' <= (c) && (c) <= 'r') \
13344 || ('s' <= (c) && (c) <= 'z'))
13345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13346 #endif
13347
13348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13349 int
13350 main ()
13351 {
13352 int i;
13353 for (i = 0; i < 256; i++)
13354 if (XOR (islower (i), ISLOWER (i))
13355 || toupper (i) != TOUPPER (i))
13356 exit(2);
13357 exit (0);
13358 }
13359 _ACEOF
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 :
13372 else
13373 echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 ( exit $ac_status )
13378 ac_cv_header_stdc=no
13379 fi
13380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13381 fi
13382 fi
13383 fi
13384 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13385 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13386 if test $ac_cv_header_stdc = yes; then
13387
13388 cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13390 _ACEOF
13391
13392 fi
13393
13394 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13396 if test "${ac_cv_header_time+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h. */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <sys/types.h>
13406 #include <sys/time.h>
13407 #include <time.h>
13408
13409 int
13410 main ()
13411 {
13412 if ((struct tm *) 0)
13413 return 0;
13414 ;
13415 return 0;
13416 }
13417 _ACEOF
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_header_time=yes
13441 else
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_cv_header_time=no
13446 fi
13447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13448 fi
13449 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13450 echo "${ECHO_T}$ac_cv_header_time" >&6
13451 if test $ac_cv_header_time = yes; then
13452
13453 cat >>confdefs.h <<\_ACEOF
13454 #define TIME_WITH_SYS_TIME 1
13455 _ACEOF
13456
13457 fi
13458
13459 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13460 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13461 if test "${gcc_cv_header_string+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h. */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13470 #include <string.h>
13471 #include <strings.h>
13472 int
13473 main ()
13474 {
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482 (eval $ac_compile) 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag"
13490 || test ! -s conftest.err'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest.$ac_objext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 gcc_cv_header_string=yes
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13506
13507 gcc_cv_header_string=no
13508 fi
13509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13510 fi
13511 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13512 echo "${ECHO_T}$gcc_cv_header_string" >&6
13513 if test $gcc_cv_header_string = yes; then
13514
13515 cat >>confdefs.h <<\_ACEOF
13516 #define STRING_WITH_STRINGS 1
13517 _ACEOF
13518
13519 fi
13520
13521
13522
13523
13524
13525 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13526 do
13527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13529 echo "$as_me:$LINENO: checking for $ac_header" >&5
13530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 fi
13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13536 else
13537 # Is the header compilable?
13538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 #include <$ac_header>
13548 _ACEOF
13549 rm -f conftest.$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -z "$ac_c_werror_flag"
13559 || test ! -s conftest.err'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest.$ac_objext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_header_compiler=yes
13572 else
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 ac_header_compiler=no
13577 fi
13578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13580 echo "${ECHO_T}$ac_header_compiler" >&6
13581
13582 # Is the header present?
13583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <$ac_header>
13592 _ACEOF
13593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } >/dev/null; then
13601 if test -s conftest.err; then
13602 ac_cpp_err=$ac_c_preproc_warn_flag
13603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13604 else
13605 ac_cpp_err=
13606 fi
13607 else
13608 ac_cpp_err=yes
13609 fi
13610 if test -z "$ac_cpp_err"; then
13611 ac_header_preproc=yes
13612 else
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13615
13616 ac_header_preproc=no
13617 fi
13618 rm -f conftest.err conftest.$ac_ext
13619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13620 echo "${ECHO_T}$ac_header_preproc" >&6
13621
13622 # So? What about this header?
13623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13624 yes:no: )
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13629 ac_header_preproc=yes
13630 ;;
13631 no:yes:* )
13632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13644 (
13645 cat <<\_ASBOX
13646 ## ----------------------------------------------------- ##
13647 ## Report this to the GNU OpenMP Runtime Library lists. ##
13648 ## ----------------------------------------------------- ##
13649 _ASBOX
13650 ) |
13651 sed "s/^/$as_me: WARNING: /" >&2
13652 ;;
13653 esac
13654 echo "$as_me:$LINENO: checking for $ac_header" >&5
13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659 eval "$as_ac_Header=\$ac_header_preproc"
13660 fi
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13663
13664 fi
13665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13666 cat >>confdefs.h <<_ACEOF
13667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13668 _ACEOF
13669
13670 fi
13671
13672 done
13673
13674
13675
13676
13677 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13678
13679 acx_cv_header_stdint=stddef.h
13680 acx_cv_header_stdint_kind="(already complete)"
13681 for i in stdint.h $inttype_headers; do
13682 unset ac_cv_type_uintptr_t
13683 unset ac_cv_type_uintmax_t
13684 unset ac_cv_type_int_least32_t
13685 unset ac_cv_type_int_fast32_t
13686 unset ac_cv_type_uint64_t
13687 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13688 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13689 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13690 if test "${ac_cv_type_uintmax_t+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h. */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 #include <sys/types.h>
13700 #include <$i>
13701
13702 int
13703 main ()
13704 {
13705 if ((uintmax_t *) 0)
13706 return 0;
13707 if (sizeof (uintmax_t))
13708 return 0;
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag"
13723 || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_type_uintmax_t=yes
13736 else
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ac_cv_type_uintmax_t=no
13741 fi
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743 fi
13744 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13745 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13746 if test $ac_cv_type_uintmax_t = yes; then
13747 acx_cv_header_stdint=$i
13748 else
13749 continue
13750 fi
13751
13752 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13753 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13754 if test "${ac_cv_type_uintptr_t+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <sys/types.h>
13764 #include <$i>
13765
13766 int
13767 main ()
13768 {
13769 if ((uintptr_t *) 0)
13770 return 0;
13771 if (sizeof (uintptr_t))
13772 return 0;
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_type_uintptr_t=yes
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 ac_cv_type_uintptr_t=no
13805 fi
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807 fi
13808 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13809 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13810 if test $ac_cv_type_uintptr_t = yes; then
13811 :
13812 else
13813 acx_cv_header_stdint_kind="(mostly complete)"
13814 fi
13815
13816 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13817 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13818 if test "${ac_cv_type_int_least32_t+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <sys/types.h>
13828 #include <$i>
13829
13830 int
13831 main ()
13832 {
13833 if ((int_least32_t *) 0)
13834 return 0;
13835 if (sizeof (int_least32_t))
13836 return 0;
13837 ;
13838 return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_c_werror_flag"
13851 || test ! -s conftest.err'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest.$ac_objext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_type_int_least32_t=yes
13864 else
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13867
13868 ac_cv_type_int_least32_t=no
13869 fi
13870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13871 fi
13872 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13873 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13874 if test $ac_cv_type_int_least32_t = yes; then
13875 :
13876 else
13877 acx_cv_header_stdint_kind="(mostly complete)"
13878 fi
13879
13880 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13881 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13882 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h. */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 #include <sys/types.h>
13892 #include <$i>
13893
13894 int
13895 main ()
13896 {
13897 if ((int_fast32_t *) 0)
13898 return 0;
13899 if (sizeof (int_fast32_t))
13900 return 0;
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_type_int_fast32_t=yes
13928 else
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 ac_cv_type_int_fast32_t=no
13933 fi
13934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13935 fi
13936 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13937 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13938 if test $ac_cv_type_int_fast32_t = yes; then
13939 :
13940 else
13941 acx_cv_header_stdint_kind="(mostly complete)"
13942 fi
13943
13944 echo "$as_me:$LINENO: checking for uint64_t" >&5
13945 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13946 if test "${ac_cv_type_uint64_t+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h. */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <sys/types.h>
13956 #include <$i>
13957
13958 int
13959 main ()
13960 {
13961 if ((uint64_t *) 0)
13962 return 0;
13963 if (sizeof (uint64_t))
13964 return 0;
13965 ;
13966 return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971 (eval $ac_compile) 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag"
13979 || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_type_uint64_t=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 ac_cv_type_uint64_t=no
13997 fi
13998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13999 fi
14000 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14001 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14002 if test $ac_cv_type_uint64_t = yes; then
14003 :
14004 else
14005 acx_cv_header_stdint_kind="(lacks uint64_t)"
14006 fi
14007
14008 break
14009 done
14010 if test "$acx_cv_header_stdint" = stddef.h; then
14011 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14012 for i in stdint.h $inttype_headers; do
14013 unset ac_cv_type_uintptr_t
14014 unset ac_cv_type_uint32_t
14015 unset ac_cv_type_uint64_t
14016 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14017 echo "$as_me:$LINENO: checking for uint32_t" >&5
14018 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14019 if test "${ac_cv_type_uint32_t+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 #include <sys/types.h>
14029 #include <$i>
14030
14031 int
14032 main ()
14033 {
14034 if ((uint32_t *) 0)
14035 return 0;
14036 if (sizeof (uint32_t))
14037 return 0;
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest.$ac_objext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_type_uint32_t=yes
14065 else
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_cv_type_uint32_t=no
14070 fi
14071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14072 fi
14073 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14074 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14075 if test $ac_cv_type_uint32_t = yes; then
14076 acx_cv_header_stdint=$i
14077 else
14078 continue
14079 fi
14080
14081 echo "$as_me:$LINENO: checking for uint64_t" >&5
14082 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14083 if test "${ac_cv_type_uint64_t+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 #include <sys/types.h>
14093 #include <$i>
14094
14095 int
14096 main ()
14097 {
14098 if ((uint64_t *) 0)
14099 return 0;
14100 if (sizeof (uint64_t))
14101 return 0;
14102 ;
14103 return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_c_werror_flag"
14116 || test ! -s conftest.err'
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); }; } &&
14122 { ac_try='test -s conftest.$ac_objext'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_type_uint64_t=yes
14129 else
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133 ac_cv_type_uint64_t=no
14134 fi
14135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14138 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14139
14140 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14141 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14142 if test "${ac_cv_type_uintptr_t+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <sys/types.h>
14152 #include <$i>
14153
14154 int
14155 main ()
14156 {
14157 if ((uintptr_t *) 0)
14158 return 0;
14159 if (sizeof (uintptr_t))
14160 return 0;
14161 ;
14162 return 0;
14163 }
14164 _ACEOF
14165 rm -f conftest.$ac_objext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -z "$ac_c_werror_flag"
14175 || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_type_uintptr_t=yes
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 ac_cv_type_uintptr_t=no
14193 fi
14194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14195 fi
14196 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14197 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14198
14199 break
14200 done
14201 fi
14202 if test "$acx_cv_header_stdint" = stddef.h; then
14203 acx_cv_header_stdint_kind="(u_intXX_t style)"
14204 for i in sys/types.h $inttype_headers; do
14205 unset ac_cv_type_u_int32_t
14206 unset ac_cv_type_u_int64_t
14207 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14208 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14209 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14210 if test "${ac_cv_type_u_int32_t+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <sys/types.h>
14220 #include <$i>
14221
14222 int
14223 main ()
14224 {
14225 if ((u_int32_t *) 0)
14226 return 0;
14227 if (sizeof (u_int32_t))
14228 return 0;
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235 (eval $ac_compile) 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_type_u_int32_t=yes
14256 else
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 ac_cv_type_u_int32_t=no
14261 fi
14262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14263 fi
14264 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14265 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14266 if test $ac_cv_type_u_int32_t = yes; then
14267 acx_cv_header_stdint=$i
14268 else
14269 continue
14270 fi
14271
14272 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14273 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14274 if test "${ac_cv_type_u_int64_t+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <sys/types.h>
14284 #include <$i>
14285
14286 int
14287 main ()
14288 {
14289 if ((u_int64_t *) 0)
14290 return 0;
14291 if (sizeof (u_int64_t))
14292 return 0;
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag"
14307 || test ! -s conftest.err'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest.$ac_objext'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_type_u_int64_t=yes
14320 else
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14323
14324 ac_cv_type_u_int64_t=no
14325 fi
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14327 fi
14328 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14329 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14330
14331 break
14332 done
14333 fi
14334 if test "$acx_cv_header_stdint" = stddef.h; then
14335 acx_cv_header_stdint_kind="(using manual detection)"
14336 fi
14337
14338 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14339 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14340 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14341 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14342 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14343
14344 # ----------------- Summarize what we found so far
14345
14346 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14347 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14348
14349 case `$as_basename gstdint.h ||
14350 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14351 Xgstdint.h : 'X\(//\)$' \| \
14352 Xgstdint.h : 'X\(/\)$' \| \
14353 . : '\(.\)' 2>/dev/null ||
14354 echo X/gstdint.h |
14355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14356 /^X\/\(\/\/\)$/{ s//\1/; q; }
14357 /^X\/\(\/\).*/{ s//\1/; q; }
14358 s/.*/./; q'` in
14359 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14360 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14361 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14362 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14363 *) ;;
14364 esac
14365
14366 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14367 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14368
14369 # ----------------- done included file, check C basic types --------
14370
14371 # Lacking an uintptr_t? Test size of void *
14372 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14373 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14374 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14375 if test "${ac_cv_type_void_p+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 $ac_includes_default
14385 int
14386 main ()
14387 {
14388 if ((void * *) 0)
14389 return 0;
14390 if (sizeof (void *))
14391 return 0;
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_type_void_p=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423 ac_cv_type_void_p=no
14424 fi
14425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14426 fi
14427 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14428 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14429
14430 echo "$as_me:$LINENO: checking size of void *" >&5
14431 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14432 if test "${ac_cv_sizeof_void_p+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435 if test "$ac_cv_type_void_p" = yes; then
14436 # The cast to unsigned long works around a bug in the HP C Compiler
14437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14439 # This bug is HP SR number 8606223364.
14440 if test "$cross_compiling" = yes; then
14441 # Depending upon the size, compute the lo and hi bounds.
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14449 int
14450 main ()
14451 {
14452 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14453 test_array [0] = 0
14454
14455 ;
14456 return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -z "$ac_c_werror_flag"
14469 || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14481 ac_lo=0 ac_mid=0
14482 while :; do
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h. */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 $ac_includes_default
14490 int
14491 main ()
14492 {
14493 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14494 test_array [0] = 0
14495
14496 ;
14497 return 0;
14498 }
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag"
14510 || test ! -s conftest.err'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest.$ac_objext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_hi=$ac_mid; break
14523 else
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14526
14527 ac_lo=`expr $ac_mid + 1`
14528 if test $ac_lo -le $ac_mid; then
14529 ac_lo= ac_hi=
14530 break
14531 fi
14532 ac_mid=`expr 2 '*' $ac_mid + 1`
14533 fi
14534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14535 done
14536 else
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 $ac_includes_default
14547 int
14548 main ()
14549 {
14550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14551 test_array [0] = 0
14552
14553 ;
14554 return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>conftest.er1
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_hi=-1 ac_mid=-1
14580 while :; do
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 int
14589 main ()
14590 {
14591 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14592 test_array [0] = 0
14593
14594 ;
14595 return 0;
14596 }
14597 _ACEOF
14598 rm -f conftest.$ac_objext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14600 (eval $ac_compile) 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag"
14608 || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_lo=$ac_mid; break
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 ac_hi=`expr '(' $ac_mid ')' - 1`
14626 if test $ac_mid -le $ac_hi; then
14627 ac_lo= ac_hi=
14628 break
14629 fi
14630 ac_mid=`expr 2 '*' $ac_mid`
14631 fi
14632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14633 done
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14637
14638 ac_lo= ac_hi=
14639 fi
14640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14641 fi
14642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 # Binary search between lo and hi bounds.
14644 while test "x$ac_lo" != "x$ac_hi"; do
14645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 $ac_includes_default
14653 int
14654 main ()
14655 {
14656 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14657 test_array [0] = 0
14658
14659 ;
14660 return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
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); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_hi=$ac_mid
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 ac_lo=`expr '(' $ac_mid ')' + 1`
14691 fi
14692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693 done
14694 case $ac_lo in
14695 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14696 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14697 See \`config.log' for more details." >&5
14698 echo "$as_me: error: cannot compute sizeof (void *), 77
14699 See \`config.log' for more details." >&2;}
14700 { (exit 1); exit 1; }; } ;;
14701 esac
14702 else
14703 if test "$cross_compiling" = yes; then
14704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14705 See \`config.log' for more details." >&5
14706 echo "$as_me: error: cannot run test program while cross compiling
14707 See \`config.log' for more details." >&2;}
14708 { (exit 1); exit 1; }; }
14709 else
14710 cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 $ac_includes_default
14717 long longval () { return (long) (sizeof (void *)); }
14718 unsigned long ulongval () { return (long) (sizeof (void *)); }
14719 #include <stdio.h>
14720 #include <stdlib.h>
14721 int
14722 main ()
14723 {
14724
14725 FILE *f = fopen ("conftest.val", "w");
14726 if (! f)
14727 exit (1);
14728 if (((long) (sizeof (void *))) < 0)
14729 {
14730 long i = longval ();
14731 if (i != ((long) (sizeof (void *))))
14732 exit (1);
14733 fprintf (f, "%ld\n", i);
14734 }
14735 else
14736 {
14737 unsigned long i = ulongval ();
14738 if (i != ((long) (sizeof (void *))))
14739 exit (1);
14740 fprintf (f, "%lu\n", i);
14741 }
14742 exit (ferror (f) || fclose (f) != 0);
14743
14744 ;
14745 return 0;
14746 }
14747 _ACEOF
14748 rm -f conftest$ac_exeext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14750 (eval $ac_link) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_sizeof_void_p=`cat conftest.val`
14760 else
14761 echo "$as_me: program exited with status $ac_status" >&5
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765 ( exit $ac_status )
14766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14767 See \`config.log' for more details." >&5
14768 echo "$as_me: error: cannot compute sizeof (void *), 77
14769 See \`config.log' for more details." >&2;}
14770 { (exit 1); exit 1; }; }
14771 fi
14772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14773 fi
14774 fi
14775 rm -f conftest.val
14776 else
14777 ac_cv_sizeof_void_p=0
14778 fi
14779 fi
14780 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14781 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14782 cat >>confdefs.h <<_ACEOF
14783 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14784 _ACEOF
14785
14786 ;;
14787 esac
14788
14789 # Lacking an uint64_t? Test size of long
14790 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14791 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14792 echo $ECHO_N "checking for long... $ECHO_C" >&6
14793 if test "${ac_cv_type_long+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796 cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802 $ac_includes_default
14803 int
14804 main ()
14805 {
14806 if ((long *) 0)
14807 return 0;
14808 if (sizeof (long))
14809 return 0;
14810 ;
14811 return 0;
14812 }
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_type_long=yes
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14840
14841 ac_cv_type_long=no
14842 fi
14843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14844 fi
14845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14846 echo "${ECHO_T}$ac_cv_type_long" >&6
14847
14848 echo "$as_me:$LINENO: checking size of long" >&5
14849 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14850 if test "${ac_cv_sizeof_long+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 if test "$ac_cv_type_long" = yes; then
14854 # The cast to unsigned long works around a bug in the HP C Compiler
14855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14857 # This bug is HP SR number 8606223364.
14858 if test "$cross_compiling" = yes; then
14859 # Depending upon the size, compute the lo and hi bounds.
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h. */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 $ac_includes_default
14867 int
14868 main ()
14869 {
14870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14871 test_array [0] = 0
14872
14873 ;
14874 return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879 (eval $ac_compile) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag"
14887 || test ! -s conftest.err'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; } &&
14893 { ac_try='test -s conftest.$ac_objext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_lo=0 ac_mid=0
14900 while :; do
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 int
14909 main ()
14910 {
14911 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14912 test_array [0] = 0
14913
14914 ;
14915 return 0;
14916 }
14917 _ACEOF
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_hi=$ac_mid; break
14941 else
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_lo=`expr $ac_mid + 1`
14946 if test $ac_lo -le $ac_mid; then
14947 ac_lo= ac_hi=
14948 break
14949 fi
14950 ac_mid=`expr 2 '*' $ac_mid + 1`
14951 fi
14952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14953 done
14954 else
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14965 int
14966 main ()
14967 {
14968 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14969 test_array [0] = 0
14970
14971 ;
14972 return 0;
14973 }
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_hi=-1 ac_mid=-1
14998 while :; do
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 $ac_includes_default
15006 int
15007 main ()
15008 {
15009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15010 test_array [0] = 0
15011
15012 ;
15013 return 0;
15014 }
15015 _ACEOF
15016 rm -f conftest.$ac_objext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15018 (eval $ac_compile) 2>conftest.er1
15019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_lo=$ac_mid; break
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_hi=`expr '(' $ac_mid ')' - 1`
15044 if test $ac_mid -le $ac_hi; then
15045 ac_lo= ac_hi=
15046 break
15047 fi
15048 ac_mid=`expr 2 '*' $ac_mid`
15049 fi
15050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15051 done
15052 else
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056 ac_lo= ac_hi=
15057 fi
15058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15059 fi
15060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061 # Binary search between lo and hi bounds.
15062 while test "x$ac_lo" != "x$ac_hi"; do
15063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h. */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 $ac_includes_default
15071 int
15072 main ()
15073 {
15074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15075 test_array [0] = 0
15076
15077 ;
15078 return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext
15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083 (eval $ac_compile) 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag"
15091 || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 ac_hi=$ac_mid
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108 ac_lo=`expr '(' $ac_mid ')' + 1`
15109 fi
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15111 done
15112 case $ac_lo in
15113 ?*) ac_cv_sizeof_long=$ac_lo;;
15114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15115 See \`config.log' for more details." >&5
15116 echo "$as_me: error: cannot compute sizeof (long), 77
15117 See \`config.log' for more details." >&2;}
15118 { (exit 1); exit 1; }; } ;;
15119 esac
15120 else
15121 if test "$cross_compiling" = yes; then
15122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15123 See \`config.log' for more details." >&5
15124 echo "$as_me: error: cannot run test program while cross compiling
15125 See \`config.log' for more details." >&2;}
15126 { (exit 1); exit 1; }; }
15127 else
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 $ac_includes_default
15135 long longval () { return (long) (sizeof (long)); }
15136 unsigned long ulongval () { return (long) (sizeof (long)); }
15137 #include <stdio.h>
15138 #include <stdlib.h>
15139 int
15140 main ()
15141 {
15142
15143 FILE *f = fopen ("conftest.val", "w");
15144 if (! f)
15145 exit (1);
15146 if (((long) (sizeof (long))) < 0)
15147 {
15148 long i = longval ();
15149 if (i != ((long) (sizeof (long))))
15150 exit (1);
15151 fprintf (f, "%ld\n", i);
15152 }
15153 else
15154 {
15155 unsigned long i = ulongval ();
15156 if (i != ((long) (sizeof (long))))
15157 exit (1);
15158 fprintf (f, "%lu\n", i);
15159 }
15160 exit (ferror (f) || fclose (f) != 0);
15161
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_sizeof_long=`cat conftest.val`
15178 else
15179 echo "$as_me: program exited with status $ac_status" >&5
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183 ( exit $ac_status )
15184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15185 See \`config.log' for more details." >&5
15186 echo "$as_me: error: cannot compute sizeof (long), 77
15187 See \`config.log' for more details." >&2;}
15188 { (exit 1); exit 1; }; }
15189 fi
15190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15191 fi
15192 fi
15193 rm -f conftest.val
15194 else
15195 ac_cv_sizeof_long=0
15196 fi
15197 fi
15198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15199 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15200 cat >>confdefs.h <<_ACEOF
15201 #define SIZEOF_LONG $ac_cv_sizeof_long
15202 _ACEOF
15203
15204 ;;
15205 esac
15206
15207 if test $acx_cv_header_stdint = stddef.h; then
15208 # Lacking a good header? Test size of everything and deduce all types.
15209 echo "$as_me:$LINENO: checking for int" >&5
15210 echo $ECHO_N "checking for int... $ECHO_C" >&6
15211 if test "${ac_cv_type_int+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h. */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 $ac_includes_default
15221 int
15222 main ()
15223 {
15224 if ((int *) 0)
15225 return 0;
15226 if (sizeof (int))
15227 return 0;
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234 (eval $ac_compile) 2>conftest.er1
15235 ac_status=$?
15236 grep -v '^ *+' conftest.er1 >conftest.err
15237 rm -f conftest.er1
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag"
15242 || test ! -s conftest.err'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_cv_type_int=yes
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259 ac_cv_type_int=no
15260 fi
15261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15262 fi
15263 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15264 echo "${ECHO_T}$ac_cv_type_int" >&6
15265
15266 echo "$as_me:$LINENO: checking size of int" >&5
15267 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15268 if test "${ac_cv_sizeof_int+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271 if test "$ac_cv_type_int" = yes; then
15272 # The cast to unsigned long works around a bug in the HP C Compiler
15273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15275 # This bug is HP SR number 8606223364.
15276 if test "$cross_compiling" = yes; then
15277 # Depending upon the size, compute the lo and hi bounds.
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h. */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 $ac_includes_default
15285 int
15286 main ()
15287 {
15288 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15289 test_array [0] = 0
15290
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag"
15305 || test ! -s conftest.err'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try='test -s conftest.$ac_objext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_lo=0 ac_mid=0
15318 while :; do
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 $ac_includes_default
15326 int
15327 main ()
15328 {
15329 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15330 test_array [0] = 0
15331
15332 ;
15333 return 0;
15334 }
15335 _ACEOF
15336 rm -f conftest.$ac_objext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15338 (eval $ac_compile) 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag"
15346 || test ! -s conftest.err'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest.$ac_objext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_hi=$ac_mid; break
15359 else
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 ac_lo=`expr $ac_mid + 1`
15364 if test $ac_lo -le $ac_mid; then
15365 ac_lo= ac_hi=
15366 break
15367 fi
15368 ac_mid=`expr 2 '*' $ac_mid + 1`
15369 fi
15370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15371 done
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 $ac_includes_default
15383 int
15384 main ()
15385 {
15386 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15387 test_array [0] = 0
15388
15389 ;
15390 return 0;
15391 }
15392 _ACEOF
15393 rm -f conftest.$ac_objext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15395 (eval $ac_compile) 2>conftest.er1
15396 ac_status=$?
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag"
15403 || test ! -s conftest.err'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest.$ac_objext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_hi=-1 ac_mid=-1
15416 while :; do
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15424 int
15425 main ()
15426 {
15427 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15428 test_array [0] = 0
15429
15430 ;
15431 return 0;
15432 }
15433 _ACEOF
15434 rm -f conftest.$ac_objext
15435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15436 (eval $ac_compile) 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag"
15444 || test ! -s conftest.err'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_lo=$ac_mid; break
15457 else
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_hi=`expr '(' $ac_mid ')' - 1`
15462 if test $ac_mid -le $ac_hi; then
15463 ac_lo= ac_hi=
15464 break
15465 fi
15466 ac_mid=`expr 2 '*' $ac_mid`
15467 fi
15468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15469 done
15470 else
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474 ac_lo= ac_hi=
15475 fi
15476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15477 fi
15478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15479 # Binary search between lo and hi bounds.
15480 while test "x$ac_lo" != "x$ac_hi"; do
15481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 $ac_includes_default
15489 int
15490 main ()
15491 {
15492 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15493 test_array [0] = 0
15494
15495 ;
15496 return 0;
15497 }
15498 _ACEOF
15499 rm -f conftest.$ac_objext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501 (eval $ac_compile) 2>conftest.er1
15502 ac_status=$?
15503 grep -v '^ *+' conftest.er1 >conftest.err
15504 rm -f conftest.er1
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag"
15509 || test ! -s conftest.err'
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); }; } &&
15515 { ac_try='test -s conftest.$ac_objext'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_hi=$ac_mid
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ac_lo=`expr '(' $ac_mid ')' + 1`
15527 fi
15528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15529 done
15530 case $ac_lo in
15531 ?*) ac_cv_sizeof_int=$ac_lo;;
15532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15533 See \`config.log' for more details." >&5
15534 echo "$as_me: error: cannot compute sizeof (int), 77
15535 See \`config.log' for more details." >&2;}
15536 { (exit 1); exit 1; }; } ;;
15537 esac
15538 else
15539 if test "$cross_compiling" = yes; then
15540 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15541 See \`config.log' for more details." >&5
15542 echo "$as_me: error: cannot run test program while cross compiling
15543 See \`config.log' for more details." >&2;}
15544 { (exit 1); exit 1; }; }
15545 else
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 $ac_includes_default
15553 long longval () { return (long) (sizeof (int)); }
15554 unsigned long ulongval () { return (long) (sizeof (int)); }
15555 #include <stdio.h>
15556 #include <stdlib.h>
15557 int
15558 main ()
15559 {
15560
15561 FILE *f = fopen ("conftest.val", "w");
15562 if (! f)
15563 exit (1);
15564 if (((long) (sizeof (int))) < 0)
15565 {
15566 long i = longval ();
15567 if (i != ((long) (sizeof (int))))
15568 exit (1);
15569 fprintf (f, "%ld\n", i);
15570 }
15571 else
15572 {
15573 unsigned long i = ulongval ();
15574 if (i != ((long) (sizeof (int))))
15575 exit (1);
15576 fprintf (f, "%lu\n", i);
15577 }
15578 exit (ferror (f) || fclose (f) != 0);
15579
15580 ;
15581 return 0;
15582 }
15583 _ACEOF
15584 rm -f conftest$ac_exeext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15586 (eval $ac_link) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_sizeof_int=`cat conftest.val`
15596 else
15597 echo "$as_me: program exited with status $ac_status" >&5
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ( exit $ac_status )
15602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15603 See \`config.log' for more details." >&5
15604 echo "$as_me: error: cannot compute sizeof (int), 77
15605 See \`config.log' for more details." >&2;}
15606 { (exit 1); exit 1; }; }
15607 fi
15608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609 fi
15610 fi
15611 rm -f conftest.val
15612 else
15613 ac_cv_sizeof_int=0
15614 fi
15615 fi
15616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15617 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15618 cat >>confdefs.h <<_ACEOF
15619 #define SIZEOF_INT $ac_cv_sizeof_int
15620 _ACEOF
15621
15622
15623 echo "$as_me:$LINENO: checking for short" >&5
15624 echo $ECHO_N "checking for short... $ECHO_C" >&6
15625 if test "${ac_cv_type_short+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628 cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h. */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 $ac_includes_default
15635 int
15636 main ()
15637 {
15638 if ((short *) 0)
15639 return 0;
15640 if (sizeof (short))
15641 return 0;
15642 ;
15643 return 0;
15644 }
15645 _ACEOF
15646 rm -f conftest.$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_type_short=yes
15669 else
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673 ac_cv_type_short=no
15674 fi
15675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15676 fi
15677 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15678 echo "${ECHO_T}$ac_cv_type_short" >&6
15679
15680 echo "$as_me:$LINENO: checking size of short" >&5
15681 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15682 if test "${ac_cv_sizeof_short+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 if test "$ac_cv_type_short" = yes; then
15686 # The cast to unsigned long works around a bug in the HP C Compiler
15687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15689 # This bug is HP SR number 8606223364.
15690 if test "$cross_compiling" = yes; then
15691 # Depending upon the size, compute the lo and hi bounds.
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15699 int
15700 main ()
15701 {
15702 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15703 test_array [0] = 0
15704
15705 ;
15706 return 0;
15707 }
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711 (eval $ac_compile) 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag"
15719 || test ! -s conftest.err'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_lo=0 ac_mid=0
15732 while :; do
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 int
15741 main ()
15742 {
15743 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15744 test_array [0] = 0
15745
15746 ;
15747 return 0;
15748 }
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag"
15760 || test ! -s conftest.err'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest.$ac_objext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_hi=$ac_mid; break
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15776
15777 ac_lo=`expr $ac_mid + 1`
15778 if test $ac_lo -le $ac_mid; then
15779 ac_lo= ac_hi=
15780 break
15781 fi
15782 ac_mid=`expr 2 '*' $ac_mid + 1`
15783 fi
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15785 done
15786 else
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15789
15790 cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h. */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 $ac_includes_default
15797 int
15798 main ()
15799 {
15800 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15801 test_array [0] = 0
15802
15803 ;
15804 return 0;
15805 }
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809 (eval $ac_compile) 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -z "$ac_c_werror_flag"
15817 || test ! -s conftest.err'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest.$ac_objext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_hi=-1 ac_mid=-1
15830 while :; do
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15838 int
15839 main ()
15840 {
15841 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15842 test_array [0] = 0
15843
15844 ;
15845 return 0;
15846 }
15847 _ACEOF
15848 rm -f conftest.$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag"
15858 || test ! -s conftest.err'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_lo=$ac_mid; break
15871 else
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875 ac_hi=`expr '(' $ac_mid ')' - 1`
15876 if test $ac_mid -le $ac_hi; then
15877 ac_lo= ac_hi=
15878 break
15879 fi
15880 ac_mid=`expr 2 '*' $ac_mid`
15881 fi
15882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15883 done
15884 else
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ac_lo= ac_hi=
15889 fi
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15891 fi
15892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15893 # Binary search between lo and hi bounds.
15894 while test "x$ac_lo" != "x$ac_hi"; do
15895 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h. */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 $ac_includes_default
15903 int
15904 main ()
15905 {
15906 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15907 test_array [0] = 0
15908
15909 ;
15910 return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_hi=$ac_mid
15936 else
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ac_lo=`expr '(' $ac_mid ')' + 1`
15941 fi
15942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943 done
15944 case $ac_lo in
15945 ?*) ac_cv_sizeof_short=$ac_lo;;
15946 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15947 See \`config.log' for more details." >&5
15948 echo "$as_me: error: cannot compute sizeof (short), 77
15949 See \`config.log' for more details." >&2;}
15950 { (exit 1); exit 1; }; } ;;
15951 esac
15952 else
15953 if test "$cross_compiling" = yes; then
15954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15955 See \`config.log' for more details." >&5
15956 echo "$as_me: error: cannot run test program while cross compiling
15957 See \`config.log' for more details." >&2;}
15958 { (exit 1); exit 1; }; }
15959 else
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 long longval () { return (long) (sizeof (short)); }
15968 unsigned long ulongval () { return (long) (sizeof (short)); }
15969 #include <stdio.h>
15970 #include <stdlib.h>
15971 int
15972 main ()
15973 {
15974
15975 FILE *f = fopen ("conftest.val", "w");
15976 if (! f)
15977 exit (1);
15978 if (((long) (sizeof (short))) < 0)
15979 {
15980 long i = longval ();
15981 if (i != ((long) (sizeof (short))))
15982 exit (1);
15983 fprintf (f, "%ld\n", i);
15984 }
15985 else
15986 {
15987 unsigned long i = ulongval ();
15988 if (i != ((long) (sizeof (short))))
15989 exit (1);
15990 fprintf (f, "%lu\n", i);
15991 }
15992 exit (ferror (f) || fclose (f) != 0);
15993
15994 ;
15995 return 0;
15996 }
15997 _ACEOF
15998 rm -f conftest$ac_exeext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000 (eval $ac_link) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_cv_sizeof_short=`cat conftest.val`
16010 else
16011 echo "$as_me: program exited with status $ac_status" >&5
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 ( exit $ac_status )
16016 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16017 See \`config.log' for more details." >&5
16018 echo "$as_me: error: cannot compute sizeof (short), 77
16019 See \`config.log' for more details." >&2;}
16020 { (exit 1); exit 1; }; }
16021 fi
16022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16023 fi
16024 fi
16025 rm -f conftest.val
16026 else
16027 ac_cv_sizeof_short=0
16028 fi
16029 fi
16030 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16031 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16032 cat >>confdefs.h <<_ACEOF
16033 #define SIZEOF_SHORT $ac_cv_sizeof_short
16034 _ACEOF
16035
16036
16037 echo "$as_me:$LINENO: checking for char" >&5
16038 echo $ECHO_N "checking for char... $ECHO_C" >&6
16039 if test "${ac_cv_type_char+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h. */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 $ac_includes_default
16049 int
16050 main ()
16051 {
16052 if ((char *) 0)
16053 return 0;
16054 if (sizeof (char))
16055 return 0;
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 rm -f conftest.$ac_objext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16062 (eval $ac_compile) 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag"
16070 || test ! -s conftest.err'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest.$ac_objext'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }; then
16082 ac_cv_type_char=yes
16083 else
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087 ac_cv_type_char=no
16088 fi
16089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16090 fi
16091 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16092 echo "${ECHO_T}$ac_cv_type_char" >&6
16093
16094 echo "$as_me:$LINENO: checking size of char" >&5
16095 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16096 if test "${ac_cv_sizeof_char+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099 if test "$ac_cv_type_char" = yes; then
16100 # The cast to unsigned long works around a bug in the HP C Compiler
16101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16103 # This bug is HP SR number 8606223364.
16104 if test "$cross_compiling" = yes; then
16105 # Depending upon the size, compute the lo and hi bounds.
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 $ac_includes_default
16113 int
16114 main ()
16115 {
16116 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16117 test_array [0] = 0
16118
16119 ;
16120 return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125 (eval $ac_compile) 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag"
16133 || test ! -s conftest.err'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16136 ac_status=$?
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest.$ac_objext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16142 ac_status=$?
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_lo=0 ac_mid=0
16146 while :; do
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h. */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 $ac_includes_default
16154 int
16155 main ()
16156 {
16157 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16158 test_array [0] = 0
16159
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -z "$ac_c_werror_flag"
16174 || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_hi=$ac_mid; break
16187 else
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 ac_lo=`expr $ac_mid + 1`
16192 if test $ac_lo -le $ac_mid; then
16193 ac_lo= ac_hi=
16194 break
16195 fi
16196 ac_mid=`expr 2 '*' $ac_mid + 1`
16197 fi
16198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16199 done
16200 else
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16211 int
16212 main ()
16213 {
16214 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16215 test_array [0] = 0
16216
16217 ;
16218 return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_hi=-1 ac_mid=-1
16244 while :; do
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16252 int
16253 main ()
16254 {
16255 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16256 test_array [0] = 0
16257
16258 ;
16259 return 0;
16260 }
16261 _ACEOF
16262 rm -f conftest.$ac_objext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16264 (eval $ac_compile) 2>conftest.er1
16265 ac_status=$?
16266 grep -v '^ *+' conftest.er1 >conftest.err
16267 rm -f conftest.er1
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -z "$ac_c_werror_flag"
16272 || test ! -s conftest.err'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 ac_lo=$ac_mid; break
16285 else
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 ac_hi=`expr '(' $ac_mid ')' - 1`
16290 if test $ac_mid -le $ac_hi; then
16291 ac_lo= ac_hi=
16292 break
16293 fi
16294 ac_mid=`expr 2 '*' $ac_mid`
16295 fi
16296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16297 done
16298 else
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 ac_lo= ac_hi=
16303 fi
16304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16305 fi
16306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16307 # Binary search between lo and hi bounds.
16308 while test "x$ac_lo" != "x$ac_hi"; do
16309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 $ac_includes_default
16317 int
16318 main ()
16319 {
16320 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16321 test_array [0] = 0
16322
16323 ;
16324 return 0;
16325 }
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag"
16337 || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try='test -s conftest.$ac_objext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_hi=$ac_mid
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354 ac_lo=`expr '(' $ac_mid ')' + 1`
16355 fi
16356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16357 done
16358 case $ac_lo in
16359 ?*) ac_cv_sizeof_char=$ac_lo;;
16360 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16361 See \`config.log' for more details." >&5
16362 echo "$as_me: error: cannot compute sizeof (char), 77
16363 See \`config.log' for more details." >&2;}
16364 { (exit 1); exit 1; }; } ;;
16365 esac
16366 else
16367 if test "$cross_compiling" = yes; then
16368 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16369 See \`config.log' for more details." >&5
16370 echo "$as_me: error: cannot run test program while cross compiling
16371 See \`config.log' for more details." >&2;}
16372 { (exit 1); exit 1; }; }
16373 else
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 long longval () { return (long) (sizeof (char)); }
16382 unsigned long ulongval () { return (long) (sizeof (char)); }
16383 #include <stdio.h>
16384 #include <stdlib.h>
16385 int
16386 main ()
16387 {
16388
16389 FILE *f = fopen ("conftest.val", "w");
16390 if (! f)
16391 exit (1);
16392 if (((long) (sizeof (char))) < 0)
16393 {
16394 long i = longval ();
16395 if (i != ((long) (sizeof (char))))
16396 exit (1);
16397 fprintf (f, "%ld\n", i);
16398 }
16399 else
16400 {
16401 unsigned long i = ulongval ();
16402 if (i != ((long) (sizeof (char))))
16403 exit (1);
16404 fprintf (f, "%lu\n", i);
16405 }
16406 exit (ferror (f) || fclose (f) != 0);
16407
16408 ;
16409 return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest$ac_exeext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414 (eval $ac_link) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_sizeof_char=`cat conftest.val`
16424 else
16425 echo "$as_me: program exited with status $ac_status" >&5
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ( exit $ac_status )
16430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16431 See \`config.log' for more details." >&5
16432 echo "$as_me: error: cannot compute sizeof (char), 77
16433 See \`config.log' for more details." >&2;}
16434 { (exit 1); exit 1; }; }
16435 fi
16436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16437 fi
16438 fi
16439 rm -f conftest.val
16440 else
16441 ac_cv_sizeof_char=0
16442 fi
16443 fi
16444 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16445 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16446 cat >>confdefs.h <<_ACEOF
16447 #define SIZEOF_CHAR $ac_cv_sizeof_char
16448 _ACEOF
16449
16450
16451
16452 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16453 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16454 case "$ac_cv_sizeof_char" in
16455 1) acx_cv_type_int8_t=char ;;
16456 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16457 echo "$as_me: error: no 8-bit type" >&2;}
16458 { (exit please report a bug); exit please report a bug; }; }
16459 esac
16460 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16461 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16462
16463 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16464 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16465 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16466 2:*) acx_cv_type_int16_t=int ;;
16467 *:2) acx_cv_type_int16_t=short ;;
16468 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16469 echo "$as_me: error: no 16-bit type" >&2;}
16470 { (exit please report a bug); exit please report a bug; }; }
16471 esac
16472 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16473 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16474
16475 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16476 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16477 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16478 4:*) acx_cv_type_int32_t=int ;;
16479 *:4) acx_cv_type_int32_t=long ;;
16480 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16481 echo "$as_me: error: no 32-bit type" >&2;}
16482 { (exit please report a bug); exit please report a bug; }; }
16483 esac
16484 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16485 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16486 fi
16487
16488 # These tests are here to make the output prettier
16489
16490 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16491 case "$ac_cv_sizeof_long" in
16492 8) acx_cv_type_int64_t=long ;;
16493 esac
16494 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16495 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16496 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16497 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16498 fi
16499
16500 # Now we can use the above types
16501
16502 if test "$ac_cv_type_uintptr_t" != yes; then
16503 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16504 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16505 case $ac_cv_sizeof_void_p in
16506 2) acx_cv_type_intptr_t=int16_t ;;
16507 4) acx_cv_type_intptr_t=int32_t ;;
16508 8) acx_cv_type_intptr_t=int64_t ;;
16509 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16510 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16511 { (exit please report a bug); exit please report a bug; }; }
16512 esac
16513 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16514 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16515 fi
16516
16517 # ----------------- done all checks, emit header -------------
16518 ac_config_commands="$ac_config_commands gstdint.h"
16519
16520
16521
16522
16523 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16524 # In case the pthread.h system header is not found, this test will fail.
16525 XPCFLAGS=""
16526 CFLAGS="$CFLAGS -pthread"
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h. */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 #include <pthread.h>
16534 void *g(void *d) { return NULL; }
16535 int
16536 main ()
16537 {
16538 pthread_t t; pthread_create(&t,NULL,g,NULL);
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545 (eval $ac_link) 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 XPCFLAGS=" -Wc,-pthread"
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16569
16570 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h. */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 #include <pthread.h>
16578 void *g(void *d) { return NULL; }
16579 int
16580 main ()
16581 {
16582 pthread_t t; pthread_create(&t,NULL,g,NULL);
16583 ;
16584 return 0;
16585 }
16586 _ACEOF
16587 rm -f conftest.$ac_objext conftest$ac_exeext
16588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16589 (eval $ac_link) 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag"
16597 || test ! -s conftest.err'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 :
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16613
16614 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16615 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16616 { (exit 1); exit 1; }; }
16617 fi
16618 rm -f conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16620 fi
16621 rm -f conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623
16624 # Check for functions needed.
16625
16626
16627 for ac_func in getloadavg clock_gettime
16628 do
16629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16630 echo "$as_me:$LINENO: checking for $ac_func" >&5
16631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16632 if eval "test \"\${$as_ac_var+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h. */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16643 #define $ac_func innocuous_$ac_func
16644
16645 /* System header to define __stub macros and hopefully few prototypes,
16646 which can conflict with char $ac_func (); below.
16647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16648 <limits.h> exists even on freestanding compilers. */
16649
16650 #ifdef __STDC__
16651 # include <limits.h>
16652 #else
16653 # include <assert.h>
16654 #endif
16655
16656 #undef $ac_func
16657
16658 /* Override any gcc2 internal prototype to avoid an error. */
16659 #ifdef __cplusplus
16660 extern "C"
16661 {
16662 #endif
16663 /* We use char because int might match the return type of a gcc2
16664 builtin and then its argument prototype would still apply. */
16665 char $ac_func ();
16666 /* The GNU C library defines this for functions which it implements
16667 to always fail with ENOSYS. Some functions are actually named
16668 something starting with __ and the normal name is an alias. */
16669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16670 choke me
16671 #else
16672 char (*f) () = $ac_func;
16673 #endif
16674 #ifdef __cplusplus
16675 }
16676 #endif
16677
16678 int
16679 main ()
16680 {
16681 return f != $ac_func;
16682 ;
16683 return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag"
16696 || test ! -s conftest.err'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 eval "$as_ac_var=yes"
16709 else
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713 eval "$as_ac_var=no"
16714 fi
16715 rm -f conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16717 fi
16718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16720 if test `eval echo '${'$as_ac_var'}'` = yes; then
16721 cat >>confdefs.h <<_ACEOF
16722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16723 _ACEOF
16724
16725 fi
16726 done
16727
16728
16729 # Check for broken semaphore implementation on darwin.
16730 # sem_init returns: sem_init error: Function not implemented.
16731 case "$host" in
16732 *-darwin*)
16733
16734 cat >>confdefs.h <<\_ACEOF
16735 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16736 _ACEOF
16737
16738 ;;
16739 esac
16740
16741 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16742 if test "${enable_linux_futex+set}" = set; then
16743 enableval="$enable_linux_futex"
16744
16745 case "$enableval" in
16746 yes|no|default) ;;
16747 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16748 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16749 { (exit 1); exit 1; }; } ;;
16750 esac
16751
16752 else
16753 enable_linux_futex=default
16754 fi;
16755
16756 case "$target" in
16757 *-linux*)
16758 case "$enable_linux_futex" in
16759 default)
16760 # If headers don't have gettid/futex syscalls definition, then
16761 # default to no, otherwise there will be compile time failures.
16762 # Otherwise, default to yes. If we don't detect we are
16763 # compiled/linked against NPTL and not cross-compiling, check
16764 # if programs are run by default against NPTL and if not, issue
16765 # a warning.
16766 enable_linux_futex=no
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <sys/syscall.h>
16774 int lk;
16775 int
16776 main ()
16777 {
16778 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16779 ;
16780 return 0;
16781 }
16782 _ACEOF
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16785 (eval $ac_link) 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest$ac_exeext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 save_LIBS="$LIBS"
16806 LIBS="-lpthread $LIBS"
16807 cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h. */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 #ifndef _GNU_SOURCE
16814 #define _GNU_SOURCE 1
16815 #endif
16816 #include <pthread.h>
16817 pthread_t th; void *status;
16818 int
16819 main ()
16820 {
16821 pthread_tryjoin_np (th, &status);
16822 ;
16823 return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 enable_linux_futex=yes
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 if test x$cross_compiling = xno; then
16854 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16855 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16856 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16857 If so, please configure with --disable-linux-futex" >&5
16858 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16859 If so, please configure with --disable-linux-futex" >&2;}
16860 fi
16861 fi
16862 enable_linux_futex=yes
16863 fi
16864 rm -f conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16866 LIBS="$save_LIBS"
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871 fi
16872 rm -f conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16874 ;;
16875 yes)
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 #include <sys/syscall.h>
16883 int lk;
16884 int
16885 main ()
16886 {
16887 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16888 ;
16889 return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag"
16902 || test ! -s conftest.err'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 :
16915 else
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16920 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16921 { (exit 1); exit 1; }; }
16922 fi
16923 rm -f conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16925 ;;
16926 esac
16927 ;;
16928 *)
16929 enable_linux_futex=no
16930 ;;
16931 esac
16932 if test x$enable_linux_futex = xyes; then
16933 :
16934 fi
16935
16936
16937 # Check for pthread_{,attr_}[sg]etaffinity_np.
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 #define _GNU_SOURCE
16945 #include <pthread.h>
16946 int
16947 main ()
16948 {
16949 cpu_set_t cpuset;
16950 pthread_attr_t attr;
16951 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16952 if (CPU_ISSET (0, &cpuset))
16953 CPU_SET (1, &cpuset);
16954 else
16955 CPU_ZERO (&cpuset);
16956 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16957 pthread_attr_init (&attr);
16958 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16959 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16960 ;
16961 return 0;
16962 }
16963 _ACEOF
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_PTHREAD_AFFINITY_NP 1
16989 _ACEOF
16990
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 fi
16996 rm -f conftest.err conftest.$ac_objext \
16997 conftest$ac_exeext conftest.$ac_ext
16998
16999 # At least for glibc, clock_gettime is in librt. But don't pull that
17000 # in if it still doesn't give us the function we want.
17001 if test $ac_cv_func_clock_gettime = no; then
17002 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17003 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17004 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007 ac_check_lib_save_LIBS=$LIBS
17008 LIBS="-lrt $LIBS"
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015
17016 /* Override any gcc2 internal prototype to avoid an error. */
17017 #ifdef __cplusplus
17018 extern "C"
17019 #endif
17020 /* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17022 char clock_gettime ();
17023 int
17024 main ()
17025 {
17026 clock_gettime ();
17027 ;
17028 return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_lib_rt_clock_gettime=yes
17054 else
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_lib_rt_clock_gettime=no
17059 fi
17060 rm -f conftest.err conftest.$ac_objext \
17061 conftest$ac_exeext conftest.$ac_ext
17062 LIBS=$ac_check_lib_save_LIBS
17063 fi
17064 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17065 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17066 if test $ac_cv_lib_rt_clock_gettime = yes; then
17067 LIBS="-lrt $LIBS"
17068
17069 cat >>confdefs.h <<\_ACEOF
17070 #define HAVE_CLOCK_GETTIME 1
17071 _ACEOF
17072
17073 fi
17074
17075 fi
17076
17077 # See if we support thread-local storage.
17078
17079 # Check whether --enable-tls or --disable-tls was given.
17080 if test "${enable_tls+set}" = set; then
17081 enableval="$enable_tls"
17082
17083 case "$enableval" in
17084 yes|no) ;;
17085 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17086 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17087 { (exit 1); exit 1; }; } ;;
17088 esac
17089
17090 else
17091 enable_tls=yes
17092 fi;
17093
17094 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17095 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17096 if test "${gcc_cv_have_tls+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 else
17099
17100 if test "$cross_compiling" = yes; then
17101 cat >conftest.$ac_ext <<_ACEOF
17102 __thread int a; int b; int main() { return a = b; }
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 gcc_cv_have_tls=yes
17127 else
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 gcc_cv_have_tls=no
17132 fi
17133 rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135
17136
17137 else
17138 cat >conftest.$ac_ext <<_ACEOF
17139 __thread int a; int b; int main() { return a = b; }
17140 _ACEOF
17141 rm -f conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 chktls_save_LDFLAGS="$LDFLAGS"
17153 LDFLAGS="-static $LDFLAGS"
17154 cat >conftest.$ac_ext <<_ACEOF
17155 int main() { return 0; }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17159 (eval $ac_link) 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag"
17167 || test ! -s conftest.err'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 if test "$cross_compiling" = yes; then
17180 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17181 See \`config.log' for more details." >&5
17182 echo "$as_me: error: cannot run test program while cross compiling
17183 See \`config.log' for more details." >&2;}
17184 { (exit 1); exit 1; }; }
17185 else
17186 cat >conftest.$ac_ext <<_ACEOF
17187 __thread int a; int b; int main() { return a = b; }
17188 _ACEOF
17189 rm -f conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 gcc_cv_have_tls=yes
17201 else
17202 echo "$as_me: program exited with status $ac_status" >&5
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17205
17206 ( exit $ac_status )
17207 gcc_cv_have_tls=no
17208 fi
17209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 gcc_cv_have_tls=yes
17216 fi
17217 rm -f conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LDFLAGS="$chktls_save_LDFLAGS"
17220 if test $gcc_cv_have_tls = yes; then
17221 chktls_save_CFLAGS="$CFLAGS"
17222 thread_CFLAGS=failed
17223 for flag in '' '-pthread' '-lpthread'; do
17224 CFLAGS="$flag $chktls_save_CFLAGS"
17225 cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h. */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <pthread.h>
17232 void *g(void *d) { return NULL; }
17233 int
17234 main ()
17235 {
17236 pthread_t t; pthread_create(&t,NULL,g,NULL);
17237 ;
17238 return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext conftest$ac_exeext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17243 (eval $ac_link) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest$ac_exeext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 thread_CFLAGS="$flag"
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 fi
17269 rm -f conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 if test "X$thread_CFLAGS" != Xfailed; then
17272 break
17273 fi
17274 done
17275 CFLAGS="$chktls_save_CFLAGS"
17276 if test "X$thread_CFLAGS" != Xfailed; then
17277 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17278 if test "$cross_compiling" = yes; then
17279 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17280 See \`config.log' for more details." >&5
17281 echo "$as_me: error: cannot run test program while cross compiling
17282 See \`config.log' for more details." >&2;}
17283 { (exit 1); exit 1; }; }
17284 else
17285 cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h. */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17291 #include <pthread.h>
17292 __thread int a;
17293 static int *a_in_other_thread;
17294 static void *
17295 thread_func (void *arg)
17296 {
17297 a_in_other_thread = &a;
17298 return (void *)0;
17299 }
17300 int
17301 main ()
17302 {
17303 pthread_t thread;
17304 void *thread_retval;
17305 int *a_in_main_thread;
17306 if (pthread_create (&thread, (pthread_attr_t *)0,
17307 thread_func, (void *)0))
17308 return 0;
17309 a_in_main_thread = &a;
17310 if (pthread_join (thread, &thread_retval))
17311 return 0;
17312 return (a_in_other_thread == a_in_main_thread);
17313 ;
17314 return 0;
17315 }
17316 _ACEOF
17317 rm -f conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 gcc_cv_have_tls=yes
17329 else
17330 echo "$as_me: program exited with status $ac_status" >&5
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334 ( exit $ac_status )
17335 gcc_cv_have_tls=no
17336 fi
17337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17338 fi
17339 CFLAGS="$chktls_save_CFLAGS"
17340 fi
17341 fi
17342 else
17343 echo "$as_me: program exited with status $ac_status" >&5
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347 ( exit $ac_status )
17348 gcc_cv_have_tls=no
17349 fi
17350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17351 fi
17352 fi
17353 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17354 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17355 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17356
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_TLS 1
17359 _ACEOF
17360
17361 fi
17362
17363 # See what sort of export controls are availible.
17364
17365 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17366 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17367 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370
17371 save_CFLAGS="$CFLAGS"
17372 CFLAGS="$CFLAGS -Werror"
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 void __attribute__((visibility("hidden"))) foo(void) { }
17380 int
17381 main ()
17382 {
17383
17384 ;
17385 return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390 (eval $ac_compile) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest.$ac_objext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 libgomp_cv_have_attribute_visibility=yes
17411 else
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 libgomp_cv_have_attribute_visibility=no
17416 fi
17417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17418 CFLAGS="$save_CFLAGS"
17419 fi
17420 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
17421 echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
17422 if test $libgomp_cv_have_attribute_visibility = yes; then
17423
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_ATTRIBUTE_VISIBILITY 1
17426 _ACEOF
17427
17428 fi
17429
17430 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17431 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17432 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435
17436 save_CFLAGS="$CFLAGS"
17437 CFLAGS="$CFLAGS -Werror"
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 void __attribute__((dllexport)) foo(void) { }
17445 int
17446 main ()
17447 {
17448
17449 ;
17450 return 0;
17451 }
17452 _ACEOF
17453 rm -f conftest.$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17456 ac_status=$?
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag"
17463 || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 libgomp_cv_have_attribute_dllexport=yes
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480 libgomp_cv_have_attribute_dllexport=no
17481 fi
17482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17483 CFLAGS="$save_CFLAGS"
17484 fi
17485 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
17486 echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
17487 if test $libgomp_cv_have_attribute_dllexport = yes; then
17488
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17491 _ACEOF
17492
17493 fi
17494
17495 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17496 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17497 if test "${libgomp_cv_have_attribute_alias+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507
17508 void foo(void) { }
17509 extern void bar(void) __attribute__((alias("foo")));
17510 int
17511 main ()
17512 {
17513 bar();
17514 ;
17515 return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 libgomp_cv_have_attribute_alias=yes
17541 else
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545 libgomp_cv_have_attribute_alias=no
17546 fi
17547 rm -f conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17549 fi
17550 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
17551 echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
17552 if test $libgomp_cv_have_attribute_alias = yes; then
17553
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_ATTRIBUTE_ALIAS 1
17556 _ACEOF
17557
17558 fi
17559
17560
17561 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17562 if test "${with_gnu_ld+set}" = set; then
17563 withval="$with_gnu_ld"
17564 test "$withval" = no || with_gnu_ld=yes
17565 else
17566 with_gnu_ld=no
17567 fi;
17568 ac_prog=ld
17569 if test "$GCC" = yes; then
17570 # Check if gcc -print-prog-name=ld gives a path.
17571 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17572 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17573 case $host in
17574 *-*-mingw*)
17575 # gcc leaves a trailing carriage return which upsets mingw
17576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17577 *)
17578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17579 esac
17580 case $ac_prog in
17581 # Accept absolute paths.
17582 [\\/]* | ?:[\\/]*)
17583 re_direlt='/[^/][^/]*/\.\./'
17584 # Canonicalize the pathname of ld
17585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17588 done
17589 test -z "$LD" && LD="$ac_prog"
17590 ;;
17591 "")
17592 # If it fails, then pretend we aren't using GCC.
17593 ac_prog=ld
17594 ;;
17595 *)
17596 # If it is relative, then search for the first ld in PATH.
17597 with_gnu_ld=unknown
17598 ;;
17599 esac
17600 elif test "$with_gnu_ld" = yes; then
17601 echo "$as_me:$LINENO: checking for GNU ld" >&5
17602 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17603 else
17604 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17605 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17606 fi
17607 if test "${lt_cv_path_LD+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610 if test -z "$LD"; then
17611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17612 for ac_dir in $PATH; do
17613 IFS="$lt_save_ifs"
17614 test -z "$ac_dir" && ac_dir=.
17615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17616 lt_cv_path_LD="$ac_dir/$ac_prog"
17617 # Check to see if the program is GNU ld. I'd rather use --version,
17618 # but apparently some variants of GNU ld only accept -v.
17619 # Break only if it was the GNU/non-GNU ld that we prefer.
17620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17621 *GNU* | *'with BFD'*)
17622 test "$with_gnu_ld" != no && break
17623 ;;
17624 *)
17625 test "$with_gnu_ld" != yes && break
17626 ;;
17627 esac
17628 fi
17629 done
17630 IFS="$lt_save_ifs"
17631 else
17632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17633 fi
17634 fi
17635
17636 LD="$lt_cv_path_LD"
17637 if test -n "$LD"; then
17638 echo "$as_me:$LINENO: result: $LD" >&5
17639 echo "${ECHO_T}$LD" >&6
17640 else
17641 echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17643 fi
17644 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17645 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17646 { (exit 1); exit 1; }; }
17647 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17648 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17649 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17653 case `$LD -v 2>&1 </dev/null` in
17654 *GNU* | *'with BFD'*)
17655 lt_cv_prog_gnu_ld=yes
17656 ;;
17657 *)
17658 lt_cv_prog_gnu_ld=no
17659 ;;
17660 esac
17661 fi
17662 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17663 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17664 with_gnu_ld=$lt_cv_prog_gnu_ld
17665
17666
17667
17668
17669
17670
17671
17672 # If we're not using GNU ld, then there's no point in even trying these
17673 # tests. Check for that first. We should have already tested for gld
17674 # by now (in libtool), but require it now just to be safe...
17675 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17676 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17677
17678
17679
17680 # The name set by libtool depends on the version of libtool. Shame on us
17681 # for depending on an impl detail, but c'est la vie. Older versions used
17682 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17683 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17684 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17685 # set (hence we're using an older libtool), then set it.
17686 if test x${with_gnu_ld+set} != xset; then
17687 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17688 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17689 with_gnu_ld=no
17690 else
17691 with_gnu_ld=$ac_cv_prog_gnu_ld
17692 fi
17693 fi
17694
17695 # Start by getting the version number. I think the libtool test already
17696 # does some of this, but throws away the result.
17697
17698 ldver=`$LD --version 2>/dev/null | head -1 | \
17699 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17700
17701 libgomp_gnu_ld_version=`echo $ldver | \
17702 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17703
17704 # Set --gc-sections.
17705 if test "$with_gnu_ld" = "notbroken"; then
17706 # GNU ld it is! Joy and bunny rabbits!
17707
17708 # All these tests are for C++; save the language and the compiler flags.
17709 # Need to do this so that g++ won't try to link in libstdc++
17710 ac_test_CFLAGS="${CFLAGS+set}"
17711 ac_save_CFLAGS="$CFLAGS"
17712 CFLAGS='-x c++ -Wl,--gc-sections'
17713
17714 # Check for -Wl,--gc-sections
17715 # XXX This test is broken at the moment, as symbols required for linking
17716 # are now in libsupc++ (not built yet). In addition, this test has
17717 # cored on solaris in the past. In addition, --gc-sections doesn't
17718 # really work at the moment (keeps on discarding used sections, first
17719 # .eh_frame and now some of the glibc sections for iconv).
17720 # Bzzzzt. Thanks for playing, maybe next time.
17721 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17722 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17723 if test "$cross_compiling" = yes; then
17724 ac_sectionLDflags=yes
17725 else
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732
17733 int main(void)
17734 {
17735 try { throw 1; }
17736 catch (...) { };
17737 return 0;
17738 }
17739
17740 _ACEOF
17741 rm -f conftest$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_sectionLDflags=yes
17753 else
17754 echo "$as_me: program exited with status $ac_status" >&5
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758 ( exit $ac_status )
17759 ac_sectionLDflags=no
17760 fi
17761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17762 fi
17763 if test "$ac_test_CFLAGS" = set; then
17764 CFLAGS="$ac_save_CFLAGS"
17765 else
17766 # this is the suspicious part
17767 CFLAGS=''
17768 fi
17769 if test "$ac_sectionLDflags" = "yes"; then
17770 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17771 fi
17772 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17773 echo "${ECHO_T}$ac_sectionLDflags" >&6
17774 fi
17775
17776 # Set linker optimization flags.
17777 if test x"$with_gnu_ld" = x"yes"; then
17778 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17779 fi
17780
17781
17782
17783
17784
17785
17786 # Check whether --enable-symvers or --disable-symvers was given.
17787 if test "${enable_symvers+set}" = set; then
17788 enableval="$enable_symvers"
17789
17790 case "$enableval" in
17791 yes|no|gnu) ;;
17792 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17793 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17794 { (exit 1); exit 1; }; } ;;
17795 esac
17796
17797 else
17798 enable_symvers=yes
17799 fi;
17800
17801
17802 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17803 # don't know enough about $LD to do tricks...
17804
17805 # FIXME The following test is too strict, in theory.
17806 if test $enable_shared = no ||
17807 test "x$LD" = x ||
17808 test x$libgomp_gnu_ld_version = x; then
17809 enable_symvers=no
17810 fi
17811
17812 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17813 if test $enable_symvers != no; then
17814 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17815 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17816 ac_save_CFLAGS="$CFLAGS"
17817 CFLAGS=' -lgcc_s'
17818 cat >conftest.$ac_ext <<_ACEOF
17819 /* confdefs.h. */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824
17825 int
17826 main ()
17827 {
17828 return 0;
17829 ;
17830 return 0;
17831 }
17832 _ACEOF
17833 rm -f conftest.$ac_objext conftest$ac_exeext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17835 (eval $ac_link) 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag"
17843 || test ! -s conftest.err'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest$ac_exeext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 libgomp_shared_libgcc=yes
17856 else
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860 libgomp_shared_libgcc=no
17861 fi
17862 rm -f conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864 CFLAGS="$ac_save_CFLAGS"
17865 if test $libgomp_shared_libgcc = no; then
17866 cat > conftest.c <<EOF
17867 int main (void) { return 0; }
17868 EOF
17869 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17870 -shared -shared-libgcc -o conftest.so \
17871 conftest.c -v 2>&1 >/dev/null \
17872 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17873 rm -f conftest.c conftest.so
17874 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17875 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882
17883 int
17884 main ()
17885 {
17886 return 0;
17887 ;
17888 return 0;
17889 }
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest$ac_exeext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 libgomp_shared_libgcc=yes
17914 else
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918 fi
17919 rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 CFLAGS="$ac_save_CFLAGS"
17922 fi
17923 fi
17924 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17925 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17926 fi
17927
17928 # For GNU ld, we need at least this version. The format is described in
17929 # LIBGOMP_CHECK_LINKER_FEATURES above.
17930 libgomp_min_gnu_ld_version=21400
17931 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17932
17933 # Check to see if unspecified "yes" value can win, given results above.
17934 # Change "yes" into either "no" or a style name.
17935 if test $enable_symvers = yes; then
17936 if test $with_gnu_ld = yes &&
17937 test $libgomp_shared_libgcc = yes;
17938 then
17939 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17940 enable_symvers=gnu
17941 else
17942 # The right tools, the right setup, but too old. Fallbacks?
17943 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17944 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17946 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17947 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17948 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17950 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17951 if test $libgomp_gnu_ld_version -ge 21200 ; then
17952 # Globbing fix is present, proper block support is not.
17953 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17954 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17955 enable_symvers=no
17956 else
17957 # 2.11 or older.
17958 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17959 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17960 enable_symvers=no
17961 fi
17962 fi
17963 else
17964 # just fail for now
17965 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17966 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17968 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17970 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17971 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17972 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17973 enable_symvers=no
17974 fi
17975 fi
17976
17977
17978
17979 if test $enable_symvers != no; then
17980 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17981 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17982 else
17983 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17984 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17985 fi
17986
17987 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17988 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17989
17990
17991 if test $enable_symvers = gnu; then
17992
17993 cat >>confdefs.h <<\_ACEOF
17994 #define LIBGOMP_GNU_SYMBOL_VERSIONING 1
17995 _ACEOF
17996
17997 fi
17998
17999 # Get target configury.
18000 . ${srcdir}/configure.tgt
18001 CFLAGS="$save_CFLAGS $XCFLAGS"
18002
18003 # Check for __sync_val_compare_and_swap, but only after the target has
18004 # had a chance to set XCFLAGS.
18005
18006 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18007 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
18008 if test "${libgomp_cv_have_sync_builtins+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011
18012 cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h. */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018
18019 int
18020 main ()
18021 {
18022 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18023 ;
18024 return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029 (eval $ac_link) 2>conftest.er1
18030 ac_status=$?
18031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
18036 { ac_try='test -z "$ac_c_werror_flag"
18037 || test ! -s conftest.err'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
18049 libgomp_cv_have_sync_builtins=yes
18050 else
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054 libgomp_cv_have_sync_builtins=no
18055 fi
18056 rm -f conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058 fi
18059 echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18060 echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18061 if test $libgomp_cv_have_sync_builtins = yes; then
18062
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE_SYNC_BUILTINS 1
18065 _ACEOF
18066
18067 fi
18068
18069 XCFLAGS="$XCFLAGS$XPCFLAGS"
18070
18071
18072
18073
18074
18075 # Cleanup and exit.
18076 CFLAGS="$save_CFLAGS"
18077 cat >confcache <<\_ACEOF
18078 # This file is a shell script that caches the results of configure
18079 # tests run on this system so they can be shared between configure
18080 # scripts and configure runs, see configure's option --config-cache.
18081 # It is not useful on other systems. If it contains results you don't
18082 # want to keep, you may remove or edit it.
18083 #
18084 # config.status only pays attention to the cache file if you give it
18085 # the --recheck option to rerun configure.
18086 #
18087 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18088 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18089 # following values.
18090
18091 _ACEOF
18092
18093 # The following way of writing the cache mishandles newlines in values,
18094 # but we know of no workaround that is simple, portable, and efficient.
18095 # So, don't put newlines in cache variables' values.
18096 # Ultrix sh set writes to stderr and can't be redirected directly,
18097 # and sets the high bit in the cache file unless we assign to the vars.
18098 {
18099 (set) 2>&1 |
18100 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18101 *ac_space=\ *)
18102 # `set' does not quote correctly, so add quotes (double-quote
18103 # substitution turns \\\\ into \\, and sed turns \\ into \).
18104 sed -n \
18105 "s/'/'\\\\''/g;
18106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18107 ;;
18108 *)
18109 # `set' quotes correctly as required by POSIX, so do not add quotes.
18110 sed -n \
18111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18112 ;;
18113 esac;
18114 } |
18115 sed '
18116 t clear
18117 : clear
18118 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18119 t end
18120 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18121 : end' >>confcache
18122 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18123 if test -w $cache_file; then
18124 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18125 cat confcache >$cache_file
18126 else
18127 echo "not updating unwritable cache $cache_file"
18128 fi
18129 fi
18130 rm -f confcache
18131
18132 if test ${multilib} = yes; then
18133 multilib_arg="--enable-multilib"
18134 else
18135 multilib_arg=
18136 fi
18137
18138 # Set up the set of libraries that we need to link against for libgomp.
18139 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18140 # which will force linkage against -lpthread (or equivalent for the system).
18141 # That's not 100% ideal, but about the best we can do easily.
18142 if test $enable_shared = yes; then
18143 link_gomp="-lgomp %{static: $LIBS}"
18144 else
18145 link_gomp="-lgomp $LIBS"
18146 fi
18147
18148
18149
18150
18151 if test "$ac_cv_fc_compiler_gnu" = yes; then
18152 USE_FORTRAN_TRUE=
18153 USE_FORTRAN_FALSE='#'
18154 else
18155 USE_FORTRAN_TRUE='#'
18156 USE_FORTRAN_FALSE=
18157 fi
18158
18159
18160 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18161 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18162 # the underscore here and update the PREREQ. If it doesn't, then we'll
18163 # need to copy this macro to our acinclude.m4.
18164 save_CFLAGS="$CFLAGS"
18165 for i in $config_path; do
18166 if test -f $srcdir/config/$i/omp-lock.h; then
18167 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
18168 break
18169 fi
18170 done
18171
18172 if test "$cross_compiling" = yes; then
18173 # Depending upon the size, compute the lo and hi bounds.
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180
18181 int
18182 main ()
18183 {
18184 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18185 test_array [0] = 0
18186
18187 ;
18188 return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18193 (eval $ac_compile) 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_c_werror_flag"
18201 || test ! -s conftest.err'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; } &&
18207 { ac_try='test -s conftest.$ac_objext'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 ac_lo=0 ac_mid=0
18214 while :; do
18215 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h. */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221
18222 int
18223 main ()
18224 {
18225 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18226 test_array [0] = 0
18227
18228 ;
18229 return 0;
18230 }
18231 _ACEOF
18232 rm -f conftest.$ac_objext
18233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18234 (eval $ac_compile) 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try='test -z "$ac_c_werror_flag"
18242 || test ! -s conftest.err'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try='test -s conftest.$ac_objext'
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 ac_hi=$ac_mid; break
18255 else
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18258
18259 ac_lo=`expr $ac_mid + 1`
18260 if test $ac_lo -le $ac_mid; then
18261 ac_lo= ac_hi=
18262 break
18263 fi
18264 ac_mid=`expr 2 '*' $ac_mid + 1`
18265 fi
18266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18267 done
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h. */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278
18279 int
18280 main ()
18281 {
18282 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18283 test_array [0] = 0
18284
18285 ;
18286 return 0;
18287 }
18288 _ACEOF
18289 rm -f conftest.$ac_objext
18290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18291 (eval $ac_compile) 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag"
18299 || test ! -s conftest.err'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest.$ac_objext'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
18311 ac_hi=-1 ac_mid=-1
18312 while :; do
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h. */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319
18320 int
18321 main ()
18322 {
18323 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18324 test_array [0] = 0
18325
18326 ;
18327 return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332 (eval $ac_compile) 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_c_werror_flag"
18340 || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 ac_lo=$ac_mid; break
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 ac_hi=`expr '(' $ac_mid ')' - 1`
18358 if test $ac_mid -le $ac_hi; then
18359 ac_lo= ac_hi=
18360 break
18361 fi
18362 ac_mid=`expr 2 '*' $ac_mid`
18363 fi
18364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18365 done
18366 else
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370 ac_lo= ac_hi=
18371 fi
18372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18373 fi
18374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18375 # Binary search between lo and hi bounds.
18376 while test "x$ac_lo" != "x$ac_hi"; do
18377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h. */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384
18385 int
18386 main ()
18387 {
18388 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18389 test_array [0] = 0
18390
18391 ;
18392 return 0;
18393 }
18394 _ACEOF
18395 rm -f conftest.$ac_objext
18396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>conftest.er1
18398 ac_status=$?
18399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_c_werror_flag"
18405 || test ! -s conftest.err'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest.$ac_objext'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 ac_hi=$ac_mid
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422 ac_lo=`expr '(' $ac_mid ')' + 1`
18423 fi
18424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18425 done
18426 case $ac_lo in
18427 ?*) OMP_LOCK_SIZE=$ac_lo;;
18428 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18429 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18430 { (exit 1); exit 1; }; } ;;
18431 esac
18432 else
18433 if test "$cross_compiling" = yes; then
18434 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18435 See \`config.log' for more details." >&5
18436 echo "$as_me: error: cannot run test program while cross compiling
18437 See \`config.log' for more details." >&2;}
18438 { (exit 1); exit 1; }; }
18439 else
18440 cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h. */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446
18447 long longval () { return sizeof (omp_lock_t); }
18448 unsigned long ulongval () { return sizeof (omp_lock_t); }
18449 #include <stdio.h>
18450 #include <stdlib.h>
18451 int
18452 main ()
18453 {
18454
18455 FILE *f = fopen ("conftest.val", "w");
18456 if (! f)
18457 exit (1);
18458 if ((sizeof (omp_lock_t)) < 0)
18459 {
18460 long i = longval ();
18461 if (i != (sizeof (omp_lock_t)))
18462 exit (1);
18463 fprintf (f, "%ld\n", i);
18464 }
18465 else
18466 {
18467 unsigned long i = ulongval ();
18468 if (i != (sizeof (omp_lock_t)))
18469 exit (1);
18470 fprintf (f, "%lu\n", i);
18471 }
18472 exit (ferror (f) || fclose (f) != 0);
18473
18474 ;
18475 return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest$ac_exeext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480 (eval $ac_link) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 OMP_LOCK_SIZE=`cat conftest.val`
18490 else
18491 echo "$as_me: program exited with status $ac_status" >&5
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 ( exit $ac_status )
18496 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18497 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18498 { (exit 1); exit 1; }; }
18499 fi
18500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18501 fi
18502 fi
18503 rm -f conftest.val
18504 if test "$cross_compiling" = yes; then
18505 # Depending upon the size, compute the lo and hi bounds.
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512
18513 int
18514 main ()
18515 {
18516 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18517 test_array [0] = 0
18518
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18525 (eval $ac_compile) 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag"
18533 || test ! -s conftest.err'
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); }; } &&
18539 { ac_try='test -s conftest.$ac_objext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_lo=0 ac_mid=0
18546 while :; do
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h. */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553
18554 int
18555 main ()
18556 {
18557 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18558 test_array [0] = 0
18559
18560 ;
18561 return 0;
18562 }
18563 _ACEOF
18564 rm -f conftest.$ac_objext
18565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18566 (eval $ac_compile) 2>conftest.er1
18567 ac_status=$?
18568 grep -v '^ *+' conftest.er1 >conftest.err
18569 rm -f conftest.er1
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
18573 { ac_try='test -z "$ac_c_werror_flag"
18574 || test ! -s conftest.err'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest.$ac_objext'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 ac_hi=$ac_mid; break
18587 else
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 ac_lo=`expr $ac_mid + 1`
18592 if test $ac_lo -le $ac_mid; then
18593 ac_lo= ac_hi=
18594 break
18595 fi
18596 ac_mid=`expr 2 '*' $ac_mid + 1`
18597 fi
18598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18599 done
18600 else
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610
18611 int
18612 main ()
18613 {
18614 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18615 test_array [0] = 0
18616
18617 ;
18618 return 0;
18619 }
18620 _ACEOF
18621 rm -f conftest.$ac_objext
18622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18623 (eval $ac_compile) 2>conftest.er1
18624 ac_status=$?
18625 grep -v '^ *+' conftest.er1 >conftest.err
18626 rm -f conftest.er1
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag"
18631 || test ! -s conftest.err'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest.$ac_objext'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_hi=-1 ac_mid=-1
18644 while :; do
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h. */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651
18652 int
18653 main ()
18654 {
18655 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18656 test_array [0] = 0
18657
18658 ;
18659 return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18664 (eval $ac_compile) 2>conftest.er1
18665 ac_status=$?
18666 grep -v '^ *+' conftest.er1 >conftest.err
18667 rm -f conftest.er1
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -z "$ac_c_werror_flag"
18672 || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest.$ac_objext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_lo=$ac_mid; break
18685 else
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 ac_hi=`expr '(' $ac_mid ')' - 1`
18690 if test $ac_mid -le $ac_hi; then
18691 ac_lo= ac_hi=
18692 break
18693 fi
18694 ac_mid=`expr 2 '*' $ac_mid`
18695 fi
18696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18697 done
18698 else
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702 ac_lo= ac_hi=
18703 fi
18704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18705 fi
18706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18707 # Binary search between lo and hi bounds.
18708 while test "x$ac_lo" != "x$ac_hi"; do
18709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h. */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18716
18717 int
18718 main ()
18719 {
18720 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18721 test_array [0] = 0
18722
18723 ;
18724 return 0;
18725 }
18726 _ACEOF
18727 rm -f conftest.$ac_objext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18729 (eval $ac_compile) 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -z "$ac_c_werror_flag"
18737 || test ! -s conftest.err'
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; } &&
18743 { ac_try='test -s conftest.$ac_objext'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 ac_hi=$ac_mid
18750 else
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754 ac_lo=`expr '(' $ac_mid ')' + 1`
18755 fi
18756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18757 done
18758 case $ac_lo in
18759 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18760 '') ;;
18761 esac
18762 else
18763 if test "$cross_compiling" = yes; then
18764 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18765 See \`config.log' for more details." >&5
18766 echo "$as_me: error: cannot run test program while cross compiling
18767 See \`config.log' for more details." >&2;}
18768 { (exit 1); exit 1; }; }
18769 else
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h. */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776
18777 long longval () { return __alignof (omp_lock_t); }
18778 unsigned long ulongval () { return __alignof (omp_lock_t); }
18779 #include <stdio.h>
18780 #include <stdlib.h>
18781 int
18782 main ()
18783 {
18784
18785 FILE *f = fopen ("conftest.val", "w");
18786 if (! f)
18787 exit (1);
18788 if ((__alignof (omp_lock_t)) < 0)
18789 {
18790 long i = longval ();
18791 if (i != (__alignof (omp_lock_t)))
18792 exit (1);
18793 fprintf (f, "%ld\n", i);
18794 }
18795 else
18796 {
18797 unsigned long i = ulongval ();
18798 if (i != (__alignof (omp_lock_t)))
18799 exit (1);
18800 fprintf (f, "%lu\n", i);
18801 }
18802 exit (ferror (f) || fclose (f) != 0);
18803
18804 ;
18805 return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest$ac_exeext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810 (eval $ac_link) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18816 ac_status=$?
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; }; then
18819 OMP_LOCK_ALIGN=`cat conftest.val`
18820 else
18821 echo "$as_me: program exited with status $ac_status" >&5
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 fi
18826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18827 fi
18828 fi
18829 rm -f conftest.val
18830 if test "$cross_compiling" = yes; then
18831 # Depending upon the size, compute the lo and hi bounds.
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838
18839 int
18840 main ()
18841 {
18842 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18843 test_array [0] = 0
18844
18845 ;
18846 return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest.$ac_objext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851 (eval $ac_compile) 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag"
18859 || test ! -s conftest.err'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest.$ac_objext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_lo=0 ac_mid=0
18872 while :; do
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h. */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18879
18880 int
18881 main ()
18882 {
18883 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18884 test_array [0] = 0
18885
18886 ;
18887 return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
18899 { ac_try='test -z "$ac_c_werror_flag"
18900 || test ! -s conftest.err'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest.$ac_objext'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912 ac_hi=$ac_mid; break
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 ac_lo=`expr $ac_mid + 1`
18918 if test $ac_lo -le $ac_mid; then
18919 ac_lo= ac_hi=
18920 break
18921 fi
18922 ac_mid=`expr 2 '*' $ac_mid + 1`
18923 fi
18924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18925 done
18926 else
18927 echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18929
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h. */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936
18937 int
18938 main ()
18939 {
18940 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18941 test_array [0] = 0
18942
18943 ;
18944 return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949 (eval $ac_compile) 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag"
18957 || test ! -s conftest.err'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest.$ac_objext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_hi=-1 ac_mid=-1
18970 while :; do
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977
18978 int
18979 main ()
18980 {
18981 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18982 test_array [0] = 0
18983
18984 ;
18985 return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext
18989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18990 (eval $ac_compile) 2>conftest.er1
18991 ac_status=$?
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag"
18998 || test ! -s conftest.err'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest.$ac_objext'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010 ac_lo=$ac_mid; break
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19014
19015 ac_hi=`expr '(' $ac_mid ')' - 1`
19016 if test $ac_mid -le $ac_hi; then
19017 ac_lo= ac_hi=
19018 break
19019 fi
19020 ac_mid=`expr 2 '*' $ac_mid`
19021 fi
19022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19023 done
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 ac_lo= ac_hi=
19029 fi
19030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19031 fi
19032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19033 # Binary search between lo and hi bounds.
19034 while test "x$ac_lo" != "x$ac_hi"; do
19035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h. */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042
19043 int
19044 main ()
19045 {
19046 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19047 test_array [0] = 0
19048
19049 ;
19050 return 0;
19051 }
19052 _ACEOF
19053 rm -f conftest.$ac_objext
19054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19055 (eval $ac_compile) 2>conftest.er1
19056 ac_status=$?
19057 grep -v '^ *+' conftest.er1 >conftest.err
19058 rm -f conftest.er1
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } &&
19062 { ac_try='test -z "$ac_c_werror_flag"
19063 || test ! -s conftest.err'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest.$ac_objext'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 ac_hi=$ac_mid
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_lo=`expr '(' $ac_mid ')' + 1`
19081 fi
19082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19083 done
19084 case $ac_lo in
19085 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19086 '') ;;
19087 esac
19088 else
19089 if test "$cross_compiling" = yes; then
19090 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19091 See \`config.log' for more details." >&5
19092 echo "$as_me: error: cannot run test program while cross compiling
19093 See \`config.log' for more details." >&2;}
19094 { (exit 1); exit 1; }; }
19095 else
19096 cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h. */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19102
19103 long longval () { return sizeof (omp_nest_lock_t); }
19104 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19105 #include <stdio.h>
19106 #include <stdlib.h>
19107 int
19108 main ()
19109 {
19110
19111 FILE *f = fopen ("conftest.val", "w");
19112 if (! f)
19113 exit (1);
19114 if ((sizeof (omp_nest_lock_t)) < 0)
19115 {
19116 long i = longval ();
19117 if (i != (sizeof (omp_nest_lock_t)))
19118 exit (1);
19119 fprintf (f, "%ld\n", i);
19120 }
19121 else
19122 {
19123 unsigned long i = ulongval ();
19124 if (i != (sizeof (omp_nest_lock_t)))
19125 exit (1);
19126 fprintf (f, "%lu\n", i);
19127 }
19128 exit (ferror (f) || fclose (f) != 0);
19129
19130 ;
19131 return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19146 else
19147 echo "$as_me: program exited with status $ac_status" >&5
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 fi
19152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19153 fi
19154 fi
19155 rm -f conftest.val
19156 if test "$cross_compiling" = yes; then
19157 # Depending upon the size, compute the lo and hi bounds.
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164
19165 int
19166 main ()
19167 {
19168 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19169 test_array [0] = 0
19170
19171 ;
19172 return 0;
19173 }
19174 _ACEOF
19175 rm -f conftest.$ac_objext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177 (eval $ac_compile) 2>conftest.er1
19178 ac_status=$?
19179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag"
19185 || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_lo=0 ac_mid=0
19198 while :; do
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h. */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205
19206 int
19207 main ()
19208 {
19209 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19210 test_array [0] = 0
19211
19212 ;
19213 return 0;
19214 }
19215 _ACEOF
19216 rm -f conftest.$ac_objext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19218 (eval $ac_compile) 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest.$ac_objext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_hi=$ac_mid; break
19239 else
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_lo=`expr $ac_mid + 1`
19244 if test $ac_lo -le $ac_mid; then
19245 ac_lo= ac_hi=
19246 break
19247 fi
19248 ac_mid=`expr 2 '*' $ac_mid + 1`
19249 fi
19250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19251 done
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262
19263 int
19264 main ()
19265 {
19266 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19267 test_array [0] = 0
19268
19269 ;
19270 return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_hi=-1 ac_mid=-1
19296 while :; do
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303
19304 int
19305 main ()
19306 {
19307 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19308 test_array [0] = 0
19309
19310 ;
19311 return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>conftest.er1
19317 ac_status=$?
19318 grep -v '^ *+' conftest.er1 >conftest.err
19319 rm -f conftest.er1
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
19323 { ac_try='test -z "$ac_c_werror_flag"
19324 || test ! -s conftest.err'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 ac_lo=$ac_mid; break
19337 else
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341 ac_hi=`expr '(' $ac_mid ')' - 1`
19342 if test $ac_mid -le $ac_hi; then
19343 ac_lo= ac_hi=
19344 break
19345 fi
19346 ac_mid=`expr 2 '*' $ac_mid`
19347 fi
19348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19349 done
19350 else
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_lo= ac_hi=
19355 fi
19356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19357 fi
19358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19359 # Binary search between lo and hi bounds.
19360 while test "x$ac_lo" != "x$ac_hi"; do
19361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368
19369 int
19370 main ()
19371 {
19372 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19373 test_array [0] = 0
19374
19375 ;
19376 return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_hi=$ac_mid
19402 else
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19405
19406 ac_lo=`expr '(' $ac_mid ')' + 1`
19407 fi
19408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19409 done
19410 case $ac_lo in
19411 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19412 '') ;;
19413 esac
19414 else
19415 if test "$cross_compiling" = yes; then
19416 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19417 See \`config.log' for more details." >&5
19418 echo "$as_me: error: cannot run test program while cross compiling
19419 See \`config.log' for more details." >&2;}
19420 { (exit 1); exit 1; }; }
19421 else
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h. */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428
19429 long longval () { return __alignof (omp_nest_lock_t); }
19430 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19431 #include <stdio.h>
19432 #include <stdlib.h>
19433 int
19434 main ()
19435 {
19436
19437 FILE *f = fopen ("conftest.val", "w");
19438 if (! f)
19439 exit (1);
19440 if ((__alignof (omp_nest_lock_t)) < 0)
19441 {
19442 long i = longval ();
19443 if (i != (__alignof (omp_nest_lock_t)))
19444 exit (1);
19445 fprintf (f, "%ld\n", i);
19446 }
19447 else
19448 {
19449 unsigned long i = ulongval ();
19450 if (i != (__alignof (omp_nest_lock_t)))
19451 exit (1);
19452 fprintf (f, "%lu\n", i);
19453 }
19454 exit (ferror (f) || fclose (f) != 0);
19455
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest$ac_exeext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462 (eval $ac_link) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19472 else
19473 echo "$as_me: program exited with status $ac_status" >&5
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 fi
19478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19479 fi
19480 fi
19481 rm -f conftest.val
19482 if test "$cross_compiling" = yes; then
19483 # Depending upon the size, compute the lo and hi bounds.
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490
19491 int
19492 main ()
19493 {
19494 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
19495 test_array [0] = 0
19496
19497 ;
19498 return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19503 (eval $ac_compile) 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -z "$ac_c_werror_flag"
19511 || test ! -s conftest.err'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest.$ac_objext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_lo=0 ac_mid=0
19524 while :; do
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531
19532 int
19533 main ()
19534 {
19535 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19536 test_array [0] = 0
19537
19538 ;
19539 return 0;
19540 }
19541 _ACEOF
19542 rm -f conftest.$ac_objext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19544 (eval $ac_compile) 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_hi=$ac_mid; break
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 ac_lo=`expr $ac_mid + 1`
19570 if test $ac_lo -le $ac_mid; then
19571 ac_lo= ac_hi=
19572 break
19573 fi
19574 ac_mid=`expr 2 '*' $ac_mid + 1`
19575 fi
19576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19577 done
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588
19589 int
19590 main ()
19591 {
19592 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
19593 test_array [0] = 0
19594
19595 ;
19596 return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19601 (eval $ac_compile) 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -z "$ac_c_werror_flag"
19609 || test ! -s conftest.err'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_hi=-1 ac_mid=-1
19622 while :; do
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h. */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629
19630 int
19631 main ()
19632 {
19633 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
19634 test_array [0] = 0
19635
19636 ;
19637 return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (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); } &&
19649 { ac_try='test -z "$ac_c_werror_flag"
19650 || test ! -s conftest.err'
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=$ac_mid; break
19663 else
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667 ac_hi=`expr '(' $ac_mid ')' - 1`
19668 if test $ac_mid -le $ac_hi; then
19669 ac_lo= ac_hi=
19670 break
19671 fi
19672 ac_mid=`expr 2 '*' $ac_mid`
19673 fi
19674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19675 done
19676 else
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 ac_lo= ac_hi=
19681 fi
19682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19683 fi
19684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19685 # Binary search between lo and hi bounds.
19686 while test "x$ac_lo" != "x$ac_hi"; do
19687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694
19695 int
19696 main ()
19697 {
19698 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19699 test_array [0] = 0
19700
19701 ;
19702 return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_hi=$ac_mid
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 ac_lo=`expr '(' $ac_mid ')' + 1`
19733 fi
19734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735 done
19736 case $ac_lo in
19737 ?*) OMP_LOCK_25_SIZE=$ac_lo;;
19738 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19739 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19740 { (exit 1); exit 1; }; } ;;
19741 esac
19742 else
19743 if test "$cross_compiling" = yes; then
19744 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19745 See \`config.log' for more details." >&5
19746 echo "$as_me: error: cannot run test program while cross compiling
19747 See \`config.log' for more details." >&2;}
19748 { (exit 1); exit 1; }; }
19749 else
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h. */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756
19757 long longval () { return sizeof (omp_lock_25_t); }
19758 unsigned long ulongval () { return sizeof (omp_lock_25_t); }
19759 #include <stdio.h>
19760 #include <stdlib.h>
19761 int
19762 main ()
19763 {
19764
19765 FILE *f = fopen ("conftest.val", "w");
19766 if (! f)
19767 exit (1);
19768 if ((sizeof (omp_lock_25_t)) < 0)
19769 {
19770 long i = longval ();
19771 if (i != (sizeof (omp_lock_25_t)))
19772 exit (1);
19773 fprintf (f, "%ld\n", i);
19774 }
19775 else
19776 {
19777 unsigned long i = ulongval ();
19778 if (i != (sizeof (omp_lock_25_t)))
19779 exit (1);
19780 fprintf (f, "%lu\n", i);
19781 }
19782 exit (ferror (f) || fclose (f) != 0);
19783
19784 ;
19785 return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 OMP_LOCK_25_SIZE=`cat conftest.val`
19800 else
19801 echo "$as_me: program exited with status $ac_status" >&5
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 ( exit $ac_status )
19806 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19807 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19808 { (exit 1); exit 1; }; }
19809 fi
19810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19811 fi
19812 fi
19813 rm -f conftest.val
19814 if test "$cross_compiling" = yes; then
19815 # Depending upon the size, compute the lo and hi bounds.
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822
19823 int
19824 main ()
19825 {
19826 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
19827 test_array [0] = 0
19828
19829 ;
19830 return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19835 (eval $ac_compile) 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest.$ac_objext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_lo=0 ac_mid=0
19856 while :; do
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h. */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863
19864 int
19865 main ()
19866 {
19867 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
19868 test_array [0] = 0
19869
19870 ;
19871 return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_c_werror_flag"
19884 || test ! -s conftest.err'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest.$ac_objext'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 ac_hi=$ac_mid; break
19897 else
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 ac_lo=`expr $ac_mid + 1`
19902 if test $ac_lo -le $ac_mid; then
19903 ac_lo= ac_hi=
19904 break
19905 fi
19906 ac_mid=`expr 2 '*' $ac_mid + 1`
19907 fi
19908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19909 done
19910 else
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920
19921 int
19922 main ()
19923 {
19924 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
19925 test_array [0] = 0
19926
19927 ;
19928 return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19933 (eval $ac_compile) 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_c_werror_flag"
19941 || test ! -s conftest.err'
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest.$ac_objext'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_hi=-1 ac_mid=-1
19954 while :; do
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h. */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961
19962 int
19963 main ()
19964 {
19965 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
19966 test_array [0] = 0
19967
19968 ;
19969 return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974 (eval $ac_compile) 2>conftest.er1
19975 ac_status=$?
19976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag"
19982 || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest.$ac_objext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_lo=$ac_mid; break
19995 else
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 ac_hi=`expr '(' $ac_mid ')' - 1`
20000 if test $ac_mid -le $ac_hi; then
20001 ac_lo= ac_hi=
20002 break
20003 fi
20004 ac_mid=`expr 2 '*' $ac_mid`
20005 fi
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 done
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 ac_lo= ac_hi=
20013 fi
20014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 fi
20016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20017 # Binary search between lo and hi bounds.
20018 while test "x$ac_lo" != "x$ac_hi"; do
20019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026
20027 int
20028 main ()
20029 {
20030 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20031 test_array [0] = 0
20032
20033 ;
20034 return 0;
20035 }
20036 _ACEOF
20037 rm -f conftest.$ac_objext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20039 (eval $ac_compile) 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag"
20047 || test ! -s conftest.err'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } &&
20053 { ac_try='test -s conftest.$ac_objext'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_hi=$ac_mid
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 ac_lo=`expr '(' $ac_mid ')' + 1`
20065 fi
20066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20067 done
20068 case $ac_lo in
20069 ?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20070 '') ;;
20071 esac
20072 else
20073 if test "$cross_compiling" = yes; then
20074 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20075 See \`config.log' for more details." >&5
20076 echo "$as_me: error: cannot run test program while cross compiling
20077 See \`config.log' for more details." >&2;}
20078 { (exit 1); exit 1; }; }
20079 else
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086
20087 long longval () { return __alignof (omp_lock_25_t); }
20088 unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20089 #include <stdio.h>
20090 #include <stdlib.h>
20091 int
20092 main ()
20093 {
20094
20095 FILE *f = fopen ("conftest.val", "w");
20096 if (! f)
20097 exit (1);
20098 if ((__alignof (omp_lock_25_t)) < 0)
20099 {
20100 long i = longval ();
20101 if (i != (__alignof (omp_lock_25_t)))
20102 exit (1);
20103 fprintf (f, "%ld\n", i);
20104 }
20105 else
20106 {
20107 unsigned long i = ulongval ();
20108 if (i != (__alignof (omp_lock_25_t)))
20109 exit (1);
20110 fprintf (f, "%lu\n", i);
20111 }
20112 exit (ferror (f) || fclose (f) != 0);
20113
20114 ;
20115 return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest$ac_exeext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20120 (eval $ac_link) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 OMP_LOCK_25_ALIGN=`cat conftest.val`
20130 else
20131 echo "$as_me: program exited with status $ac_status" >&5
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20134
20135 fi
20136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20137 fi
20138 fi
20139 rm -f conftest.val
20140 if test "$cross_compiling" = yes; then
20141 # Depending upon the size, compute the lo and hi bounds.
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148
20149 int
20150 main ()
20151 {
20152 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
20153 test_array [0] = 0
20154
20155 ;
20156 return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161 (eval $ac_compile) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
20168 { ac_try='test -z "$ac_c_werror_flag"
20169 || test ! -s conftest.err'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 ac_lo=0 ac_mid=0
20182 while :; do
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h. */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189
20190 int
20191 main ()
20192 {
20193 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20194 test_array [0] = 0
20195
20196 ;
20197 return 0;
20198 }
20199 _ACEOF
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>conftest.er1
20203 ac_status=$?
20204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest.$ac_objext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_hi=$ac_mid; break
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 ac_lo=`expr $ac_mid + 1`
20228 if test $ac_lo -le $ac_mid; then
20229 ac_lo= ac_hi=
20230 break
20231 fi
20232 ac_mid=`expr 2 '*' $ac_mid + 1`
20233 fi
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 done
20236 else
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h. */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246
20247 int
20248 main ()
20249 {
20250 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
20251 test_array [0] = 0
20252
20253 ;
20254 return 0;
20255 }
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259 (eval $ac_compile) 2>conftest.er1
20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_hi=-1 ac_mid=-1
20280 while :; do
20281 cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h. */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287
20288 int
20289 main ()
20290 {
20291 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
20292 test_array [0] = 0
20293
20294 ;
20295 return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest.$ac_objext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300 (eval $ac_compile) 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -z "$ac_c_werror_flag"
20308 || test ! -s conftest.err'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } &&
20314 { ac_try='test -s conftest.$ac_objext'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_lo=$ac_mid; break
20321 else
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325 ac_hi=`expr '(' $ac_mid ')' - 1`
20326 if test $ac_mid -le $ac_hi; then
20327 ac_lo= ac_hi=
20328 break
20329 fi
20330 ac_mid=`expr 2 '*' $ac_mid`
20331 fi
20332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20333 done
20334 else
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338 ac_lo= ac_hi=
20339 fi
20340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20341 fi
20342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20343 # Binary search between lo and hi bounds.
20344 while test "x$ac_lo" != "x$ac_hi"; do
20345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20346 cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h. */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20352
20353 int
20354 main ()
20355 {
20356 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20357 test_array [0] = 0
20358
20359 ;
20360 return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag"
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_hi=$ac_mid
20386 else
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ac_lo=`expr '(' $ac_mid ')' + 1`
20391 fi
20392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20393 done
20394 case $ac_lo in
20395 ?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
20396 '') ;;
20397 esac
20398 else
20399 if test "$cross_compiling" = yes; then
20400 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20401 See \`config.log' for more details." >&5
20402 echo "$as_me: error: cannot run test program while cross compiling
20403 See \`config.log' for more details." >&2;}
20404 { (exit 1); exit 1; }; }
20405 else
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412
20413 long longval () { return sizeof (omp_nest_lock_25_t); }
20414 unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
20415 #include <stdio.h>
20416 #include <stdlib.h>
20417 int
20418 main ()
20419 {
20420
20421 FILE *f = fopen ("conftest.val", "w");
20422 if (! f)
20423 exit (1);
20424 if ((sizeof (omp_nest_lock_25_t)) < 0)
20425 {
20426 long i = longval ();
20427 if (i != (sizeof (omp_nest_lock_25_t)))
20428 exit (1);
20429 fprintf (f, "%ld\n", i);
20430 }
20431 else
20432 {
20433 unsigned long i = ulongval ();
20434 if (i != (sizeof (omp_nest_lock_25_t)))
20435 exit (1);
20436 fprintf (f, "%lu\n", i);
20437 }
20438 exit (ferror (f) || fclose (f) != 0);
20439
20440 ;
20441 return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446 (eval $ac_link) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
20456 else
20457 echo "$as_me: program exited with status $ac_status" >&5
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 fi
20462 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20463 fi
20464 fi
20465 rm -f conftest.val
20466 if test "$cross_compiling" = yes; then
20467 # Depending upon the size, compute the lo and hi bounds.
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474
20475 int
20476 main ()
20477 {
20478 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
20479 test_array [0] = 0
20480
20481 ;
20482 return 0;
20483 }
20484 _ACEOF
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_lo=0 ac_mid=0
20508 while :; do
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515
20516 int
20517 main ()
20518 {
20519 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20520 test_array [0] = 0
20521
20522 ;
20523 return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20528 (eval $ac_compile) 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
20535 { ac_try='test -z "$ac_c_werror_flag"
20536 || test ! -s conftest.err'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20548 ac_hi=$ac_mid; break
20549 else
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553 ac_lo=`expr $ac_mid + 1`
20554 if test $ac_lo -le $ac_mid; then
20555 ac_lo= ac_hi=
20556 break
20557 fi
20558 ac_mid=`expr 2 '*' $ac_mid + 1`
20559 fi
20560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20561 done
20562 else
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h. */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20572
20573 int
20574 main ()
20575 {
20576 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
20577 test_array [0] = 0
20578
20579 ;
20580 return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20585 (eval $ac_compile) 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
20592 { ac_try='test -z "$ac_c_werror_flag"
20593 || test ! -s conftest.err'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; } &&
20599 { ac_try='test -s conftest.$ac_objext'
20600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601 (eval $ac_try) 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20605 ac_hi=-1 ac_mid=-1
20606 while :; do
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613
20614 int
20615 main ()
20616 {
20617 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
20618 test_array [0] = 0
20619
20620 ;
20621 return 0;
20622 }
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20626 (eval $ac_compile) 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag"
20634 || test ! -s conftest.err'
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20646 ac_lo=$ac_mid; break
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651 ac_hi=`expr '(' $ac_mid ')' - 1`
20652 if test $ac_mid -le $ac_hi; then
20653 ac_lo= ac_hi=
20654 break
20655 fi
20656 ac_mid=`expr 2 '*' $ac_mid`
20657 fi
20658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20659 done
20660 else
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 ac_lo= ac_hi=
20665 fi
20666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20667 fi
20668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20669 # Binary search between lo and hi bounds.
20670 while test "x$ac_lo" != "x$ac_hi"; do
20671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20672 cat >conftest.$ac_ext <<_ACEOF
20673 /* confdefs.h. */
20674 _ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678
20679 int
20680 main ()
20681 {
20682 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20683 test_array [0] = 0
20684
20685 ;
20686 return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20691 (eval $ac_compile) 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -z "$ac_c_werror_flag"
20699 || test ! -s conftest.err'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; } &&
20705 { ac_try='test -s conftest.$ac_objext'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 ac_hi=$ac_mid
20712 else
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 ac_lo=`expr '(' $ac_mid ')' + 1`
20717 fi
20718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20719 done
20720 case $ac_lo in
20721 ?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
20722 '') ;;
20723 esac
20724 else
20725 if test "$cross_compiling" = yes; then
20726 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20727 See \`config.log' for more details." >&5
20728 echo "$as_me: error: cannot run test program while cross compiling
20729 See \`config.log' for more details." >&2;}
20730 { (exit 1); exit 1; }; }
20731 else
20732 cat >conftest.$ac_ext <<_ACEOF
20733 /* confdefs.h. */
20734 _ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20738
20739 long longval () { return __alignof (omp_nest_lock_25_t); }
20740 unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
20741 #include <stdio.h>
20742 #include <stdlib.h>
20743 int
20744 main ()
20745 {
20746
20747 FILE *f = fopen ("conftest.val", "w");
20748 if (! f)
20749 exit (1);
20750 if ((__alignof (omp_nest_lock_25_t)) < 0)
20751 {
20752 long i = longval ();
20753 if (i != (__alignof (omp_nest_lock_25_t)))
20754 exit (1);
20755 fprintf (f, "%ld\n", i);
20756 }
20757 else
20758 {
20759 unsigned long i = ulongval ();
20760 if (i != (__alignof (omp_nest_lock_25_t)))
20761 exit (1);
20762 fprintf (f, "%lu\n", i);
20763 }
20764 exit (ferror (f) || fclose (f) != 0);
20765
20766 ;
20767 return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest$ac_exeext
20771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20772 (eval $ac_link) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
20782 else
20783 echo "$as_me: program exited with status $ac_status" >&5
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787 fi
20788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20789 fi
20790 fi
20791 rm -f conftest.val
20792
20793 # If the lock fits in an integer, then arrange for Fortran to use that
20794 # integer. If it doesn't, then arrange for Fortran to use a pointer.
20795 # Except that we don't have a way at present to multi-lib the installed
20796 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
20797 # actual target.
20798 OMP_LOCK_KIND=$OMP_LOCK_SIZE
20799 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
20800 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
20801 OMP_LOCK_KIND=8
20802 fi
20803 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
20804 OMP_NEST_LOCK_KIND=8
20805 fi
20806 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
20807 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
20808 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
20809 OMP_LOCK_25_KIND=8
20810 fi
20811 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
20812 OMP_NEST_LOCK_25_KIND=8
20813 fi
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827 CFLAGS="$save_CFLAGS"
20828
20829 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
20830
20831 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
20832
20833 cat >confcache <<\_ACEOF
20834 # This file is a shell script that caches the results of configure
20835 # tests run on this system so they can be shared between configure
20836 # scripts and configure runs, see configure's option --config-cache.
20837 # It is not useful on other systems. If it contains results you don't
20838 # want to keep, you may remove or edit it.
20839 #
20840 # config.status only pays attention to the cache file if you give it
20841 # the --recheck option to rerun configure.
20842 #
20843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20845 # following values.
20846
20847 _ACEOF
20848
20849 # The following way of writing the cache mishandles newlines in values,
20850 # but we know of no workaround that is simple, portable, and efficient.
20851 # So, don't put newlines in cache variables' values.
20852 # Ultrix sh set writes to stderr and can't be redirected directly,
20853 # and sets the high bit in the cache file unless we assign to the vars.
20854 {
20855 (set) 2>&1 |
20856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20857 *ac_space=\ *)
20858 # `set' does not quote correctly, so add quotes (double-quote
20859 # substitution turns \\\\ into \\, and sed turns \\ into \).
20860 sed -n \
20861 "s/'/'\\\\''/g;
20862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20863 ;;
20864 *)
20865 # `set' quotes correctly as required by POSIX, so do not add quotes.
20866 sed -n \
20867 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20868 ;;
20869 esac;
20870 } |
20871 sed '
20872 t clear
20873 : clear
20874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20875 t end
20876 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20877 : end' >>confcache
20878 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20879 if test -w $cache_file; then
20880 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20881 cat confcache >$cache_file
20882 else
20883 echo "not updating unwritable cache $cache_file"
20884 fi
20885 fi
20886 rm -f confcache
20887
20888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20889 # Let make expand exec_prefix.
20890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20891
20892 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20893 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20894 # trailing colons and then remove the whole line if VPATH becomes empty
20895 # (actually we leave an empty line to preserve line numbers).
20896 if test "x$srcdir" = x.; then
20897 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20898 s/:*\$(srcdir):*/:/;
20899 s/:*\${srcdir}:*/:/;
20900 s/:*@srcdir@:*/:/;
20901 s/^\([^=]*=[ ]*\):*/\1/;
20902 s/:*$//;
20903 s/^[^=]*=[ ]*$//;
20904 }'
20905 fi
20906
20907 DEFS=-DHAVE_CONFIG_H
20908
20909 ac_libobjs=
20910 ac_ltlibobjs=
20911 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20912 # 1. Remove the extension, and $U if already installed.
20913 ac_i=`echo "$ac_i" |
20914 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20915 # 2. Add them.
20916 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20917 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20918 done
20919 LIBOBJS=$ac_libobjs
20920
20921 LTLIBOBJS=$ac_ltlibobjs
20922
20923
20924 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
20925 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
20926 Usually this means the macro was only invoked conditionally." >&5
20927 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
20928 Usually this means the macro was only invoked conditionally." >&2;}
20929 { (exit 1); exit 1; }; }
20930 fi
20931 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20932 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20933 Usually this means the macro was only invoked conditionally." >&5
20934 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20935 Usually this means the macro was only invoked conditionally." >&2;}
20936 { (exit 1); exit 1; }; }
20937 fi
20938 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20939 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20940 Usually this means the macro was only invoked conditionally." >&5
20941 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20942 Usually this means the macro was only invoked conditionally." >&2;}
20943 { (exit 1); exit 1; }; }
20944 fi
20945 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
20946 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
20947 Usually this means the macro was only invoked conditionally." >&5
20948 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
20949 Usually this means the macro was only invoked conditionally." >&2;}
20950 { (exit 1); exit 1; }; }
20951 fi
20952 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20953 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20954 Usually this means the macro was only invoked conditionally." >&5
20955 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20956 Usually this means the macro was only invoked conditionally." >&2;}
20957 { (exit 1); exit 1; }; }
20958 fi
20959 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
20960 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
20961 Usually this means the macro was only invoked conditionally." >&5
20962 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
20963 Usually this means the macro was only invoked conditionally." >&2;}
20964 { (exit 1); exit 1; }; }
20965 fi
20966 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
20967 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
20968 Usually this means the macro was only invoked conditionally." >&5
20969 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
20970 Usually this means the macro was only invoked conditionally." >&2;}
20971 { (exit 1); exit 1; }; }
20972 fi
20973
20974 : ${CONFIG_STATUS=./config.status}
20975 ac_clean_files_save=$ac_clean_files
20976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20977 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20978 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20979 cat >$CONFIG_STATUS <<_ACEOF
20980 #! $SHELL
20981 # Generated by $as_me.
20982 # Run this file to recreate the current configuration.
20983 # Compiler output produced by configure, useful for debugging
20984 # configure, is in config.log if it exists.
20985
20986 debug=false
20987 ac_cs_recheck=false
20988 ac_cs_silent=false
20989 SHELL=\${CONFIG_SHELL-$SHELL}
20990 _ACEOF
20991
20992 cat >>$CONFIG_STATUS <<\_ACEOF
20993 ## --------------------- ##
20994 ## M4sh Initialization. ##
20995 ## --------------------- ##
20996
20997 # Be Bourne compatible
20998 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20999 emulate sh
21000 NULLCMD=:
21001 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21002 # is contrary to our usage. Disable this feature.
21003 alias -g '${1+"$@"}'='"$@"'
21004 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21005 set -o posix
21006 fi
21007 DUALCASE=1; export DUALCASE # for MKS sh
21008
21009 # Support unset when possible.
21010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21011 as_unset=unset
21012 else
21013 as_unset=false
21014 fi
21015
21016
21017 # Work around bugs in pre-3.0 UWIN ksh.
21018 $as_unset ENV MAIL MAILPATH
21019 PS1='$ '
21020 PS2='> '
21021 PS4='+ '
21022
21023 # NLS nuisances.
21024 for as_var in \
21025 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21026 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21027 LC_TELEPHONE LC_TIME
21028 do
21029 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21030 eval $as_var=C; export $as_var
21031 else
21032 $as_unset $as_var
21033 fi
21034 done
21035
21036 # Required to use basename.
21037 if expr a : '\(a\)' >/dev/null 2>&1; then
21038 as_expr=expr
21039 else
21040 as_expr=false
21041 fi
21042
21043 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21044 as_basename=basename
21045 else
21046 as_basename=false
21047 fi
21048
21049
21050 # Name of the executable.
21051 as_me=`$as_basename "$0" ||
21052 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21053 X"$0" : 'X\(//\)$' \| \
21054 X"$0" : 'X\(/\)$' \| \
21055 . : '\(.\)' 2>/dev/null ||
21056 echo X/"$0" |
21057 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21058 /^X\/\(\/\/\)$/{ s//\1/; q; }
21059 /^X\/\(\/\).*/{ s//\1/; q; }
21060 s/.*/./; q'`
21061
21062
21063 # PATH needs CR, and LINENO needs CR and PATH.
21064 # Avoid depending upon Character Ranges.
21065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21068 as_cr_digits='0123456789'
21069 as_cr_alnum=$as_cr_Letters$as_cr_digits
21070
21071 # The user is always right.
21072 if test "${PATH_SEPARATOR+set}" != set; then
21073 echo "#! /bin/sh" >conf$$.sh
21074 echo "exit 0" >>conf$$.sh
21075 chmod +x conf$$.sh
21076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21077 PATH_SEPARATOR=';'
21078 else
21079 PATH_SEPARATOR=:
21080 fi
21081 rm -f conf$$.sh
21082 fi
21083
21084
21085 as_lineno_1=$LINENO
21086 as_lineno_2=$LINENO
21087 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21088 test "x$as_lineno_1" != "x$as_lineno_2" &&
21089 test "x$as_lineno_3" = "x$as_lineno_2" || {
21090 # Find who we are. Look in the path if we contain no path at all
21091 # relative or not.
21092 case $0 in
21093 *[\\/]* ) as_myself=$0 ;;
21094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21095 for as_dir in $PATH
21096 do
21097 IFS=$as_save_IFS
21098 test -z "$as_dir" && as_dir=.
21099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21100 done
21101
21102 ;;
21103 esac
21104 # We did not find ourselves, most probably we were run as `sh COMMAND'
21105 # in which case we are not to be found in the path.
21106 if test "x$as_myself" = x; then
21107 as_myself=$0
21108 fi
21109 if test ! -f "$as_myself"; then
21110 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21111 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21112 { (exit 1); exit 1; }; }
21113 fi
21114 case $CONFIG_SHELL in
21115 '')
21116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21117 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21118 do
21119 IFS=$as_save_IFS
21120 test -z "$as_dir" && as_dir=.
21121 for as_base in sh bash ksh sh5; do
21122 case $as_dir in
21123 /*)
21124 if ("$as_dir/$as_base" -c '
21125 as_lineno_1=$LINENO
21126 as_lineno_2=$LINENO
21127 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21128 test "x$as_lineno_1" != "x$as_lineno_2" &&
21129 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21130 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21131 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21132 CONFIG_SHELL=$as_dir/$as_base
21133 export CONFIG_SHELL
21134 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21135 fi;;
21136 esac
21137 done
21138 done
21139 ;;
21140 esac
21141
21142 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21143 # uniformly replaced by the line number. The first 'sed' inserts a
21144 # line-number line before each line; the second 'sed' does the real
21145 # work. The second script uses 'N' to pair each line-number line
21146 # with the numbered line, and appends trailing '-' during
21147 # substitution so that $LINENO is not a special case at line end.
21148 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21149 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21150 sed '=' <$as_myself |
21151 sed '
21152 N
21153 s,$,-,
21154 : loop
21155 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21156 t loop
21157 s,-$,,
21158 s,^['$as_cr_digits']*\n,,
21159 ' >$as_me.lineno &&
21160 chmod +x $as_me.lineno ||
21161 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21162 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21163 { (exit 1); exit 1; }; }
21164
21165 # Don't try to exec as it changes $[0], causing all sort of problems
21166 # (the dirname of $[0] is not the place where we might find the
21167 # original and so on. Autoconf is especially sensible to this).
21168 . ./$as_me.lineno
21169 # Exit status is that of the last command.
21170 exit
21171 }
21172
21173
21174 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21175 *c*,-n*) ECHO_N= ECHO_C='
21176 ' ECHO_T=' ' ;;
21177 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21178 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21179 esac
21180
21181 if expr a : '\(a\)' >/dev/null 2>&1; then
21182 as_expr=expr
21183 else
21184 as_expr=false
21185 fi
21186
21187 rm -f conf$$ conf$$.exe conf$$.file
21188 echo >conf$$.file
21189 if ln -s conf$$.file conf$$ 2>/dev/null; then
21190 # We could just check for DJGPP; but this test a) works b) is more generic
21191 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21192 if test -f conf$$.exe; then
21193 # Don't use ln at all; we don't have any links
21194 as_ln_s='cp -p'
21195 else
21196 as_ln_s='ln -s'
21197 fi
21198 elif ln conf$$.file conf$$ 2>/dev/null; then
21199 as_ln_s=ln
21200 else
21201 as_ln_s='cp -p'
21202 fi
21203 rm -f conf$$ conf$$.exe conf$$.file
21204
21205 if mkdir -p . 2>/dev/null; then
21206 as_mkdir_p=:
21207 else
21208 test -d ./-p && rmdir ./-p
21209 as_mkdir_p=false
21210 fi
21211
21212 as_executable_p="test -f"
21213
21214 # Sed expression to map a string onto a valid CPP name.
21215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21216
21217 # Sed expression to map a string onto a valid variable name.
21218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21219
21220
21221 # IFS
21222 # We need space, tab and new line, in precisely that order.
21223 as_nl='
21224 '
21225 IFS=" $as_nl"
21226
21227 # CDPATH.
21228 $as_unset CDPATH
21229
21230 exec 6>&1
21231
21232 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21233 # report actual input values of CONFIG_FILES etc. instead of their
21234 # values after options handling. Logging --version etc. is OK.
21235 exec 5>>config.log
21236 {
21237 echo
21238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21239 ## Running $as_me. ##
21240 _ASBOX
21241 } >&5
21242 cat >&5 <<_CSEOF
21243
21244 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
21245 generated by GNU Autoconf 2.59. Invocation command line was
21246
21247 CONFIG_FILES = $CONFIG_FILES
21248 CONFIG_HEADERS = $CONFIG_HEADERS
21249 CONFIG_LINKS = $CONFIG_LINKS
21250 CONFIG_COMMANDS = $CONFIG_COMMANDS
21251 $ $0 $@
21252
21253 _CSEOF
21254 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21255 echo >&5
21256 _ACEOF
21257
21258 # Files that config.status was made for.
21259 if test -n "$ac_config_files"; then
21260 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21261 fi
21262
21263 if test -n "$ac_config_headers"; then
21264 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21265 fi
21266
21267 if test -n "$ac_config_links"; then
21268 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21269 fi
21270
21271 if test -n "$ac_config_commands"; then
21272 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21273 fi
21274
21275 cat >>$CONFIG_STATUS <<\_ACEOF
21276
21277 ac_cs_usage="\
21278 \`$as_me' instantiates files from templates according to the
21279 current configuration.
21280
21281 Usage: $0 [OPTIONS] [FILE]...
21282
21283 -h, --help print this help, then exit
21284 -V, --version print version number, then exit
21285 -q, --quiet do not print progress messages
21286 -d, --debug don't remove temporary files
21287 --recheck update $as_me by reconfiguring in the same conditions
21288 --file=FILE[:TEMPLATE]
21289 instantiate the configuration file FILE
21290 --header=FILE[:TEMPLATE]
21291 instantiate the configuration header FILE
21292
21293 Configuration files:
21294 $config_files
21295
21296 Configuration headers:
21297 $config_headers
21298
21299 Configuration commands:
21300 $config_commands
21301
21302 Report bugs to <bug-autoconf@gnu.org>."
21303 _ACEOF
21304
21305 cat >>$CONFIG_STATUS <<_ACEOF
21306 ac_cs_version="\\
21307 GNU OpenMP Runtime Library config.status 1.0
21308 configured by $0, generated by GNU Autoconf 2.59,
21309 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21310
21311 Copyright (C) 2003 Free Software Foundation, Inc.
21312 This config.status script is free software; the Free Software Foundation
21313 gives unlimited permission to copy, distribute and modify it."
21314 srcdir=$srcdir
21315 INSTALL="$INSTALL"
21316 _ACEOF
21317
21318 cat >>$CONFIG_STATUS <<\_ACEOF
21319 # If no file are specified by the user, then we need to provide default
21320 # value. By we need to know if files were specified by the user.
21321 ac_need_defaults=:
21322 while test $# != 0
21323 do
21324 case $1 in
21325 --*=*)
21326 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21327 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21328 ac_shift=:
21329 ;;
21330 -*)
21331 ac_option=$1
21332 ac_optarg=$2
21333 ac_shift=shift
21334 ;;
21335 *) # This is not an option, so the user has probably given explicit
21336 # arguments.
21337 ac_option=$1
21338 ac_need_defaults=false;;
21339 esac
21340
21341 case $ac_option in
21342 # Handling of the options.
21343 _ACEOF
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21346 ac_cs_recheck=: ;;
21347 --version | --vers* | -V )
21348 echo "$ac_cs_version"; exit 0 ;;
21349 --he | --h)
21350 # Conflict between --help and --header
21351 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21352 Try \`$0 --help' for more information." >&5
21353 echo "$as_me: error: ambiguous option: $1
21354 Try \`$0 --help' for more information." >&2;}
21355 { (exit 1); exit 1; }; };;
21356 --help | --hel | -h )
21357 echo "$ac_cs_usage"; exit 0 ;;
21358 --debug | --d* | -d )
21359 debug=: ;;
21360 --file | --fil | --fi | --f )
21361 $ac_shift
21362 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21363 ac_need_defaults=false;;
21364 --header | --heade | --head | --hea )
21365 $ac_shift
21366 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21367 ac_need_defaults=false;;
21368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21369 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21370 ac_cs_silent=: ;;
21371
21372 # This is an error.
21373 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21374 Try \`$0 --help' for more information." >&5
21375 echo "$as_me: error: unrecognized option: $1
21376 Try \`$0 --help' for more information." >&2;}
21377 { (exit 1); exit 1; }; } ;;
21378
21379 *) ac_config_targets="$ac_config_targets $1" ;;
21380
21381 esac
21382 shift
21383 done
21384
21385 ac_configure_extra_args=
21386
21387 if $ac_cs_silent; then
21388 exec 6>/dev/null
21389 ac_configure_extra_args="$ac_configure_extra_args --silent"
21390 fi
21391
21392 _ACEOF
21393 cat >>$CONFIG_STATUS <<_ACEOF
21394 if \$ac_cs_recheck; then
21395 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21396 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21397 fi
21398
21399 _ACEOF
21400
21401 cat >>$CONFIG_STATUS <<_ACEOF
21402 #
21403 # INIT-COMMANDS section.
21404 #
21405
21406
21407 srcdir="$srcdir"
21408 host="$host"
21409 target="$target"
21410 with_multisubdir="$with_multisubdir"
21411 with_multisrctop="$with_multisrctop"
21412 with_target_subdir="$with_target_subdir"
21413 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21414 multi_basedir="$multi_basedir"
21415 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21416 CC="$CC"
21417 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21418
21419
21420 # The HP-UX ksh and POSIX shell print the target directory to stdout
21421 # if CDPATH is set.
21422 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21423
21424 sed_quote_subst='$sed_quote_subst'
21425 double_quote_subst='$double_quote_subst'
21426 delay_variable_subst='$delay_variable_subst'
21427 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21428 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21429 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21430 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21431 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21432 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21433 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21434 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21435 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21436 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21437 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21438 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21439 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21440 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21441 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21442 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21443 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21444 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21445 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21446 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21447 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21448 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21449 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21450 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21451 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21452 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21453 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21454 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21455 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21456 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21457 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21458 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21459 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21460 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21461 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21462 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21463 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21464 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21465 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21466 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21467 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21468 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21469 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21470 lt_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"`'
21471 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21472 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21473 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21474 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21475 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21476 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21477 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21478 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21479 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21480 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21481 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21482 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21483 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21484 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21485 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21486 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21487 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21488 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21489 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21490 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21491 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21492 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21493 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21494 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21495 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21496 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21497 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21498 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21499 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21500 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21501 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21502 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21503 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21504 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21505 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21506 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21507 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21508 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21509 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21510 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21511 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21512 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21513 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21514 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21515 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21516 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21517 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21518 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21519 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21520 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21521 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21522 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21523 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21524 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21525 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21526 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21527 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21528 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21529 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21530 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21531 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21532 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21533 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21534 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21535 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21536 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21537 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21538 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21539 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21540 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21541 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21542 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21543 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
21544 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21545 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
21546 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
21547 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21548 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
21549 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21550 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
21551 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
21552 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
21553 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
21554 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21555 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21556 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
21557 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21558 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21559 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21560 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21561 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21562 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21563 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21564 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21565 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21566 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21567 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21568 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
21569 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
21570 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
21571 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
21572 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
21573 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21574 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
21575 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
21576 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21577 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
21578 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21579 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21580 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21581 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21582 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21583 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
21584 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21585 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21586 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21587 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21588 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21589
21590 LTCC='$LTCC'
21591 LTCFLAGS='$LTCFLAGS'
21592 compiler='$compiler_DEFAULT'
21593
21594 # Quote evaled strings.
21595 for var in SED \
21596 GREP \
21597 EGREP \
21598 FGREP \
21599 LD \
21600 NM \
21601 LN_S \
21602 lt_SP2NL \
21603 lt_NL2SP \
21604 reload_flag \
21605 deplibs_check_method \
21606 file_magic_cmd \
21607 AR \
21608 AR_FLAGS \
21609 STRIP \
21610 RANLIB \
21611 CC \
21612 CFLAGS \
21613 compiler \
21614 lt_cv_sys_global_symbol_pipe \
21615 lt_cv_sys_global_symbol_to_cdecl \
21616 lt_cv_sys_global_symbol_to_c_name_address \
21617 SHELL \
21618 ECHO \
21619 lt_prog_compiler_no_builtin_flag \
21620 lt_prog_compiler_wl \
21621 lt_prog_compiler_pic \
21622 lt_prog_compiler_static \
21623 lt_cv_prog_compiler_c_o \
21624 need_locks \
21625 shrext_cmds \
21626 export_dynamic_flag_spec \
21627 whole_archive_flag_spec \
21628 compiler_needs_object \
21629 with_gnu_ld \
21630 allow_undefined_flag \
21631 no_undefined_flag \
21632 hardcode_libdir_flag_spec \
21633 hardcode_libdir_flag_spec_ld \
21634 hardcode_libdir_separator \
21635 fix_srcfile_path \
21636 exclude_expsyms \
21637 include_expsyms \
21638 file_list_spec \
21639 variables_saved_for_relink \
21640 libname_spec \
21641 library_names_spec \
21642 soname_spec \
21643 finish_eval \
21644 old_striplib \
21645 striplib \
21646 predep_objects \
21647 postdep_objects \
21648 predeps \
21649 postdeps \
21650 compiler_lib_search_path \
21651 LD_FC \
21652 compiler_FC \
21653 lt_prog_compiler_no_builtin_flag_FC \
21654 lt_prog_compiler_wl_FC \
21655 lt_prog_compiler_pic_FC \
21656 lt_prog_compiler_static_FC \
21657 lt_cv_prog_compiler_c_o_FC \
21658 export_dynamic_flag_spec_FC \
21659 whole_archive_flag_spec_FC \
21660 compiler_needs_object_FC \
21661 with_gnu_ld_FC \
21662 allow_undefined_flag_FC \
21663 no_undefined_flag_FC \
21664 hardcode_libdir_flag_spec_FC \
21665 hardcode_libdir_flag_spec_ld_FC \
21666 hardcode_libdir_separator_FC \
21667 fix_srcfile_path_FC \
21668 exclude_expsyms_FC \
21669 include_expsyms_FC \
21670 file_list_spec_FC \
21671 predep_objects_FC \
21672 postdep_objects_FC \
21673 predeps_FC \
21674 postdeps_FC \
21675 compiler_lib_search_path_FC; do
21676 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21677 *[\\\\\\\`\\"\\\$]*)
21678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21679 ;;
21680 *)
21681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21682 ;;
21683 esac
21684 done
21685
21686 # Double-quote double-evaled strings.
21687 for var in reload_cmds \
21688 old_postinstall_cmds \
21689 old_postuninstall_cmds \
21690 old_archive_cmds \
21691 extract_expsyms_cmds \
21692 old_archive_from_new_cmds \
21693 old_archive_from_expsyms_cmds \
21694 archive_cmds \
21695 archive_expsym_cmds \
21696 module_cmds \
21697 module_expsym_cmds \
21698 export_symbols_cmds \
21699 prelink_cmds \
21700 postinstall_cmds \
21701 postuninstall_cmds \
21702 finish_cmds \
21703 sys_lib_search_path_spec \
21704 sys_lib_dlsearch_path_spec \
21705 old_archive_cmds_FC \
21706 old_archive_from_new_cmds_FC \
21707 old_archive_from_expsyms_cmds_FC \
21708 archive_cmds_FC \
21709 archive_expsym_cmds_FC \
21710 module_cmds_FC \
21711 module_expsym_cmds_FC \
21712 export_symbols_cmds_FC \
21713 prelink_cmds_FC; do
21714 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21715 *[\\\\\\\`\\"\\\$]*)
21716 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21717 ;;
21718 *)
21719 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21720 ;;
21721 esac
21722 done
21723
21724 # Fix-up fallback echo if it was mangled by the above quoting rules.
21725 case \$lt_ECHO in
21726 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21727 ;;
21728 esac
21729
21730 ac_aux_dir='$ac_aux_dir'
21731 xsi_shell='$xsi_shell'
21732 lt_shell_append='$lt_shell_append'
21733
21734 # See if we are running on zsh, and set the options which allow our
21735 # commands through without removal of \ escapes INIT.
21736 if test -n "\${ZSH_VERSION+set}" ; then
21737 setopt NO_GLOB_SUBST
21738 fi
21739
21740
21741 PACKAGE='$PACKAGE'
21742 VERSION='$VERSION'
21743 TIMESTAMP='$TIMESTAMP'
21744 RM='$RM'
21745 ofile='$ofile'
21746
21747
21748
21749
21750
21751
21752 GCC="$GCC"
21753 CC="$CC"
21754 acx_cv_header_stdint="$acx_cv_header_stdint"
21755 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21756 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21757 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21758 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21759 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21760 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21761 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21762 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21763 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21764 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21765 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21766 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21767 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21768
21769
21770 _ACEOF
21771
21772
21773
21774 cat >>$CONFIG_STATUS <<\_ACEOF
21775 for ac_config_target in $ac_config_targets
21776 do
21777 case "$ac_config_target" in
21778 # Handling of arguments.
21779 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
21780 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
21781 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
21782 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
21783 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21784 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
21785 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
21786 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21787 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21788 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21789 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
21790 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21791 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21792 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21793 { (exit 1); exit 1; }; };;
21794 esac
21795 done
21796
21797 # If the user did not use the arguments to specify the items to instantiate,
21798 # then the envvar interface is used. Set only those that are not.
21799 # We use the long form for the default assignment because of an extremely
21800 # bizarre bug on SunOS 4.1.3.
21801 if $ac_need_defaults; then
21802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21805 fi
21806
21807 # Have a temporary directory for convenience. Make it in the build tree
21808 # simply because there is no reason to put it here, and in addition,
21809 # creating and moving files from /tmp can sometimes cause problems.
21810 # Create a temporary directory, and hook for its removal unless debugging.
21811 $debug ||
21812 {
21813 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21814 trap '{ (exit 1); exit 1; }' 1 2 13 15
21815 }
21816
21817 # Create a (secure) tmp directory for tmp files.
21818
21819 {
21820 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21821 test -n "$tmp" && test -d "$tmp"
21822 } ||
21823 {
21824 tmp=./confstat$$-$RANDOM
21825 (umask 077 && mkdir $tmp)
21826 } ||
21827 {
21828 echo "$me: cannot create a temporary directory in ." >&2
21829 { (exit 1); exit 1; }
21830 }
21831
21832 _ACEOF
21833
21834 cat >>$CONFIG_STATUS <<_ACEOF
21835
21836 #
21837 # CONFIG_FILES section.
21838 #
21839
21840 # No need to generate the scripts if there are no CONFIG_FILES.
21841 # This happens for instance when ./config.status config.h
21842 if test -n "\$CONFIG_FILES"; then
21843 # Protect against being on the right side of a sed subst in config.status.
21844 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21845 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21846 s,@SHELL@,$SHELL,;t t
21847 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21848 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21849 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21850 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21851 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21852 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21853 s,@exec_prefix@,$exec_prefix,;t t
21854 s,@prefix@,$prefix,;t t
21855 s,@program_transform_name@,$program_transform_name,;t t
21856 s,@bindir@,$bindir,;t t
21857 s,@sbindir@,$sbindir,;t t
21858 s,@libexecdir@,$libexecdir,;t t
21859 s,@datadir@,$datadir,;t t
21860 s,@sysconfdir@,$sysconfdir,;t t
21861 s,@sharedstatedir@,$sharedstatedir,;t t
21862 s,@localstatedir@,$localstatedir,;t t
21863 s,@libdir@,$libdir,;t t
21864 s,@includedir@,$includedir,;t t
21865 s,@oldincludedir@,$oldincludedir,;t t
21866 s,@infodir@,$infodir,;t t
21867 s,@mandir@,$mandir,;t t
21868 s,@build_alias@,$build_alias,;t t
21869 s,@host_alias@,$host_alias,;t t
21870 s,@target_alias@,$target_alias,;t t
21871 s,@DEFS@,$DEFS,;t t
21872 s,@ECHO_C@,$ECHO_C,;t t
21873 s,@ECHO_N@,$ECHO_N,;t t
21874 s,@ECHO_T@,$ECHO_T,;t t
21875 s,@LIBS@,$LIBS,;t t
21876 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
21877 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
21878 s,@build@,$build,;t t
21879 s,@build_cpu@,$build_cpu,;t t
21880 s,@build_vendor@,$build_vendor,;t t
21881 s,@build_os@,$build_os,;t t
21882 s,@host@,$host,;t t
21883 s,@host_cpu@,$host_cpu,;t t
21884 s,@host_vendor@,$host_vendor,;t t
21885 s,@host_os@,$host_os,;t t
21886 s,@target@,$target,;t t
21887 s,@target_cpu@,$target_cpu,;t t
21888 s,@target_vendor@,$target_vendor,;t t
21889 s,@target_os@,$target_os,;t t
21890 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21891 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21892 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21893 s,@CYGPATH_W@,$CYGPATH_W,;t t
21894 s,@PACKAGE@,$PACKAGE,;t t
21895 s,@VERSION@,$VERSION,;t t
21896 s,@ACLOCAL@,$ACLOCAL,;t t
21897 s,@AUTOCONF@,$AUTOCONF,;t t
21898 s,@AUTOMAKE@,$AUTOMAKE,;t t
21899 s,@AUTOHEADER@,$AUTOHEADER,;t t
21900 s,@MAKEINFO@,$MAKEINFO,;t t
21901 s,@install_sh@,$install_sh,;t t
21902 s,@STRIP@,$STRIP,;t t
21903 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21904 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21905 s,@mkdir_p@,$mkdir_p,;t t
21906 s,@AWK@,$AWK,;t t
21907 s,@SET_MAKE@,$SET_MAKE,;t t
21908 s,@am__leading_dot@,$am__leading_dot,;t t
21909 s,@AMTAR@,$AMTAR,;t t
21910 s,@am__tar@,$am__tar,;t t
21911 s,@am__untar@,$am__untar,;t t
21912 s,@multi_basedir@,$multi_basedir,;t t
21913 s,@toolexecdir@,$toolexecdir,;t t
21914 s,@toolexeclibdir@,$toolexeclibdir,;t t
21915 s,@CC@,$CC,;t t
21916 s,@ac_ct_CC@,$ac_ct_CC,;t t
21917 s,@EXEEXT@,$EXEEXT,;t t
21918 s,@OBJEXT@,$OBJEXT,;t t
21919 s,@DEPDIR@,$DEPDIR,;t t
21920 s,@am__include@,$am__include,;t t
21921 s,@am__quote@,$am__quote,;t t
21922 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21923 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21924 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21925 s,@CCDEPMODE@,$CCDEPMODE,;t t
21926 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21927 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21928 s,@CFLAGS@,$CFLAGS,;t t
21929 s,@AR@,$AR,;t t
21930 s,@ac_ct_AR@,$ac_ct_AR,;t t
21931 s,@RANLIB@,$RANLIB,;t t
21932 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21933 s,@PERL@,$PERL,;t t
21934 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
21935 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
21936 s,@LIBTOOL@,$LIBTOOL,;t t
21937 s,@SED@,$SED,;t t
21938 s,@EGREP@,$EGREP,;t t
21939 s,@FGREP@,$FGREP,;t t
21940 s,@GREP@,$GREP,;t t
21941 s,@LD@,$LD,;t t
21942 s,@DUMPBIN@,$DUMPBIN,;t t
21943 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21944 s,@NM@,$NM,;t t
21945 s,@LN_S@,$LN_S,;t t
21946 s,@lt_ECHO@,$lt_ECHO,;t t
21947 s,@CPP@,$CPP,;t t
21948 s,@CPPFLAGS@,$CPPFLAGS,;t t
21949 s,@enable_shared@,$enable_shared,;t t
21950 s,@enable_static@,$enable_static,;t t
21951 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21952 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21953 s,@MAINT@,$MAINT,;t t
21954 s,@FC@,$FC,;t t
21955 s,@FCFLAGS@,$FCFLAGS,;t t
21956 s,@LDFLAGS@,$LDFLAGS,;t t
21957 s,@ac_ct_FC@,$ac_ct_FC,;t t
21958 s,@libtool_VERSION@,$libtool_VERSION,;t t
21959 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
21960 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
21961 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
21962 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
21963 s,@config_path@,$config_path,;t t
21964 s,@XCFLAGS@,$XCFLAGS,;t t
21965 s,@XLDFLAGS@,$XLDFLAGS,;t t
21966 s,@link_gomp@,$link_gomp,;t t
21967 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
21968 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
21969 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
21970 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
21971 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
21972 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
21973 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
21974 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
21975 s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
21976 s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
21977 s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
21978 s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
21979 s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
21980 s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
21981 s,@LIBOBJS@,$LIBOBJS,;t t
21982 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21983 CEOF
21984
21985 _ACEOF
21986
21987 cat >>$CONFIG_STATUS <<\_ACEOF
21988 # Split the substitutions into bite-sized pieces for seds with
21989 # small command number limits, like on Digital OSF/1 and HP-UX.
21990 ac_max_sed_lines=48
21991 ac_sed_frag=1 # Number of current file.
21992 ac_beg=1 # First line for current file.
21993 ac_end=$ac_max_sed_lines # Line after last line for current file.
21994 ac_more_lines=:
21995 ac_sed_cmds=
21996 while $ac_more_lines; do
21997 if test $ac_beg -gt 1; then
21998 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21999 else
22000 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22001 fi
22002 if test ! -s $tmp/subs.frag; then
22003 ac_more_lines=false
22004 else
22005 # The purpose of the label and of the branching condition is to
22006 # speed up the sed processing (if there are no `@' at all, there
22007 # is no need to browse any of the substitutions).
22008 # These are the two extra sed commands mentioned above.
22009 (echo ':t
22010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22011 if test -z "$ac_sed_cmds"; then
22012 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22013 else
22014 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22015 fi
22016 ac_sed_frag=`expr $ac_sed_frag + 1`
22017 ac_beg=$ac_end
22018 ac_end=`expr $ac_end + $ac_max_sed_lines`
22019 fi
22020 done
22021 if test -z "$ac_sed_cmds"; then
22022 ac_sed_cmds=cat
22023 fi
22024 fi # test -n "$CONFIG_FILES"
22025
22026 _ACEOF
22027 cat >>$CONFIG_STATUS <<\_ACEOF
22028 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22030 case $ac_file in
22031 - | *:- | *:-:* ) # input from stdin
22032 cat >$tmp/stdin
22033 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22035 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22037 * ) ac_file_in=$ac_file.in ;;
22038 esac
22039
22040 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22041 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22043 X"$ac_file" : 'X\(//\)[^/]' \| \
22044 X"$ac_file" : 'X\(//\)$' \| \
22045 X"$ac_file" : 'X\(/\)' \| \
22046 . : '\(.\)' 2>/dev/null ||
22047 echo X"$ac_file" |
22048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22050 /^X\(\/\/\)$/{ s//\1/; q; }
22051 /^X\(\/\).*/{ s//\1/; q; }
22052 s/.*/./; q'`
22053 { if $as_mkdir_p; then
22054 mkdir -p "$ac_dir"
22055 else
22056 as_dir="$ac_dir"
22057 as_dirs=
22058 while test ! -d "$as_dir"; do
22059 as_dirs="$as_dir $as_dirs"
22060 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22062 X"$as_dir" : 'X\(//\)[^/]' \| \
22063 X"$as_dir" : 'X\(//\)$' \| \
22064 X"$as_dir" : 'X\(/\)' \| \
22065 . : '\(.\)' 2>/dev/null ||
22066 echo X"$as_dir" |
22067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22069 /^X\(\/\/\)$/{ s//\1/; q; }
22070 /^X\(\/\).*/{ s//\1/; q; }
22071 s/.*/./; q'`
22072 done
22073 test ! -n "$as_dirs" || mkdir $as_dirs
22074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22075 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22076 { (exit 1); exit 1; }; }; }
22077
22078 ac_builddir=.
22079
22080 if test "$ac_dir" != .; then
22081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22082 # A "../" for each directory in $ac_dir_suffix.
22083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22084 else
22085 ac_dir_suffix= ac_top_builddir=
22086 fi
22087
22088 case $srcdir in
22089 .) # No --srcdir option. We are building in place.
22090 ac_srcdir=.
22091 if test -z "$ac_top_builddir"; then
22092 ac_top_srcdir=.
22093 else
22094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22095 fi ;;
22096 [\\/]* | ?:[\\/]* ) # Absolute path.
22097 ac_srcdir=$srcdir$ac_dir_suffix;
22098 ac_top_srcdir=$srcdir ;;
22099 *) # Relative path.
22100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22102 esac
22103
22104 # Do not use `cd foo && pwd` to compute absolute paths, because
22105 # the directories may not exist.
22106 case `pwd` in
22107 .) ac_abs_builddir="$ac_dir";;
22108 *)
22109 case "$ac_dir" in
22110 .) ac_abs_builddir=`pwd`;;
22111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22113 esac;;
22114 esac
22115 case $ac_abs_builddir in
22116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22117 *)
22118 case ${ac_top_builddir}. in
22119 .) ac_abs_top_builddir=$ac_abs_builddir;;
22120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22122 esac;;
22123 esac
22124 case $ac_abs_builddir in
22125 .) ac_abs_srcdir=$ac_srcdir;;
22126 *)
22127 case $ac_srcdir in
22128 .) ac_abs_srcdir=$ac_abs_builddir;;
22129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22131 esac;;
22132 esac
22133 case $ac_abs_builddir in
22134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22135 *)
22136 case $ac_top_srcdir in
22137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22140 esac;;
22141 esac
22142
22143
22144 case $INSTALL in
22145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22146 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22147 esac
22148
22149 if test x"$ac_file" != x-; then
22150 { echo "$as_me:$LINENO: creating $ac_file" >&5
22151 echo "$as_me: creating $ac_file" >&6;}
22152 rm -f "$ac_file"
22153 fi
22154 # Let's still pretend it is `configure' which instantiates (i.e., don't
22155 # use $as_me), people would be surprised to read:
22156 # /* config.h. Generated by config.status. */
22157 if test x"$ac_file" = x-; then
22158 configure_input=
22159 else
22160 configure_input="$ac_file. "
22161 fi
22162 configure_input=$configure_input"Generated from `echo $ac_file_in |
22163 sed 's,.*/,,'` by configure."
22164
22165 # First look for the input files in the build tree, otherwise in the
22166 # src tree.
22167 ac_file_inputs=`IFS=:
22168 for f in $ac_file_in; do
22169 case $f in
22170 -) echo $tmp/stdin ;;
22171 [\\/$]*)
22172 # Absolute (can't be DOS-style, as IFS=:)
22173 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22174 echo "$as_me: error: cannot find input file: $f" >&2;}
22175 { (exit 1); exit 1; }; }
22176 echo "$f";;
22177 *) # Relative
22178 if test -f "$f"; then
22179 # Build tree
22180 echo "$f"
22181 elif test -f "$srcdir/$f"; then
22182 # Source tree
22183 echo "$srcdir/$f"
22184 else
22185 # /dev/null tree
22186 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22187 echo "$as_me: error: cannot find input file: $f" >&2;}
22188 { (exit 1); exit 1; }; }
22189 fi;;
22190 esac
22191 done` || { (exit 1); exit 1; }
22192 _ACEOF
22193 cat >>$CONFIG_STATUS <<_ACEOF
22194 sed "$ac_vpsub
22195 $extrasub
22196 _ACEOF
22197 cat >>$CONFIG_STATUS <<\_ACEOF
22198 :t
22199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22200 s,@configure_input@,$configure_input,;t t
22201 s,@srcdir@,$ac_srcdir,;t t
22202 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22203 s,@top_srcdir@,$ac_top_srcdir,;t t
22204 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22205 s,@builddir@,$ac_builddir,;t t
22206 s,@abs_builddir@,$ac_abs_builddir,;t t
22207 s,@top_builddir@,$ac_top_builddir,;t t
22208 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22209 s,@INSTALL@,$ac_INSTALL,;t t
22210 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22211 rm -f $tmp/stdin
22212 if test x"$ac_file" != x-; then
22213 mv $tmp/out $ac_file
22214 else
22215 cat $tmp/out
22216 rm -f $tmp/out
22217 fi
22218
22219 done
22220 _ACEOF
22221 cat >>$CONFIG_STATUS <<\_ACEOF
22222
22223 #
22224 # CONFIG_HEADER section.
22225 #
22226
22227 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22228 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22229 #
22230 # ac_d sets the value in "#define NAME VALUE" lines.
22231 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22232 ac_dB='[ ].*$,\1#\2'
22233 ac_dC=' '
22234 ac_dD=',;t'
22235 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22236 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22237 ac_uB='$,\1#\2define\3'
22238 ac_uC=' '
22239 ac_uD=',;t'
22240
22241 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22242 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22243 case $ac_file in
22244 - | *:- | *:-:* ) # input from stdin
22245 cat >$tmp/stdin
22246 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22248 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22249 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22250 * ) ac_file_in=$ac_file.in ;;
22251 esac
22252
22253 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22254 echo "$as_me: creating $ac_file" >&6;}
22255
22256 # First look for the input files in the build tree, otherwise in the
22257 # src tree.
22258 ac_file_inputs=`IFS=:
22259 for f in $ac_file_in; do
22260 case $f in
22261 -) echo $tmp/stdin ;;
22262 [\\/$]*)
22263 # Absolute (can't be DOS-style, as IFS=:)
22264 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22265 echo "$as_me: error: cannot find input file: $f" >&2;}
22266 { (exit 1); exit 1; }; }
22267 # Do quote $f, to prevent DOS paths from being IFS'd.
22268 echo "$f";;
22269 *) # Relative
22270 if test -f "$f"; then
22271 # Build tree
22272 echo "$f"
22273 elif test -f "$srcdir/$f"; then
22274 # Source tree
22275 echo "$srcdir/$f"
22276 else
22277 # /dev/null tree
22278 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22279 echo "$as_me: error: cannot find input file: $f" >&2;}
22280 { (exit 1); exit 1; }; }
22281 fi;;
22282 esac
22283 done` || { (exit 1); exit 1; }
22284 # Remove the trailing spaces.
22285 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22286
22287 _ACEOF
22288
22289 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22290 # `conftest.undefs', that substitutes the proper values into
22291 # config.h.in to produce config.h. The first handles `#define'
22292 # templates, and the second `#undef' templates.
22293 # And first: Protect against being on the right side of a sed subst in
22294 # config.status. Protect against being in an unquoted here document
22295 # in config.status.
22296 rm -f conftest.defines conftest.undefs
22297 # Using a here document instead of a string reduces the quoting nightmare.
22298 # Putting comments in sed scripts is not portable.
22299 #
22300 # `end' is used to avoid that the second main sed command (meant for
22301 # 0-ary CPP macros) applies to n-ary macro definitions.
22302 # See the Autoconf documentation for `clear'.
22303 cat >confdef2sed.sed <<\_ACEOF
22304 s/[\\&,]/\\&/g
22305 s,[\\$`],\\&,g
22306 t clear
22307 : clear
22308 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22309 t end
22310 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22311 : end
22312 _ACEOF
22313 # If some macros were called several times there might be several times
22314 # the same #defines, which is useless. Nevertheless, we may not want to
22315 # sort them, since we want the *last* AC-DEFINE to be honored.
22316 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22317 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22318 rm -f confdef2sed.sed
22319
22320 # This sed command replaces #undef with comments. This is necessary, for
22321 # example, in the case of _POSIX_SOURCE, which is predefined and required
22322 # on some systems where configure will not decide to define it.
22323 cat >>conftest.undefs <<\_ACEOF
22324 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22325 _ACEOF
22326
22327 # Break up conftest.defines because some shells have a limit on the size
22328 # of here documents, and old seds have small limits too (100 cmds).
22329 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22330 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22331 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22332 echo ' :' >>$CONFIG_STATUS
22333 rm -f conftest.tail
22334 while grep . conftest.defines >/dev/null
22335 do
22336 # Write a limited-size here document to $tmp/defines.sed.
22337 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22338 # Speed up: don't consider the non `#define' lines.
22339 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22340 # Work around the forget-to-reset-the-flag bug.
22341 echo 't clr' >>$CONFIG_STATUS
22342 echo ': clr' >>$CONFIG_STATUS
22343 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22344 echo 'CEOF
22345 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22346 rm -f $tmp/in
22347 mv $tmp/out $tmp/in
22348 ' >>$CONFIG_STATUS
22349 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22350 rm -f conftest.defines
22351 mv conftest.tail conftest.defines
22352 done
22353 rm -f conftest.defines
22354 echo ' fi # grep' >>$CONFIG_STATUS
22355 echo >>$CONFIG_STATUS
22356
22357 # Break up conftest.undefs because some shells have a limit on the size
22358 # of here documents, and old seds have small limits too (100 cmds).
22359 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22360 rm -f conftest.tail
22361 while grep . conftest.undefs >/dev/null
22362 do
22363 # Write a limited-size here document to $tmp/undefs.sed.
22364 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22365 # Speed up: don't consider the non `#undef'
22366 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22367 # Work around the forget-to-reset-the-flag bug.
22368 echo 't clr' >>$CONFIG_STATUS
22369 echo ': clr' >>$CONFIG_STATUS
22370 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22371 echo 'CEOF
22372 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22373 rm -f $tmp/in
22374 mv $tmp/out $tmp/in
22375 ' >>$CONFIG_STATUS
22376 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22377 rm -f conftest.undefs
22378 mv conftest.tail conftest.undefs
22379 done
22380 rm -f conftest.undefs
22381
22382 cat >>$CONFIG_STATUS <<\_ACEOF
22383 # Let's still pretend it is `configure' which instantiates (i.e., don't
22384 # use $as_me), people would be surprised to read:
22385 # /* config.h. Generated by config.status. */
22386 if test x"$ac_file" = x-; then
22387 echo "/* Generated by configure. */" >$tmp/config.h
22388 else
22389 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22390 fi
22391 cat $tmp/in >>$tmp/config.h
22392 rm -f $tmp/in
22393 if test x"$ac_file" != x-; then
22394 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22395 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22396 echo "$as_me: $ac_file is unchanged" >&6;}
22397 else
22398 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22400 X"$ac_file" : 'X\(//\)[^/]' \| \
22401 X"$ac_file" : 'X\(//\)$' \| \
22402 X"$ac_file" : 'X\(/\)' \| \
22403 . : '\(.\)' 2>/dev/null ||
22404 echo X"$ac_file" |
22405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22407 /^X\(\/\/\)$/{ s//\1/; q; }
22408 /^X\(\/\).*/{ s//\1/; q; }
22409 s/.*/./; q'`
22410 { if $as_mkdir_p; then
22411 mkdir -p "$ac_dir"
22412 else
22413 as_dir="$ac_dir"
22414 as_dirs=
22415 while test ! -d "$as_dir"; do
22416 as_dirs="$as_dir $as_dirs"
22417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22419 X"$as_dir" : 'X\(//\)[^/]' \| \
22420 X"$as_dir" : 'X\(//\)$' \| \
22421 X"$as_dir" : 'X\(/\)' \| \
22422 . : '\(.\)' 2>/dev/null ||
22423 echo X"$as_dir" |
22424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22426 /^X\(\/\/\)$/{ s//\1/; q; }
22427 /^X\(\/\).*/{ s//\1/; q; }
22428 s/.*/./; q'`
22429 done
22430 test ! -n "$as_dirs" || mkdir $as_dirs
22431 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22432 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22433 { (exit 1); exit 1; }; }; }
22434
22435 rm -f $ac_file
22436 mv $tmp/config.h $ac_file
22437 fi
22438 else
22439 cat $tmp/config.h
22440 rm -f $tmp/config.h
22441 fi
22442 # Compute $ac_file's index in $config_headers.
22443 _am_stamp_count=1
22444 for _am_header in $config_headers :; do
22445 case $_am_header in
22446 $ac_file | $ac_file:* )
22447 break ;;
22448 * )
22449 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22450 esac
22451 done
22452 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22453 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22454 X$ac_file : 'X\(//\)[^/]' \| \
22455 X$ac_file : 'X\(//\)$' \| \
22456 X$ac_file : 'X\(/\)' \| \
22457 . : '\(.\)' 2>/dev/null ||
22458 echo X$ac_file |
22459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22461 /^X\(\/\/\)$/{ s//\1/; q; }
22462 /^X\(\/\).*/{ s//\1/; q; }
22463 s/.*/./; q'`/stamp-h$_am_stamp_count
22464 done
22465 _ACEOF
22466 cat >>$CONFIG_STATUS <<\_ACEOF
22467
22468 #
22469 # CONFIG_COMMANDS section.
22470 #
22471 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22472 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22473 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22474 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22475 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476 X"$ac_dest" : 'X\(//\)[^/]' \| \
22477 X"$ac_dest" : 'X\(//\)$' \| \
22478 X"$ac_dest" : 'X\(/\)' \| \
22479 . : '\(.\)' 2>/dev/null ||
22480 echo X"$ac_dest" |
22481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22483 /^X\(\/\/\)$/{ s//\1/; q; }
22484 /^X\(\/\).*/{ s//\1/; q; }
22485 s/.*/./; q'`
22486 { if $as_mkdir_p; then
22487 mkdir -p "$ac_dir"
22488 else
22489 as_dir="$ac_dir"
22490 as_dirs=
22491 while test ! -d "$as_dir"; do
22492 as_dirs="$as_dir $as_dirs"
22493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22495 X"$as_dir" : 'X\(//\)[^/]' \| \
22496 X"$as_dir" : 'X\(//\)$' \| \
22497 X"$as_dir" : 'X\(/\)' \| \
22498 . : '\(.\)' 2>/dev/null ||
22499 echo X"$as_dir" |
22500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22502 /^X\(\/\/\)$/{ s//\1/; q; }
22503 /^X\(\/\).*/{ s//\1/; q; }
22504 s/.*/./; q'`
22505 done
22506 test ! -n "$as_dirs" || mkdir $as_dirs
22507 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22508 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22509 { (exit 1); exit 1; }; }; }
22510
22511 ac_builddir=.
22512
22513 if test "$ac_dir" != .; then
22514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22515 # A "../" for each directory in $ac_dir_suffix.
22516 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22517 else
22518 ac_dir_suffix= ac_top_builddir=
22519 fi
22520
22521 case $srcdir in
22522 .) # No --srcdir option. We are building in place.
22523 ac_srcdir=.
22524 if test -z "$ac_top_builddir"; then
22525 ac_top_srcdir=.
22526 else
22527 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22528 fi ;;
22529 [\\/]* | ?:[\\/]* ) # Absolute path.
22530 ac_srcdir=$srcdir$ac_dir_suffix;
22531 ac_top_srcdir=$srcdir ;;
22532 *) # Relative path.
22533 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22534 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22535 esac
22536
22537 # Do not use `cd foo && pwd` to compute absolute paths, because
22538 # the directories may not exist.
22539 case `pwd` in
22540 .) ac_abs_builddir="$ac_dir";;
22541 *)
22542 case "$ac_dir" in
22543 .) ac_abs_builddir=`pwd`;;
22544 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22545 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22546 esac;;
22547 esac
22548 case $ac_abs_builddir in
22549 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22550 *)
22551 case ${ac_top_builddir}. in
22552 .) ac_abs_top_builddir=$ac_abs_builddir;;
22553 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22554 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22555 esac;;
22556 esac
22557 case $ac_abs_builddir in
22558 .) ac_abs_srcdir=$ac_srcdir;;
22559 *)
22560 case $ac_srcdir in
22561 .) ac_abs_srcdir=$ac_abs_builddir;;
22562 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22563 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22564 esac;;
22565 esac
22566 case $ac_abs_builddir in
22567 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22568 *)
22569 case $ac_top_srcdir in
22570 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22571 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22572 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22573 esac;;
22574 esac
22575
22576
22577 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22578 echo "$as_me: executing $ac_dest commands" >&6;}
22579 case $ac_dest in
22580 default-1 )
22581 # Only add multilib support code if we just rebuilt the top-level
22582 # Makefile.
22583 case " $CONFIG_FILES " in
22584 *" Makefile "*)
22585 ac_file=Makefile . ${multi_basedir}/config-ml.in
22586 ;;
22587 esac ;;
22588 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22589 # Strip MF so we end up with the name of the file.
22590 mf=`echo "$mf" | sed -e 's/:.*$//'`
22591 # Check whether this is an Automake generated Makefile or not.
22592 # We used to match only the files named `Makefile.in', but
22593 # some people rename them; so instead we look at the file content.
22594 # Grep'ing the first line is not enough: some people post-process
22595 # each Makefile.in and add a new line on top of each file to say so.
22596 # So let's grep whole file.
22597 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22598 dirpart=`(dirname "$mf") 2>/dev/null ||
22599 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$mf" : 'X\(//\)[^/]' \| \
22601 X"$mf" : 'X\(//\)$' \| \
22602 X"$mf" : 'X\(/\)' \| \
22603 . : '\(.\)' 2>/dev/null ||
22604 echo X"$mf" |
22605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22607 /^X\(\/\/\)$/{ s//\1/; q; }
22608 /^X\(\/\).*/{ s//\1/; q; }
22609 s/.*/./; q'`
22610 else
22611 continue
22612 fi
22613 # Extract the definition of DEPDIR, am__include, and am__quote
22614 # from the Makefile without running `make'.
22615 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22616 test -z "$DEPDIR" && continue
22617 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22618 test -z "am__include" && continue
22619 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22620 # When using ansi2knr, U may be empty or an underscore; expand it
22621 U=`sed -n 's/^U = //p' < "$mf"`
22622 # Find all dependency output files, they are included files with
22623 # $(DEPDIR) in their names. We invoke sed twice because it is the
22624 # simplest approach to changing $(DEPDIR) to its actual value in the
22625 # expansion.
22626 for file in `sed -n "
22627 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22628 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22629 # Make sure the directory exists.
22630 test -f "$dirpart/$file" && continue
22631 fdir=`(dirname "$file") 2>/dev/null ||
22632 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22633 X"$file" : 'X\(//\)[^/]' \| \
22634 X"$file" : 'X\(//\)$' \| \
22635 X"$file" : 'X\(/\)' \| \
22636 . : '\(.\)' 2>/dev/null ||
22637 echo X"$file" |
22638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22640 /^X\(\/\/\)$/{ s//\1/; q; }
22641 /^X\(\/\).*/{ s//\1/; q; }
22642 s/.*/./; q'`
22643 { if $as_mkdir_p; then
22644 mkdir -p $dirpart/$fdir
22645 else
22646 as_dir=$dirpart/$fdir
22647 as_dirs=
22648 while test ! -d "$as_dir"; do
22649 as_dirs="$as_dir $as_dirs"
22650 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22652 X"$as_dir" : 'X\(//\)[^/]' \| \
22653 X"$as_dir" : 'X\(//\)$' \| \
22654 X"$as_dir" : 'X\(/\)' \| \
22655 . : '\(.\)' 2>/dev/null ||
22656 echo X"$as_dir" |
22657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22659 /^X\(\/\/\)$/{ s//\1/; q; }
22660 /^X\(\/\).*/{ s//\1/; q; }
22661 s/.*/./; q'`
22662 done
22663 test ! -n "$as_dirs" || mkdir $as_dirs
22664 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22665 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22666 { (exit 1); exit 1; }; }; }
22667
22668 # echo "creating $dirpart/$file"
22669 echo '# dummy' > "$dirpart/$file"
22670 done
22671 done
22672 ;;
22673 libtool )
22674
22675 # See if we are running on zsh, and set the options which allow our
22676 # commands through without removal of \ escapes.
22677 if test -n "${ZSH_VERSION+set}" ; then
22678 setopt NO_GLOB_SUBST
22679 fi
22680
22681 cfgfile="${ofile}T"
22682 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22683 $RM "$cfgfile"
22684
22685 cat <<_LT_EOF >> "$cfgfile"
22686 #! $SHELL
22687
22688 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22689 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22690 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22691 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22692 #
22693 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22694 # 2006, 2007 Free Software Foundation, Inc.
22695 #
22696 # This file is part of GNU Libtool:
22697 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22698 #
22699 # This program is free software; you can redistribute it and/or modify
22700 # it under the terms of the GNU General Public License as published by
22701 # the Free Software Foundation; either version 2 of the License, or
22702 # (at your option) any later version.
22703 #
22704 # This program is distributed in the hope that it will be useful, but
22705 # WITHOUT ANY WARRANTY; without even the implied warranty of
22706 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22707 # General Public License for more details.
22708 #
22709 # You should have received a copy of the GNU General Public License
22710 # along with this program; if not, a copy can be downloaded from
22711 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22712 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22713 # MA 02110-1301, USA.
22714 #
22715 # As a special exception to the GNU General Public License, if you
22716 # distribute this file as part of a program that contains a
22717 # configuration script generated by Autoconf, you may include it under
22718 # the same distribution terms that you use for the rest of that program.
22719
22720
22721 # The names of the tagged configurations supported by this script.
22722 available_tags="FC "
22723
22724 # ### BEGIN LIBTOOL CONFIG
22725
22726 # Which release of libtool.m4 was used?
22727 macro_version=$macro_version
22728 macro_revision=$macro_revision
22729
22730 # Whether or not to build shared libraries.
22731 build_libtool_libs=$enable_shared
22732
22733 # Whether or not to build static libraries.
22734 build_old_libs=$enable_static
22735
22736 # What type of objects to build.
22737 pic_mode=$pic_mode
22738
22739 # Whether or not to optimize for fast installation.
22740 fast_install=$enable_fast_install
22741
22742 # The host system.
22743 host_alias=$host_alias
22744 host=$host
22745 host_os=$host_os
22746
22747 # The build system.
22748 build_alias=$build_alias
22749 build=$build
22750 build_os=$build_os
22751
22752 # A sed program that does not truncate output.
22753 SED=$lt_SED
22754
22755 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22756 Xsed="\$SED -e 1s/^X//"
22757
22758 # A grep program that handles long lines.
22759 GREP=$lt_GREP
22760
22761 # An ERE matcher.
22762 EGREP=$lt_EGREP
22763
22764 # A literal string matcher.
22765 FGREP=$lt_FGREP
22766
22767 # A BSD- or MS-compatible name lister.
22768 NM=$lt_NM
22769
22770 # Whether we need soft or hard links.
22771 LN_S=$lt_LN_S
22772
22773 # What is the maximum length of a command?
22774 max_cmd_len=$max_cmd_len
22775
22776 # Object file suffix (normally "o").
22777 objext=$ac_objext
22778
22779 # Executable file suffix (normally "").
22780 exeext=$exeext
22781
22782 # whether the shell understands "unset".
22783 lt_unset=$lt_unset
22784
22785 # turn spaces into newlines.
22786 SP2NL=$lt_lt_SP2NL
22787
22788 # turn newlines into spaces.
22789 NL2SP=$lt_lt_NL2SP
22790
22791 # How to create reloadable object files.
22792 reload_flag=$lt_reload_flag
22793 reload_cmds=$lt_reload_cmds
22794
22795 # Method to check whether dependent libraries are shared objects.
22796 deplibs_check_method=$lt_deplibs_check_method
22797
22798 # Command to use when deplibs_check_method == "file_magic".
22799 file_magic_cmd=$lt_file_magic_cmd
22800
22801 # The archiver.
22802 AR=$lt_AR
22803 AR_FLAGS=$lt_AR_FLAGS
22804
22805 # A symbol stripping program.
22806 STRIP=$lt_STRIP
22807
22808 # Commands used to install an old-style archive.
22809 RANLIB=$lt_RANLIB
22810 old_postinstall_cmds=$lt_old_postinstall_cmds
22811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22812
22813 # A C compiler.
22814 LTCC=$lt_CC
22815
22816 # LTCC compiler flags.
22817 LTCFLAGS=$lt_CFLAGS
22818
22819 # Take the output of nm and produce a listing of raw symbols and C names.
22820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22821
22822 # Transform the output of nm in a proper C declaration.
22823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22824
22825 # Transform the output of nm in a C name address pair.
22826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22827
22828 # The name of the directory that contains temporary libtool files.
22829 objdir=$objdir
22830
22831 # Shell to use when invoking shell scripts.
22832 SHELL=$lt_SHELL
22833
22834 # An echo program that does not interpret backslashes.
22835 ECHO=$lt_ECHO
22836
22837 # Used to examine libraries when file_magic_cmd begins with "file".
22838 MAGIC_CMD=$MAGIC_CMD
22839
22840 # Must we lock files when doing compilation?
22841 need_locks=$lt_need_locks
22842
22843 # Old archive suffix (normally "a").
22844 libext=$libext
22845
22846 # Shared library suffix (normally ".so").
22847 shrext_cmds=$lt_shrext_cmds
22848
22849 # The commands to extract the exported symbol list from a shared archive.
22850 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22851
22852 # Variables whose values should be saved in libtool wrapper scripts and
22853 # restored at link time.
22854 variables_saved_for_relink=$lt_variables_saved_for_relink
22855
22856 # Do we need the "lib" prefix for modules?
22857 need_lib_prefix=$need_lib_prefix
22858
22859 # Do we need a version for libraries?
22860 need_version=$need_version
22861
22862 # Library versioning type.
22863 version_type=$version_type
22864
22865 # Shared library runtime path variable.
22866 runpath_var=$runpath_var
22867
22868 # Shared library path variable.
22869 shlibpath_var=$shlibpath_var
22870
22871 # Is shlibpath searched before the hard-coded library search path?
22872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22873
22874 # Format of library name prefix.
22875 libname_spec=$lt_libname_spec
22876
22877 # List of archive names. First name is the real one, the rest are links.
22878 # The last name is the one that the linker finds with -lNAME
22879 library_names_spec=$lt_library_names_spec
22880
22881 # The coded name of the library, if different from the real name.
22882 soname_spec=$lt_soname_spec
22883
22884 # Command to use after installation of a shared archive.
22885 postinstall_cmds=$lt_postinstall_cmds
22886
22887 # Command to use after uninstallation of a shared archive.
22888 postuninstall_cmds=$lt_postuninstall_cmds
22889
22890 # Commands used to finish a libtool library installation in a directory.
22891 finish_cmds=$lt_finish_cmds
22892
22893 # As "finish_cmds", except a single script fragment to be evaled but
22894 # not shown.
22895 finish_eval=$lt_finish_eval
22896
22897 # Whether we should hardcode library paths into libraries.
22898 hardcode_into_libs=$hardcode_into_libs
22899
22900 # Compile-time system search path for libraries.
22901 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22902
22903 # Run-time system search path for libraries.
22904 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22905
22906 # Whether dlopen is supported.
22907 dlopen_support=$enable_dlopen
22908
22909 # Whether dlopen of programs is supported.
22910 dlopen_self=$enable_dlopen_self
22911
22912 # Whether dlopen of statically linked programs is supported.
22913 dlopen_self_static=$enable_dlopen_self_static
22914
22915 # Commands to strip libraries.
22916 old_striplib=$lt_old_striplib
22917 striplib=$lt_striplib
22918
22919
22920 # The linker used to build libraries.
22921 LD=$lt_LD
22922
22923 # Commands used to build an old-style archive.
22924 old_archive_cmds=$lt_old_archive_cmds
22925
22926 # A language specific compiler.
22927 CC=$lt_compiler
22928
22929 # Is the compiler the GNU compiler?
22930 with_gcc=$GCC
22931
22932 # Compiler flag to turn off builtin functions.
22933 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22934
22935 # How to pass a linker flag through the compiler.
22936 wl=$lt_lt_prog_compiler_wl
22937
22938 # Additional compiler flags for building library objects.
22939 pic_flag=$lt_lt_prog_compiler_pic
22940
22941 # Compiler flag to prevent dynamic linking.
22942 link_static_flag=$lt_lt_prog_compiler_static
22943
22944 # Does compiler simultaneously support -c and -o options?
22945 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22946
22947 # Whether or not to add -lc for building shared libraries.
22948 build_libtool_need_lc=$archive_cmds_need_lc
22949
22950 # Whether or not to disallow shared libs when runtime libs are static.
22951 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22952
22953 # Compiler flag to allow reflexive dlopens.
22954 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22955
22956 # Compiler flag to generate shared objects directly from archives.
22957 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22958
22959 # Whether the compiler copes with passing no objects directly.
22960 compiler_needs_object=$lt_compiler_needs_object
22961
22962 # Create an old-style archive from a shared archive.
22963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22964
22965 # Create a temporary old-style archive to link instead of a shared archive.
22966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22967
22968 # Commands used to build a shared archive.
22969 archive_cmds=$lt_archive_cmds
22970 archive_expsym_cmds=$lt_archive_expsym_cmds
22971
22972 # Commands used to build a loadable module if different from building
22973 # a shared archive.
22974 module_cmds=$lt_module_cmds
22975 module_expsym_cmds=$lt_module_expsym_cmds
22976
22977 # Whether we are building with GNU ld or not.
22978 with_gnu_ld=$lt_with_gnu_ld
22979
22980 # Flag that allows shared libraries with undefined symbols to be built.
22981 allow_undefined_flag=$lt_allow_undefined_flag
22982
22983 # Flag that enforces no undefined symbols.
22984 no_undefined_flag=$lt_no_undefined_flag
22985
22986 # Flag to hardcode \$libdir into a binary during linking.
22987 # This must work even if \$libdir does not exist
22988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22989
22990 # If ld is used when linking, flag to hardcode \$libdir into a binary
22991 # during linking. This must work even if \$libdir does not exist.
22992 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22993
22994 # Whether we need a single "-rpath" flag with a separated argument.
22995 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22996
22997 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22998 # DIR into the resulting binary.
22999 hardcode_direct=$hardcode_direct
23000
23001 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23002 # DIR into the resulting binary and the resulting library dependency is
23003 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23004 # library is relocated.
23005 hardcode_direct_absolute=$hardcode_direct_absolute
23006
23007 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23008 # into the resulting binary.
23009 hardcode_minus_L=$hardcode_minus_L
23010
23011 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23012 # into the resulting binary.
23013 hardcode_shlibpath_var=$hardcode_shlibpath_var
23014
23015 # Set to "yes" if building a shared library automatically hardcodes DIR
23016 # into the library and all subsequent libraries and executables linked
23017 # against it.
23018 hardcode_automatic=$hardcode_automatic
23019
23020 # Set to yes if linker adds runtime paths of dependent libraries
23021 # to runtime path list.
23022 inherit_rpath=$inherit_rpath
23023
23024 # Whether libtool must link a program against all its dependency libraries.
23025 link_all_deplibs=$link_all_deplibs
23026
23027 # Fix the shell variable \$srcfile for the compiler.
23028 fix_srcfile_path=$lt_fix_srcfile_path
23029
23030 # Set to "yes" if exported symbols are required.
23031 always_export_symbols=$always_export_symbols
23032
23033 # The commands to list exported symbols.
23034 export_symbols_cmds=$lt_export_symbols_cmds
23035
23036 # Symbols that should not be listed in the preloaded symbols.
23037 exclude_expsyms=$lt_exclude_expsyms
23038
23039 # Symbols that must always be exported.
23040 include_expsyms=$lt_include_expsyms
23041
23042 # Commands necessary for linking programs (against libraries) with templates.
23043 prelink_cmds=$lt_prelink_cmds
23044
23045 # Specify filename containing input files.
23046 file_list_spec=$lt_file_list_spec
23047
23048 # How to hardcode a shared library path into an executable.
23049 hardcode_action=$hardcode_action
23050
23051 # Dependencies to place before and after the objects being linked to
23052 # create a shared library.
23053 predep_objects=$lt_predep_objects
23054 postdep_objects=$lt_postdep_objects
23055 predeps=$lt_predeps
23056 postdeps=$lt_postdeps
23057
23058 # The library search path used internally by the compiler when linking
23059 # a shared library.
23060 compiler_lib_search_path=$lt_compiler_lib_search_path
23061
23062 # ### END LIBTOOL CONFIG
23063
23064 _LT_EOF
23065
23066 case $host_os in
23067 aix3*)
23068 cat <<\_LT_EOF >> "$cfgfile"
23069 # AIX sometimes has problems with the GCC collect2 program. For some
23070 # reason, if we set the COLLECT_NAMES environment variable, the problems
23071 # vanish in a puff of smoke.
23072 if test "X${COLLECT_NAMES+set}" != Xset; then
23073 COLLECT_NAMES=
23074 export COLLECT_NAMES
23075 fi
23076 _LT_EOF
23077 ;;
23078 esac
23079
23080
23081 ltmain="$ac_aux_dir/ltmain.sh"
23082
23083
23084 # We use sed instead of cat because bash on DJGPP gets confused if
23085 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23086 # text mode, it properly converts lines to CR/LF. This bash problem
23087 # is reportedly fixed, but why not run on old versions too?
23088 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23089 || (rm -f "$cfgfile"; exit 1)
23090
23091 case $xsi_shell in
23092 yes)
23093 cat << \_LT_EOF >> "$cfgfile"
23094 # func_dirname file append nondir_replacement
23095 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23096 # otherwise set result to NONDIR_REPLACEMENT.
23097 func_dirname ()
23098 {
23099 case ${1} in
23100 */*) func_dirname_result="${1%/*}${2}" ;;
23101 * ) func_dirname_result="${3}" ;;
23102 esac
23103 }
23104
23105 # func_basename file
23106 func_basename ()
23107 {
23108 func_basename_result="${1##*/}"
23109 }
23110
23111 # func_stripname prefix suffix name
23112 # strip PREFIX and SUFFIX off of NAME.
23113 # PREFIX and SUFFIX must not contain globbing or regex special
23114 # characters, hashes, percent signs, but SUFFIX may contain a leading
23115 # dot (in which case that matches only a dot).
23116 func_stripname ()
23117 {
23118 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23119 # positional parameters, so assign one to ordinary parameter first.
23120 func_stripname_result=${3}
23121 func_stripname_result=${func_stripname_result#"${1}"}
23122 func_stripname_result=${func_stripname_result%"${2}"}
23123 }
23124
23125 # func_opt_split
23126 func_opt_split ()
23127 {
23128 func_opt_split_opt=${1%%=*}
23129 func_opt_split_arg=${1#*=}
23130 }
23131
23132 # func_lo2o object
23133 func_lo2o ()
23134 {
23135 case ${1} in
23136 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23137 *) func_lo2o_result=${1} ;;
23138 esac
23139 }
23140 _LT_EOF
23141 ;;
23142 *) # Bourne compatible functions.
23143 cat << \_LT_EOF >> "$cfgfile"
23144 # func_dirname file append nondir_replacement
23145 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23146 # otherwise set result to NONDIR_REPLACEMENT.
23147 func_dirname ()
23148 {
23149 # Extract subdirectory from the argument.
23150 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23151 if test "X$func_dirname_result" = "X${1}"; then
23152 func_dirname_result="${3}"
23153 else
23154 func_dirname_result="$func_dirname_result${2}"
23155 fi
23156 }
23157
23158 # func_basename file
23159 func_basename ()
23160 {
23161 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23162 }
23163
23164 # func_stripname prefix suffix name
23165 # strip PREFIX and SUFFIX off of NAME.
23166 # PREFIX and SUFFIX must not contain globbing or regex special
23167 # characters, hashes, percent signs, but SUFFIX may contain a leading
23168 # dot (in which case that matches only a dot).
23169 # func_strip_suffix prefix name
23170 func_stripname ()
23171 {
23172 case ${2} in
23173 .*) func_stripname_result=`$ECHO "X${3}" \
23174 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23175 *) func_stripname_result=`$ECHO "X${3}" \
23176 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23177 esac
23178 }
23179
23180 # sed scripts:
23181 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23182 my_sed_long_arg='1s/^-[^=]*=//'
23183
23184 # func_opt_split
23185 func_opt_split ()
23186 {
23187 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23188 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23189 }
23190
23191 # func_lo2o object
23192 func_lo2o ()
23193 {
23194 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23195 }
23196 _LT_EOF
23197 esac
23198
23199 case $lt_shell_append in
23200 yes)
23201 cat << \_LT_EOF >> "$cfgfile"
23202
23203 # func_append var value
23204 # Append VALUE to the end of shell variable VAR.
23205 func_append ()
23206 {
23207 eval "$1+=\$2"
23208 }
23209 _LT_EOF
23210 ;;
23211 *)
23212 cat << \_LT_EOF >> "$cfgfile"
23213
23214 # func_append var value
23215 # Append VALUE to the end of shell variable VAR.
23216 func_append ()
23217 {
23218 eval "$1=\$$1\$2"
23219 }
23220 _LT_EOF
23221 ;;
23222 esac
23223
23224
23225 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23226 || (rm -f "$cfgfile"; exit 1)
23227
23228 mv -f "$cfgfile" "$ofile" ||
23229 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23230 chmod +x "$ofile"
23231
23232
23233 cat <<_LT_EOF >> "$ofile"
23234
23235 # ### BEGIN LIBTOOL TAG CONFIG: FC
23236
23237 # The linker used to build libraries.
23238 LD=$lt_LD_FC
23239
23240 # Commands used to build an old-style archive.
23241 old_archive_cmds=$lt_old_archive_cmds_FC
23242
23243 # A language specific compiler.
23244 CC=$lt_compiler_FC
23245
23246 # Is the compiler the GNU compiler?
23247 with_gcc=$GCC_FC
23248
23249 # Compiler flag to turn off builtin functions.
23250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
23251
23252 # How to pass a linker flag through the compiler.
23253 wl=$lt_lt_prog_compiler_wl_FC
23254
23255 # Additional compiler flags for building library objects.
23256 pic_flag=$lt_lt_prog_compiler_pic_FC
23257
23258 # Compiler flag to prevent dynamic linking.
23259 link_static_flag=$lt_lt_prog_compiler_static_FC
23260
23261 # Does compiler simultaneously support -c and -o options?
23262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
23263
23264 # Whether or not to add -lc for building shared libraries.
23265 build_libtool_need_lc=$archive_cmds_need_lc_FC
23266
23267 # Whether or not to disallow shared libs when runtime libs are static.
23268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
23269
23270 # Compiler flag to allow reflexive dlopens.
23271 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
23272
23273 # Compiler flag to generate shared objects directly from archives.
23274 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
23275
23276 # Whether the compiler copes with passing no objects directly.
23277 compiler_needs_object=$lt_compiler_needs_object_FC
23278
23279 # Create an old-style archive from a shared archive.
23280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
23281
23282 # Create a temporary old-style archive to link instead of a shared archive.
23283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
23284
23285 # Commands used to build a shared archive.
23286 archive_cmds=$lt_archive_cmds_FC
23287 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
23288
23289 # Commands used to build a loadable module if different from building
23290 # a shared archive.
23291 module_cmds=$lt_module_cmds_FC
23292 module_expsym_cmds=$lt_module_expsym_cmds_FC
23293
23294 # Whether we are building with GNU ld or not.
23295 with_gnu_ld=$lt_with_gnu_ld_FC
23296
23297 # Flag that allows shared libraries with undefined symbols to be built.
23298 allow_undefined_flag=$lt_allow_undefined_flag_FC
23299
23300 # Flag that enforces no undefined symbols.
23301 no_undefined_flag=$lt_no_undefined_flag_FC
23302
23303 # Flag to hardcode \$libdir into a binary during linking.
23304 # This must work even if \$libdir does not exist
23305 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
23306
23307 # If ld is used when linking, flag to hardcode \$libdir into a binary
23308 # during linking. This must work even if \$libdir does not exist.
23309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
23310
23311 # Whether we need a single "-rpath" flag with a separated argument.
23312 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
23313
23314 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23315 # DIR into the resulting binary.
23316 hardcode_direct=$hardcode_direct_FC
23317
23318 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23319 # DIR into the resulting binary and the resulting library dependency is
23320 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23321 # library is relocated.
23322 hardcode_direct_absolute=$hardcode_direct_absolute_FC
23323
23324 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23325 # into the resulting binary.
23326 hardcode_minus_L=$hardcode_minus_L_FC
23327
23328 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23329 # into the resulting binary.
23330 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
23331
23332 # Set to "yes" if building a shared library automatically hardcodes DIR
23333 # into the library and all subsequent libraries and executables linked
23334 # against it.
23335 hardcode_automatic=$hardcode_automatic_FC
23336
23337 # Set to yes if linker adds runtime paths of dependent libraries
23338 # to runtime path list.
23339 inherit_rpath=$inherit_rpath_FC
23340
23341 # Whether libtool must link a program against all its dependency libraries.
23342 link_all_deplibs=$link_all_deplibs_FC
23343
23344 # Fix the shell variable \$srcfile for the compiler.
23345 fix_srcfile_path=$lt_fix_srcfile_path_FC
23346
23347 # Set to "yes" if exported symbols are required.
23348 always_export_symbols=$always_export_symbols_FC
23349
23350 # The commands to list exported symbols.
23351 export_symbols_cmds=$lt_export_symbols_cmds_FC
23352
23353 # Symbols that should not be listed in the preloaded symbols.
23354 exclude_expsyms=$lt_exclude_expsyms_FC
23355
23356 # Symbols that must always be exported.
23357 include_expsyms=$lt_include_expsyms_FC
23358
23359 # Commands necessary for linking programs (against libraries) with templates.
23360 prelink_cmds=$lt_prelink_cmds_FC
23361
23362 # Specify filename containing input files.
23363 file_list_spec=$lt_file_list_spec_FC
23364
23365 # How to hardcode a shared library path into an executable.
23366 hardcode_action=$hardcode_action_FC
23367
23368 # Dependencies to place before and after the objects being linked to
23369 # create a shared library.
23370 predep_objects=$lt_predep_objects_FC
23371 postdep_objects=$lt_postdep_objects_FC
23372 predeps=$lt_predeps_FC
23373 postdeps=$lt_postdeps_FC
23374
23375 # The library search path used internally by the compiler when linking
23376 # a shared library.
23377 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
23378
23379 # ### END LIBTOOL TAG CONFIG: FC
23380 _LT_EOF
23381
23382 ;;
23383 gstdint.h )
23384 if test "$GCC" = yes; then
23385 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23386 else
23387 echo "/* generated for $CC */" > tmp-stdint.h
23388 fi
23389
23390 sed 's/^ *//' >> tmp-stdint.h <<EOF
23391
23392 #ifndef GCC_GENERATED_STDINT_H
23393 #define GCC_GENERATED_STDINT_H 1
23394
23395 #include <sys/types.h>
23396 EOF
23397
23398 if test "$acx_cv_header_stdint" != stdint.h; then
23399 echo "#include <stddef.h>" >> tmp-stdint.h
23400 fi
23401 if test "$acx_cv_header_stdint" != stddef.h; then
23402 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23403 fi
23404
23405 sed 's/^ *//' >> tmp-stdint.h <<EOF
23406 /* glibc uses these symbols as guards to prevent redefinitions. */
23407 #ifdef __int8_t_defined
23408 #define _INT8_T
23409 #define _INT16_T
23410 #define _INT32_T
23411 #endif
23412 #ifdef __uint32_t_defined
23413 #define _UINT32_T
23414 #endif
23415
23416 EOF
23417
23418 # ----------------- done header, emit basic int types -------------
23419 if test "$acx_cv_header_stdint" = stddef.h; then
23420 sed 's/^ *//' >> tmp-stdint.h <<EOF
23421
23422 #ifndef _UINT8_T
23423 #define _UINT8_T
23424 #ifndef __uint8_t_defined
23425 #define __uint8_t_defined
23426 typedef unsigned $acx_cv_type_int8_t uint8_t;
23427 #endif
23428 #endif
23429
23430 #ifndef _UINT16_T
23431 #define _UINT16_T
23432 #ifndef __uint16_t_defined
23433 #define __uint16_t_defined
23434 typedef unsigned $acx_cv_type_int16_t uint16_t;
23435 #endif
23436 #endif
23437
23438 #ifndef _UINT32_T
23439 #define _UINT32_T
23440 #ifndef __uint32_t_defined
23441 #define __uint32_t_defined
23442 typedef unsigned $acx_cv_type_int32_t uint32_t;
23443 #endif
23444 #endif
23445
23446 #ifndef _INT8_T
23447 #define _INT8_T
23448 #ifndef __int8_t_defined
23449 #define __int8_t_defined
23450 typedef $acx_cv_type_int8_t int8_t;
23451 #endif
23452 #endif
23453
23454 #ifndef _INT16_T
23455 #define _INT16_T
23456 #ifndef __int16_t_defined
23457 #define __int16_t_defined
23458 typedef $acx_cv_type_int16_t int16_t;
23459 #endif
23460 #endif
23461
23462 #ifndef _INT32_T
23463 #define _INT32_T
23464 #ifndef __int32_t_defined
23465 #define __int32_t_defined
23466 typedef $acx_cv_type_int32_t int32_t;
23467 #endif
23468 #endif
23469 EOF
23470 elif test "$ac_cv_type_u_int32_t" = yes; then
23471 sed 's/^ *//' >> tmp-stdint.h <<EOF
23472
23473 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23474 #ifndef _INT8_T
23475 #define _INT8_T
23476 #endif
23477 #ifndef _INT16_T
23478 #define _INT16_T
23479 #endif
23480 #ifndef _INT32_T
23481 #define _INT32_T
23482 #endif
23483
23484 #ifndef _UINT8_T
23485 #define _UINT8_T
23486 #ifndef __uint8_t_defined
23487 #define __uint8_t_defined
23488 typedef u_int8_t uint8_t;
23489 #endif
23490 #endif
23491
23492 #ifndef _UINT16_T
23493 #define _UINT16_T
23494 #ifndef __uint16_t_defined
23495 #define __uint16_t_defined
23496 typedef u_int16_t uint16_t;
23497 #endif
23498 #endif
23499
23500 #ifndef _UINT32_T
23501 #define _UINT32_T
23502 #ifndef __uint32_t_defined
23503 #define __uint32_t_defined
23504 typedef u_int32_t uint32_t;
23505 #endif
23506 #endif
23507 EOF
23508 else
23509 sed 's/^ *//' >> tmp-stdint.h <<EOF
23510
23511 /* Some systems have guard macros to prevent redefinitions, define them. */
23512 #ifndef _INT8_T
23513 #define _INT8_T
23514 #endif
23515 #ifndef _INT16_T
23516 #define _INT16_T
23517 #endif
23518 #ifndef _INT32_T
23519 #define _INT32_T
23520 #endif
23521 #ifndef _UINT8_T
23522 #define _UINT8_T
23523 #endif
23524 #ifndef _UINT16_T
23525 #define _UINT16_T
23526 #endif
23527 #ifndef _UINT32_T
23528 #define _UINT32_T
23529 #endif
23530 EOF
23531 fi
23532
23533 # ------------- done basic int types, emit int64_t types ------------
23534 if test "$ac_cv_type_uint64_t" = yes; then
23535 sed 's/^ *//' >> tmp-stdint.h <<EOF
23536
23537 /* system headers have good uint64_t and int64_t */
23538 #ifndef _INT64_T
23539 #define _INT64_T
23540 #endif
23541 #ifndef _UINT64_T
23542 #define _UINT64_T
23543 #endif
23544 EOF
23545 elif test "$ac_cv_type_u_int64_t" = yes; then
23546 sed 's/^ *//' >> tmp-stdint.h <<EOF
23547
23548 /* system headers have an u_int64_t (and int64_t) */
23549 #ifndef _INT64_T
23550 #define _INT64_T
23551 #endif
23552 #ifndef _UINT64_T
23553 #define _UINT64_T
23554 #ifndef __uint64_t_defined
23555 #define __uint64_t_defined
23556 typedef u_int64_t uint64_t;
23557 #endif
23558 #endif
23559 EOF
23560 elif test -n "$acx_cv_type_int64_t"; then
23561 sed 's/^ *//' >> tmp-stdint.h <<EOF
23562
23563 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23564 #ifndef _INT64_T
23565 #define _INT64_T
23566 typedef $acx_cv_type_int64_t int64_t;
23567 #endif
23568 #ifndef _UINT64_T
23569 #define _UINT64_T
23570 #ifndef __uint64_t_defined
23571 #define __uint64_t_defined
23572 typedef unsigned $acx_cv_type_int64_t uint64_t;
23573 #endif
23574 #endif
23575 EOF
23576 else
23577 sed 's/^ *//' >> tmp-stdint.h <<EOF
23578
23579 /* some common heuristics for int64_t, using compiler-specific tests */
23580 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23581 #ifndef _INT64_T
23582 #define _INT64_T
23583 #ifndef __int64_t_defined
23584 typedef long long int64_t;
23585 #endif
23586 #endif
23587 #ifndef _UINT64_T
23588 #define _UINT64_T
23589 typedef unsigned long long uint64_t;
23590 #endif
23591
23592 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23593 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23594 does not implement __extension__. But that compiler doesn't define
23595 __GNUC_MINOR__. */
23596 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23597 # define __extension__
23598 # endif
23599
23600 # ifndef _INT64_T
23601 # define _INT64_T
23602 __extension__ typedef long long int64_t;
23603 # endif
23604 # ifndef _UINT64_T
23605 # define _UINT64_T
23606 __extension__ typedef unsigned long long uint64_t;
23607 # endif
23608
23609 #elif !defined __STRICT_ANSI__
23610 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23611
23612 # ifndef _INT64_T
23613 # define _INT64_T
23614 typedef __int64 int64_t;
23615 # endif
23616 # ifndef _UINT64_T
23617 # define _UINT64_T
23618 typedef unsigned __int64 uint64_t;
23619 # endif
23620 # endif /* compiler */
23621
23622 #endif /* ANSI version */
23623 EOF
23624 fi
23625
23626 # ------------- done int64_t types, emit intptr types ------------
23627 if test "$ac_cv_type_uintptr_t" != yes; then
23628 sed 's/^ *//' >> tmp-stdint.h <<EOF
23629
23630 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23631 #ifndef __uintptr_t_defined
23632 typedef u$acx_cv_type_intptr_t uintptr_t;
23633 #endif
23634 #ifndef __intptr_t_defined
23635 typedef $acx_cv_type_intptr_t intptr_t;
23636 #endif
23637 EOF
23638 fi
23639
23640 # ------------- done intptr types, emit int_least types ------------
23641 if test "$ac_cv_type_int_least32_t" != yes; then
23642 sed 's/^ *//' >> tmp-stdint.h <<EOF
23643
23644 /* Define int_least types */
23645 typedef int8_t int_least8_t;
23646 typedef int16_t int_least16_t;
23647 typedef int32_t int_least32_t;
23648 #ifdef _INT64_T
23649 typedef int64_t int_least64_t;
23650 #endif
23651
23652 typedef uint8_t uint_least8_t;
23653 typedef uint16_t uint_least16_t;
23654 typedef uint32_t uint_least32_t;
23655 #ifdef _UINT64_T
23656 typedef uint64_t uint_least64_t;
23657 #endif
23658 EOF
23659 fi
23660
23661 # ------------- done intptr types, emit int_fast types ------------
23662 if test "$ac_cv_type_int_fast32_t" != yes; then
23663 sed 's/^ *//' >> tmp-stdint.h <<EOF
23664
23665 /* Define int_fast types. short is often slow */
23666 typedef int8_t int_fast8_t;
23667 typedef int int_fast16_t;
23668 typedef int32_t int_fast32_t;
23669 #ifdef _INT64_T
23670 typedef int64_t int_fast64_t;
23671 #endif
23672
23673 typedef uint8_t uint_fast8_t;
23674 typedef unsigned int uint_fast16_t;
23675 typedef uint32_t uint_fast32_t;
23676 #ifdef _UINT64_T
23677 typedef uint64_t uint_fast64_t;
23678 #endif
23679 EOF
23680 fi
23681
23682 if test "$ac_cv_type_uintmax_t" != yes; then
23683 sed 's/^ *//' >> tmp-stdint.h <<EOF
23684
23685 /* Define intmax based on what we found */
23686 #ifdef _INT64_T
23687 typedef int64_t intmax_t;
23688 #else
23689 typedef long intmax_t;
23690 #endif
23691 #ifdef _UINT64_T
23692 typedef uint64_t uintmax_t;
23693 #else
23694 typedef unsigned long uintmax_t;
23695 #endif
23696 EOF
23697 fi
23698
23699 sed 's/^ *//' >> tmp-stdint.h <<EOF
23700
23701 #endif /* GCC_GENERATED_STDINT_H */
23702 EOF
23703
23704 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
23705 rm -f tmp-stdint.h
23706 else
23707 mv -f tmp-stdint.h gstdint.h
23708 fi
23709
23710 ;;
23711 esac
23712 done
23713 _ACEOF
23714
23715 cat >>$CONFIG_STATUS <<\_ACEOF
23716
23717 { (exit 0); exit 0; }
23718 _ACEOF
23719 chmod +x $CONFIG_STATUS
23720 ac_clean_files=$ac_clean_files_save
23721
23722
23723 # configure is writing to config.log, and then calls config.status.
23724 # config.status does its own redirection, appending to config.log.
23725 # Unfortunately, on DOS this fails, as config.log is still kept open
23726 # by configure, so config.status won't be able to write to it; its
23727 # output is simply discarded. So we exec the FD to /dev/null,
23728 # effectively closing config.log, so it can be properly (re)opened and
23729 # appended to by config.status. When coming back to configure, we
23730 # need to make the FD available again.
23731 if test "$no_create" != yes; then
23732 ac_cs_success=:
23733 ac_config_status_args=
23734 test "$silent" = yes &&
23735 ac_config_status_args="$ac_config_status_args --quiet"
23736 exec 5>/dev/null
23737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23738 exec 5>>config.log
23739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23740 # would make configure fail if this is the last instruction.
23741 $ac_cs_success || { (exit 1); exit 1; }
23742 fi
23743