Debian Codegraph @

db/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${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 <<EOF
274 $*
275 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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$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 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="db_byteorder.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 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 MAJOR_VERSION MINOR_VERSION MICRO_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ssize_t_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804 done
805
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826 do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879 else
880 ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CC_set=${CC+set}
924 ac_env_CC_value=$CC
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1005
1006 cat <<\_ACEOF
1007
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --disable-dependency-tracking Speeds up one-time builds
1029 --enable-dependency-tracking Do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --enable-bigfile Enable Linux, AIX, HP/UX, Solaris big files.
1038 --enable-debug Build a debugging version.
1039 --enable-debug_rop Build a version that logs read operations.
1040 --enable-debug_wop Build a version that logs write operations.
1041 --enable-diagnostic Build a version with run-time diagnostics.
1042 --enable-posixmutexes Use POSIX standard mutexes.
1043 --enable-uimutexes Use Unix International mutexes.
1044
1045 Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1050 both]
1051 --with-tags[=TAGS]
1052 include additional configurations [automatic]
1053 --with-zlib=DIR root directory path of zlib installation
1054 --without-zlib to disable zlib usage completely
1055
1056 Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088 ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144 esac
1145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd "$ac_popdir"
1162 done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167 cat <<\_ACEOF
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173 exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by $as_me, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299 {
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312 }
1313 echo
1314
1315 cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427 else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475 done
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509 VERSION=`cat ${srcdir}/../.version`
1510 MAJOR_VERSION=`expr $VERSION : '\([0-9][0-9]*\)'`
1511
1512 MINOR_VERSION=`expr $VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'`
1513
1514 MICRO_VERSION=`expr $VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'`
1515
1516
1517 am__api_version="1.7"
1518 ac_aux_dir=
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1532 fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543 # Find a good install program. We prefer a C program (faster),
1544 # so one script is as good as another. But avoid the broken or
1545 # incompatible versions:
1546 # SysV /etc/install, /usr/sbin/install
1547 # SunOS /usr/etc/install
1548 # IRIX /sbin/install
1549 # AIX /bin/install
1550 # AmigaOS /C/install, which installs bootblocks on floppy discs
1551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1554 # OS/2's system install, which has a completely different semantic
1555 # ./install, which can be erroneously created by make from ./install.sh.
1556 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1557 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1558 if test -z "$INSTALL"; then
1559 if test "${ac_cv_path_install+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 # Account for people who put trailing slashes in PATH elements.
1568 case $as_dir/ in
1569 ./ | .// | /cC/* | \
1570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1571 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572 /usr/ucb/* ) ;;
1573 *)
1574 # OSF1 and SCO ODT 3.0 have their own names for install.
1575 # Don't use installbsd from OSF since it installs stuff as root
1576 # by default.
1577 for ac_prog in ginstall scoinst install; do
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1580 if test $ac_prog = install &&
1581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582 # AIX install. It has an incompatible calling convention.
1583 :
1584 elif test $ac_prog = install &&
1585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586 # program-specific install script used by HP pwplus--don't use.
1587 :
1588 else
1589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1590 break 3
1591 fi
1592 fi
1593 done
1594 done
1595 ;;
1596 esac
1597 done
1598
1599
1600 fi
1601 if test "${ac_cv_path_install+set}" = set; then
1602 INSTALL=$ac_cv_path_install
1603 else
1604 # As a last resort, use the slow shell script. We don't cache a
1605 # path for INSTALL within a source directory, because that will
1606 # break other packages using the cache if that directory is
1607 # removed, or if the path is relative.
1608 INSTALL=$ac_install_sh
1609 fi
1610 fi
1611 echo "$as_me:$LINENO: result: $INSTALL" >&5
1612 echo "${ECHO_T}$INSTALL" >&6
1613
1614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1615 # It thinks the first close brace ends the variable substitution.
1616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617
1618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619
1620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621
1622 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1623 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624 # Just in case
1625 sleep 1
1626 echo timestamp > conftest.file
1627 # Do `set' in a subshell so we don't clobber the current shell's
1628 # arguments. Must try -L first in case configure is actually a
1629 # symlink; some systems play weird games with the mod time of symlinks
1630 # (eg FreeBSD returns the mod time of the symlink's containing
1631 # directory).
1632 if (
1633 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1634 if test "$*" = "X"; then
1635 # -L didn't work.
1636 set X `ls -t $srcdir/configure conftest.file`
1637 fi
1638 rm -f conftest.file
1639 if test "$*" != "X $srcdir/configure conftest.file" \
1640 && test "$*" != "X conftest.file $srcdir/configure"; then
1641
1642 # If neither matched, then we have a broken ls. This can happen
1643 # if, for instance, CONFIG_SHELL is bash and it inherits a
1644 # broken ls alias from the environment. This has actually
1645 # happened. Such a system could not be considered "sane".
1646 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1647 alias in your environment" >&5
1648 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1649 alias in your environment" >&2;}
1650 { (exit 1); exit 1; }; }
1651 fi
1652
1653 test "$2" = conftest.file
1654 )
1655 then
1656 # Ok.
1657 :
1658 else
1659 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1660 Check your system clock" >&5
1661 echo "$as_me: error: newly created file is older than distributed files!
1662 Check your system clock" >&2;}
1663 { (exit 1); exit 1; }; }
1664 fi
1665 echo "$as_me:$LINENO: result: yes" >&5
1666 echo "${ECHO_T}yes" >&6
1667 test "$program_prefix" != NONE &&
1668 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1669 # Use a double $ so make ignores it.
1670 test "$program_suffix" != NONE &&
1671 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1672 # Double any \ or $. echo might interpret backslashes.
1673 # By default was `s,x,x', remove it if useless.
1674 cat <<\_ACEOF >conftest.sed
1675 s/[\\$]/&&/g;s/;s,x,x,$//
1676 _ACEOF
1677 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1678 rm conftest.sed
1679
1680
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687 am_missing_run="$MISSING --run "
1688 else
1689 am_missing_run=
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 fi
1693
1694 for ac_prog in gawk mawk nawk awk
1695 do
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_AWK+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 if test -n "$AWK"; then
1704 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_AWK="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 AWK=$ac_cv_prog_AWK
1723 if test -n "$AWK"; then
1724 echo "$as_me:$LINENO: result: $AWK" >&5
1725 echo "${ECHO_T}$AWK" >&6
1726 else
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731 test -n "$AWK" && break
1732 done
1733
1734 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1735 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1736 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1737 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 cat >conftest.make <<\_ACEOF
1741 all:
1742 @echo 'ac_maketemp="$(MAKE)"'
1743 _ACEOF
1744 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1745 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1746 if test -n "$ac_maketemp"; then
1747 eval ac_cv_prog_make_${ac_make}_set=yes
1748 else
1749 eval ac_cv_prog_make_${ac_make}_set=no
1750 fi
1751 rm -f conftest.make
1752 fi
1753 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1754 echo "$as_me:$LINENO: result: yes" >&5
1755 echo "${ECHO_T}yes" >&6
1756 SET_MAKE=
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1760 SET_MAKE="MAKE=${MAKE-make}"
1761 fi
1762
1763 rm -rf .tst 2>/dev/null
1764 mkdir .tst 2>/dev/null
1765 if test -d .tst; then
1766 am__leading_dot=.
1767 else
1768 am__leading_dot=_
1769 fi
1770 rmdir .tst 2>/dev/null
1771
1772 # test to see if srcdir already configured
1773 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1774 test -f $srcdir/config.status; then
1775 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1776 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1777 { (exit 1); exit 1; }; }
1778 fi
1779
1780 # test whether we have cygpath
1781 if test -z "$CYGPATH_W"; then
1782 if (cygpath --version) >/dev/null 2>/dev/null; then
1783 CYGPATH_W='cygpath -w'
1784 else
1785 CYGPATH_W=echo
1786 fi
1787 fi
1788
1789
1790 # Define the identity of the package.
1791 PACKAGE=htdig_db
1792 VERSION=$VERSION
1793
1794
1795 # Some tools Automake needs.
1796
1797 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1798
1799
1800 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1801
1802
1803 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1804
1805
1806 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1807
1808
1809 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1810
1811
1812 AMTAR=${AMTAR-"${am_missing_run}tar"}
1813
1814 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1815
1816 # Installed binaries are usually stripped using `strip' when the user
1817 # run `make install-strip'. However `strip' might not be the right
1818 # tool to use in cross-compilation environments, therefore Automake
1819 # will honor the `STRIP' environment variable to overrule this program.
1820 if test "$cross_compiling" != no; then
1821 if test -n "$ac_tool_prefix"; then
1822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}strip; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_STRIP+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$STRIP"; then
1830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 STRIP=$ac_cv_prog_STRIP
1849 if test -n "$STRIP"; then
1850 echo "$as_me:$LINENO: result: $STRIP" >&5
1851 echo "${ECHO_T}$STRIP" >&6
1852 else
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 fi
1858 if test -z "$ac_cv_prog_STRIP"; then
1859 ac_ct_STRIP=$STRIP
1860 # Extract the first word of "strip", so it can be a program name with args.
1861 set dummy strip; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$ac_ct_STRIP"; then
1868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_STRIP="strip"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1880 fi
1881 done
1882 done
1883
1884 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1885 fi
1886 fi
1887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1888 if test -n "$ac_ct_STRIP"; then
1889 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1890 echo "${ECHO_T}$ac_ct_STRIP" >&6
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 fi
1895
1896 STRIP=$ac_ct_STRIP
1897 else
1898 STRIP="$ac_cv_prog_STRIP"
1899 fi
1900
1901 fi
1902 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1903
1904 # We need awk for the "check" target. The system "awk" is bad on
1905 # some platforms.
1906
1907
1908
1909
1910 ac_config_headers="$ac_config_headers db_config.h"
1911
1912 # Make sure we can run config.sub.
1913 $ac_config_sub sun4 >/dev/null 2>&1 ||
1914 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1915 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1916 { (exit 1); exit 1; }; }
1917
1918 echo "$as_me:$LINENO: checking build system type" >&5
1919 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1920 if test "${ac_cv_build+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 ac_cv_build_alias=$build_alias
1924 test -z "$ac_cv_build_alias" &&
1925 ac_cv_build_alias=`$ac_config_guess`
1926 test -z "$ac_cv_build_alias" &&
1927 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1928 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1929 { (exit 1); exit 1; }; }
1930 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1931 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1932 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1933 { (exit 1); exit 1; }; }
1934
1935 fi
1936 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1937 echo "${ECHO_T}$ac_cv_build" >&6
1938 build=$ac_cv_build
1939 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1940 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1941 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1942
1943
1944 echo "$as_me:$LINENO: checking host system type" >&5
1945 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1946 if test "${ac_cv_host+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 ac_cv_host_alias=$host_alias
1950 test -z "$ac_cv_host_alias" &&
1951 ac_cv_host_alias=$ac_cv_build_alias
1952 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1953 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1954 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1955 { (exit 1); exit 1; }; }
1956
1957 fi
1958 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1959 echo "${ECHO_T}$ac_cv_host" >&6
1960 host=$ac_cv_host
1961 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1962 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1963 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1964
1965
1966
1967 # Initialize maintainer mode
1968 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1969 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1970 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1971 if test "${enable_maintainer_mode+set}" = set; then
1972 enableval="$enable_maintainer_mode"
1973 USE_MAINTAINER_MODE=$enableval
1974 else
1975 USE_MAINTAINER_MODE=no
1976 fi;
1977 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1978 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1979
1980
1981 if test $USE_MAINTAINER_MODE = yes; then
1982 MAINTAINER_MODE_TRUE=
1983 MAINTAINER_MODE_FALSE='#'
1984 else
1985 MAINTAINER_MODE_TRUE='#'
1986 MAINTAINER_MODE_FALSE=
1987 fi
1988
1989 MAINT=$MAINTAINER_MODE_TRUE
1990
1991
1992
1993 # Checks for programs.
1994 ac_ext=cc
1995 ac_cpp='$CXXCPP $CPPFLAGS'
1996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2001 do
2002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CXX+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$CXX"; then
2010 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2022 fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 CXX=$ac_cv_prog_CXX
2029 if test -n "$CXX"; then
2030 echo "$as_me:$LINENO: result: $CXX" >&5
2031 echo "${ECHO_T}$CXX" >&6
2032 else
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 test -n "$CXX" && break
2038 done
2039 fi
2040 if test -z "$CXX"; then
2041 ac_ct_CXX=$CXX
2042 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2043 do
2044 # Extract the first word of "$ac_prog", so it can be a program name with args.
2045 set dummy $ac_prog; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$ac_ct_CXX"; then
2052 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CXX="$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2064 fi
2065 done
2066 done
2067
2068 fi
2069 fi
2070 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2071 if test -n "$ac_ct_CXX"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2073 echo "${ECHO_T}$ac_ct_CXX" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2077 fi
2078
2079 test -n "$ac_ct_CXX" && break
2080 done
2081 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2082
2083 CXX=$ac_ct_CXX
2084 fi
2085
2086
2087 # Provide some information about the compiler.
2088 echo "$as_me:$LINENO:" \
2089 "checking for C++ compiler version" >&5
2090 ac_compiler=`set X $ac_compile; echo $2`
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2092 (eval $ac_compiler --version </dev/null >&5) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2097 (eval $ac_compiler -v </dev/null >&5) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2102 (eval $ac_compiler -V </dev/null >&5) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2113
2114 int
2115 main ()
2116 {
2117
2118 ;
2119 return 0;
2120 }
2121 _ACEOF
2122 ac_clean_files_save=$ac_clean_files
2123 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2124 # Try to create an executable without -o first, disregard a.out.
2125 # It will help us diagnose broken compilers, and finding out an intuition
2126 # of exeext.
2127 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2128 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2129 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2131 (eval $ac_link_default) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 # Find the output, starting from the most likely. This scheme is
2136 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2137 # resort.
2138
2139 # Be careful to initialize this variable, since it used to be cached.
2140 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2141 ac_cv_exeext=
2142 # b.out is created by i960 compilers.
2143 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2144 do
2145 test -f "$ac_file" || continue
2146 case $ac_file in
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2148 ;;
2149 conftest.$ac_ext )
2150 # This is the source file.
2151 ;;
2152 [ab].out )
2153 # We found the default executable, but exeext='' is most
2154 # certainly right.
2155 break;;
2156 *.* )
2157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158 # FIXME: I believe we export ac_cv_exeext for Libtool,
2159 # but it would be cool to find out if it's true. Does anybody
2160 # maintain Libtool? --akim.
2161 export ac_cv_exeext
2162 break;;
2163 * )
2164 break;;
2165 esac
2166 done
2167 else
2168 echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: C++ compiler cannot create executables
2174 See \`config.log' for more details." >&2;}
2175 { (exit 77); exit 77; }; }
2176 fi
2177
2178 ac_exeext=$ac_cv_exeext
2179 echo "$as_me:$LINENO: result: $ac_file" >&5
2180 echo "${ECHO_T}$ac_file" >&6
2181
2182 # Check the compiler produces executables we can run. If not, either
2183 # the compiler is broken, or we cross compile.
2184 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2185 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2186 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2187 # If not cross compiling, check that we can run a simple program.
2188 if test "$cross_compiling" != yes; then
2189 if { ac_try='./$ac_file'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 cross_compiling=no
2196 else
2197 if test "$cross_compiling" = maybe; then
2198 cross_compiling=yes
2199 else
2200 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2201 If you meant to cross compile, use \`--host'.
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: cannot run C++ compiled programs.
2204 If you meant to cross compile, use \`--host'.
2205 See \`config.log' for more details." >&2;}
2206 { (exit 1); exit 1; }; }
2207 fi
2208 fi
2209 fi
2210 echo "$as_me:$LINENO: result: yes" >&5
2211 echo "${ECHO_T}yes" >&6
2212
2213 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2214 ac_clean_files=$ac_clean_files_save
2215 # Check the compiler produces executables we can run. If not, either
2216 # the compiler is broken, or we cross compile.
2217 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2218 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2219 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2220 echo "${ECHO_T}$cross_compiling" >&6
2221
2222 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2223 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2225 (eval $ac_link) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; then
2229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2230 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2231 # work properly (i.e., refer to `conftest.exe'), while it won't with
2232 # `rm'.
2233 for ac_file in conftest.exe conftest conftest.*; do
2234 test -f "$ac_file" || continue
2235 case $ac_file in
2236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238 export ac_cv_exeext
2239 break;;
2240 * ) break;;
2241 esac
2242 done
2243 else
2244 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2245 See \`config.log' for more details." >&5
2246 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2249 fi
2250
2251 rm -f conftest$ac_cv_exeext
2252 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2253 echo "${ECHO_T}$ac_cv_exeext" >&6
2254
2255 rm -f conftest.$ac_ext
2256 EXEEXT=$ac_cv_exeext
2257 ac_exeext=$EXEEXT
2258 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2259 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2260 if test "${ac_cv_objext+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h. */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2269
2270 int
2271 main ()
2272 {
2273
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 rm -f conftest.o conftest.obj
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
2284 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2288 break;;
2289 esac
2290 done
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2298 See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
2300 fi
2301
2302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2303 fi
2304 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2305 echo "${ECHO_T}$ac_cv_objext" >&6
2306 OBJEXT=$ac_cv_objext
2307 ac_objext=$OBJEXT
2308 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2309 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2310 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2319
2320 int
2321 main ()
2322 {
2323 #ifndef __GNUC__
2324 choke me
2325 #endif
2326
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2334 ac_status=$?
2335 grep -v '^ *+' conftest.er1 >conftest.err
2336 rm -f conftest.er1
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_compiler_gnu=yes
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2356
2357 ac_compiler_gnu=no
2358 fi
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2361
2362 fi
2363 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2365 GXX=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CXXFLAGS=${CXXFLAGS+set}
2367 ac_save_CXXFLAGS=$CXXFLAGS
2368 CXXFLAGS="-g"
2369 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2370 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cxx_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2380
2381 int
2382 main ()
2383 {
2384
2385 ;
2386 return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_cv_prog_cxx_g=yes
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_cv_prog_cxx_g=no
2416 fi
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418 fi
2419 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2420 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2421 if test "$ac_test_CXXFLAGS" = set; then
2422 CXXFLAGS=$ac_save_CXXFLAGS
2423 elif test $ac_cv_prog_cxx_g = yes; then
2424 if test "$GXX" = yes; then
2425 CXXFLAGS="-g -O2"
2426 else
2427 CXXFLAGS="-g"
2428 fi
2429 else
2430 if test "$GXX" = yes; then
2431 CXXFLAGS="-O2"
2432 else
2433 CXXFLAGS=
2434 fi
2435 fi
2436 for ac_declaration in \
2437 '' \
2438 'extern "C" void std::exit (int) throw (); using std::exit;' \
2439 'extern "C" void std::exit (int); using std::exit;' \
2440 'extern "C" void exit (int) throw ();' \
2441 'extern "C" void exit (int);' \
2442 'void exit (int);'
2443 do
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 $ac_declaration
2451 #include <stdlib.h>
2452 int
2453 main ()
2454 {
2455 exit (42);
2456 ;
2457 return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.$ac_objext
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462 (eval $ac_compile) 2>conftest.er1
2463 ac_status=$?
2464 grep -v '^ *+' conftest.er1 >conftest.err
2465 rm -f conftest.er1
2466 cat conftest.err >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } &&
2469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 :
2482 else
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 continue
2487 fi
2488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2495 $ac_declaration
2496 int
2497 main ()
2498 {
2499 exit (42);
2500 ;
2501 return 0;
2502 }
2503 _ACEOF
2504 rm -f conftest.$ac_objext
2505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2506 (eval $ac_compile) 2>conftest.er1
2507 ac_status=$?
2508 grep -v '^ *+' conftest.er1 >conftest.err
2509 rm -f conftest.er1
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 break
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 fi
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 done
2533 rm -f conftest*
2534 if test -n "$ac_declaration"; then
2535 echo '#ifdef __cplusplus' >>confdefs.h
2536 echo $ac_declaration >>confdefs.h
2537 echo '#endif' >>confdefs.h
2538 fi
2539
2540 ac_ext=c
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 DEPDIR="${am__leading_dot}deps"
2546
2547 ac_config_commands="$ac_config_commands depfiles"
2548
2549
2550 am_make=${MAKE-make}
2551 cat > confinc << 'END'
2552 am__doit:
2553 @echo done
2554 .PHONY: am__doit
2555 END
2556 # If we don't find an include directive, just comment out the code.
2557 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2558 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2559 am__include="#"
2560 am__quote=
2561 _am_result=none
2562 # First try GNU make style include.
2563 echo "include confinc" > confmf
2564 # We grep out `Entering directory' and `Leaving directory'
2565 # messages which can occur if `w' ends up in MAKEFLAGS.
2566 # In particular we don't look at `^make:' because GNU make might
2567 # be invoked under some other name (usually "gmake"), in which
2568 # case it prints its new name instead of `make'.
2569 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2570 am__include=include
2571 am__quote=
2572 _am_result=GNU
2573 fi
2574 # Now try BSD make style include.
2575 if test "$am__include" = "#"; then
2576 echo '.include "confinc"' > confmf
2577 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2578 am__include=.include
2579 am__quote="\""
2580 _am_result=BSD
2581 fi
2582 fi
2583
2584
2585 echo "$as_me:$LINENO: result: $_am_result" >&5
2586 echo "${ECHO_T}$_am_result" >&6
2587 rm -f confinc confmf
2588
2589 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2590 if test "${enable_dependency_tracking+set}" = set; then
2591 enableval="$enable_dependency_tracking"
2592
2593 fi;
2594 if test "x$enable_dependency_tracking" != xno; then
2595 am_depcomp="$ac_aux_dir/depcomp"
2596 AMDEPBACKSLASH='\'
2597 fi
2598
2599
2600 if test "x$enable_dependency_tracking" != xno; then
2601 AMDEP_TRUE=
2602 AMDEP_FALSE='#'
2603 else
2604 AMDEP_TRUE='#'
2605 AMDEP_FALSE=
2606 fi
2607
2608
2609
2610
2611 depcc="$CXX" am_compiler_list=
2612
2613 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2614 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2615 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2619 # We make a subdir and do the tests there. Otherwise we can end up
2620 # making bogus files that we don't know about and never remove. For
2621 # instance it was reported that on HP-UX the gcc test will end up
2622 # making a dummy file named `D' -- because `-MD' means `put the output
2623 # in D'.
2624 mkdir conftest.dir
2625 # Copy depcomp to subdir because otherwise we won't find it if we're
2626 # using a relative directory.
2627 cp "$am_depcomp" conftest.dir
2628 cd conftest.dir
2629 # We will build objects and dependencies in a subdirectory because
2630 # it helps to detect inapplicable dependency modes. For instance
2631 # both Tru64's cc and ICC support -MD to output dependencies as a
2632 # side effect of compilation, but ICC will put the dependencies in
2633 # the current directory while Tru64 will put them in the object
2634 # directory.
2635 mkdir sub
2636
2637 am_cv_CXX_dependencies_compiler_type=none
2638 if test "$am_compiler_list" = ""; then
2639 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2640 fi
2641 for depmode in $am_compiler_list; do
2642 # Setup a source with many dependencies, because some compilers
2643 # like to wrap large dependency lists on column 80 (with \), and
2644 # we should not choose a depcomp mode which is confused by this.
2645 #
2646 # We need to recreate these files for each test, as the compiler may
2647 # overwrite some of them when testing with obscure command lines.
2648 # This happens at least with the AIX C compiler.
2649 : > sub/conftest.c
2650 for i in 1 2 3 4 5 6; do
2651 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2652 : > sub/conftst$i.h
2653 done
2654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2655
2656 case $depmode in
2657 nosideeffect)
2658 # after this tag, mechanisms are not by side-effect, so they'll
2659 # only be used when explicitly requested
2660 if test "x$enable_dependency_tracking" = xyes; then
2661 continue
2662 else
2663 break
2664 fi
2665 ;;
2666 none) break ;;
2667 esac
2668 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2669 # mode. It turns out that the SunPro C++ compiler does not properly
2670 # handle `-M -o', and we need to detect this.
2671 if depmode=$depmode \
2672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2675 >/dev/null 2>conftest.err &&
2676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2677 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2679 # icc doesn't choke on unknown options, it will just issue warnings
2680 # (even with -Werror). So we grep stderr for any message
2681 # that says an option was ignored.
2682 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2683 am_cv_CXX_dependencies_compiler_type=$depmode
2684 break
2685 fi
2686 fi
2687 done
2688
2689 cd ..
2690 rm -rf conftest.dir
2691 else
2692 am_cv_CXX_dependencies_compiler_type=none
2693 fi
2694
2695 fi
2696 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2697 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2698 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2699
2700
2701
2702 if
2703 test "x$enable_dependency_tracking" != xno \
2704 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2705 am__fastdepCXX_TRUE=
2706 am__fastdepCXX_FALSE='#'
2707 else
2708 am__fastdepCXX_TRUE='#'
2709 am__fastdepCXX_FALSE=
2710 fi
2711
2712
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742
2743 fi
2744 fi
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747 echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752 fi
2753
2754 fi
2755 if test -z "$ac_cv_prog_CC"; then
2756 ac_ct_CC=$CC
2757 # Extract the first word of "gcc", so it can be a program name with args.
2758 set dummy gcc; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$ac_ct_CC"; then
2765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_ac_ct_CC="gcc"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778 done
2779 done
2780
2781 fi
2782 fi
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 echo "${ECHO_T}$ac_ct_CC" >&6
2787 else
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790 fi
2791
2792 CC=$ac_ct_CC
2793 else
2794 CC="$ac_cv_prog_CC"
2795 fi
2796
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cc; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="${ac_tool_prefix}cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827 echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834 fi
2835 if test -z "$ac_cv_prog_CC"; then
2836 ac_ct_CC=$CC
2837 # Extract the first word of "cc", so it can be a program name with args.
2838 set dummy cc; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC="cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2867 else
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872 CC=$ac_ct_CC
2873 else
2874 CC="$ac_cv_prog_CC"
2875 fi
2876
2877 fi
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 ac_prog_rejected=no
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected=yes
2899 continue
2900 fi
2901 ac_cv_prog_CC="cc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy $ac_cv_prog_CC
2911 shift
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2916 shift
2917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918 fi
2919 fi
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 fi
2930
2931 fi
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl
2935 do
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957 done
2958 done
2959
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6
2966 else
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2969 fi
2970
2971 test -n "$CC" && break
2972 done
2973 fi
2974 if test -z "$CC"; then
2975 ac_ct_CC=$CC
2976 for ac_prog in cl
2977 do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001
3002 fi
3003 fi
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3011 fi
3012
3013 test -n "$ac_ct_CC" && break
3014 done
3015
3016 CC=$ac_ct_CC
3017 fi
3018
3019 fi
3020
3021
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3027
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO:" \
3030 "checking for C compiler version" >&5
3031 ac_compiler=`set X $ac_compile; echo $2`
3032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3033 (eval $ac_compiler --version </dev/null >&5) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3038 (eval $ac_compiler -v </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3043 (eval $ac_compiler -V </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047
3048 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3049 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059
3060 int
3061 main ()
3062 {
3063 #ifndef __GNUC__
3064 choke me
3065 #endif
3066
3067 ;
3068 return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073 (eval $ac_compile) 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 (eval $ac_try) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3092 ac_compiler_gnu=yes
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 ac_compiler_gnu=no
3098 fi
3099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3101
3102 fi
3103 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3104 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3105 GCC=`test $ac_compiler_gnu = yes && echo yes`
3106 ac_test_CFLAGS=${CFLAGS+set}
3107 ac_save_CFLAGS=$CFLAGS
3108 CFLAGS="-g"
3109 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3110 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3111 if test "${ac_cv_prog_cc_g+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120
3121 int
3122 main ()
3123 {
3124
3125 ;
3126 return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 (eval $ac_try) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cc_g=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_cv_prog_cc_g=no
3156 fi
3157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3158 fi
3159 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3160 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3161 if test "$ac_test_CFLAGS" = set; then
3162 CFLAGS=$ac_save_CFLAGS
3163 elif test $ac_cv_prog_cc_g = yes; then
3164 if test "$GCC" = yes; then
3165 CFLAGS="-g -O2"
3166 else
3167 CFLAGS="-g"
3168 fi
3169 else
3170 if test "$GCC" = yes; then
3171 CFLAGS="-O2"
3172 else
3173 CFLAGS=
3174 fi
3175 fi
3176 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3177 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3178 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 ac_cv_prog_cc_stdc=no
3182 ac_save_CC=$CC
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <stdarg.h>
3190 #include <stdio.h>
3191 #include <sys/types.h>
3192 #include <sys/stat.h>
3193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3194 struct buf { int x; };
3195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3196 static char *e (p, i)
3197 char **p;
3198 int i;
3199 {
3200 return p[i];
3201 }
3202 static char *f (char * (*g) (char **, int), char **p, ...)
3203 {
3204 char *s;
3205 va_list v;
3206 va_start (v,p);
3207 s = g (p, va_arg (v,int));
3208 va_end (v);
3209 return s;
3210 }
3211
3212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3213 function prototypes and stuff, but not '\xHH' hex character constants.
3214 These don't provoke an error unfortunately, instead are silently treated
3215 as 'x'. The following induces an error, until -std1 is added to get
3216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3217 array size at least. It's necessary to write '\x00'==0 to get something
3218 that's true only with -std1. */
3219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220
3221 int test (int i, double x);
3222 struct s1 {int (*f) (int a);};
3223 struct s2 {int (*f) (double a);};
3224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3225 int argc;
3226 char **argv;
3227 int
3228 main ()
3229 {
3230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 # Don't try gcc -ansi; that turns off useful extensions and
3236 # breaks some systems' header files.
3237 # AIX -qlanglvl=ansi
3238 # Ultrix and OSF/1 -std1
3239 # HP-UX 10.20 and later -Ae
3240 # HP-UX older versions -Aa -D_HPUX_SOURCE
3241 # SVR4 -Xc -D__EXTENSIONS__
3242 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243 do
3244 CC="$ac_save_CC $ac_arg"
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_cv_prog_cc_stdc=$ac_arg
3267 break
3268 else
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3271
3272 fi
3273 rm -f conftest.err conftest.$ac_objext
3274 done
3275 rm -f conftest.$ac_ext conftest.$ac_objext
3276 CC=$ac_save_CC
3277
3278 fi
3279
3280 case "x$ac_cv_prog_cc_stdc" in
3281 x|xno)
3282 echo "$as_me:$LINENO: result: none needed" >&5
3283 echo "${ECHO_T}none needed" >&6 ;;
3284 *)
3285 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3286 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3287 CC="$CC $ac_cv_prog_cc_stdc" ;;
3288 esac
3289
3290 # Some people use a C++ compiler to compile C. Since we use `exit',
3291 # in C++ we need to declare it. In case someone uses the same compiler
3292 # for both compiling C and C++ we need to have the C++ compiler decide
3293 # the declaration of exit, since it's the most demanding environment.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 #ifndef __cplusplus
3296 choke me
3297 #endif
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 for ac_declaration in \
3321 '' \
3322 'extern "C" void std::exit (int) throw (); using std::exit;' \
3323 'extern "C" void std::exit (int); using std::exit;' \
3324 'extern "C" void exit (int) throw ();' \
3325 'extern "C" void exit (int);' \
3326 'void exit (int);'
3327 do
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 $ac_declaration
3335 #include <stdlib.h>
3336 int
3337 main ()
3338 {
3339 exit (42);
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 :
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 continue
3371 fi
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 $ac_declaration
3380 int
3381 main ()
3382 {
3383 exit (42);
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390 (eval $ac_compile) 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 break
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 fi
3415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416 done
3417 rm -f conftest*
3418 if test -n "$ac_declaration"; then
3419 echo '#ifdef __cplusplus' >>confdefs.h
3420 echo $ac_declaration >>confdefs.h
3421 echo '#endif' >>confdefs.h
3422 fi
3423
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 fi
3429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436 depcc="$CC" am_compiler_list=
3437
3438 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444 # We make a subdir and do the tests there. Otherwise we can end up
3445 # making bogus files that we don't know about and never remove. For
3446 # instance it was reported that on HP-UX the gcc test will end up
3447 # making a dummy file named `D' -- because `-MD' means `put the output
3448 # in D'.
3449 mkdir conftest.dir
3450 # Copy depcomp to subdir because otherwise we won't find it if we're
3451 # using a relative directory.
3452 cp "$am_depcomp" conftest.dir
3453 cd conftest.dir
3454 # We will build objects and dependencies in a subdirectory because
3455 # it helps to detect inapplicable dependency modes. For instance
3456 # both Tru64's cc and ICC support -MD to output dependencies as a
3457 # side effect of compilation, but ICC will put the dependencies in
3458 # the current directory while Tru64 will put them in the object
3459 # directory.
3460 mkdir sub
3461
3462 am_cv_CC_dependencies_compiler_type=none
3463 if test "$am_compiler_list" = ""; then
3464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3465 fi
3466 for depmode in $am_compiler_list; do
3467 # Setup a source with many dependencies, because some compilers
3468 # like to wrap large dependency lists on column 80 (with \), and
3469 # we should not choose a depcomp mode which is confused by this.
3470 #
3471 # We need to recreate these files for each test, as the compiler may
3472 # overwrite some of them when testing with obscure command lines.
3473 # This happens at least with the AIX C compiler.
3474 : > sub/conftest.c
3475 for i in 1 2 3 4 5 6; do
3476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3477 : > sub/conftst$i.h
3478 done
3479 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3480
3481 case $depmode in
3482 nosideeffect)
3483 # after this tag, mechanisms are not by side-effect, so they'll
3484 # only be used when explicitly requested
3485 if test "x$enable_dependency_tracking" = xyes; then
3486 continue
3487 else
3488 break
3489 fi
3490 ;;
3491 none) break ;;
3492 esac
3493 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3494 # mode. It turns out that the SunPro C++ compiler does not properly
3495 # handle `-M -o', and we need to detect this.
3496 if depmode=$depmode \
3497 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3499 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3500 >/dev/null 2>conftest.err &&
3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored.
3507 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3508 am_cv_CC_dependencies_compiler_type=$depmode
3509 break
3510 fi
3511 fi
3512 done
3513
3514 cd ..
3515 rm -rf conftest.dir
3516 else
3517 am_cv_CC_dependencies_compiler_type=none
3518 fi
3519
3520 fi
3521 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3522 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3523 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3524
3525
3526
3527 if
3528 test "x$enable_dependency_tracking" != xno \
3529 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3530 am__fastdepCC_TRUE=
3531 am__fastdepCC_FALSE='#'
3532 else
3533 am__fastdepCC_TRUE='#'
3534 am__fastdepCC_FALSE=
3535 fi
3536
3537
3538 # Check whether --enable-shared or --disable-shared was given.
3539 if test "${enable_shared+set}" = set; then
3540 enableval="$enable_shared"
3541 p=${PACKAGE-default}
3542 case $enableval in
3543 yes) enable_shared=yes ;;
3544 no) enable_shared=no ;;
3545 *)
3546 enable_shared=no
3547 # Look at the argument we got. We use all the common list separators.
3548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3549 for pkg in $enableval; do
3550 IFS="$lt_save_ifs"
3551 if test "X$pkg" = "X$p"; then
3552 enable_shared=yes
3553 fi
3554 done
3555 IFS="$lt_save_ifs"
3556 ;;
3557 esac
3558 else
3559 enable_shared=yes
3560 fi;
3561
3562 # Check whether --enable-static or --disable-static was given.
3563 if test "${enable_static+set}" = set; then
3564 enableval="$enable_static"
3565 p=${PACKAGE-default}
3566 case $enableval in
3567 yes) enable_static=yes ;;
3568 no) enable_static=no ;;
3569 *)
3570 enable_static=no
3571 # Look at the argument we got. We use all the common list separators.
3572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3573 for pkg in $enableval; do
3574 IFS="$lt_save_ifs"
3575 if test "X$pkg" = "X$p"; then
3576 enable_static=yes
3577 fi
3578 done
3579 IFS="$lt_save_ifs"
3580 ;;
3581 esac
3582 else
3583 enable_static=yes
3584 fi;
3585
3586 # Check whether --enable-fast-install or --disable-fast-install was given.
3587 if test "${enable_fast_install+set}" = set; then
3588 enableval="$enable_fast_install"
3589 p=${PACKAGE-default}
3590 case $enableval in
3591 yes) enable_fast_install=yes ;;
3592 no) enable_fast_install=no ;;
3593 *)
3594 enable_fast_install=no
3595 # Look at the argument we got. We use all the common list separators.
3596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3597 for pkg in $enableval; do
3598 IFS="$lt_save_ifs"
3599 if test "X$pkg" = "X$p"; then
3600 enable_fast_install=yes
3601 fi
3602 done
3603 IFS="$lt_save_ifs"
3604 ;;
3605 esac
3606 else
3607 enable_fast_install=yes
3608 fi;
3609
3610 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3611 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3612 if test "${lt_cv_path_SED+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 # Loop through the user's path and test for sed and gsed.
3616 # Then use that list of sed's as ones to test for truncation.
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for lt_ac_prog in sed gsed; do
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3625 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3626 fi
3627 done
3628 done
3629 done
3630 lt_ac_max=0
3631 lt_ac_count=0
3632 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3633 # along with /bin/sed that truncates output.
3634 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3635 test ! -f $lt_ac_sed && break
3636 cat /dev/null > conftest.in
3637 lt_ac_count=0
3638 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3639 # Check for GNU sed and select it if it is found.
3640 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3641 lt_cv_path_SED=$lt_ac_sed
3642 break
3643 fi
3644 while true; do
3645 cat conftest.in conftest.in >conftest.tmp
3646 mv conftest.tmp conftest.in
3647 cp conftest.in conftest.nl
3648 echo >>conftest.nl
3649 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3650 cmp -s conftest.out conftest.nl || break
3651 # 10000 chars as input seems more than enough
3652 test $lt_ac_count -gt 10 && break
3653 lt_ac_count=`expr $lt_ac_count + 1`
3654 if test $lt_ac_count -gt $lt_ac_max; then
3655 lt_ac_max=$lt_ac_count
3656 lt_cv_path_SED=$lt_ac_sed
3657 fi
3658 done
3659 done
3660 SED=$lt_cv_path_SED
3661
3662 fi
3663
3664 echo "$as_me:$LINENO: result: $SED" >&5
3665 echo "${ECHO_T}$SED" >&6
3666
3667 echo "$as_me:$LINENO: checking for egrep" >&5
3668 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3669 if test "${ac_cv_prog_egrep+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3673 then ac_cv_prog_egrep='grep -E'
3674 else ac_cv_prog_egrep='egrep'
3675 fi
3676 fi
3677 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3678 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3679 EGREP=$ac_cv_prog_egrep
3680
3681
3682
3683 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3684 if test "${with_gnu_ld+set}" = set; then
3685 withval="$with_gnu_ld"
3686 test "$withval" = no || with_gnu_ld=yes
3687 else
3688 with_gnu_ld=no
3689 fi;
3690 ac_prog=ld
3691 if test "$GCC" = yes; then
3692 # Check if gcc -print-prog-name=ld gives a path.
3693 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3694 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3695 case $host in
3696 *-*-mingw*)
3697 # gcc leaves a trailing carriage return which upsets mingw
3698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3699 *)
3700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3701 esac
3702 case $ac_prog in
3703 # Accept absolute paths.
3704 [\\/]* | ?:[\\/]*)
3705 re_direlt='/[^/][^/]*/\.\./'
3706 # Canonicalize the pathname of ld
3707 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3708 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3709 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3710 done
3711 test -z "$LD" && LD="$ac_prog"
3712 ;;
3713 "")
3714 # If it fails, then pretend we aren't using GCC.
3715 ac_prog=ld
3716 ;;
3717 *)
3718 # If it is relative, then search for the first ld in PATH.
3719 with_gnu_ld=unknown
3720 ;;
3721 esac
3722 elif test "$with_gnu_ld" = yes; then
3723 echo "$as_me:$LINENO: checking for GNU ld" >&5
3724 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3725 else
3726 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3727 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3728 fi
3729 if test "${lt_cv_path_LD+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 if test -z "$LD"; then
3733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3734 for ac_dir in $PATH; do
3735 IFS="$lt_save_ifs"
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3738 lt_cv_path_LD="$ac_dir/$ac_prog"
3739 # Check to see if the program is GNU ld. I'd rather use --version,
3740 # but apparently some GNU ld's only accept -v.
3741 # Break only if it was the GNU/non-GNU ld that we prefer.
3742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3743 *GNU* | *'with BFD'*)
3744 test "$with_gnu_ld" != no && break
3745 ;;
3746 *)
3747 test "$with_gnu_ld" != yes && break
3748 ;;
3749 esac
3750 fi
3751 done
3752 IFS="$lt_save_ifs"
3753 else
3754 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3755 fi
3756 fi
3757
3758 LD="$lt_cv_path_LD"
3759 if test -n "$LD"; then
3760 echo "$as_me:$LINENO: result: $LD" >&5
3761 echo "${ECHO_T}$LD" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3765 fi
3766 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3767 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3768 { (exit 1); exit 1; }; }
3769 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3770 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3771 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3775 case `$LD -v 2>&1 </dev/null` in
3776 *GNU* | *'with BFD'*)
3777 lt_cv_prog_gnu_ld=yes
3778 ;;
3779 *)
3780 lt_cv_prog_gnu_ld=no
3781 ;;
3782 esac
3783 fi
3784 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3785 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3786 with_gnu_ld=$lt_cv_prog_gnu_ld
3787
3788
3789 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3790 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3791 if test "${lt_cv_ld_reload_flag+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 lt_cv_ld_reload_flag='-r'
3795 fi
3796 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3797 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3798 reload_flag=$lt_cv_ld_reload_flag
3799 case $reload_flag in
3800 "" | " "*) ;;
3801 *) reload_flag=" $reload_flag" ;;
3802 esac
3803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3804
3805 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3806 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3807 if test "${lt_cv_path_NM+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 if test -n "$NM"; then
3811 # Let the user override the test.
3812 lt_cv_path_NM="$NM"
3813 else
3814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3815 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3816 IFS="$lt_save_ifs"
3817 test -z "$ac_dir" && ac_dir=.
3818 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3819 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3820 # Check to see if the nm accepts a BSD-compat flag.
3821 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3822 # nm: unknown option "B" ignored
3823 # Tru64's nm complains that /dev/null is an invalid object file
3824 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3825 */dev/null* | *'Invalid file or object type'*)
3826 lt_cv_path_NM="$tmp_nm -B"
3827 break
3828 ;;
3829 *)
3830 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3831 */dev/null*)
3832 lt_cv_path_NM="$tmp_nm -p"
3833 break
3834 ;;
3835 *)
3836 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3837 continue # so that we can try to find one that supports BSD flags
3838 ;;
3839 esac
3840 esac
3841 fi
3842 done
3843 IFS="$lt_save_ifs"
3844 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3845 fi
3846 fi
3847 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3848 echo "${ECHO_T}$lt_cv_path_NM" >&6
3849 NM="$lt_cv_path_NM"
3850
3851 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3852 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3853 LN_S=$as_ln_s
3854 if test "$LN_S" = "ln -s"; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856 echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3859 echo "${ECHO_T}no, using $LN_S" >&6
3860 fi
3861
3862 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3863 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3864 if test "${lt_cv_deplibs_check_method+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 lt_cv_file_magic_cmd='$MAGIC_CMD'
3868 lt_cv_file_magic_test_file=
3869 lt_cv_deplibs_check_method='unknown'
3870 # Need to set the preceding variable on all platforms that support
3871 # interlibrary dependencies.
3872 # 'none' -- dependencies not supported.
3873 # `unknown' -- same as none, but documents that we really don't know.
3874 # 'pass_all' -- all dependencies passed with no checks.
3875 # 'test_compile' -- check by making test program.
3876 # 'file_magic [[regex]]' -- check by looking for files in library path
3877 # which responds to the $file_magic_cmd with a given extended regex.
3878 # If you have `file' or equivalent on your system and you're not sure
3879 # whether `pass_all' will *always* work, you probably want this one.
3880
3881 case $host_os in
3882 aix4* | aix5*)
3883 lt_cv_deplibs_check_method=pass_all
3884 ;;
3885
3886 beos*)
3887 lt_cv_deplibs_check_method=pass_all
3888 ;;
3889
3890 bsdi4*)
3891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3892 lt_cv_file_magic_cmd='/usr/bin/file -L'
3893 lt_cv_file_magic_test_file=/shlib/libc.so
3894 ;;
3895
3896 cygwin*)
3897 # func_win32_libid is a shell function defined in ltmain.sh
3898 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3899 lt_cv_file_magic_cmd='func_win32_libid'
3900 ;;
3901
3902 mingw* | pw32*)
3903 # Base MSYS/MinGW do not provide the 'file' command needed by
3904 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3905 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3906 lt_cv_file_magic_cmd='$OBJDUMP -f'
3907 ;;
3908
3909 darwin* | rhapsody*)
3910 lt_cv_deplibs_check_method=pass_all
3911 ;;
3912
3913 freebsd* | kfreebsd*-gnu)
3914 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3915 case $host_cpu in
3916 i*86 )
3917 # Not sure whether the presence of OpenBSD here was a mistake.
3918 # Let's accept both of them until this is cleared up.
3919 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3920 lt_cv_file_magic_cmd=/usr/bin/file
3921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3922 ;;
3923 esac
3924 else
3925 lt_cv_deplibs_check_method=pass_all
3926 fi
3927 ;;
3928
3929 gnu*)
3930 lt_cv_deplibs_check_method=pass_all
3931 ;;
3932
3933 hpux10.20* | hpux11*)
3934 lt_cv_file_magic_cmd=/usr/bin/file
3935 case "$host_cpu" in
3936 ia64*)
3937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3939 ;;
3940 hppa*64*)
3941 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]'
3942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3943 ;;
3944 *)
3945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3946 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3947 ;;
3948 esac
3949 ;;
3950
3951 irix5* | irix6* | nonstopux*)
3952 case $LD in
3953 *-32|*"-32 ") libmagic=32-bit;;
3954 *-n32|*"-n32 ") libmagic=N32;;
3955 *-64|*"-64 ") libmagic=64-bit;;
3956 *) libmagic=never-match;;
3957 esac
3958 lt_cv_deplibs_check_method=pass_all
3959 ;;
3960
3961 # This must be Linux ELF.
3962 linux*)
3963 lt_cv_deplibs_check_method=pass_all
3964 ;;
3965
3966 netbsd* | knetbsd*-gnu)
3967 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3969 else
3970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3971 fi
3972 ;;
3973
3974 newos6*)
3975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3976 lt_cv_file_magic_cmd=/usr/bin/file
3977 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3978 ;;
3979
3980 nto-qnx*)
3981 lt_cv_deplibs_check_method=unknown
3982 ;;
3983
3984 openbsd*)
3985 lt_cv_file_magic_cmd=/usr/bin/file
3986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3989 else
3990 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3991 fi
3992 ;;
3993
3994 osf3* | osf4* | osf5*)
3995 lt_cv_deplibs_check_method=pass_all
3996 ;;
3997
3998 sco3.2v5*)
3999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002 solaris*)
4003 lt_cv_deplibs_check_method=pass_all
4004 ;;
4005
4006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4007 case $host_vendor in
4008 motorola)
4009 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]'
4010 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4011 ;;
4012 ncr)
4013 lt_cv_deplibs_check_method=pass_all
4014 ;;
4015 sequent)
4016 lt_cv_file_magic_cmd='/bin/file'
4017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4018 ;;
4019 sni)
4020 lt_cv_file_magic_cmd='/bin/file'
4021 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4022 lt_cv_file_magic_test_file=/lib/libc.so
4023 ;;
4024 siemens)
4025 lt_cv_deplibs_check_method=pass_all
4026 ;;
4027 esac
4028 ;;
4029
4030 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4031 lt_cv_deplibs_check_method=pass_all
4032 ;;
4033 esac
4034
4035 fi
4036 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4037 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4038 file_magic_cmd=$lt_cv_file_magic_cmd
4039 deplibs_check_method=$lt_cv_deplibs_check_method
4040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4041
4042
4043
4044
4045 # If no C compiler was specified, use CC.
4046 LTCC=${LTCC-"$CC"}
4047
4048 # Allow CC to be a program name with arguments.
4049 compiler=$CC
4050
4051
4052 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4053 if test "${enable_libtool_lock+set}" = set; then
4054 enableval="$enable_libtool_lock"
4055
4056 fi;
4057 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4058
4059 # Some flags need to be propagated to the compiler or linker for good
4060 # libtool support.
4061 case $host in
4062 ia64-*-hpux*)
4063 # Find out which ABI we are using.
4064 echo 'int i;' > conftest.$ac_ext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; then
4070 case `/usr/bin/file conftest.$ac_objext` in
4071 *ELF-32*)
4072 HPUX_IA64_MODE="32"
4073 ;;
4074 *ELF-64*)
4075 HPUX_IA64_MODE="64"
4076 ;;
4077 esac
4078 fi
4079 rm -rf conftest*
4080 ;;
4081 *-*-irix6*)
4082 # Find out which ABI we are using.
4083 echo '#line 4083 "configure"' > conftest.$ac_ext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; then
4089 if test "$lt_cv_prog_gnu_ld" = yes; then
4090 case `/usr/bin/file conftest.$ac_objext` in
4091 *32-bit*)
4092 LD="${LD-ld} -melf32bsmip"
4093 ;;
4094 *N32*)
4095 LD="${LD-ld} -melf32bmipn32"
4096 ;;
4097 *64-bit*)
4098 LD="${LD-ld} -melf64bmip"
4099 ;;
4100 esac
4101 else
4102 case `/usr/bin/file conftest.$ac_objext` in
4103 *32-bit*)
4104 LD="${LD-ld} -32"
4105 ;;
4106 *N32*)
4107 LD="${LD-ld} -n32"
4108 ;;
4109 *64-bit*)
4110 LD="${LD-ld} -64"
4111 ;;
4112 esac
4113 fi
4114 fi
4115 rm -rf conftest*
4116 ;;
4117
4118 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4119 # Find out which ABI we are using.
4120 echo 'int i;' > conftest.$ac_ext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; then
4126 case "`/usr/bin/file conftest.o`" in
4127 *32-bit*)
4128 case $host in
4129 x86_64-*linux*)
4130 LD="${LD-ld} -m elf_i386"
4131 ;;
4132 ppc64-*linux*|powerpc64-*linux*)
4133 LD="${LD-ld} -m elf32ppclinux"
4134 ;;
4135 s390x-*linux*)
4136 LD="${LD-ld} -m elf_s390"
4137 ;;
4138 sparc64-*linux*)
4139 LD="${LD-ld} -m elf32_sparc"
4140 ;;
4141 esac
4142 ;;
4143 *64-bit*)
4144 case $host in
4145 x86_64-*linux*)
4146 LD="${LD-ld} -m elf_x86_64"
4147 ;;
4148 ppc*-*linux*|powerpc*-*linux*)
4149 LD="${LD-ld} -m elf64ppc"
4150 ;;
4151 s390*-*linux*)
4152 LD="${LD-ld} -m elf64_s390"
4153 ;;
4154 sparc*-*linux*)
4155 LD="${LD-ld} -m elf64_sparc"
4156 ;;
4157 esac
4158 ;;
4159 esac
4160 fi
4161 rm -rf conftest*
4162 ;;
4163
4164 *-*-sco3.2v5*)
4165 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4166 SAVE_CFLAGS="$CFLAGS"
4167 CFLAGS="$CFLAGS -belf"
4168 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4169 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4170 if test "${lt_cv_cc_needs_belf+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185
4186 int
4187 main ()
4188 {
4189
4190 ;
4191 return 0;
4192 }
4193 _ACEOF
4194 rm -f conftest.$ac_objext conftest$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196 (eval $ac_link) 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 lt_cv_cc_needs_belf=yes
4216 else
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 lt_cv_cc_needs_belf=no
4221 fi
4222 rm -f conftest.err conftest.$ac_objext \
4223 conftest$ac_exeext conftest.$ac_ext
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230 fi
4231 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4232 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4233 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4234 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4235 CFLAGS="$SAVE_CFLAGS"
4236 fi
4237 ;;
4238
4239 esac
4240
4241 need_locks="$enable_libtool_lock"
4242
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4250 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4251 # On Suns, sometimes $CPP names a directory.
4252 if test -n "$CPP" && test -d "$CPP"; then
4253 CPP=
4254 fi
4255 if test -z "$CPP"; then
4256 if test "${ac_cv_prog_CPP+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 # Double quotes because CPP needs to be expanded
4260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4261 do
4262 ac_preproc_ok=false
4263 for ac_c_preproc_warn_flag in '' yes
4264 do
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #ifdef __STDC__
4278 # include <limits.h>
4279 #else
4280 # include <assert.h>
4281 #endif
4282 Syntax error
4283 _ACEOF
4284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } >/dev/null; then
4292 if test -s conftest.err; then
4293 ac_cpp_err=$ac_c_preproc_warn_flag
4294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4295 else
4296 ac_cpp_err=
4297 fi
4298 else
4299 ac_cpp_err=yes
4300 fi
4301 if test -z "$ac_cpp_err"; then
4302 :
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 # Broken: fails on valid input.
4308 continue
4309 fi
4310 rm -f conftest.err conftest.$ac_ext
4311
4312 # OK, works on sane cases. Now check whether non-existent headers
4313 # can be detected and how.
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <ac_nonexistent.h>
4321 _ACEOF
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324 ac_status=$?
4325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev/null; then
4330 if test -s conftest.err; then
4331 ac_cpp_err=$ac_c_preproc_warn_flag
4332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4333 else
4334 ac_cpp_err=
4335 fi
4336 else
4337 ac_cpp_err=yes
4338 fi
4339 if test -z "$ac_cpp_err"; then
4340 # Broken: success on invalid input.
4341 continue
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 # Passes both tests.
4347 ac_preproc_ok=:
4348 break
4349 fi
4350 rm -f conftest.err conftest.$ac_ext
4351
4352 done
4353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4354 rm -f conftest.err conftest.$ac_ext
4355 if $ac_preproc_ok; then
4356 break
4357 fi
4358
4359 done
4360 ac_cv_prog_CPP=$CPP
4361
4362 fi
4363 CPP=$ac_cv_prog_CPP
4364 else
4365 ac_cv_prog_CPP=$CPP
4366 fi
4367 echo "$as_me:$LINENO: result: $CPP" >&5
4368 echo "${ECHO_T}$CPP" >&6
4369 ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4371 do
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h. */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 #ifdef __STDC__
4385 # include <limits.h>
4386 #else
4387 # include <assert.h>
4388 #endif
4389 Syntax error
4390 _ACEOF
4391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } >/dev/null; then
4399 if test -s conftest.err; then
4400 ac_cpp_err=$ac_c_preproc_warn_flag
4401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4402 else
4403 ac_cpp_err=
4404 fi
4405 else
4406 ac_cpp_err=yes
4407 fi
4408 if test -z "$ac_cpp_err"; then
4409 :
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 # Broken: fails on valid input.
4415 continue
4416 fi
4417 rm -f conftest.err conftest.$ac_ext
4418
4419 # OK, works on sane cases. Now check whether non-existent headers
4420 # can be detected and how.
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <ac_nonexistent.h>
4428 _ACEOF
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null; then
4437 if test -s conftest.err; then
4438 ac_cpp_err=$ac_c_preproc_warn_flag
4439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4440 else
4441 ac_cpp_err=
4442 fi
4443 else
4444 ac_cpp_err=yes
4445 fi
4446 if test -z "$ac_cpp_err"; then
4447 # Broken: success on invalid input.
4448 continue
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 # Passes both tests.
4454 ac_preproc_ok=:
4455 break
4456 fi
4457 rm -f conftest.err conftest.$ac_ext
4458
4459 done
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then
4463 :
4464 else
4465 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4468 See \`config.log' for more details." >&2;}
4469 { (exit 1); exit 1; }; }
4470 fi
4471
4472 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477
4478
4479 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4480 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4481 if test "${ac_cv_header_stdc+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h. */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #include <stdlib.h>
4491 #include <stdarg.h>
4492 #include <string.h>
4493 #include <float.h>
4494
4495 int
4496 main ()
4497 {
4498
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_header_stdc=yes
4525 else
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 ac_cv_header_stdc=no
4530 fi
4531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532
4533 if test $ac_cv_header_stdc = yes; then
4534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <string.h>
4542
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "memchr" >/dev/null 2>&1; then
4546 :
4547 else
4548 ac_cv_header_stdc=no
4549 fi
4550 rm -f conftest*
4551
4552 fi
4553
4554 if test $ac_cv_header_stdc = yes; then
4555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #include <stdlib.h>
4563
4564 _ACEOF
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 $EGREP "free" >/dev/null 2>&1; then
4567 :
4568 else
4569 ac_cv_header_stdc=no
4570 fi
4571 rm -f conftest*
4572
4573 fi
4574
4575 if test $ac_cv_header_stdc = yes; then
4576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4577 if test "$cross_compiling" = yes; then
4578 :
4579 else
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <ctype.h>
4587 #if ((' ' & 0x0FF) == 0x020)
4588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4590 #else
4591 # define ISLOWER(c) \
4592 (('a' <= (c) && (c) <= 'i') \
4593 || ('j' <= (c) && (c) <= 'r') \
4594 || ('s' <= (c) && (c) <= 'z'))
4595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4596 #endif
4597
4598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4599 int
4600 main ()
4601 {
4602 int i;
4603 for (i = 0; i < 256; i++)
4604 if (XOR (islower (i), ISLOWER (i))
4605 || toupper (i) != TOUPPER (i))
4606 exit(2);
4607 exit (0);
4608 }
4609 _ACEOF
4610 rm -f conftest$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 :
4622 else
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 ( exit $ac_status )
4628 ac_cv_header_stdc=no
4629 fi
4630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 fi
4633 fi
4634 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4636 if test $ac_cv_header_stdc = yes; then
4637
4638 cat >>confdefs.h <<\_ACEOF
4639 #define STDC_HEADERS 1
4640 _ACEOF
4641
4642 fi
4643
4644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4655 inttypes.h stdint.h unistd.h
4656 do
4657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4658 echo "$as_me:$LINENO: checking for $ac_header" >&5
4659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 $ac_includes_default
4670
4671 #include <$ac_header>
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 eval "$as_ac_Header=yes"
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 eval "$as_ac_Header=no"
4700 fi
4701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4706 cat >>confdefs.h <<_ACEOF
4707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4708 _ACEOF
4709
4710 fi
4711
4712 done
4713
4714
4715
4716 for ac_header in dlfcn.h
4717 do
4718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 fi
4725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4727 else
4728 # Is the header compilable?
4729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4738 #include <$ac_header>
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_header_compiler=yes
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_header_compiler=no
4767 fi
4768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4770 echo "${ECHO_T}$ac_header_compiler" >&6
4771
4772 # Is the header present?
4773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 #include <$ac_header>
4782 _ACEOF
4783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } >/dev/null; then
4791 if test -s conftest.err; then
4792 ac_cpp_err=$ac_c_preproc_warn_flag
4793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4794 else
4795 ac_cpp_err=
4796 fi
4797 else
4798 ac_cpp_err=yes
4799 fi
4800 if test -z "$ac_cpp_err"; then
4801 ac_header_preproc=yes
4802 else
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806 ac_header_preproc=no
4807 fi
4808 rm -f conftest.err conftest.$ac_ext
4809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4810 echo "${ECHO_T}$ac_header_preproc" >&6
4811
4812 # So? What about this header?
4813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4814 yes:no: )
4815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4819 ac_header_preproc=yes
4820 ;;
4821 no:yes:* )
4822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4834 (
4835 cat <<\_ASBOX
4836 ## ------------------------------------------ ##
4837 ## Report this to the AC_PACKAGE_NAME lists. ##
4838 ## ------------------------------------------ ##
4839 _ASBOX
4840 ) |
4841 sed "s/^/$as_me: WARNING: /" >&2
4842 ;;
4843 esac
4844 echo "$as_me:$LINENO: checking for $ac_header" >&5
4845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849 eval "$as_ac_Header=\$ac_header_preproc"
4850 fi
4851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4853
4854 fi
4855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4856 cat >>confdefs.h <<_ACEOF
4857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4858 _ACEOF
4859
4860 fi
4861
4862 done
4863
4864 ac_ext=cc
4865 ac_cpp='$CXXCPP $CPPFLAGS'
4866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4869 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4870 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4871 if test -z "$CXXCPP"; then
4872 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 # Double quotes because CXXCPP needs to be expanded
4876 for CXXCPP in "$CXX -E" "/lib/cpp"
4877 do
4878 ac_preproc_ok=false
4879 for ac_cxx_preproc_warn_flag in '' yes
4880 do
4881 # Use a header file that comes with gcc, so configuring glibc
4882 # with a fresh cross-compiler works.
4883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4884 # <limits.h> exists even on freestanding compilers.
4885 # On the NeXT, cc -E runs the code through the compiler's parser,
4886 # not just through cpp. "Syntax error" is here to catch this case.
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #ifdef __STDC__
4894 # include <limits.h>
4895 #else
4896 # include <assert.h>
4897 #endif
4898 Syntax error
4899 _ACEOF
4900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null; then
4908 if test -s conftest.err; then
4909 ac_cpp_err=$ac_cxx_preproc_warn_flag
4910 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4911 else
4912 ac_cpp_err=
4913 fi
4914 else
4915 ac_cpp_err=yes
4916 fi
4917 if test -z "$ac_cpp_err"; then
4918 :
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 # Broken: fails on valid input.
4924 continue
4925 fi
4926 rm -f conftest.err conftest.$ac_ext
4927
4928 # OK, works on sane cases. Now check whether non-existent headers
4929 # can be detected and how.
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 #include <ac_nonexistent.h>
4937 _ACEOF
4938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null; then
4946 if test -s conftest.err; then
4947 ac_cpp_err=$ac_cxx_preproc_warn_flag
4948 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4949 else
4950 ac_cpp_err=
4951 fi
4952 else
4953 ac_cpp_err=yes
4954 fi
4955 if test -z "$ac_cpp_err"; then
4956 # Broken: success on invalid input.
4957 continue
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 # Passes both tests.
4963 ac_preproc_ok=:
4964 break
4965 fi
4966 rm -f conftest.err conftest.$ac_ext
4967
4968 done
4969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4970 rm -f conftest.err conftest.$ac_ext
4971 if $ac_preproc_ok; then
4972 break
4973 fi
4974
4975 done
4976 ac_cv_prog_CXXCPP=$CXXCPP
4977
4978 fi
4979 CXXCPP=$ac_cv_prog_CXXCPP
4980 else
4981 ac_cv_prog_CXXCPP=$CXXCPP
4982 fi
4983 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4984 echo "${ECHO_T}$CXXCPP" >&6
4985 ac_preproc_ok=false
4986 for ac_cxx_preproc_warn_flag in '' yes
4987 do
4988 # Use a header file that comes with gcc, so configuring glibc
4989 # with a fresh cross-compiler works.
4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991 # <limits.h> exists even on freestanding compilers.
4992 # On the NeXT, cc -E runs the code through the compiler's parser,
4993 # not just through cpp. "Syntax error" is here to catch this case.
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #ifdef __STDC__
5001 # include <limits.h>
5002 #else
5003 # include <assert.h>
5004 #endif
5005 Syntax error
5006 _ACEOF
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_cxx_preproc_warn_flag
5017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018 else
5019 ac_cpp_err=
5020 fi
5021 else
5022 ac_cpp_err=yes
5023 fi
5024 if test -z "$ac_cpp_err"; then
5025 :
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Broken: fails on valid input.
5031 continue
5032 fi
5033 rm -f conftest.err conftest.$ac_ext
5034
5035 # OK, works on sane cases. Now check whether non-existent headers
5036 # can be detected and how.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5044 _ACEOF
5045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null; then
5053 if test -s conftest.err; then
5054 ac_cpp_err=$ac_cxx_preproc_warn_flag
5055 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5056 else
5057 ac_cpp_err=
5058 fi
5059 else
5060 ac_cpp_err=yes
5061 fi
5062 if test -z "$ac_cpp_err"; then
5063 # Broken: success on invalid input.
5064 continue
5065 else
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 # Passes both tests.
5070 ac_preproc_ok=:
5071 break
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 done
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then
5079 :
5080 else
5081 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5082 See \`config.log' for more details." >&5
5083 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5084 See \`config.log' for more details." >&2;}
5085 { (exit 1); exit 1; }; }
5086 fi
5087
5088 ac_ext=cc
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093
5094
5095 ac_ext=f
5096 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5097 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5101 do
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104 echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106 if test "${ac_cv_prog_F77+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 if test -n "$F77"; then
5110 ac_cv_prog_F77="$F77" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125
5126 fi
5127 fi
5128 F77=$ac_cv_prog_F77
5129 if test -n "$F77"; then
5130 echo "$as_me:$LINENO: result: $F77" >&5
5131 echo "${ECHO_T}$F77" >&6
5132 else
5133 echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6
5135 fi
5136
5137 test -n "$F77" && break
5138 done
5139 fi
5140 if test -z "$F77"; then
5141 ac_ct_F77=$F77
5142 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5143 do
5144 # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 if test -n "$ac_ct_F77"; then
5152 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_ac_ct_F77="$ac_prog"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167
5168 fi
5169 fi
5170 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5171 if test -n "$ac_ct_F77"; then
5172 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5173 echo "${ECHO_T}$ac_ct_F77" >&6
5174 else
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179 test -n "$ac_ct_F77" && break
5180 done
5181
5182 F77=$ac_ct_F77
5183 fi
5184
5185
5186 # Provide some information about the compiler.
5187 echo "$as_me:5187:" \
5188 "checking for Fortran 77 compiler version" >&5
5189 ac_compiler=`set X $ac_compile; echo $2`
5190 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5191 (eval $ac_compiler --version </dev/null >&5) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }
5195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5196 (eval $ac_compiler -v </dev/null >&5) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }
5200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5201 (eval $ac_compiler -V </dev/null >&5) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }
5205 rm -f a.out
5206
5207 # If we don't use `.F' as extension, the preprocessor is not run on the
5208 # input file. (Note that this only needs to work for GNU compilers.)
5209 ac_save_ext=$ac_ext
5210 ac_ext=F
5211 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5212 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5213 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 cat >conftest.$ac_ext <<_ACEOF
5217 program main
5218 #ifndef __GNUC__
5219 choke me
5220 #endif
5221
5222 end
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226 (eval $ac_compile) 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest.$ac_objext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_compiler_gnu=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_compiler_gnu=no
5251 fi
5252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5253 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5254
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5257 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5258 ac_ext=$ac_save_ext
5259 ac_test_FFLAGS=${FFLAGS+set}
5260 ac_save_FFLAGS=$FFLAGS
5261 FFLAGS=
5262 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5263 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5264 if test "${ac_cv_prog_f77_g+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 FFLAGS=-g
5268 cat >conftest.$ac_ext <<_ACEOF
5269 program main
5270
5271 end
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_prog_f77_g=yes
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 ac_cv_prog_f77_g=no
5300 fi
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5305 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5306 if test "$ac_test_FFLAGS" = set; then
5307 FFLAGS=$ac_save_FFLAGS
5308 elif test $ac_cv_prog_f77_g = yes; then
5309 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5310 FFLAGS="-g -O2"
5311 else
5312 FFLAGS="-g"
5313 fi
5314 else
5315 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5316 FFLAGS="-O2"
5317 else
5318 FFLAGS=
5319 fi
5320 fi
5321
5322 G77=`test $ac_compiler_gnu = yes && echo yes`
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328
5329
5330
5331 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5332
5333 # find the maximum length of command line arguments
5334 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5335 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5336 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 i=0
5340 teststring="ABCD"
5341
5342 case $build_os in
5343 msdosdjgpp*)
5344 # On DJGPP, this test can blow up pretty badly due to problems in libc
5345 # (any single argument exceeding 2000 bytes causes a buffer overrun
5346 # during glob expansion). Even if it were fixed, the result of this
5347 # check would be larger than it should be.
5348 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5349 ;;
5350
5351 gnu*)
5352 # Under GNU Hurd, this test is not required because there is
5353 # no limit to the length of command line arguments.
5354 # Libtool will interpret -1 as no limit whatsoever
5355 lt_cv_sys_max_cmd_len=-1;
5356 ;;
5357
5358 cygwin* | mingw*)
5359 # On Win9x/ME, this test blows up -- it succeeds, but takes
5360 # about 5 minutes as the teststring grows exponentially.
5361 # Worse, since 9x/ME are not pre-emptively multitasking,
5362 # you end up with a "frozen" computer, even though with patience
5363 # the test eventually succeeds (with a max line length of 256k).
5364 # Instead, let's just punt: use the minimum linelength reported by
5365 # all of the supported platforms: 8192 (on NT/2K/XP).
5366 lt_cv_sys_max_cmd_len=8192;
5367 ;;
5368
5369 amigaos*)
5370 # On AmigaOS with pdksh, this test takes hours, literally.
5371 # So we just punt and use a minimum line length of 8192.
5372 lt_cv_sys_max_cmd_len=8192;
5373 ;;
5374
5375 *)
5376 # If test is not a shell built-in, we'll probably end up computing a
5377 # maximum length that is only half of the actual maximum length, but
5378 # we can't tell.
5379 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5380 = "XX$teststring") >/dev/null 2>&1 &&
5381 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5382 lt_cv_sys_max_cmd_len=$new_result &&
5383 test $i != 17 # 1/2 MB should be enough
5384 do
5385 i=`expr $i + 1`
5386 teststring=$teststring$teststring
5387 done
5388 teststring=
5389 # Add a significant safety factor because C++ compilers can tack on massive
5390 # amounts of additional arguments before passing them to the linker.
5391 # It appears as though 1/2 is a usable value.
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5393 ;;
5394 esac
5395
5396 fi
5397
5398 if test -n $lt_cv_sys_max_cmd_len ; then
5399 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5400 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5401 else
5402 echo "$as_me:$LINENO: result: none" >&5
5403 echo "${ECHO_T}none" >&6
5404 fi
5405
5406
5407
5408
5409 # Check for command to grab the raw symbol name followed by C symbol from nm.
5410 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5411 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5412 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415
5416 # These are sane defaults that work on at least a few old systems.
5417 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5418
5419 # Character class describing NM global symbol codes.
5420 symcode='[BCDEGRST]'
5421
5422 # Regexp to match symbols that can be accessed directly from C.
5423 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5424
5425 # Transform the above into a raw symbol and a C symbol.
5426 symxfrm='\1 \2\3 \3'
5427
5428 # Transform an extracted symbol line into a proper C declaration
5429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5430
5431 # Transform an extracted symbol line into symbol name and symbol address
5432 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5433
5434 # Define system-specific variables.
5435 case $host_os in
5436 aix*)
5437 symcode='[BCDT]'
5438 ;;
5439 cygwin* | mingw* | pw32*)
5440 symcode='[ABCDGISTW]'
5441 ;;
5442 hpux*) # Its linker distinguishes data from code symbols
5443 if test "$host_cpu" = ia64; then
5444 symcode='[ABCDEGRST]'
5445 fi
5446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5447 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5448 ;;
5449 irix* | nonstopux*)
5450 symcode='[BCDEGRST]'
5451 ;;
5452 osf*)
5453 symcode='[BCDEGQRST]'
5454 ;;
5455 solaris* | sysv5*)
5456 symcode='[BDRT]'
5457 ;;
5458 sysv4)
5459 symcode='[DFNSTU]'
5460 ;;
5461 esac
5462
5463 # Handle CRLF in mingw tool chain
5464 opt_cr=
5465 case $build_os in
5466 mingw*)
5467 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5468 ;;
5469 esac
5470
5471 # If we're using GNU nm, then use its standard symbol codes.
5472 case `$NM -V 2>&1` in
5473 *GNU* | *'with BFD'*)
5474 symcode='[ABCDGIRSTW]' ;;
5475 esac
5476
5477 # Try without a prefix undercore, then with it.
5478 for ac_symprfx in "" "_"; do
5479
5480 # Write the raw and C identifiers.
5481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5482
5483 # Check to see that the pipe works correctly.
5484 pipe_works=no
5485
5486 rm -f conftest*
5487 cat > conftest.$ac_ext <<EOF
5488 #ifdef __cplusplus
5489 extern "C" {
5490 #endif
5491 char nm_test_var;
5492 void nm_test_func(){}
5493 #ifdef __cplusplus
5494 }
5495 #endif
5496 int main(){nm_test_var='a';nm_test_func();return(0);}
5497 EOF
5498
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; then
5504 # Now try to grab the symbols.
5505 nlist=conftest.nm
5506 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5507 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } && test -s "$nlist"; then
5511 # Try sorting and uniquifying the output.
5512 if sort "$nlist" | uniq > "$nlist"T; then
5513 mv -f "$nlist"T "$nlist"
5514 else
5515 rm -f "$nlist"T
5516 fi
5517
5518 # Make sure that we snagged all the symbols we need.
5519 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5520 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5521 cat <<EOF > conftest.$ac_ext
5522 #ifdef __cplusplus
5523 extern "C" {
5524 #endif
5525
5526 EOF
5527 # Now generate the symbol file.
5528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5529
5530 cat <<EOF >> conftest.$ac_ext
5531 #if defined (__STDC__) && __STDC__
5532 # define lt_ptr_t void *
5533 #else
5534 # define lt_ptr_t char *
5535 # define const
5536 #endif
5537
5538 /* The mapping between symbol names and symbols. */
5539 const struct {
5540 const char *name;
5541 lt_ptr_t address;
5542 }
5543 lt_preloaded_symbols[] =
5544 {
5545 EOF
5546 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5547 cat <<\EOF >> conftest.$ac_ext
5548 {0, (lt_ptr_t) 0}
5549 };
5550
5551 #ifdef __cplusplus
5552 }
5553 #endif
5554 EOF
5555 # Now try linking the two files.
5556 mv conftest.$ac_objext conftstm.$ac_objext
5557 lt_save_LIBS="$LIBS"
5558 lt_save_CFLAGS="$CFLAGS"
5559 LIBS="conftstm.$ac_objext"
5560 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5566 pipe_works=yes
5567 fi
5568 LIBS="$lt_save_LIBS"
5569 CFLAGS="$lt_save_CFLAGS"
5570 else
5571 echo "cannot find nm_test_func in $nlist" >&5
5572 fi
5573 else
5574 echo "cannot find nm_test_var in $nlist" >&5
5575 fi
5576 else
5577 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5578 fi
5579 else
5580 echo "$progname: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5582 fi
5583 rm -f conftest* conftst*
5584
5585 # Do not use the global_symbol_pipe unless it works.
5586 if test "$pipe_works" = yes; then
5587 break
5588 else
5589 lt_cv_sys_global_symbol_pipe=
5590 fi
5591 done
5592
5593 fi
5594
5595 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5596 lt_cv_sys_global_symbol_to_cdecl=
5597 fi
5598 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5599 echo "$as_me:$LINENO: result: failed" >&5
5600 echo "${ECHO_T}failed" >&6
5601 else
5602 echo "$as_me:$LINENO: result: ok" >&5
5603 echo "${ECHO_T}ok" >&6
5604 fi
5605
5606 echo "$as_me:$LINENO: checking for objdir" >&5
5607 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5608 if test "${lt_cv_objdir+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 rm -f .libs 2>/dev/null
5612 mkdir .libs 2>/dev/null
5613 if test -d .libs; then
5614 lt_cv_objdir=.libs
5615 else
5616 # MS-DOS does not allow filenames that begin with a dot.
5617 lt_cv_objdir=_libs
5618 fi
5619 rmdir .libs 2>/dev/null
5620 fi
5621 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5622 echo "${ECHO_T}$lt_cv_objdir" >&6
5623 objdir=$lt_cv_objdir
5624
5625
5626
5627
5628
5629 case $host_os in
5630 aix3*)
5631 # AIX sometimes has problems with the GCC collect2 program. For some
5632 # reason, if we set the COLLECT_NAMES environment variable, the problems
5633 # vanish in a puff of smoke.
5634 if test "X${COLLECT_NAMES+set}" != Xset; then
5635 COLLECT_NAMES=
5636 export COLLECT_NAMES
5637 fi
5638 ;;
5639 esac
5640
5641 # Sed substitution that helps us do robust quoting. It backslashifies
5642 # metacharacters that are still active within double-quoted strings.
5643 Xsed='sed -e s/^X//'
5644 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5645
5646 # Same as above, but do not quote variable references.
5647 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5648
5649 # Sed substitution to delay expansion of an escaped shell variable in a
5650 # double_quote_subst'ed string.
5651 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5652
5653 # Sed substitution to avoid accidental globbing in evaled expressions
5654 no_glob_subst='s/\*/\\\*/g'
5655
5656 # Constants:
5657 rm="rm -f"
5658
5659 # Global variables:
5660 default_ofile=libtool
5661 can_build_shared=yes
5662
5663 # All known linkers require a `.a' archive for static linking (except M$VC,
5664 # which needs '.lib').
5665 libext=a
5666 ltmain="$ac_aux_dir/ltmain.sh"
5667 ofile="$default_ofile"
5668 with_gnu_ld="$lt_cv_prog_gnu_ld"
5669
5670 if test -n "$ac_tool_prefix"; then
5671 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5672 set dummy ${ac_tool_prefix}ar; ac_word=$2
5673 echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5675 if test "${ac_cv_prog_AR+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678 if test -n "$AR"; then
5679 ac_cv_prog_AR="$AR" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_AR="${ac_tool_prefix}ar"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694
5695 fi
5696 fi
5697 AR=$ac_cv_prog_AR
5698 if test -n "$AR"; then
5699 echo "$as_me:$LINENO: result: $AR" >&5
5700 echo "${ECHO_T}$AR" >&6
5701 else
5702 echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6
5704 fi
5705
5706 fi
5707 if test -z "$ac_cv_prog_AR"; then
5708 ac_ct_AR=$AR
5709 # Extract the first word of "ar", so it can be a program name with args.
5710 set dummy ar; ac_word=$2
5711 echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 if test -n "$ac_ct_AR"; then
5717 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_ac_ct_AR="ar"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730 done
5731 done
5732
5733 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5734 fi
5735 fi
5736 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5737 if test -n "$ac_ct_AR"; then
5738 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5739 echo "${ECHO_T}$ac_ct_AR" >&6
5740 else
5741 echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5743 fi
5744
5745 AR=$ac_ct_AR
5746 else
5747 AR="$ac_cv_prog_AR"
5748 fi
5749
5750 if test -n "$ac_tool_prefix"; then
5751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5753 echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5755 if test "${ac_cv_prog_RANLIB+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758 if test -n "$RANLIB"; then
5759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772 done
5773 done
5774
5775 fi
5776 fi
5777 RANLIB=$ac_cv_prog_RANLIB
5778 if test -n "$RANLIB"; then
5779 echo "$as_me:$LINENO: result: $RANLIB" >&5
5780 echo "${ECHO_T}$RANLIB" >&6
5781 else
5782 echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6
5784 fi
5785
5786 fi
5787 if test -z "$ac_cv_prog_RANLIB"; then
5788 ac_ct_RANLIB=$RANLIB
5789 # Extract the first word of "ranlib", so it can be a program name with args.
5790 set dummy ranlib; ac_word=$2
5791 echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5793 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 if test -n "$ac_ct_RANLIB"; then
5797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_ac_ct_RANLIB="ranlib"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810 done
5811 done
5812
5813 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5814 fi
5815 fi
5816 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5817 if test -n "$ac_ct_RANLIB"; then
5818 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5819 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5823 fi
5824
5825 RANLIB=$ac_ct_RANLIB
5826 else
5827 RANLIB="$ac_cv_prog_RANLIB"
5828 fi
5829
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5832 set dummy ${ac_tool_prefix}strip; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_STRIP+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 if test -n "$STRIP"; then
5839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854
5855 fi
5856 fi
5857 STRIP=$ac_cv_prog_STRIP
5858 if test -n "$STRIP"; then
5859 echo "$as_me:$LINENO: result: $STRIP" >&5
5860 echo "${ECHO_T}$STRIP" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864 fi
5865
5866 fi
5867 if test -z "$ac_cv_prog_STRIP"; then
5868 ac_ct_STRIP=$STRIP
5869 # Extract the first word of "strip", so it can be a program name with args.
5870 set dummy strip; ac_word=$2
5871 echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 if test -n "$ac_ct_STRIP"; then
5877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_ac_ct_STRIP="strip"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890 done
5891 done
5892
5893 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5894 fi
5895 fi
5896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5897 if test -n "$ac_ct_STRIP"; then
5898 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5899 echo "${ECHO_T}$ac_ct_STRIP" >&6
5900 else
5901 echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6
5903 fi
5904
5905 STRIP=$ac_ct_STRIP
5906 else
5907 STRIP="$ac_cv_prog_STRIP"
5908 fi
5909
5910
5911 old_CC="$CC"
5912 old_CFLAGS="$CFLAGS"
5913
5914 # Set sane defaults for various variables
5915 test -z "$AR" && AR=ar
5916 test -z "$AR_FLAGS" && AR_FLAGS=cru
5917 test -z "$AS" && AS=as
5918 test -z "$CC" && CC=cc
5919 test -z "$LTCC" && LTCC=$CC
5920 test -z "$DLLTOOL" && DLLTOOL=dlltool
5921 test -z "$LD" && LD=ld
5922 test -z "$LN_S" && LN_S="ln -s"
5923 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5924 test -z "$NM" && NM=nm
5925 test -z "$SED" && SED=sed
5926 test -z "$OBJDUMP" && OBJDUMP=objdump
5927 test -z "$RANLIB" && RANLIB=:
5928 test -z "$STRIP" && STRIP=:
5929 test -z "$ac_objext" && ac_objext=o
5930
5931 # Determine commands to create old-style static archives.
5932 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5933 old_postinstall_cmds='chmod 644 $oldlib'
5934 old_postuninstall_cmds=
5935
5936 if test -n "$RANLIB"; then
5937 case $host_os in
5938 openbsd*)
5939 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5940 ;;
5941 *)
5942 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5943 ;;
5944 esac
5945 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5946 fi
5947
5948 # Only perform the check for file, if the check method requires it
5949 case $deplibs_check_method in
5950 file_magic*)
5951 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5952 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5953 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5954 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 case $MAGIC_CMD in
5958 [\\/*] | ?:[\\/]*)
5959 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5960 ;;
5961 *)
5962 lt_save_MAGIC_CMD="$MAGIC_CMD"
5963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5965 for ac_dir in $ac_dummy; do
5966 IFS="$lt_save_ifs"
5967 test -z "$ac_dir" && ac_dir=.
5968 if test -f $ac_dir/${ac_tool_prefix}file; then
5969 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5970 if test -n "$file_magic_test_file"; then
5971 case $deplibs_check_method in
5972 "file_magic "*)
5973 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5976 $EGREP "$file_magic_regex" > /dev/null; then
5977 :
5978 else
5979 cat <<EOF 1>&2
5980
5981 *** Warning: the command libtool uses to detect shared libraries,
5982 *** $file_magic_cmd, produces output that libtool cannot recognize.
5983 *** The result is that libtool may fail to recognize shared libraries
5984 *** as such. This will affect the creation of libtool libraries that
5985 *** depend on shared libraries, but programs linked with such libtool
5986 *** libraries will work regardless of this problem. Nevertheless, you
5987 *** may want to report the problem to your system manager and/or to
5988 *** [email protected]
5989
5990 EOF
5991 fi ;;
5992 esac
5993 fi
5994 break
5995 fi
5996 done
5997 IFS="$lt_save_ifs"
5998 MAGIC_CMD="$lt_save_MAGIC_CMD"
5999 ;;
6000 esac
6001 fi
6002
6003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6004 if test -n "$MAGIC_CMD"; then
6005 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6006 echo "${ECHO_T}$MAGIC_CMD" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6
6010 fi
6011
6012 if test -z "$lt_cv_path_MAGIC_CMD"; then
6013 if test -n "$ac_tool_prefix"; then
6014 echo "$as_me:$LINENO: checking for file" >&5
6015 echo $ECHO_N "checking for file... $ECHO_C" >&6
6016 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 case $MAGIC_CMD in
6020 [\\/*] | ?:[\\/]*)
6021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6022 ;;
6023 *)
6024 lt_save_MAGIC_CMD="$MAGIC_CMD"
6025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6027 for ac_dir in $ac_dummy; do
6028 IFS="$lt_save_ifs"
6029 test -z "$ac_dir" && ac_dir=.
6030 if test -f $ac_dir/file; then
6031 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6032 if test -n "$file_magic_test_file"; then
6033 case $deplibs_check_method in
6034 "file_magic "*)
6035 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6038 $EGREP "$file_magic_regex" > /dev/null; then
6039 :
6040 else
6041 cat <<EOF 1>&2
6042
6043 *** Warning: the command libtool uses to detect shared libraries,
6044 *** $file_magic_cmd, produces output that libtool cannot recognize.
6045 *** The result is that libtool may fail to recognize shared libraries
6046 *** as such. This will affect the creation of libtool libraries that
6047 *** depend on shared libraries, but programs linked with such libtool
6048 *** libraries will work regardless of this problem. Nevertheless, you
6049 *** may want to report the problem to your system manager and/or to
6050 *** [email protected]
6051
6052 EOF
6053 fi ;;
6054 esac
6055 fi
6056 break
6057 fi
6058 done
6059 IFS="$lt_save_ifs"
6060 MAGIC_CMD="$lt_save_MAGIC_CMD"
6061 ;;
6062 esac
6063 fi
6064
6065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6066 if test -n "$MAGIC_CMD"; then
6067 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6068 echo "${ECHO_T}$MAGIC_CMD" >&6
6069 else
6070 echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6
6072 fi
6073
6074 else
6075 MAGIC_CMD=:
6076 fi
6077 fi
6078
6079 fi
6080 ;;
6081 esac
6082
6083 enable_dlopen=no
6084 enable_win32_dll=no
6085
6086 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6087 if test "${enable_libtool_lock+set}" = set; then
6088 enableval="$enable_libtool_lock"
6089
6090 fi;
6091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6092
6093
6094 # Check whether --with-pic or --without-pic was given.
6095 if test "${with_pic+set}" = set; then
6096 withval="$with_pic"
6097 pic_mode="$withval"
6098 else
6099 pic_mode=default
6100 fi;
6101 test -z "$pic_mode" && pic_mode=default
6102
6103 # Use C for the default configuration in the libtool script
6104 tagname=
6105 lt_save_CC="$CC"
6106 ac_ext=c
6107 ac_cpp='$CPP $CPPFLAGS'
6108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6111
6112
6113 # Source file extension for C test sources.
6114 ac_ext=c
6115
6116 # Object file extension for compiled C test sources.
6117 objext=o
6118 objext=$objext
6119
6120 # Code to be used in simple compile tests
6121 lt_simple_compile_test_code="int some_variable = 0;\n"
6122
6123 # Code to be used in simple link tests
6124 lt_simple_link_test_code='int main(){return(0);}\n'
6125
6126
6127 # If no C compiler was specified, use CC.
6128 LTCC=${LTCC-"$CC"}
6129
6130 # Allow CC to be a program name with arguments.
6131 compiler=$CC
6132
6133
6134 #
6135 # Check for any special shared library compilation flags.
6136 #
6137 lt_prog_cc_shlib=
6138 if test "$GCC" = no; then
6139 case $host_os in
6140 sco3.2v5*)
6141 lt_prog_cc_shlib='-belf'
6142 ;;
6143 esac
6144 fi
6145 if test -n "$lt_prog_cc_shlib"; then
6146 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6147 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6148 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6149 else
6150 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6151 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6152 lt_cv_prog_cc_can_build_shared=no
6153 fi
6154 fi
6155
6156
6157 #
6158 # Check to make sure the static flag actually works.
6159 #
6160 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6161 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6162 if test "${lt_prog_compiler_static_works+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 lt_prog_compiler_static_works=no
6166 save_LDFLAGS="$LDFLAGS"
6167 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6168 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6170 # The compiler can only warn and ignore the option if not recognized
6171 # So say no if there are warnings
6172 if test -s conftest.err; then
6173 # Append any errors to the config.log.
6174 cat conftest.err 1>&5
6175 else
6176 lt_prog_compiler_static_works=yes
6177 fi
6178 fi
6179 $rm conftest*
6180 LDFLAGS="$save_LDFLAGS"
6181
6182 fi
6183 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6184 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6185
6186 if test x"$lt_prog_compiler_static_works" = xyes; then
6187 :
6188 else
6189 lt_prog_compiler_static=
6190 fi
6191
6192
6193
6194
6195 lt_prog_compiler_no_builtin_flag=
6196
6197 if test "$GCC" = yes; then
6198 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6199
6200
6201 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6202 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6203 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 lt_cv_prog_compiler_rtti_exceptions=no
6207 ac_outfile=conftest.$ac_objext
6208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6209 lt_compiler_flag="-fno-rtti -fno-exceptions"
6210 # Insert the option either (1) after the last *FLAGS variable, or
6211 # (2) before a word containing "conftest.", or (3) at the end.
6212 # Note that $ac_compile itself does not contain backslashes and begins
6213 # with a dollar sign (not a hyphen), so the echo should work correctly.
6214 # The option is referenced via a variable to avoid confusing sed.
6215 lt_compile=`echo "$ac_compile" | $SED \
6216 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6218 -e 's:$: $lt_compiler_flag:'`
6219 (eval echo "\"\$as_me:6219: $lt_compile\"" >&5)
6220 (eval "$lt_compile" 2>conftest.err)
6221 ac_status=$?
6222 cat conftest.err >&5
6223 echo "$as_me:6223: \$? = $ac_status" >&5
6224 if (exit $ac_status) && test -s "$ac_outfile"; then
6225 # The compiler can only warn and ignore the option if not recognized
6226 # So say no if there are warnings
6227 if test ! -s conftest.err; then
6228 lt_cv_prog_compiler_rtti_exceptions=yes
6229 fi
6230 fi
6231 $rm conftest*
6232
6233 fi
6234 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6235 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6236
6237 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6238 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6239 else
6240 :
6241 fi
6242
6243 fi
6244
6245 lt_prog_compiler_wl=
6246 lt_prog_compiler_pic=
6247 lt_prog_compiler_static=
6248
6249 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6251
6252 if test "$GCC" = yes; then
6253 lt_prog_compiler_wl='-Wl,'
6254 lt_prog_compiler_static='-static'
6255
6256 case $host_os in
6257 aix*)
6258 # All AIX code is PIC.
6259 if test "$host_cpu" = ia64; then
6260 # AIX 5 now supports IA64 processor
6261 lt_prog_compiler_static='-Bstatic'
6262 fi
6263 ;;
6264
6265 amigaos*)
6266 # FIXME: we need at least 68020 code to build shared libraries, but
6267 # adding the `-m68020' flag to GCC prevents building anything better,
6268 # like `-m68040'.
6269 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6270 ;;
6271
6272 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6273 # PIC is the default for these OSes.
6274 ;;
6275
6276 mingw* | pw32* | os2*)
6277 # This hack is so that the source file can tell whether it is being
6278 # built for inclusion in a dll (and should export symbols for example).
6279 lt_prog_compiler_pic='-DDLL_EXPORT'
6280 ;;
6281
6282 darwin* | rhapsody*)
6283 # PIC is the default on this platform
6284 # Common symbols not allowed in MH_DYLIB files
6285 lt_prog_compiler_pic='-fno-common'
6286 ;;
6287
6288 msdosdjgpp*)
6289 # Just because we use GCC doesn't mean we suddenly get shared libraries
6290 # on systems that don't support them.
6291 lt_prog_compiler_can_build_shared=no
6292 enable_shared=no
6293 ;;
6294
6295 sysv4*MP*)
6296 if test -d /usr/nec; then
6297 lt_prog_compiler_pic=-Kconform_pic
6298 fi
6299 ;;
6300
6301 hpux*)
6302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6303 # not for PA HP-UX.
6304 case "$host_cpu" in
6305 hppa*64*|ia64*)
6306 # +Z the default
6307 ;;
6308 *)
6309 lt_prog_compiler_pic='-fPIC'
6310 ;;
6311 esac
6312 ;;
6313
6314 *)
6315 lt_prog_compiler_pic='-fPIC'
6316 ;;
6317 esac
6318 else
6319 # PORTME Check for flag to pass linker flags through the system compiler.
6320 case $host_os in
6321 aix*)
6322 lt_prog_compiler_wl='-Wl,'
6323 if test "$host_cpu" = ia64; then
6324 # AIX 5 now supports IA64 processor
6325 lt_prog_compiler_static='-Bstatic'
6326 else
6327 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6328 fi
6329 ;;
6330
6331 mingw* | pw32* | os2*)
6332 # This hack is so that the source file can tell whether it is being
6333 # built for inclusion in a dll (and should export symbols for example).
6334 lt_prog_compiler_pic='-DDLL_EXPORT'
6335 ;;
6336
6337 hpux9* | hpux10* | hpux11*)
6338 lt_prog_compiler_wl='-Wl,'
6339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6340 # not for PA HP-UX.
6341 case "$host_cpu" in
6342 hppa*64*|ia64*)
6343 # +Z the default
6344 ;;
6345 *)
6346 lt_prog_compiler_pic='+Z'
6347 ;;
6348 esac
6349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6350 lt_prog_compiler_static='${wl}-a ${wl}archive'
6351 ;;
6352
6353 irix5* | irix6* | nonstopux*)
6354 lt_prog_compiler_wl='-Wl,'
6355 # PIC (with -KPIC) is the default.
6356 lt_prog_compiler_static='-non_shared'
6357 ;;
6358
6359 newsos6)
6360 lt_prog_compiler_pic='-KPIC'
6361 lt_prog_compiler_static='-Bstatic'
6362 ;;
6363
6364 linux*)
6365 case $CC in
6366 icc* | ecc*)
6367 lt_prog_compiler_wl='-Wl,'
6368 lt_prog_compiler_pic='-KPIC'
6369 lt_prog_compiler_static='-static'
6370 ;;
6371 ccc*)
6372 lt_prog_compiler_wl='-Wl,'
6373 # All Alpha code is PIC.
6374 lt_prog_compiler_static='-non_shared'
6375 ;;
6376 esac
6377 ;;
6378
6379 osf3* | osf4* | osf5*)
6380 lt_prog_compiler_wl='-Wl,'
6381 # All OSF/1 code is PIC.
6382 lt_prog_compiler_static='-non_shared'
6383 ;;
6384
6385 sco3.2v5*)
6386 lt_prog_compiler_pic='-Kpic'
6387 lt_prog_compiler_static='-dn'
6388 ;;
6389
6390 solaris*)
6391 lt_prog_compiler_wl='-Wl,'
6392 lt_prog_compiler_pic='-KPIC'
6393 lt_prog_compiler_static='-Bstatic'
6394 ;;
6395
6396 sunos4*)
6397 lt_prog_compiler_wl='-Qoption ld '
6398 lt_prog_compiler_pic='-PIC'
6399 lt_prog_compiler_static='-Bstatic'
6400 ;;
6401
6402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6403 lt_prog_compiler_wl='-Wl,'
6404 lt_prog_compiler_pic='-KPIC'
6405 lt_prog_compiler_static='-Bstatic'
6406 ;;
6407
6408 sysv4*MP*)
6409 if test -d /usr/nec ;then
6410 lt_prog_compiler_pic='-Kconform_pic'
6411 lt_prog_compiler_static='-Bstatic'
6412 fi
6413 ;;
6414
6415 uts4*)
6416 lt_prog_compiler_pic='-pic'
6417 lt_prog_compiler_static='-Bstatic'
6418 ;;
6419
6420 *)
6421 lt_prog_compiler_can_build_shared=no
6422 ;;
6423 esac
6424 fi
6425
6426 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6427 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6428
6429 #
6430 # Check to make sure the PIC flag actually works.
6431 #
6432 if test -n "$lt_prog_compiler_pic"; then
6433
6434 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6435 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6436 if test "${lt_prog_compiler_pic_works+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 lt_prog_compiler_pic_works=no
6440 ac_outfile=conftest.$ac_objext
6441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6442 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6443 # Insert the option either (1) after the last *FLAGS variable, or
6444 # (2) before a word containing "conftest.", or (3) at the end.
6445 # Note that $ac_compile itself does not contain backslashes and begins
6446 # with a dollar sign (not a hyphen), so the echo should work correctly.
6447 # The option is referenced via a variable to avoid confusing sed.
6448 lt_compile=`echo "$ac_compile" | $SED \
6449 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6451 -e 's:$: $lt_compiler_flag:'`
6452 (eval echo "\"\$as_me:6452: $lt_compile\"" >&5)
6453 (eval "$lt_compile" 2>conftest.err)
6454 ac_status=$?
6455 cat conftest.err >&5
6456 echo "$as_me:6456: \$? = $ac_status" >&5
6457 if (exit $ac_status) && test -s "$ac_outfile"; then
6458 # The compiler can only warn and ignore the option if not recognized
6459 # So say no if there are warnings
6460 if test ! -s conftest.err; then
6461 lt_prog_compiler_pic_works=yes
6462 fi
6463 fi
6464 $rm conftest*
6465
6466 fi
6467 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6468 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6469
6470 if test x"$lt_prog_compiler_pic_works" = xyes; then
6471 case $lt_prog_compiler_pic in
6472 "" | " "*) ;;
6473 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6474 esac
6475 else
6476 lt_prog_compiler_pic=
6477 lt_prog_compiler_can_build_shared=no
6478 fi
6479
6480 fi
6481 case "$host_os" in
6482 # For platforms which do not support PIC, -DPIC is meaningless:
6483 *djgpp*)
6484 lt_prog_compiler_pic=
6485 ;;
6486 *)
6487 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6488 ;;
6489 esac
6490
6491 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 lt_cv_prog_compiler_c_o=no
6497 $rm -r conftest 2>/dev/null
6498 mkdir conftest
6499 cd conftest
6500 mkdir out
6501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6502
6503 lt_compiler_flag="-o out/conftest2.$ac_objext"
6504 # Insert the option either (1) after the last *FLAGS variable, or
6505 # (2) before a word containing "conftest.", or (3) at the end.
6506 # Note that $ac_compile itself does not contain backslashes and begins
6507 # with a dollar sign (not a hyphen), so the echo should work correctly.
6508 lt_compile=`echo "$ac_compile" | $SED \
6509 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6511 -e 's:$: $lt_compiler_flag:'`
6512 (eval echo "\"\$as_me:6512: $lt_compile\"" >&5)
6513 (eval "$lt_compile" 2>out/conftest.err)
6514 ac_status=$?
6515 cat out/conftest.err >&5
6516 echo "$as_me:6516: \$? = $ac_status" >&5
6517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6518 then
6519 # The compiler can only warn and ignore the option if not recognized
6520 # So say no if there are warnings
6521 if test ! -s out/conftest.err; then
6522 lt_cv_prog_compiler_c_o=yes
6523 fi
6524 fi
6525 chmod u+w .
6526 $rm conftest*
6527 # SGI C++ compiler will create directory out/ii_files/ for
6528 # template instantiation
6529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6530 $rm out/* && rmdir out
6531 cd ..
6532 rmdir conftest
6533 $rm conftest*
6534
6535 fi
6536 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6538
6539
6540 hard_links="nottested"
6541 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6542 # do not overwrite the value of need_locks provided by the user
6543 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6545 hard_links=yes
6546 $rm conftest*
6547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6548 touch conftest.a
6549 ln conftest.a conftest.b 2>&5 || hard_links=no
6550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6551 echo "$as_me:$LINENO: result: $hard_links" >&5
6552 echo "${ECHO_T}$hard_links" >&6
6553 if test "$hard_links" = no; then
6554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6556 need_locks=warn
6557 fi
6558 else
6559 need_locks=no
6560 fi
6561
6562 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6564
6565 runpath_var=
6566 allow_undefined_flag=
6567 enable_shared_with_static_runtimes=no
6568 archive_cmds=
6569 archive_expsym_cmds=
6570 old_archive_From_new_cmds=
6571 old_archive_from_expsyms_cmds=
6572 export_dynamic_flag_spec=
6573 whole_archive_flag_spec=
6574 thread_safe_flag_spec=
6575 hardcode_libdir_flag_spec=
6576 hardcode_libdir_flag_spec_ld=
6577 hardcode_libdir_separator=
6578 hardcode_direct=no
6579 hardcode_minus_L=no
6580 hardcode_shlibpath_var=unsupported
6581 link_all_deplibs=unknown
6582 hardcode_automatic=no
6583 module_cmds=
6584 module_expsym_cmds=
6585 always_export_symbols=no
6586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6587 # include_expsyms should be a list of space-separated symbols to be *always*
6588 # included in the symbol list
6589 include_expsyms=
6590 # exclude_expsyms can be an extended regexp of symbols to exclude
6591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6593 # as well as any symbol that contains `d'.
6594 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6596 # platforms (ab)use it in PIC code, but their linkers get confused if
6597 # the symbol is explicitly referenced. Since portable code cannot
6598 # rely on this symbol name, it's probably fine to never include it in
6599 # preloaded symbol tables.
6600 extract_expsyms_cmds=
6601
6602 case $host_os in
6603 cygwin* | mingw* | pw32*)
6604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6605 # When not using gcc, we currently assume that we are using
6606 # Microsoft Visual C++.
6607 if test "$GCC" != yes; then
6608 with_gnu_ld=no
6609 fi
6610 ;;
6611 openbsd*)
6612 with_gnu_ld=no
6613 ;;
6614 esac
6615
6616 ld_shlibs=yes
6617 if test "$with_gnu_ld" = yes; then
6618 # If archive_cmds runs LD, not CC, wlarc should be empty
6619 wlarc='${wl}'
6620
6621 # See if GNU ld supports shared libraries.
6622 case $host_os in
6623 aix3* | aix4* | aix5*)
6624 # On AIX/PPC, the GNU linker is very broken
6625 if test "$host_cpu" != ia64; then
6626 ld_shlibs=no
6627 cat <<EOF 1>&2
6628
6629 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6630 *** to be unable to reliably create shared libraries on AIX.
6631 *** Therefore, libtool is disabling shared libraries support. If you
6632 *** really care for shared libraries, you may want to modify your PATH
6633 *** so that a non-GNU linker is found, and then restart.
6634
6635 EOF
6636 fi
6637 ;;
6638
6639 amigaos*)
6640 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)'
6641 hardcode_libdir_flag_spec='-L$libdir'
6642 hardcode_minus_L=yes
6643
6644 # Samuel A. Falvo II <[email protected]> reports
6645 # that the semantics of dynamic libraries on AmigaOS, at least up
6646 # to version 4, is to share data among multiple programs linked
6647 # with the same dynamic library. Since this doesn't match the
6648 # behavior of shared libraries on other platforms, we can't use
6649 # them.
6650 ld_shlibs=no
6651 ;;
6652
6653 beos*)
6654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6655 allow_undefined_flag=unsupported
6656 # Joseph Beckenbach <[email protected]> says some releases of gcc
6657 # support --undefined. This deserves some investigation. FIXME
6658 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6659 else
6660 ld_shlibs=no
6661 fi
6662 ;;
6663
6664 cygwin* | mingw* | pw32*)
6665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6666 # as there is no search path for DLLs.
6667 hardcode_libdir_flag_spec='-L$libdir'
6668 allow_undefined_flag=unsupported
6669 always_export_symbols=no
6670 enable_shared_with_static_runtimes=yes
6671 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6672
6673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6675 # If the export-symbols file already is a .def file (1st line
6676 # is EXPORTS), use it as is; otherwise, prepend...
6677 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6678 cp $export_symbols $output_objdir/$soname.def;
6679 else
6680 echo EXPORTS > $output_objdir/$soname.def;
6681 cat $export_symbols >> $output_objdir/$soname.def;
6682 fi~
6683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6684 else
6685 ld_shlibs=no
6686 fi
6687 ;;
6688
6689 netbsd* | knetbsd*-gnu)
6690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6691 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6692 wlarc=
6693 else
6694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6696 fi
6697 ;;
6698
6699 solaris* | sysv5*)
6700 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6701 ld_shlibs=no
6702 cat <<EOF 1>&2
6703
6704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6705 *** create shared libraries on Solaris systems. Therefore, libtool
6706 *** is disabling shared libraries support. We urge you to upgrade GNU
6707 *** binutils to release 2.9.1 or newer. Another option is to modify
6708 *** your PATH or compiler configuration so that the native linker is
6709 *** used, and then restart.
6710
6711 EOF
6712 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6715 else
6716 ld_shlibs=no
6717 fi
6718 ;;
6719
6720 sunos4*)
6721 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6722 wlarc=
6723 hardcode_direct=yes
6724 hardcode_shlibpath_var=no
6725 ;;
6726
6727 linux*)
6728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6729 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6730 archive_cmds="$tmp_archive_cmds"
6731 supports_anon_versioning=no
6732 case `$LD -v 2>/dev/null` in
6733 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6736 *\ 2.11.*) ;; # other 2.11 versions
6737 *) supports_anon_versioning=yes ;;
6738 esac
6739 if test $supports_anon_versioning = yes; then
6740 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6742 $echo "local: *; };" >> $output_objdir/$libname.ver~
6743 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6744 else
6745 archive_expsym_cmds="$tmp_archive_cmds"
6746 fi
6747 link_all_deplibs=no
6748 else
6749 ld_shlibs=no
6750 fi
6751 ;;
6752
6753 *)
6754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6757 else
6758 ld_shlibs=no
6759 fi
6760 ;;
6761 esac
6762
6763 if test "$ld_shlibs" = yes; then
6764 runpath_var=LD_RUN_PATH
6765 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6766 export_dynamic_flag_spec='${wl}--export-dynamic'
6767 # ancient GNU ld didn't support --whole-archive et. al.
6768 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6769 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6770 else
6771 whole_archive_flag_spec=
6772 fi
6773 fi
6774 else
6775 # PORTME fill in a description of your system's linker (not GNU ld)
6776 case $host_os in
6777 aix3*)
6778 allow_undefined_flag=unsupported
6779 always_export_symbols=yes
6780 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'
6781 # Note: this linker hardcodes the directories in LIBPATH if there
6782 # are no directories specified by -L.
6783 hardcode_minus_L=yes
6784 if test "$GCC" = yes && test -z "$link_static_flag"; then
6785 # Neither direct hardcoding nor static linking is supported with a
6786 # broken collect2.
6787 hardcode_direct=unsupported
6788 fi
6789 ;;
6790
6791 aix4* | aix5*)
6792 if test "$host_cpu" = ia64; then
6793 # On IA64, the linker does run time linking by default, so we don't
6794 # have to do anything special.
6795 aix_use_runtimelinking=no
6796 exp_sym_flag='-Bexport'
6797 no_entry_flag=""
6798 else
6799 # If we're using GNU nm, then we don't want the "-C" option.
6800 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6801 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6802 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'
6803 else
6804 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'
6805 fi
6806 aix_use_runtimelinking=no
6807
6808 # Test if we are trying to use run time linking or normal
6809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6810 # need to do runtime linking.
6811 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6812 for ld_flag in $LDFLAGS; do
6813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6814 aix_use_runtimelinking=yes
6815 break
6816 fi
6817 done
6818 esac
6819
6820 exp_sym_flag='-bexport'
6821 no_entry_flag='-bnoentry'
6822 fi
6823
6824 # When large executables or shared objects are built, AIX ld can
6825 # have problems creating the table of contents. If linking a library
6826 # or program results in "error TOC overflow" add -mminimal-toc to
6827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6829
6830 archive_cmds=''
6831 hardcode_direct=yes
6832 hardcode_libdir_separator=':'
6833 link_all_deplibs=yes
6834
6835 if test "$GCC" = yes; then
6836 case $host_os in aix4.012|aix4.012.*)
6837 # We only want to do this on AIX 4.2 and lower, the check
6838 # below for broken collect2 doesn't work under 4.3+
6839 collect2name=`${CC} -print-prog-name=collect2`
6840 if test -f "$collect2name" && \
6841 strings "$collect2name" | grep resolve_lib_name >/dev/null
6842 then
6843 # We have reworked collect2
6844 hardcode_direct=yes
6845 else
6846 # We have old collect2
6847 hardcode_direct=unsupported
6848 # It fails to find uninstalled libraries when the uninstalled
6849 # path is not listed in the libpath. Setting hardcode_minus_L
6850 # to unsupported forces relinking
6851 hardcode_minus_L=yes
6852 hardcode_libdir_flag_spec='-L$libdir'
6853 hardcode_libdir_separator=
6854 fi
6855 esac
6856 shared_flag='-shared'
6857 else
6858 # not using gcc
6859 if test "$host_cpu" = ia64; then
6860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6861 # chokes on -Wl,-G. The following line is correct:
6862 shared_flag='-G'
6863 else
6864 if test "$aix_use_runtimelinking" = yes; then
6865 shared_flag='${wl}-G'
6866 else
6867 shared_flag='${wl}-bM:SRE'
6868 fi
6869 fi
6870 fi
6871
6872 # It seems that -bexpall does not export symbols beginning with
6873 # underscore (_), so it is better to generate a list of symbols to export.
6874 always_export_symbols=yes
6875 if test "$aix_use_runtimelinking" = yes; then
6876 # Warning - without using the other runtime loading flags (-brtl),
6877 # -berok will link without error, but may produce a broken library.
6878 allow_undefined_flag='-berok'
6879 # Determine the default libpath from the value encoded in an empty executable.
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886
6887 int
6888 main ()
6889 {
6890
6891 ;
6892 return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897 (eval $ac_link) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest$ac_exeext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916
6917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6918 }'`
6919 # Check for a 64-bit object if we didn't find anything.
6920 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6921 }'`; fi
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 fi
6927 rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6930
6931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6932 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6933 else
6934 if test "$host_cpu" = ia64; then
6935 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6936 allow_undefined_flag="-z nodefs"
6937 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6938 else
6939 # Determine the default libpath from the value encoded in an empty executable.
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h. */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946
6947 int
6948 main ()
6949 {
6950
6951 ;
6952 return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try='test -s conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976
6977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6978 }'`
6979 # Check for a 64-bit object if we didn't find anything.
6980 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6981 }'`; fi
6982 else
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6985
6986 fi
6987 rm -f conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext conftest.$ac_ext
6989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6990
6991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6992 # Warning - without using the other run time loading flags,
6993 # -berok will link without error, but may produce a broken library.
6994 no_undefined_flag=' ${wl}-bernotok'
6995 allow_undefined_flag=' ${wl}-berok'
6996 # -bexpall does not export symbols beginning with underscore (_)
6997 always_export_symbols=yes
6998 # Exported symbols can be pulled into shared objects from archives
6999 whole_archive_flag_spec=' '
7000 archive_cmds_need_lc=yes
7001 # This is similar to how AIX traditionally builds it's shared libraries.
7002 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7003 fi
7004 fi
7005 ;;
7006
7007 amigaos*)
7008 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)'
7009 hardcode_libdir_flag_spec='-L$libdir'
7010 hardcode_minus_L=yes
7011 # see comment about different semantics on the GNU ld section
7012 ld_shlibs=no
7013 ;;
7014
7015 bsdi4*)
7016 export_dynamic_flag_spec=-rdynamic
7017 ;;
7018
7019 cygwin* | mingw* | pw32*)
7020 # When not using gcc, we currently assume that we are using
7021 # Microsoft Visual C++.
7022 # hardcode_libdir_flag_spec is actually meaningless, as there is
7023 # no search path for DLLs.
7024 hardcode_libdir_flag_spec=' '
7025 allow_undefined_flag=unsupported
7026 # Tell ltmain to make .lib files, not .a files.
7027 libext=lib
7028 # Tell ltmain to make .dll files, not .so files.
7029 shrext_cmds=".dll"
7030 # FIXME: Setting linknames here is a bad hack.
7031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7032 # The linker will automatically build a .lib file if we build a DLL.
7033 old_archive_From_new_cmds='true'
7034 # FIXME: Should let the user specify the lib program.
7035 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7036 fix_srcfile_path='`cygpath -w "$srcfile"`'
7037 enable_shared_with_static_runtimes=yes
7038 ;;
7039
7040 darwin* | rhapsody*)
7041 if test "$GXX" = yes ; then
7042 archive_cmds_need_lc=no
7043 case "$host_os" in
7044 rhapsody* | darwin1.[012])
7045 allow_undefined_flag='-undefined suppress'
7046 ;;
7047 *) # Darwin 1.3 on
7048 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7049 allow_undefined_flag='-flat_namespace -undefined suppress'
7050 else
7051 case ${MACOSX_DEPLOYMENT_TARGET} in
7052 10.[012])
7053 allow_undefined_flag='-flat_namespace -undefined suppress'
7054 ;;
7055 10.*)
7056 allow_undefined_flag='-undefined dynamic_lookup'
7057 ;;
7058 esac
7059 fi
7060 ;;
7061 esac
7062 lt_int_apple_cc_single_mod=no
7063 output_verbose_link_cmd='echo'
7064 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7065 lt_int_apple_cc_single_mod=yes
7066 fi
7067 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7068 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7069 else
7070 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7071 fi
7072 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7073 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7075 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7076 else
7077 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7078 fi
7079 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7080 hardcode_direct=no
7081 hardcode_automatic=yes
7082 hardcode_shlibpath_var=unsupported
7083 whole_archive_flag_spec='-all_load $convenience'
7084 link_all_deplibs=yes
7085 else
7086 ld_shlibs=no
7087 fi
7088 ;;
7089
7090 dgux*)
7091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7092 hardcode_libdir_flag_spec='-L$libdir'
7093 hardcode_shlibpath_var=no
7094 ;;
7095
7096 freebsd1*)
7097 ld_shlibs=no
7098 ;;
7099
7100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7101 # support. Future versions do this automatically, but an explicit c++rt0.o
7102 # does not break anything, and helps significantly (at the cost of a little
7103 # extra space).
7104 freebsd2.2*)
7105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7106 hardcode_libdir_flag_spec='-R$libdir'
7107 hardcode_direct=yes
7108 hardcode_shlibpath_var=no
7109 ;;
7110
7111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7112 freebsd2*)
7113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7114 hardcode_direct=yes
7115 hardcode_minus_L=yes
7116 hardcode_shlibpath_var=no
7117 ;;
7118
7119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7120 freebsd* | kfreebsd*-gnu)
7121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7122 hardcode_libdir_flag_spec='-R$libdir'
7123 hardcode_direct=yes
7124 hardcode_shlibpath_var=no
7125 ;;
7126
7127 hpux9*)
7128 if test "$GCC" = yes; then
7129 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'
7130 else
7131 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'
7132 fi
7133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7134 hardcode_libdir_separator=:
7135 hardcode_direct=yes
7136
7137 # hardcode_minus_L: Not really in the search PATH,
7138 # but as the default location of the library.
7139 hardcode_minus_L=yes
7140 export_dynamic_flag_spec='${wl}-E'
7141 ;;
7142
7143 hpux10* | hpux11*)
7144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7145 case "$host_cpu" in
7146 hppa*64*|ia64*)
7147 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7148 ;;
7149 *)
7150 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7151 ;;
7152 esac
7153 else
7154 case "$host_cpu" in
7155 hppa*64*|ia64*)
7156 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7157 ;;
7158 *)
7159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7160 ;;
7161 esac
7162 fi
7163 if test "$with_gnu_ld" = no; then
7164 case "$host_cpu" in
7165 hppa*64*)
7166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7167 hardcode_libdir_flag_spec_ld='+b $libdir'
7168 hardcode_libdir_separator=:
7169 hardcode_direct=no
7170 hardcode_shlibpath_var=no
7171 ;;
7172 ia64*)
7173 hardcode_libdir_flag_spec='-L$libdir'
7174 hardcode_direct=no
7175 hardcode_shlibpath_var=no
7176
7177 # hardcode_minus_L: Not really in the search PATH,
7178 # but as the default location of the library.
7179 hardcode_minus_L=yes
7180 ;;
7181 *)
7182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7183 hardcode_libdir_separator=:
7184 hardcode_direct=yes
7185 export_dynamic_flag_spec='${wl}-E'
7186
7187 # hardcode_minus_L: Not really in the search PATH,
7188 # but as the default location of the library.
7189 hardcode_minus_L=yes
7190 ;;
7191 esac
7192 fi
7193 ;;
7194
7195 irix5* | irix6* | nonstopux*)
7196 if test "$GCC" = yes; then
7197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7198 else
7199 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7200 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7201 fi
7202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7203 hardcode_libdir_separator=:
7204 link_all_deplibs=yes
7205 ;;
7206
7207 netbsd* | knetbsd*-gnu)
7208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7210 else
7211 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7212 fi
7213 hardcode_libdir_flag_spec='-R$libdir'
7214 hardcode_direct=yes
7215 hardcode_shlibpath_var=no
7216 ;;
7217
7218 newsos6)
7219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7220 hardcode_direct=yes
7221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7222 hardcode_libdir_separator=:
7223 hardcode_shlibpath_var=no
7224 ;;
7225
7226 openbsd*)
7227 hardcode_direct=yes
7228 hardcode_shlibpath_var=no
7229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7232 export_dynamic_flag_spec='${wl}-E'
7233 else
7234 case $host_os in
7235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7237 hardcode_libdir_flag_spec='-R$libdir'
7238 ;;
7239 *)
7240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7242 ;;
7243 esac
7244 fi
7245 ;;
7246
7247 os2*)
7248 hardcode_libdir_flag_spec='-L$libdir'
7249 hardcode_minus_L=yes
7250 allow_undefined_flag=unsupported
7251 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'
7252 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7253 ;;
7254
7255 osf3*)
7256 if test "$GCC" = yes; then
7257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7258 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7259 else
7260 allow_undefined_flag=' -expect_unresolved \*'
7261 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7262 fi
7263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264 hardcode_libdir_separator=:
7265 ;;
7266
7267 osf4* | osf5*) # as osf3* with the addition of -msym flag
7268 if test "$GCC" = yes; then
7269 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7270 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7272 else
7273 allow_undefined_flag=' -expect_unresolved \*'
7274 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7275 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7276 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7277
7278 # Both c and cxx compiler support -rpath directly
7279 hardcode_libdir_flag_spec='-rpath $libdir'
7280 fi
7281 hardcode_libdir_separator=:
7282 ;;
7283
7284 sco3.2v5*)
7285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286 hardcode_shlibpath_var=no
7287 export_dynamic_flag_spec='${wl}-Bexport'
7288 runpath_var=LD_RUN_PATH
7289 hardcode_runpath_var=yes
7290 ;;
7291
7292 solaris*)
7293 no_undefined_flag=' -z text'
7294 if test "$GCC" = yes; then
7295 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7296 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7297 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7298 else
7299 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7302 fi
7303 hardcode_libdir_flag_spec='-R$libdir'
7304 hardcode_shlibpath_var=no
7305 case $host_os in
7306 solaris2.[0-5] | solaris2.[0-5].*) ;;
7307 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7308 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7309 esac
7310 link_all_deplibs=yes
7311 ;;
7312
7313 sunos4*)
7314 if test "x$host_vendor" = xsequent; then
7315 # Use $CC to link under sequent, because it throws in some extra .o
7316 # files that make .init and .fini sections work.
7317 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7318 else
7319 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7320 fi
7321 hardcode_libdir_flag_spec='-L$libdir'
7322 hardcode_direct=yes
7323 hardcode_minus_L=yes
7324 hardcode_shlibpath_var=no
7325 ;;
7326
7327 sysv4)
7328 case $host_vendor in
7329 sni)
7330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331 hardcode_direct=yes # is this really true???
7332 ;;
7333 siemens)
7334 ## LD is ld it makes a PLAMLIB
7335 ## CC just makes a GrossModule.
7336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7337 reload_cmds='$CC -r -o $output$reload_objs'
7338 hardcode_direct=no
7339 ;;
7340 motorola)
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7343 ;;
7344 esac
7345 runpath_var='LD_RUN_PATH'
7346 hardcode_shlibpath_var=no
7347 ;;
7348
7349 sysv4.3*)
7350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351 hardcode_shlibpath_var=no
7352 export_dynamic_flag_spec='-Bexport'
7353 ;;
7354
7355 sysv4*MP*)
7356 if test -d /usr/nec; then
7357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358 hardcode_shlibpath_var=no
7359 runpath_var=LD_RUN_PATH
7360 hardcode_runpath_var=yes
7361 ld_shlibs=yes
7362 fi
7363 ;;
7364
7365 sysv4.2uw2*)
7366 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7367 hardcode_direct=yes
7368 hardcode_minus_L=no
7369 hardcode_shlibpath_var=no
7370 hardcode_runpath_var=yes
7371 runpath_var=LD_RUN_PATH
7372 ;;
7373
7374 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7375 no_undefined_flag='${wl}-z ${wl}text'
7376 if test "$GCC" = yes; then
7377 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7378 else
7379 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7380 fi
7381 runpath_var='LD_RUN_PATH'
7382 hardcode_shlibpath_var=no
7383 ;;
7384
7385 sysv5*)
7386 no_undefined_flag=' -z text'
7387 # $CC -shared without GNU ld will not create a library from C++
7388 # object files and a static libstdc++, better avoid it by now
7389 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7391 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7392 hardcode_libdir_flag_spec=
7393 hardcode_shlibpath_var=no
7394 runpath_var='LD_RUN_PATH'
7395 ;;
7396
7397 uts4*)
7398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_libdir_flag_spec='-L$libdir'
7400 hardcode_shlibpath_var=no
7401 ;;
7402
7403 *)
7404 ld_shlibs=no
7405 ;;
7406 esac
7407 fi
7408
7409 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7410 echo "${ECHO_T}$ld_shlibs" >&6
7411 test "$ld_shlibs" = no && can_build_shared=no
7412
7413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7414 if test "$GCC" = yes; then
7415 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7416 fi
7417
7418 #
7419 # Do we need to explicitly link libc?
7420 #
7421 case "x$archive_cmds_need_lc" in
7422 x|xyes)
7423 # Assume -lc should be added
7424 archive_cmds_need_lc=yes
7425
7426 if test "$enable_shared" = yes && test "$GCC" = yes; then
7427 case $archive_cmds in
7428 *'~'*)
7429 # FIXME: we may have to deal with multi-command sequences.
7430 ;;
7431 '$CC '*)
7432 # Test whether the compiler implicitly links with -lc since on some
7433 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7434 # to ld, don't add -lc before -lgcc.
7435 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7436 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7437 $rm conftest*
7438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7439
7440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } 2>conftest.err; then
7445 soname=conftest
7446 lib=conftest
7447 libobjs=conftest.$ac_objext
7448 deplibs=
7449 wl=$lt_prog_compiler_wl
7450 compiler_flags=-v
7451 linker_flags=-v
7452 verstring=
7453 output_objdir=.
7454 libname=conftest
7455 lt_save_allow_undefined_flag=$allow_undefined_flag
7456 allow_undefined_flag=
7457 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7458 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }
7462 then
7463 archive_cmds_need_lc=no
7464 else
7465 archive_cmds_need_lc=yes
7466 fi
7467 allow_undefined_flag=$lt_save_allow_undefined_flag
7468 else
7469 cat conftest.err 1>&5
7470 fi
7471 $rm conftest*
7472 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7473 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7474 ;;
7475 esac
7476 fi
7477 ;;
7478 esac
7479
7480 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7481 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7482 library_names_spec=
7483 libname_spec='lib$name'
7484 soname_spec=
7485 shrext_cmds=".so"
7486 postinstall_cmds=
7487 postuninstall_cmds=
7488 finish_cmds=
7489 finish_eval=
7490 shlibpath_var=
7491 shlibpath_overrides_runpath=unknown
7492 version_type=none
7493 dynamic_linker="$host_os ld.so"
7494 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7495 if test "$GCC" = yes; then
7496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7497 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7498 # if the path contains ";" then we assume it to be the separator
7499 # otherwise default to the standard path separator (i.e. ":") - it is
7500 # assumed that no part of a normal pathname contains ";" but that should
7501 # okay in the real world where ";" in dirpaths is itself problematic.
7502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7503 else
7504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7505 fi
7506 else
7507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7508 fi
7509 need_lib_prefix=unknown
7510 hardcode_into_libs=no
7511
7512 # when you set need_version to no, make sure it does not cause -set_version
7513 # flags to be left without arguments
7514 need_version=unknown
7515
7516 case $host_os in
7517 aix3*)
7518 version_type=linux
7519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7520 shlibpath_var=LIBPATH
7521
7522 # AIX 3 has no versioning support, so we append a major version to the name.
7523 soname_spec='${libname}${release}${shared_ext}$major'
7524 ;;
7525
7526 aix4* | aix5*)
7527 version_type=linux
7528 need_lib_prefix=no
7529 need_version=no
7530 hardcode_into_libs=yes
7531 if test "$host_cpu" = ia64; then
7532 # AIX 5 supports IA64
7533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7534 shlibpath_var=LD_LIBRARY_PATH
7535 else
7536 # With GCC up to 2.95.x, collect2 would create an import file
7537 # for dependence libraries. The import file would start with
7538 # the line `#! .'. This would cause the generated library to
7539 # depend on `.', always an invalid library. This was fixed in
7540 # development snapshots of GCC prior to 3.0.
7541 case $host_os in
7542 aix4 | aix4.[01] | aix4.[01].*)
7543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7544 echo ' yes '
7545 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7546 :
7547 else
7548 can_build_shared=no
7549 fi
7550 ;;
7551 esac
7552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7553 # soname into executable. Probably we can add versioning support to
7554 # collect2, so additional links can be useful in future.
7555 if test "$aix_use_runtimelinking" = yes; then
7556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7557 # instead of lib<name>.a to let people know that these are not
7558 # typical AIX shared libraries.
7559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7560 else
7561 # We preserve .a as extension for shared libraries through AIX4.2
7562 # and later when we are not doing run time linking.
7563 library_names_spec='${libname}${release}.a $libname.a'
7564 soname_spec='${libname}${release}${shared_ext}$major'
7565 fi
7566 shlibpath_var=LIBPATH
7567 fi
7568 ;;
7569
7570 amigaos*)
7571 library_names_spec='$libname.ixlibrary $libname.a'
7572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7573 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'
7574 ;;
7575
7576 beos*)
7577 library_names_spec='${libname}${shared_ext}'
7578 dynamic_linker="$host_os ld.so"
7579 shlibpath_var=LIBRARY_PATH
7580 ;;
7581
7582 bsdi4*)
7583 version_type=linux
7584 need_version=no
7585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7586 soname_spec='${libname}${release}${shared_ext}$major'
7587 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7588 shlibpath_var=LD_LIBRARY_PATH
7589 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7590 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7591 # the default ld.so.conf also contains /usr/contrib/lib and
7592 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7593 # libtool to hard-code these into programs
7594 ;;
7595
7596 cygwin* | mingw* | pw32*)
7597 version_type=windows
7598 shrext_cmds=".dll"
7599 need_version=no
7600 need_lib_prefix=no
7601
7602 case $GCC,$host_os in
7603 yes,cygwin* | yes,mingw* | yes,pw32*)
7604 library_names_spec='$libname.dll.a'
7605 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7606 postinstall_cmds='base_file=`basename \${file}`~
7607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7608 dldir=$destdir/`dirname \$dlpath`~
7609 test -d \$dldir || mkdir -p \$dldir~
7610 $install_prog $dir/$dlname \$dldir/$dlname'
7611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7612 dlpath=$dir/\$dldll~
7613 $rm \$dlpath'
7614 shlibpath_overrides_runpath=yes
7615
7616 case $host_os in
7617 cygwin*)
7618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7621 ;;
7622 mingw*)
7623 # MinGW DLLs use traditional 'lib' prefix
7624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7627 # It is most probably a Windows format PATH printed by
7628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7629 # path with ; separators, and with drive letters. We can handle the
7630 # drive letters (cygwin fileutils understands them), so leave them,
7631 # especially as we might pass files found there to a mingw objdump,
7632 # which wouldn't understand a cygwinified path. Ahh.
7633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7634 else
7635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7636 fi
7637 ;;
7638 pw32*)
7639 # pw32 DLLs use 'pw' prefix rather than 'lib'
7640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7641 ;;
7642 esac
7643 ;;
7644
7645 *)
7646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7647 ;;
7648 esac
7649 dynamic_linker='Win32 ld.exe'
7650 # FIXME: first we should search . and the directory the executable is in
7651 shlibpath_var=PATH
7652 ;;
7653
7654 darwin* | rhapsody*)
7655 dynamic_linker="$host_os dyld"
7656 version_type=darwin
7657 need_lib_prefix=no
7658 need_version=no
7659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7660 soname_spec='${libname}${release}${major}$shared_ext'
7661 shlibpath_overrides_runpath=yes
7662 shlibpath_var=DYLD_LIBRARY_PATH
7663 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7665 if test "$GCC" = yes; then
7666 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7667 else
7668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7669 fi
7670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7671 ;;
7672
7673 dgux*)
7674 version_type=linux
7675 need_lib_prefix=no
7676 need_version=no
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7679 shlibpath_var=LD_LIBRARY_PATH
7680 ;;
7681
7682 freebsd1*)
7683 dynamic_linker=no
7684 ;;
7685
7686 kfreebsd*-gnu)
7687 version_type=linux
7688 need_lib_prefix=no
7689 need_version=no
7690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7691 soname_spec='${libname}${release}${shared_ext}$major'
7692 shlibpath_var=LD_LIBRARY_PATH
7693 shlibpath_overrides_runpath=no
7694 hardcode_into_libs=yes
7695 dynamic_linker='GNU ld.so'
7696 ;;
7697
7698 freebsd*)
7699 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7700 version_type=freebsd-$objformat
7701 case $version_type in
7702 freebsd-elf*)
7703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7704 need_version=no
7705 need_lib_prefix=no
7706 ;;
7707 freebsd-*)
7708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7709 need_version=yes
7710 ;;
7711 esac
7712 shlibpath_var=LD_LIBRARY_PATH
7713 case $host_os in
7714 freebsd2*)
7715 shlibpath_overrides_runpath=yes
7716 ;;
7717 freebsd3.01* | freebsdelf3.01*)
7718 shlibpath_overrides_runpath=yes
7719 hardcode_into_libs=yes
7720 ;;
7721 *) # from 3.2 on
7722 shlibpath_overrides_runpath=no
7723 hardcode_into_libs=yes
7724 ;;
7725 esac
7726 ;;
7727
7728 gnu*)
7729 version_type=linux
7730 need_lib_prefix=no
7731 need_version=no
7732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7733 soname_spec='${libname}${release}${shared_ext}$major'
7734 shlibpath_var=LD_LIBRARY_PATH
7735 hardcode_into_libs=yes
7736 ;;
7737
7738 hpux9* | hpux10* | hpux11*)
7739 # Give a soname corresponding to the major version so that dld.sl refuses to
7740 # link against other versions.
7741 version_type=sunos
7742 need_lib_prefix=no
7743 need_version=no
7744 case "$host_cpu" in
7745 ia64*)
7746 shrext_cmds='.so'
7747 hardcode_into_libs=yes
7748 dynamic_linker="$host_os dld.so"
7749 shlibpath_var=LD_LIBRARY_PATH
7750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7752 soname_spec='${libname}${release}${shared_ext}$major'
7753 if test "X$HPUX_IA64_MODE" = X32; then
7754 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7755 else
7756 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7757 fi
7758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7759 ;;
7760 hppa*64*)
7761 shrext_cmds='.sl'
7762 hardcode_into_libs=yes
7763 dynamic_linker="$host_os dld.sl"
7764 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7767 soname_spec='${libname}${release}${shared_ext}$major'
7768 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7770 ;;
7771 *)
7772 shrext_cmds='.sl'
7773 dynamic_linker="$host_os dld.sl"
7774 shlibpath_var=SHLIB_PATH
7775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7777 soname_spec='${libname}${release}${shared_ext}$major'
7778 ;;
7779 esac
7780 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7781 postinstall_cmds='chmod 555 $lib'
7782 ;;
7783
7784 irix5* | irix6* | nonstopux*)
7785 case $host_os in
7786 nonstopux*) version_type=nonstopux ;;
7787 *)
7788 if test "$lt_cv_prog_gnu_ld" = yes; then
7789 version_type=linux
7790 else
7791 version_type=irix
7792 fi ;;
7793 esac
7794 need_lib_prefix=no
7795 need_version=no
7796 soname_spec='${libname}${release}${shared_ext}$major'
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7798 case $host_os in
7799 irix5* | nonstopux*)
7800 libsuff= shlibsuff=
7801 ;;
7802 *)
7803 case $LD in # libtool.m4 will add one of these switches to LD
7804 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7805 libsuff= shlibsuff= libmagic=32-bit;;
7806 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7807 libsuff=32 shlibsuff=N32 libmagic=N32;;
7808 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7809 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7810 *) libsuff= shlibsuff= libmagic=never-match;;
7811 esac
7812 ;;
7813 esac
7814 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7815 shlibpath_overrides_runpath=no
7816 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7817 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7818 hardcode_into_libs=yes
7819 ;;
7820
7821 # No shared lib support for Linux oldld, aout, or coff.
7822 linux*oldld* | linux*aout* | linux*coff*)
7823 dynamic_linker=no
7824 ;;
7825
7826 # This must be Linux ELF.
7827 linux*)
7828 version_type=linux
7829 need_lib_prefix=no
7830 need_version=no
7831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7832 soname_spec='${libname}${release}${shared_ext}$major'
7833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7834 shlibpath_var=LD_LIBRARY_PATH
7835 shlibpath_overrides_runpath=no
7836 # This implies no fast_install, which is unacceptable.
7837 # Some rework will be needed to allow for fast_install
7838 # before this can be enabled.
7839 hardcode_into_libs=yes
7840
7841 # Append ld.so.conf contents to the search path
7842 if test -f /etc/ld.so.conf; then
7843 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7844 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7845 fi
7846
7847 # We used to test for /lib/ld.so.1 and disable shared libraries on
7848 # powerpc, because MkLinux only supported shared libraries with the
7849 # GNU dynamic linker. Since this was broken with cross compilers,
7850 # most powerpc-linux boxes support dynamic linking these days and
7851 # people can always --disable-shared, the test was removed, and we
7852 # assume the GNU/Linux dynamic linker is in use.
7853 dynamic_linker='GNU/Linux ld.so'
7854 ;;
7855
7856 knetbsd*-gnu)
7857 version_type=linux
7858 need_lib_prefix=no
7859 need_version=no
7860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 shlibpath_var=LD_LIBRARY_PATH
7863 shlibpath_overrides_runpath=no
7864 hardcode_into_libs=yes
7865 dynamic_linker='GNU ld.so'
7866 ;;
7867
7868 netbsd*)
7869 version_type=sunos
7870 need_lib_prefix=no
7871 need_version=no
7872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7875 dynamic_linker='NetBSD (a.out) ld.so'
7876 else
7877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7878 soname_spec='${libname}${release}${shared_ext}$major'
7879 dynamic_linker='NetBSD ld.elf_so'
7880 fi
7881 shlibpath_var=LD_LIBRARY_PATH
7882 shlibpath_overrides_runpath=yes
7883 hardcode_into_libs=yes
7884 ;;
7885
7886 newsos6)
7887 version_type=linux
7888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 shlibpath_var=LD_LIBRARY_PATH
7890 shlibpath_overrides_runpath=yes
7891 ;;
7892
7893 nto-qnx*)
7894 version_type=linux
7895 need_lib_prefix=no
7896 need_version=no
7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898 soname_spec='${libname}${release}${shared_ext}$major'
7899 shlibpath_var=LD_LIBRARY_PATH
7900 shlibpath_overrides_runpath=yes
7901 ;;
7902
7903 openbsd*)
7904 version_type=sunos
7905 need_lib_prefix=no
7906 need_version=yes
7907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7909 shlibpath_var=LD_LIBRARY_PATH
7910 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7911 case $host_os in
7912 openbsd2.[89] | openbsd2.[89].*)
7913 shlibpath_overrides_runpath=no
7914 ;;
7915 *)
7916 shlibpath_overrides_runpath=yes
7917 ;;
7918 esac
7919 else
7920 shlibpath_overrides_runpath=yes
7921 fi
7922 ;;
7923
7924 os2*)
7925 libname_spec='$name'
7926 shrext_cmds=".dll"
7927 need_lib_prefix=no
7928 library_names_spec='$libname${shared_ext} $libname.a'
7929 dynamic_linker='OS/2 ld.exe'
7930 shlibpath_var=LIBPATH
7931 ;;
7932
7933 osf3* | osf4* | osf5*)
7934 version_type=osf
7935 need_lib_prefix=no
7936 need_version=no
7937 soname_spec='${libname}${release}${shared_ext}$major'
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939 shlibpath_var=LD_LIBRARY_PATH
7940 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7941 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7942 ;;
7943
7944 sco3.2v5*)
7945 version_type=osf
7946 soname_spec='${libname}${release}${shared_ext}$major'
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948 shlibpath_var=LD_LIBRARY_PATH
7949 ;;
7950
7951 solaris*)
7952 version_type=linux
7953 need_lib_prefix=no
7954 need_version=no
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=yes
7959 hardcode_into_libs=yes
7960 # ldd complains unless libraries are executable
7961 postinstall_cmds='chmod +x $lib'
7962 ;;
7963
7964 sunos4*)
7965 version_type=sunos
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7970 if test "$with_gnu_ld" = yes; then
7971 need_lib_prefix=no
7972 fi
7973 need_version=yes
7974 ;;
7975
7976 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7977 version_type=linux
7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979 soname_spec='${libname}${release}${shared_ext}$major'
7980 shlibpath_var=LD_LIBRARY_PATH
7981 case $host_vendor in
7982 sni)
7983 shlibpath_overrides_runpath=no
7984 need_lib_prefix=no
7985 export_dynamic_flag_spec='${wl}-Blargedynsym'
7986 runpath_var=LD_RUN_PATH
7987 ;;
7988 siemens)
7989 need_lib_prefix=no
7990 ;;
7991 motorola)
7992 need_lib_prefix=no
7993 need_version=no
7994 shlibpath_overrides_runpath=no
7995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7996 ;;
7997 esac
7998 ;;
7999
8000 sysv4*MP*)
8001 if test -d /usr/nec ;then
8002 version_type=linux
8003 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8004 soname_spec='$libname${shared_ext}.$major'
8005 shlibpath_var=LD_LIBRARY_PATH
8006 fi
8007 ;;
8008
8009 uts4*)
8010 version_type=linux
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 ;;
8015
8016 *)
8017 dynamic_linker=no
8018 ;;
8019 esac
8020 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8021 echo "${ECHO_T}$dynamic_linker" >&6
8022 test "$dynamic_linker" = no && can_build_shared=no
8023
8024 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8025 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8026 hardcode_action=
8027 if test -n "$hardcode_libdir_flag_spec" || \
8028 test -n "$runpath_var " || \
8029 test "X$hardcode_automatic"="Xyes" ; then
8030
8031 # We can hardcode non-existant directories.
8032 if test "$hardcode_direct" != no &&
8033 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8034 # have to relink, otherwise we might link with an installed library
8035 # when we should be linking with a yet-to-be-installed one
8036 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8037 test "$hardcode_minus_L" != no; then
8038 # Linking always hardcodes the temporary library directory.
8039 hardcode_action=relink
8040 else
8041 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8042 hardcode_action=immediate
8043 fi
8044 else
8045 # We cannot hardcode anything, or else we can only hardcode existing
8046 # directories.
8047 hardcode_action=unsupported
8048 fi
8049 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8050 echo "${ECHO_T}$hardcode_action" >&6
8051
8052 if test "$hardcode_action" = relink; then
8053 # Fast installation is not supported
8054 enable_fast_install=no
8055 elif test "$shlibpath_overrides_runpath" = yes ||
8056 test "$enable_shared" = no; then
8057 # Fast installation is not necessary
8058 enable_fast_install=needless
8059 fi
8060
8061 striplib=
8062 old_striplib=
8063 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8064 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8065 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8066 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8067 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8068 echo "$as_me:$LINENO: result: yes" >&5
8069 echo "${ECHO_T}yes" >&6
8070 else
8071 # FIXME - insert some real tests, host_os isn't really good enough
8072 case $host_os in
8073 darwin*)
8074 if test -n "$STRIP" ; then
8075 striplib="$STRIP -x"
8076 echo "$as_me:$LINENO: result: yes" >&5
8077 echo "${ECHO_T}yes" >&6
8078 else
8079 echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6
8081 fi
8082 ;;
8083 *)
8084 echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8086 ;;
8087 esac
8088 fi
8089
8090 if test "x$enable_dlopen" != xyes; then
8091 enable_dlopen=unknown
8092 enable_dlopen_self=unknown
8093 enable_dlopen_self_static=unknown
8094 else
8095 lt_cv_dlopen=no
8096 lt_cv_dlopen_libs=
8097
8098 case $host_os in
8099 beos*)
8100 lt_cv_dlopen="load_add_on"
8101 lt_cv_dlopen_libs=
8102 lt_cv_dlopen_self=yes
8103 ;;
8104
8105 mingw* | pw32*)
8106 lt_cv_dlopen="LoadLibrary"
8107 lt_cv_dlopen_libs=
8108 ;;
8109
8110 cygwin*)
8111 lt_cv_dlopen="dlopen"
8112 lt_cv_dlopen_libs=
8113 ;;
8114
8115 darwin*)
8116 # if libdl is installed we need to link against it
8117 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8118 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8119 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 ac_check_lib_save_LIBS=$LIBS
8123 LIBS="-ldl $LIBS"
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130
8131 /* Override any gcc2 internal prototype to avoid an error. */
8132 #ifdef __cplusplus
8133 extern "C"
8134 #endif
8135 /* We use char because int might match the return type of a gcc2
8136 builtin and then its argument prototype would still apply. */
8137 char dlopen ();
8138 int
8139 main ()
8140 {
8141 dlopen ();
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 ac_cv_lib_dl_dlopen=yes
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 ac_cv_lib_dl_dlopen=no
8173 fi
8174 rm -f conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 LIBS=$ac_check_lib_save_LIBS
8177 fi
8178 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8180 if test $ac_cv_lib_dl_dlopen = yes; then
8181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8182 else
8183
8184 lt_cv_dlopen="dyld"
8185 lt_cv_dlopen_libs=
8186 lt_cv_dlopen_self=yes
8187
8188 fi
8189
8190 ;;
8191
8192 *)
8193 echo "$as_me:$LINENO: checking for shl_load" >&5
8194 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8195 if test "${ac_cv_func_shl_load+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8206 #define shl_load innocuous_shl_load
8207
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char shl_load (); below.
8210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8211 <limits.h> exists even on freestanding compilers. */
8212
8213 #ifdef __STDC__
8214 # include <limits.h>
8215 #else
8216 # include <assert.h>
8217 #endif
8218
8219 #undef shl_load
8220
8221 /* Override any gcc2 internal prototype to avoid an error. */
8222 #ifdef __cplusplus
8223 extern "C"
8224 {
8225 #endif
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228 char shl_load ();
8229 /* The GNU C library defines this for functions which it implements
8230 to always fail with ENOSYS. Some functions are actually named
8231 something starting with __ and the normal name is an alias. */
8232 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8233 choke me
8234 #else
8235 char (*f) () = shl_load;
8236 #endif
8237 #ifdef __cplusplus
8238 }
8239 #endif
8240
8241 int
8242 main ()
8243 {
8244 return f != shl_load;
8245 ;
8246 return 0;
8247 }
8248 _ACEOF
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest$ac_exeext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 (eval $ac_try) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_cv_func_shl_load=yes
8271 else
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275 ac_cv_func_shl_load=no
8276 fi
8277 rm -f conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 fi
8280 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8281 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8282 if test $ac_cv_func_shl_load = yes; then
8283 lt_cv_dlopen="shl_load"
8284 else
8285 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8286 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8287 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 ac_check_lib_save_LIBS=$LIBS
8291 LIBS="-ldld $LIBS"
8292 cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298
8299 /* Override any gcc2 internal prototype to avoid an error. */
8300 #ifdef __cplusplus
8301 extern "C"
8302 #endif
8303 /* We use char because int might match the return type of a gcc2
8304 builtin and then its argument prototype would still apply. */
8305 char shl_load ();
8306 int
8307 main ()
8308 {
8309 shl_load ();
8310 ;
8311 return 0;
8312 }
8313 _ACEOF
8314 rm -f conftest.$ac_objext conftest$ac_exeext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest$ac_exeext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_lib_dld_shl_load=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 ac_cv_lib_dld_shl_load=no
8341 fi
8342 rm -f conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
8344 LIBS=$ac_check_lib_save_LIBS
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8347 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8348 if test $ac_cv_lib_dld_shl_load = yes; then
8349 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8350 else
8351 echo "$as_me:$LINENO: checking for dlopen" >&5
8352 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8353 if test "${ac_cv_func_dlopen+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h. */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8364 #define dlopen innocuous_dlopen
8365
8366 /* System header to define __stub macros and hopefully few prototypes,
8367 which can conflict with char dlopen (); below.
8368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8369 <limits.h> exists even on freestanding compilers. */
8370
8371 #ifdef __STDC__
8372 # include <limits.h>
8373 #else
8374 # include <assert.h>
8375 #endif
8376
8377 #undef dlopen
8378
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 #ifdef __cplusplus
8381 extern "C"
8382 {
8383 #endif
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8386 char dlopen ();
8387 /* The GNU C library defines this for functions which it implements
8388 to always fail with ENOSYS. Some functions are actually named
8389 something starting with __ and the normal name is an alias. */
8390 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8391 choke me
8392 #else
8393 char (*f) () = dlopen;
8394 #endif
8395 #ifdef __cplusplus
8396 }
8397 #endif
8398
8399 int
8400 main ()
8401 {
8402 return f != dlopen;
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_func_dlopen=yes
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_cv_func_dlopen=no
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 fi
8438 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8439 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8440 if test $ac_cv_func_dlopen = yes; then
8441 lt_cv_dlopen="dlopen"
8442 else
8443 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8444 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8445 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 ac_check_lib_save_LIBS=$LIBS
8449 LIBS="-ldl $LIBS"
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456
8457 /* Override any gcc2 internal prototype to avoid an error. */
8458 #ifdef __cplusplus
8459 extern "C"
8460 #endif
8461 /* We use char because int might match the return type of a gcc2
8462 builtin and then its argument prototype would still apply. */
8463 char dlopen ();
8464 int
8465 main ()
8466 {
8467 dlopen ();
8468 ;
8469 return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474 (eval $ac_link) 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_lib_dl_dlopen=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_lib_dl_dlopen=no
8499 fi
8500 rm -f conftest.err conftest.$ac_objext \
8501 conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8503 fi
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8505 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8506 if test $ac_cv_lib_dl_dlopen = yes; then
8507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8508 else
8509 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8510 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8511 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514 ac_check_lib_save_LIBS=$LIBS
8515 LIBS="-lsvld $LIBS"
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522
8523 /* Override any gcc2 internal prototype to avoid an error. */
8524 #ifdef __cplusplus
8525 extern "C"
8526 #endif
8527 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */
8529 char dlopen ();
8530 int
8531 main ()
8532 {
8533 dlopen ();
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } &&
8553 { ac_try='test -s conftest$ac_exeext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_cv_lib_svld_dlopen=yes
8560 else
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8563
8564 ac_cv_lib_svld_dlopen=no
8565 fi
8566 rm -f conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_lib_save_LIBS
8569 fi
8570 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8571 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8572 if test $ac_cv_lib_svld_dlopen = yes; then
8573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8574 else
8575 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8576 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8577 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 else
8580 ac_check_lib_save_LIBS=$LIBS
8581 LIBS="-ldld $LIBS"
8582 cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h. */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8588
8589 /* Override any gcc2 internal prototype to avoid an error. */
8590 #ifdef __cplusplus
8591 extern "C"
8592 #endif
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8595 char dld_link ();
8596 int
8597 main ()
8598 {
8599 dld_link ();
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_lib_dld_dld_link=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 ac_cv_lib_dld_dld_link=no
8631 fi
8632 rm -f conftest.err conftest.$ac_objext \
8633 conftest$ac_exeext conftest.$ac_ext
8634 LIBS=$ac_check_lib_save_LIBS
8635 fi
8636 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8637 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8638 if test $ac_cv_lib_dld_dld_link = yes; then
8639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8640 fi
8641
8642
8643 fi
8644
8645
8646 fi
8647
8648
8649 fi
8650
8651
8652 fi
8653
8654
8655 fi
8656
8657 ;;
8658 esac
8659
8660 if test "x$lt_cv_dlopen" != xno; then
8661 enable_dlopen=yes
8662 else
8663 enable_dlopen=no
8664 fi
8665
8666 case $lt_cv_dlopen in
8667 dlopen)
8668 save_CPPFLAGS="$CPPFLAGS"
8669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8670
8671 save_LDFLAGS="$LDFLAGS"
8672 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8673
8674 save_LIBS="$LIBS"
8675 LIBS="$lt_cv_dlopen_libs $LIBS"
8676
8677 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8678 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8679 if test "${lt_cv_dlopen_self+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682 if test "$cross_compiling" = yes; then :
8683 lt_cv_dlopen_self=cross
8684 else
8685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8686 lt_status=$lt_dlunknown
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8688 "configure"
8689 #include "confdefs.h"
8690
8691 #if HAVE_DLFCN_H
8692 #include <dlfcn.h>
8693 #endif
8694
8695 #include <stdio.h>
8696
8697 #ifdef RTLD_GLOBAL
8698 # define LT_DLGLOBAL RTLD_GLOBAL
8699 #else
8700 # ifdef DL_GLOBAL
8701 # define LT_DLGLOBAL DL_GLOBAL
8702 # else
8703 # define LT_DLGLOBAL 0
8704 # endif
8705 #endif
8706
8707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8708 find out it does not work in some platform. */
8709 #ifndef LT_DLLAZY_OR_NOW
8710 # ifdef RTLD_LAZY
8711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8712 # else
8713 # ifdef DL_LAZY
8714 # define LT_DLLAZY_OR_NOW DL_LAZY
8715 # else
8716 # ifdef RTLD_NOW
8717 # define LT_DLLAZY_OR_NOW RTLD_NOW
8718 # else
8719 # ifdef DL_NOW
8720 # define LT_DLLAZY_OR_NOW DL_NOW
8721 # else
8722 # define LT_DLLAZY_OR_NOW 0
8723 # endif
8724 # endif
8725 # endif
8726 # endif
8727 #endif
8728
8729 #ifdef __cplusplus
8730 extern "C" void exit (int);
8731 #endif
8732
8733 void fnord() { int i=42;}
8734 int main ()
8735 {
8736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8737 int status = $lt_dlunknown;
8738
8739 if (self)
8740 {
8741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8743 /* dlclose (self); */
8744 }
8745
8746 exit (status);
8747 }
8748 EOF
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750 (eval $ac_link) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8754 (./conftest; exit; ) 2>/dev/null
8755 lt_status=$?
8756 case x$lt_status in
8757 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8758 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8759 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8760 esac
8761 else :
8762 # compilation failed
8763 lt_cv_dlopen_self=no
8764 fi
8765 fi
8766 rm -fr conftest*
8767
8768
8769 fi
8770 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8771 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8772
8773 if test "x$lt_cv_dlopen_self" = xyes; then
8774 LDFLAGS="$LDFLAGS $link_static_flag"
8775 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8776 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8777 if test "${lt_cv_dlopen_self_static+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 if test "$cross_compiling" = yes; then :
8781 lt_cv_dlopen_self_static=cross
8782 else
8783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8784 lt_status=$lt_dlunknown
8785 cat > conftest.$ac_ext <<EOF
8786 #line 8786 "configure"
8787 #include "confdefs.h"
8788
8789 #if HAVE_DLFCN_H
8790 #include <dlfcn.h>
8791 #endif
8792
8793 #include <stdio.h>
8794
8795 #ifdef RTLD_GLOBAL
8796 # define LT_DLGLOBAL RTLD_GLOBAL
8797 #else
8798 # ifdef DL_GLOBAL
8799 # define LT_DLGLOBAL DL_GLOBAL
8800 # else
8801 # define LT_DLGLOBAL 0
8802 # endif
8803 #endif
8804
8805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8806 find out it does not work in some platform. */
8807 #ifndef LT_DLLAZY_OR_NOW
8808 # ifdef RTLD_LAZY
8809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8810 # else
8811 # ifdef DL_LAZY
8812 # define LT_DLLAZY_OR_NOW DL_LAZY
8813 # else
8814 # ifdef RTLD_NOW
8815 # define LT_DLLAZY_OR_NOW RTLD_NOW
8816 # else
8817 # ifdef DL_NOW
8818 # define LT_DLLAZY_OR_NOW DL_NOW
8819 # else
8820 # define LT_DLLAZY_OR_NOW 0
8821 # endif
8822 # endif
8823 # endif
8824 # endif
8825 #endif
8826
8827 #ifdef __cplusplus
8828 extern "C" void exit (int);
8829 #endif
8830
8831 void fnord() { int i=42;}
8832 int main ()
8833 {
8834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8835 int status = $lt_dlunknown;
8836
8837 if (self)
8838 {
8839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8841 /* dlclose (self); */
8842 }
8843
8844 exit (status);
8845 }
8846 EOF
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8852 (./conftest; exit; ) 2>/dev/null
8853 lt_status=$?
8854 case x$lt_status in
8855 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8856 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8857 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8858 esac
8859 else :
8860 # compilation failed
8861 lt_cv_dlopen_self_static=no
8862 fi
8863 fi
8864 rm -fr conftest*
8865
8866
8867 fi
8868 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8870 fi
8871
8872 CPPFLAGS="$save_CPPFLAGS"
8873 LDFLAGS="$save_LDFLAGS"
8874 LIBS="$save_LIBS"
8875 ;;
8876 esac
8877
8878 case $lt_cv_dlopen_self in
8879 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8880 *) enable_dlopen_self=unknown ;;
8881 esac
8882
8883 case $lt_cv_dlopen_self_static in
8884 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8885 *) enable_dlopen_self_static=unknown ;;
8886 esac
8887 fi
8888
8889
8890 # Report which librarie types wil actually be built
8891 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8892 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8893 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8894 echo "${ECHO_T}$can_build_shared" >&6
8895
8896 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8897 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8898 test "$can_build_shared" = "no" && enable_shared=no
8899
8900 # On AIX, shared libraries and static libraries use the same namespace, and
8901 # are all built from PIC.
8902 case "$host_os" in
8903 aix3*)
8904 test "$enable_shared" = yes && enable_static=no
8905 if test -n "$RANLIB"; then
8906 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8907 postinstall_cmds='$RANLIB $lib'
8908 fi
8909 ;;
8910
8911 aix4* | aix5*)
8912 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8913 test "$enable_shared" = yes && enable_static=no
8914 fi
8915 ;;
8916 darwin* | rhapsody*)
8917 if test "$GCC" = yes; then
8918 archive_cmds_need_lc=no
8919 case "$host_os" in
8920 rhapsody* | darwin1.[012])
8921 allow_undefined_flag='-undefined suppress'
8922 ;;
8923 *) # Darwin 1.3 on
8924 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8925 allow_undefined_flag='-flat_namespace -undefined suppress'
8926 else
8927 case ${MACOSX_DEPLOYMENT_TARGET} in
8928 10.[012])
8929 allow_undefined_flag='-flat_namespace -undefined suppress'
8930 ;;
8931 10.*)
8932 allow_undefined_flag='-undefined dynamic_lookup'
8933 ;;
8934 esac
8935 fi
8936 ;;
8937 esac
8938 output_verbose_link_cmd='echo'
8939 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8940 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8942 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8943 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8944 hardcode_direct=no
8945 hardcode_automatic=yes
8946 hardcode_shlibpath_var=unsupported
8947 whole_archive_flag_spec='-all_load $convenience'
8948 link_all_deplibs=yes
8949 else
8950 ld_shlibs=no
8951 fi
8952 ;;
8953 esac
8954 echo "$as_me:$LINENO: result: $enable_shared" >&5
8955 echo "${ECHO_T}$enable_shared" >&6
8956
8957 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8958 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8959 # Make sure either enable_shared or enable_static is yes.
8960 test "$enable_shared" = yes || enable_static=yes
8961 echo "$as_me:$LINENO: result: $enable_static" >&5
8962 echo "${ECHO_T}$enable_static" >&6
8963
8964 # The else clause should only fire when bootstrapping the
8965 # libtool distribution, otherwise you forgot to ship ltmain.sh
8966 # with your package, and you will get complaints that there are
8967 # no rules to generate ltmain.sh.
8968 if test -f "$ltmain"; then
8969 # See if we are running on zsh, and set the options which allow our commands through
8970 # without removal of \ escapes.
8971 if test -n "${ZSH_VERSION+set}" ; then
8972 setopt NO_GLOB_SUBST
8973 fi
8974 # Now quote all the things that may contain metacharacters while being
8975 # careful not to overquote the AC_SUBSTed values. We take copies of the
8976 # variables and quote the copies for generation of the libtool script.
8977 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8978 SED SHELL STRIP \
8979 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8980 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8981 deplibs_check_method reload_flag reload_cmds need_locks \
8982 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8983 lt_cv_sys_global_symbol_to_c_name_address \
8984 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8985 old_postinstall_cmds old_postuninstall_cmds \
8986 compiler \
8987 CC \
8988 LD \
8989 lt_prog_compiler_wl \
8990 lt_prog_compiler_pic \
8991 lt_prog_compiler_static \
8992 lt_prog_compiler_no_builtin_flag \
8993 export_dynamic_flag_spec \
8994 thread_safe_flag_spec \
8995 whole_archive_flag_spec \
8996 enable_shared_with_static_runtimes \
8997 old_archive_cmds \
8998 old_archive_from_new_cmds \
8999 predep_objects \
9000 postdep_objects \
9001 predeps \
9002 postdeps \
9003 compiler_lib_search_path \
9004 archive_cmds \
9005 archive_expsym_cmds \
9006 postinstall_cmds \
9007 postuninstall_cmds \
9008 old_archive_from_expsyms_cmds \
9009 allow_undefined_flag \
9010 no_undefined_flag \
9011 export_symbols_cmds \
9012 hardcode_libdir_flag_spec \
9013 hardcode_libdir_flag_spec_ld \
9014 hardcode_libdir_separator \
9015 hardcode_automatic \
9016 module_cmds \
9017 module_expsym_cmds \
9018 lt_cv_prog_compiler_c_o \
9019 exclude_expsyms \
9020 include_expsyms; do
9021
9022 case $var in
9023 old_archive_cmds | \
9024 old_archive_from_new_cmds | \
9025 archive_cmds | \
9026 archive_expsym_cmds | \
9027 module_cmds | \
9028 module_expsym_cmds | \
9029 old_archive_from_expsyms_cmds | \
9030 export_symbols_cmds | \
9031 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9032 postinstall_cmds | postuninstall_cmds | \
9033 old_postinstall_cmds | old_postuninstall_cmds | \
9034 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9035 # Double-quote double-evaled strings.
9036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9037 ;;
9038 *)
9039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9040 ;;
9041 esac
9042 done
9043
9044 case $lt_echo in
9045 *'\$0 --fallback-echo"')
9046 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9047 ;;
9048 esac
9049
9050 cfgfile="${ofile}T"
9051 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9052 $rm -f "$cfgfile"
9053 { echo "$as_me:$LINENO: creating $ofile" >&5
9054 echo "$as_me: creating $ofile" >&6;}
9055
9056 cat <<__EOF__ >> "$cfgfile"
9057 #! $SHELL
9058
9059 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9060 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9061 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9062 #
9063 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9064 # Free Software Foundation, Inc.
9065 #
9066 # This file is part of GNU Libtool:
9067 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9068 #
9069 # This program is free software; you can redistribute it and/or modify
9070 # it under the terms of the GNU General Public License as published by
9071 # the Free Software Foundation; either version 2 of the License, or
9072 # (at your option) any later version.
9073 #
9074 # This program is distributed in the hope that it will be useful, but
9075 # WITHOUT ANY WARRANTY; without even the implied warranty of
9076 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9077 # General Public License for more details.
9078 #
9079 # You should have received a copy of the GNU General Public License
9080 # along with this program; if not, write to the Free Software
9081 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9082 #
9083 # As a special exception to the GNU General Public License, if you
9084 # distribute this file as part of a program that contains a
9085 # configuration script generated by Autoconf, you may include it under
9086 # the same distribution terms that you use for the rest of that program.
9087
9088 # A sed program that does not truncate output.
9089 SED=$lt_SED
9090
9091 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9092 Xsed="$SED -e s/^X//"
9093
9094 # The HP-UX ksh and POSIX shell print the target directory to stdout
9095 # if CDPATH is set.
9096 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9097
9098 # The names of the tagged configurations supported by this script.
9099 available_tags=
9100
9101 # ### BEGIN LIBTOOL CONFIG
9102
9103 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9104
9105 # Shell to use when invoking shell scripts.
9106 SHELL=$lt_SHELL
9107
9108 # Whether or not to build shared libraries.
9109 build_libtool_libs=$enable_shared
9110
9111 # Whether or not to build static libraries.
9112 build_old_libs=$enable_static
9113
9114 # Whether or not to add -lc for building shared libraries.
9115 build_libtool_need_lc=$archive_cmds_need_lc
9116
9117 # Whether or not to disallow shared libs when runtime libs are static
9118 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9119
9120 # Whether or not to optimize for fast installation.
9121 fast_install=$enable_fast_install
9122
9123 # The host system.
9124 host_alias=$host_alias
9125 host=$host
9126
9127 # An echo program that does not interpret backslashes.
9128 echo=$lt_echo
9129
9130 # The archiver.
9131 AR=$lt_AR
9132 AR_FLAGS=$lt_AR_FLAGS
9133
9134 # A C compiler.
9135 LTCC=$lt_LTCC
9136
9137 # A language-specific compiler.
9138 CC=$lt_compiler
9139
9140 # Is the compiler the GNU C compiler?
9141 with_gcc=$GCC
9142
9143 # An ERE matcher.
9144 EGREP=$lt_EGREP
9145
9146 # The linker used to build libraries.
9147 LD=$lt_LD
9148
9149 # Whether we need hard or soft links.
9150 LN_S=$lt_LN_S
9151
9152 # A BSD-compatible nm program.
9153 NM=$lt_NM
9154
9155 # A symbol stripping program
9156 STRIP=$lt_STRIP
9157
9158 # Used to examine libraries when file_magic_cmd begins "file"
9159 MAGIC_CMD=$MAGIC_CMD
9160
9161 # Used on cygwin: DLL creation program.
9162 DLLTOOL="$DLLTOOL"
9163
9164 # Used on cygwin: object dumper.
9165 OBJDUMP="$OBJDUMP"
9166
9167 # Used on cygwin: assembler.
9168 AS="$AS"
9169
9170 # The name of the directory that contains temporary libtool files.
9171 objdir=$objdir
9172
9173 # How to create reloadable object files.
9174 reload_flag=$lt_reload_flag
9175 reload_cmds=$lt_reload_cmds
9176
9177 # How to pass a linker flag through the compiler.
9178 wl=$lt_lt_prog_compiler_wl
9179
9180 # Object file suffix (normally "o").
9181 objext="$ac_objext"
9182
9183 # Old archive suffix (normally "a").
9184 libext="$libext"
9185
9186 # Shared library suffix (normally ".so").
9187 shrext_cmds='$shrext_cmds'
9188
9189 # Executable file suffix (normally "").
9190 exeext="$exeext"
9191
9192 # Additional compiler flags for building library objects.
9193 pic_flag=$lt_lt_prog_compiler_pic
9194 pic_mode=$pic_mode
9195
9196 # What is the maximum length of a command?
9197 max_cmd_len=$lt_cv_sys_max_cmd_len
9198
9199 # Does compiler simultaneously support -c and -o options?
9200 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9201
9202 # Must we lock files when doing compilation ?
9203 need_locks=$lt_need_locks
9204
9205 # Do we need the lib prefix for modules?
9206 need_lib_prefix=$need_lib_prefix
9207
9208 # Do we need a version for libraries?
9209 need_version=$need_version
9210
9211 # Whether dlopen is supported.
9212 dlopen_support=$enable_dlopen
9213
9214 # Whether dlopen of programs is supported.
9215 dlopen_self=$enable_dlopen_self
9216
9217 # Whether dlopen of statically linked programs is supported.
9218 dlopen_self_static=$enable_dlopen_self_static
9219
9220 # Compiler flag to prevent dynamic linking.
9221 link_static_flag=$lt_lt_prog_compiler_static
9222
9223 # Compiler flag to turn off builtin functions.
9224 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9225
9226 # Compiler flag to allow reflexive dlopens.
9227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9228
9229 # Compiler flag to generate shared objects directly from archives.
9230 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9231
9232 # Compiler flag to generate thread-safe objects.
9233 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9234
9235 # Library versioning type.
9236 version_type=$version_type
9237
9238 # Format of library name prefix.
9239 libname_spec=$lt_libname_spec
9240
9241 # List of archive names. First name is the real one, the rest are links.
9242 # The last name is the one that the linker finds with -lNAME.
9243 library_names_spec=$lt_library_names_spec
9244
9245 # The coded name of the library, if different from the real name.
9246 soname_spec=$lt_soname_spec
9247
9248 # Commands used to build and install an old-style archive.
9249 RANLIB=$lt_RANLIB
9250 old_archive_cmds=$lt_old_archive_cmds
9251 old_postinstall_cmds=$lt_old_postinstall_cmds
9252 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9253
9254 # Create an old-style archive from a shared archive.
9255 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9256
9257 # Create a temporary old-style archive to link instead of a shared archive.
9258 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9259
9260 # Commands used to build and install a shared archive.
9261 archive_cmds=$lt_archive_cmds
9262 archive_expsym_cmds=$lt_archive_expsym_cmds
9263 postinstall_cmds=$lt_postinstall_cmds
9264 postuninstall_cmds=$lt_postuninstall_cmds
9265
9266 # Commands used to build a loadable module (assumed same as above if empty)
9267 module_cmds=$lt_module_cmds
9268 module_expsym_cmds=$lt_module_expsym_cmds
9269
9270 # Commands to strip libraries.
9271 old_striplib=$lt_old_striplib
9272 striplib=$lt_striplib
9273
9274 # Dependencies to place before the objects being linked to create a
9275 # shared library.
9276 predep_objects=$lt_predep_objects
9277
9278 # Dependencies to place after the objects being linked to create a
9279 # shared library.
9280 postdep_objects=$lt_postdep_objects
9281
9282 # Dependencies to place before the objects being linked to create a
9283 # shared library.
9284 predeps=$lt_predeps
9285
9286 # Dependencies to place after the objects being linked to create a
9287 # shared library.
9288 postdeps=$lt_postdeps
9289
9290 # The library search path used internally by the compiler when linking
9291 # a shared library.
9292 compiler_lib_search_path=$lt_compiler_lib_search_path
9293
9294 # Method to check whether dependent libraries are shared objects.
9295 deplibs_check_method=$lt_deplibs_check_method
9296
9297 # Command to use when deplibs_check_method == file_magic.
9298 file_magic_cmd=$lt_file_magic_cmd
9299
9300 # Flag that allows shared libraries with undefined symbols to be built.
9301 allow_undefined_flag=$lt_allow_undefined_flag
9302
9303 # Flag that forces no undefined symbols.
9304 no_undefined_flag=$lt_no_undefined_flag
9305
9306 # Commands used to finish a libtool library installation in a directory.
9307 finish_cmds=$lt_finish_cmds
9308
9309 # Same as above, but a single script fragment to be evaled but not shown.
9310 finish_eval=$lt_finish_eval
9311
9312 # Take the output of nm and produce a listing of raw symbols and C names.
9313 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9314
9315 # Transform the output of nm in a proper C declaration
9316 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9317
9318 # Transform the output of nm in a C name address pair
9319 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9320
9321 # This is the shared library runtime path variable.
9322 runpath_var=$runpath_var
9323
9324 # This is the shared library path variable.
9325 shlibpath_var=$shlibpath_var
9326
9327 # Is shlibpath searched before the hard-coded library search path?
9328 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9329
9330 # How to hardcode a shared library path into an executable.
9331 hardcode_action=$hardcode_action
9332
9333 # Whether we should hardcode library paths into libraries.
9334 hardcode_into_libs=$hardcode_into_libs
9335
9336 # Flag to hardcode \$libdir into a binary during linking.
9337 # This must work even if \$libdir does not exist.
9338 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9339
9340 # If ld is used when linking, flag to hardcode \$libdir into
9341 # a binary during linking. This must work even if \$libdir does
9342 # not exist.
9343 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9344
9345 # Whether we need a single -rpath flag with a separated argument.
9346 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9347
9348 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9349 # resulting binary.
9350 hardcode_direct=$hardcode_direct
9351
9352 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9353 # resulting binary.
9354 hardcode_minus_L=$hardcode_minus_L
9355
9356 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9357 # the resulting binary.
9358 hardcode_shlibpath_var=$hardcode_shlibpath_var
9359
9360 # Set to yes if building a shared library automatically hardcodes DIR into the library
9361 # and all subsequent libraries and executables linked against it.
9362 hardcode_automatic=$hardcode_automatic
9363
9364 # Variables whose values should be saved in libtool wrapper scripts and
9365 # restored at relink time.
9366 variables_saved_for_relink="$variables_saved_for_relink"
9367
9368 # Whether libtool must link a program against all its dependency libraries.
9369 link_all_deplibs=$link_all_deplibs
9370
9371 # Compile-time system search path for libraries
9372 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9373
9374 # Run-time system search path for libraries
9375 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9376
9377 # Fix the shell variable \$srcfile for the compiler.
9378 fix_srcfile_path="$fix_srcfile_path"
9379
9380 # Set to yes if exported symbols are required.
9381 always_export_symbols=$always_export_symbols
9382
9383 # The commands to list exported symbols.
9384 export_symbols_cmds=$lt_export_symbols_cmds
9385
9386 # The commands to extract the exported symbol list from a shared archive.
9387 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9388
9389 # Symbols that should not be listed in the preloaded symbols.
9390 exclude_expsyms=$lt_exclude_expsyms
9391
9392 # Symbols that must always be exported.
9393 include_expsyms=$lt_include_expsyms
9394
9395 # ### END LIBTOOL CONFIG
9396
9397 __EOF__
9398
9399
9400 case $host_os in
9401 aix3*)
9402 cat <<\EOF >> "$cfgfile"
9403
9404 # AIX sometimes has problems with the GCC collect2 program. For some
9405 # reason, if we set the COLLECT_NAMES environment variable, the problems
9406 # vanish in a puff of smoke.
9407 if test "X${COLLECT_NAMES+set}" != Xset; then
9408 COLLECT_NAMES=
9409 export COLLECT_NAMES
9410 fi
9411 EOF
9412 ;;
9413 esac
9414
9415 # We use sed instead of cat because bash on DJGPP gets confused if
9416 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9417 # text mode, it properly converts lines to CR/LF. This bash problem
9418 # is reportedly fixed, but why not run on old versions too?
9419 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9420
9421 mv -f "$cfgfile" "$ofile" || \
9422 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9423 chmod +x "$ofile"
9424
9425 else
9426 # If there is no Makefile yet, we rely on a make rule to execute
9427 # `config.status --recheck' to rerun these tests and create the
9428 # libtool script then.
9429 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9430 if test -f "$ltmain_in"; then
9431 test -f Makefile && make "$ltmain"
9432 fi
9433 fi
9434
9435
9436 ac_ext=c
9437 ac_cpp='$CPP $CPPFLAGS'
9438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9441
9442 CC="$lt_save_CC"
9443
9444
9445 # Check whether --with-tags or --without-tags was given.
9446 if test "${with_tags+set}" = set; then
9447 withval="$with_tags"
9448 tagnames="$withval"
9449 fi;
9450
9451 if test -f "$ltmain" && test -n "$tagnames"; then
9452 if test ! -f "${ofile}"; then
9453 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9454 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9455 fi
9456
9457 if test -z "$LTCC"; then
9458 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9459 if test -z "$LTCC"; then
9460 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9461 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9462 else
9463 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9464 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9465 fi
9466 fi
9467
9468 # Extract list of available tagged configurations in $ofile.
9469 # Note that this assumes the entire list is on one line.
9470 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9471
9472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9473 for tagname in $tagnames; do
9474 IFS="$lt_save_ifs"
9475 # Check whether tagname contains only valid characters
9476 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9477 "") ;;
9478 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9479 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9480 { (exit 1); exit 1; }; }
9481 ;;
9482 esac
9483
9484 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9485 then
9486 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9487 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9488 { (exit 1); exit 1; }; }
9489 fi
9490
9491 # Update the list of available tags.
9492 if test -n "$tagname"; then
9493 echo appending configuration tag \"$tagname\" to $ofile
9494
9495 case $tagname in
9496 CXX)
9497 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9498 ac_ext=cc
9499 ac_cpp='$CXXCPP $CPPFLAGS'
9500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9503
9504
9505
9506
9507 archive_cmds_need_lc_CXX=no
9508 allow_undefined_flag_CXX=
9509 always_export_symbols_CXX=no
9510 archive_expsym_cmds_CXX=
9511 export_dynamic_flag_spec_CXX=
9512 hardcode_direct_CXX=no
9513 hardcode_libdir_flag_spec_CXX=
9514 hardcode_libdir_flag_spec_ld_CXX=
9515 hardcode_libdir_separator_CXX=
9516 hardcode_minus_L_CXX=no
9517 hardcode_automatic_CXX=no
9518 module_cmds_CXX=
9519 module_expsym_cmds_CXX=
9520 link_all_deplibs_CXX=unknown
9521 old_archive_cmds_CXX=$old_archive_cmds
9522 no_undefined_flag_CXX=
9523 whole_archive_flag_spec_CXX=
9524 enable_shared_with_static_runtimes_CXX=no
9525
9526 # Dependencies to place before and after the object being linked:
9527 predep_objects_CXX=
9528 postdep_objects_CXX=
9529 predeps_CXX=
9530 postdeps_CXX=
9531 compiler_lib_search_path_CXX=
9532
9533 # Source file extension for C++ test sources.
9534 ac_ext=cc
9535
9536 # Object file extension for compiled C++ test sources.
9537 objext=o
9538 objext_CXX=$objext
9539
9540 # Code to be used in simple compile tests
9541 lt_simple_compile_test_code="int some_variable = 0;\n"
9542
9543 # Code to be used in simple link tests
9544 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9545
9546 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9547
9548 # If no C compiler was specified, use CC.
9549 LTCC=${LTCC-"$CC"}
9550
9551 # Allow CC to be a program name with arguments.
9552 compiler=$CC
9553
9554
9555 # Allow CC to be a program name with arguments.
9556 lt_save_CC=$CC
9557 lt_save_LD=$LD
9558 lt_save_GCC=$GCC
9559 GCC=$GXX
9560 lt_save_with_gnu_ld=$with_gnu_ld
9561 lt_save_path_LD=$lt_cv_path_LD
9562 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9563 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9564 else
9565 unset lt_cv_prog_gnu_ld
9566 fi
9567 if test -n "${lt_cv_path_LDCXX+set}"; then
9568 lt_cv_path_LD=$lt_cv_path_LDCXX
9569 else
9570 unset lt_cv_path_LD
9571 fi
9572 test -z "${LDCXX+set}" || LD=$LDCXX
9573 CC=${CXX-"c++"}
9574 compiler=$CC
9575 compiler_CXX=$CC
9576 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9577
9578 # We don't want -fno-exception wen compiling C++ code, so set the
9579 # no_builtin_flag separately
9580 if test "$GXX" = yes; then
9581 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9582 else
9583 lt_prog_compiler_no_builtin_flag_CXX=
9584 fi
9585
9586 if test "$GXX" = yes; then
9587 # Set up default GNU C++ configuration
9588
9589
9590 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9591 if test "${with_gnu_ld+set}" = set; then
9592 withval="$with_gnu_ld"
9593 test "$withval" = no || with_gnu_ld=yes
9594 else
9595 with_gnu_ld=no
9596 fi;
9597 ac_prog=ld
9598 if test "$GCC" = yes; then
9599 # Check if gcc -print-prog-name=ld gives a path.
9600 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9601 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9602 case $host in
9603 *-*-mingw*)
9604 # gcc leaves a trailing carriage return which upsets mingw
9605 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9606 *)
9607 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9608 esac
9609 case $ac_prog in
9610 # Accept absolute paths.
9611 [\\/]* | ?:[\\/]*)
9612 re_direlt='/[^/][^/]*/\.\./'
9613 # Canonicalize the pathname of ld
9614 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9615 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9616 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9617 done
9618 test -z "$LD" && LD="$ac_prog"
9619 ;;
9620 "")
9621 # If it fails, then pretend we aren't using GCC.
9622 ac_prog=ld
9623 ;;
9624 *)
9625 # If it is relative, then search for the first ld in PATH.
9626 with_gnu_ld=unknown
9627 ;;
9628 esac
9629 elif test "$with_gnu_ld" = yes; then
9630 echo "$as_me:$LINENO: checking for GNU ld" >&5
9631 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9632 else
9633 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9634 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9635 fi
9636 if test "${lt_cv_path_LD+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639 if test -z "$LD"; then
9640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9641 for ac_dir in $PATH; do
9642 IFS="$lt_save_ifs"
9643 test -z "$ac_dir" && ac_dir=.
9644 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9645 lt_cv_path_LD="$ac_dir/$ac_prog"
9646 # Check to see if the program is GNU ld. I'd rather use --version,
9647 # but apparently some GNU ld's only accept -v.
9648 # Break only if it was the GNU/non-GNU ld that we prefer.
9649 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9650 *GNU* | *'with BFD'*)
9651 test "$with_gnu_ld" != no && break
9652 ;;
9653 *)
9654 test "$with_gnu_ld" != yes && break
9655 ;;
9656 esac
9657 fi
9658 done
9659 IFS="$lt_save_ifs"
9660 else
9661 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9662 fi
9663 fi
9664
9665 LD="$lt_cv_path_LD"
9666 if test -n "$LD"; then
9667 echo "$as_me:$LINENO: result: $LD" >&5
9668 echo "${ECHO_T}$LD" >&6
9669 else
9670 echo "$as_me:$LINENO: result: no" >&5
9671 echo "${ECHO_T}no" >&6
9672 fi
9673 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9674 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9675 { (exit 1); exit 1; }; }
9676 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9677 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9678 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9682 case `$LD -v 2>&1 </dev/null` in
9683 *GNU* | *'with BFD'*)
9684 lt_cv_prog_gnu_ld=yes
9685 ;;
9686 *)
9687 lt_cv_prog_gnu_ld=no
9688 ;;
9689 esac
9690 fi
9691 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9692 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9693 with_gnu_ld=$lt_cv_prog_gnu_ld
9694
9695
9696
9697 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9698 # archiving commands below assume that GNU ld is being used.
9699 if test "$with_gnu_ld" = yes; then
9700 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9702
9703 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9705
9706 # If archive_cmds runs LD, not CC, wlarc should be empty
9707 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9708 # investigate it a little bit more. (MM)
9709 wlarc='${wl}'
9710
9711 # ancient GNU ld didn't support --whole-archive et. al.
9712 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9713 grep 'no-whole-archive' > /dev/null; then
9714 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9715 else
9716 whole_archive_flag_spec_CXX=
9717 fi
9718 else
9719 with_gnu_ld=no
9720 wlarc=
9721
9722 # A generic and very simple default shared library creation
9723 # command for GNU C++ for the case where it uses the native
9724 # linker, instead of GNU ld. If possible, this setting should
9725 # overridden to take advantage of the native linker features on
9726 # the platform it is being used on.
9727 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9728 fi
9729
9730 # Commands to make compiler produce verbose output that lists
9731 # what "hidden" libraries, object files and flags are used when
9732 # linking a shared library.
9733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9734
9735 else
9736 GXX=no
9737 with_gnu_ld=no
9738 wlarc=
9739 fi
9740
9741 # PORTME: fill in a description of your system's C++ link characteristics
9742 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9743 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9744 ld_shlibs_CXX=yes
9745 case $host_os in
9746 aix3*)
9747 # FIXME: insert proper C++ library support
9748 ld_shlibs_CXX=no
9749 ;;
9750 aix4* | aix5*)
9751 if test "$host_cpu" = ia64; then
9752 # On IA64, the linker does run time linking by default, so we don't
9753 # have to do anything special.
9754 aix_use_runtimelinking=no
9755 exp_sym_flag='-Bexport'
9756 no_entry_flag=""
9757 else
9758 aix_use_runtimelinking=no
9759
9760 # Test if we are trying to use run time linking or normal
9761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9762 # need to do runtime linking.
9763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9764 for ld_flag in $LDFLAGS; do
9765 case $ld_flag in
9766 *-brtl*)
9767 aix_use_runtimelinking=yes
9768 break
9769 ;;
9770 esac
9771 done
9772 esac
9773
9774 exp_sym_flag='-bexport'
9775 no_entry_flag='-bnoentry'
9776 fi
9777
9778 # When large executables or shared objects are built, AIX ld can
9779 # have problems creating the table of contents. If linking a library
9780 # or program results in "error TOC overflow" add -mminimal-toc to
9781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9783
9784 archive_cmds_CXX=''
9785 hardcode_direct_CXX=yes
9786 hardcode_libdir_separator_CXX=':'
9787 link_all_deplibs_CXX=yes
9788
9789 if test "$GXX" = yes; then
9790 case $host_os in aix4.012|aix4.012.*)
9791 # We only want to do this on AIX 4.2 and lower, the check
9792 # below for broken collect2 doesn't work under 4.3+
9793 collect2name=`${CC} -print-prog-name=collect2`
9794 if test -f "$collect2name" && \
9795 strings "$collect2name" | grep resolve_lib_name >/dev/null
9796 then
9797 # We have reworked collect2
9798 hardcode_direct_CXX=yes
9799 else
9800 # We have old collect2
9801 hardcode_direct_CXX=unsupported
9802 # It fails to find uninstalled libraries when the uninstalled
9803 # path is not listed in the libpath. Setting hardcode_minus_L
9804 # to unsupported forces relinking
9805 hardcode_minus_L_CXX=yes
9806 hardcode_libdir_flag_spec_CXX='-L$libdir'
9807 hardcode_libdir_separator_CXX=
9808 fi
9809 esac
9810 shared_flag='-shared'
9811 else
9812 # not using gcc
9813 if test "$host_cpu" = ia64; then
9814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9815 # chokes on -Wl,-G. The following line is correct:
9816 shared_flag='-G'
9817 else
9818 if test "$aix_use_runtimelinking" = yes; then
9819 shared_flag='${wl}-G'
9820 else
9821 shared_flag='${wl}-bM:SRE'
9822 fi
9823 fi
9824 fi
9825
9826 # It seems that -bexpall does not export symbols beginning with
9827 # underscore (_), so it is better to generate a list of symbols to export.
9828 always_export_symbols_CXX=yes
9829 if test "$aix_use_runtimelinking" = yes; then
9830 # Warning - without using the other runtime loading flags (-brtl),
9831 # -berok will link without error, but may produce a broken library.
9832 allow_undefined_flag_CXX='-berok'
9833 # Determine the default libpath from the value encoded in an empty executable.
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840
9841 int
9842 main ()
9843 {
9844
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870
9871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9872 }'`
9873 # Check for a 64-bit object if we didn't find anything.
9874 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9875 }'`; fi
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 fi
9881 rm -f conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9884
9885 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9886
9887 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9888 else
9889 if test "$host_cpu" = ia64; then
9890 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9891 allow_undefined_flag_CXX="-z nodefs"
9892 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9893 else
9894 # Determine the default libpath from the value encoded in an empty executable.
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901
9902 int
9903 main ()
9904 {
9905
9906 ;
9907 return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>conftest.er1
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 (eval $ac_try) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931
9932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9933 }'`
9934 # Check for a 64-bit object if we didn't find anything.
9935 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9936 }'`; fi
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 fi
9942 rm -f conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9945
9946 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9947 # Warning - without using the other run time loading flags,
9948 # -berok will link without error, but may produce a broken library.
9949 no_undefined_flag_CXX=' ${wl}-bernotok'
9950 allow_undefined_flag_CXX=' ${wl}-berok'
9951 # -bexpall does not export symbols beginning with underscore (_)
9952 always_export_symbols_CXX=yes
9953 # Exported symbols can be pulled into shared objects from archives
9954 whole_archive_flag_spec_CXX=' '
9955 archive_cmds_need_lc_CXX=yes
9956 # This is similar to how AIX traditionally builds it's shared libraries.
9957 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9958 fi
9959 fi
9960 ;;
9961 chorus*)
9962 case $cc_basename in
9963 *)
9964 # FIXME: insert proper C++ library support
9965 ld_shlibs_CXX=no
9966 ;;
9967 esac
9968 ;;
9969
9970 cygwin* | mingw* | pw32*)
9971 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9972 # as there is no search path for DLLs.
9973 hardcode_libdir_flag_spec_CXX='-L$libdir'
9974 allow_undefined_flag_CXX=unsupported
9975 always_export_symbols_CXX=no
9976 enable_shared_with_static_runtimes_CXX=yes
9977
9978 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9979 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9980 # If the export-symbols file already is a .def file (1st line
9981 # is EXPORTS), use it as is; otherwise, prepend...
9982 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9983 cp $export_symbols $output_objdir/$soname.def;
9984 else
9985 echo EXPORTS > $output_objdir/$soname.def;
9986 cat $export_symbols >> $output_objdir/$soname.def;
9987 fi~
9988 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9989 else
9990 ld_shlibs_CXX=no
9991 fi
9992 ;;
9993
9994 darwin* | rhapsody*)
9995 if test "$GXX" = yes; then
9996 archive_cmds_need_lc_CXX=no
9997 case "$host_os" in
9998 rhapsody* | darwin1.[012])
9999 allow_undefined_flag_CXX='-undefined suppress'
10000 ;;
10001 *) # Darwin 1.3 on
10002 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10003 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10004 else
10005 case ${MACOSX_DEPLOYMENT_TARGET} in
10006 10.[012])
10007 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10008 ;;
10009 10.*)
10010 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10011 ;;
10012 esac
10013 fi
10014 ;;
10015 esac
10016 lt_int_apple_cc_single_mod=no
10017 output_verbose_link_cmd='echo'
10018 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10019 lt_int_apple_cc_single_mod=yes
10020 fi
10021 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10022 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10023 else
10024 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10025 fi
10026 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10027
10028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10029 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10030 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10031 else
10032 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10033 fi
10034 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10035 hardcode_direct_CXX=no
10036 hardcode_automatic_CXX=yes
10037 hardcode_shlibpath_var_CXX=unsupported
10038 whole_archive_flag_spec_CXX='-all_load $convenience'
10039 link_all_deplibs_CXX=yes
10040 else
10041 ld_shlibs_CXX=no
10042 fi
10043 ;;
10044
10045 dgux*)
10046 case $cc_basename in
10047 ec++)
10048 # FIXME: insert proper C++ library support
10049 ld_shlibs_CXX=no
10050 ;;
10051 ghcx)
10052 # Green Hills C++ Compiler
10053 # FIXME: insert proper C++ library support
10054 ld_shlibs_CXX=no
10055 ;;
10056 *)
10057 # FIXME: insert proper C++ library support
10058 ld_shlibs_CXX=no
10059 ;;
10060 esac
10061 ;;
10062 freebsd12*)
10063 # C++ shared libraries reported to be fairly broken before switch to ELF
10064 ld_shlibs_CXX=no
10065 ;;
10066 freebsd-elf*)
10067 archive_cmds_need_lc_CXX=no
10068 ;;
10069 freebsd* | kfreebsd*-gnu)
10070 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10071 # conventions
10072 ld_shlibs_CXX=yes
10073 ;;
10074 gnu*)
10075 ;;
10076 hpux9*)
10077 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10078 hardcode_libdir_separator_CXX=:
10079 export_dynamic_flag_spec_CXX='${wl}-E'
10080 hardcode_direct_CXX=yes
10081 hardcode_minus_L_CXX=yes # Not in the search PATH,
10082 # but as the default
10083 # location of the library.
10084
10085 case $cc_basename in
10086 CC)
10087 # FIXME: insert proper C++ library support
10088 ld_shlibs_CXX=no
10089 ;;
10090 aCC)
10091 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10092 # Commands to make compiler produce verbose output that lists
10093 # what "hidden" libraries, object files and flags are used when
10094 # linking a shared library.
10095 #
10096 # There doesn't appear to be a way to prevent this compiler from
10097 # explicitly linking system object files so we need to strip them
10098 # from the output so that they don't get included in the library
10099 # dependencies.
10100 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10101 ;;
10102 *)
10103 if test "$GXX" = yes; then
10104 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10105 else
10106 # FIXME: insert proper C++ library support
10107 ld_shlibs_CXX=no
10108 fi
10109 ;;
10110 esac
10111 ;;
10112 hpux10*|hpux11*)
10113 if test $with_gnu_ld = no; then
10114 case "$host_cpu" in
10115 hppa*64*)
10116 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10117 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10118 hardcode_libdir_separator_CXX=:
10119 ;;
10120 ia64*)
10121 hardcode_libdir_flag_spec_CXX='-L$libdir'
10122 ;;
10123 *)
10124 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10125 hardcode_libdir_separator_CXX=:
10126 export_dynamic_flag_spec_CXX='${wl}-E'
10127 ;;
10128 esac
10129 fi
10130 case "$host_cpu" in
10131 hppa*64*)
10132 hardcode_direct_CXX=no
10133 hardcode_shlibpath_var_CXX=no
10134 ;;
10135 ia64*)
10136 hardcode_direct_CXX=no
10137 hardcode_shlibpath_var_CXX=no
10138 hardcode_minus_L_CXX=yes # Not in the search PATH,
10139 # but as the default
10140 # location of the library.
10141 ;;
10142 *)
10143 hardcode_direct_CXX=yes
10144 hardcode_minus_L_CXX=yes # Not in the search PATH,
10145 # but as the default
10146 # location of the library.
10147 ;;
10148 esac
10149
10150 case $cc_basename in
10151 CC)
10152 # FIXME: insert proper C++ library support
10153 ld_shlibs_CXX=no
10154 ;;
10155 aCC)
10156 case "$host_cpu" in
10157 hppa*64*|ia64*)
10158 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10159 ;;
10160 *)
10161 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10162 ;;
10163 esac
10164 # Commands to make compiler produce verbose output that lists
10165 # what "hidden" libraries, object files and flags are used when
10166 # linking a shared library.
10167 #
10168 # There doesn't appear to be a way to prevent this compiler from
10169 # explicitly linking system object files so we need to strip them
10170 # from the output so that they don't get included in the library
10171 # dependencies.
10172 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10173 ;;
10174 *)
10175 if test "$GXX" = yes; then
10176 if test $with_gnu_ld = no; then
10177 case "$host_cpu" in
10178 ia64*|hppa*64*)
10179 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10180 ;;
10181 *)
10182 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10183 ;;
10184 esac
10185 fi
10186 else
10187 # FIXME: insert proper C++ library support
10188 ld_shlibs_CXX=no
10189 fi
10190 ;;
10191 esac
10192 ;;
10193 irix5* | irix6*)
10194 case $cc_basename in
10195 CC)
10196 # SGI C++
10197 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10198
10199 # Archives containing C++ object files must be created using
10200 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10201 # necessary to make sure instantiated templates are included
10202 # in the archive.
10203 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10204 ;;
10205 *)
10206 if test "$GXX" = yes; then
10207 if test "$with_gnu_ld" = no; then
10208 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10209 else
10210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10211 fi
10212 fi
10213 link_all_deplibs_CXX=yes
10214 ;;
10215 esac
10216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator_CXX=:
10218 ;;
10219 linux*)
10220 case $cc_basename in
10221 KCC)
10222 # Kuck and Associates, Inc. (KAI) C++ Compiler
10223
10224 # KCC will only create a shared library if the output file
10225 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10226 # to its proper name (with version) after linking.
10227 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10228 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10229 # Commands to make compiler produce verbose output that lists
10230 # what "hidden" libraries, object files and flags are used when
10231 # linking a shared library.
10232 #
10233 # There doesn't appear to be a way to prevent this compiler from
10234 # explicitly linking system object files so we need to strip them
10235 # from the output so that they don't get included in the library
10236 # dependencies.
10237 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10238
10239 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10241
10242 # Archives containing C++ object files must be created using
10243 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10244 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10245 ;;
10246 icpc)
10247 # Intel C++
10248 with_gnu_ld=yes
10249 archive_cmds_need_lc_CXX=no
10250 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10254 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10255 ;;
10256 cxx)
10257 # Compaq C++
10258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10260
10261 runpath_var=LD_RUN_PATH
10262 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10263 hardcode_libdir_separator_CXX=:
10264
10265 # Commands to make compiler produce verbose output that lists
10266 # what "hidden" libraries, object files and flags are used when
10267 # linking a shared library.
10268 #
10269 # There doesn't appear to be a way to prevent this compiler from
10270 # explicitly linking system object files so we need to strip them
10271 # from the output so that they don't get included in the library
10272 # dependencies.
10273 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10274 ;;
10275 esac
10276 ;;
10277 lynxos*)
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10280 ;;
10281 m88k*)
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 ;;
10285 mvs*)
10286 case $cc_basename in
10287 cxx)
10288 # FIXME: insert proper C++ library support
10289 ld_shlibs_CXX=no
10290 ;;
10291 *)
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 ;;
10295 esac
10296 ;;
10297 netbsd* | knetbsd*-gnu)
10298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10299 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10300 wlarc=
10301 hardcode_libdir_flag_spec_CXX='-R$libdir'
10302 hardcode_direct_CXX=yes
10303 hardcode_shlibpath_var_CXX=no
10304 fi
10305 # Workaround some broken pre-1.5 toolchains
10306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10307 ;;
10308 osf3*)
10309 case $cc_basename in
10310 KCC)
10311 # Kuck and Associates, Inc. (KAI) C++ Compiler
10312
10313 # KCC will only create a shared library if the output file
10314 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10315 # to its proper name (with version) after linking.
10316 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10317
10318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10319 hardcode_libdir_separator_CXX=:
10320
10321 # Archives containing C++ object files must be created using
10322 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10323 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10324
10325 ;;
10326 RCC)
10327 # Rational C++ 2.4.1
10328 # FIXME: insert proper C++ library support
10329 ld_shlibs_CXX=no
10330 ;;
10331 cxx)
10332 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10333 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10334
10335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10336 hardcode_libdir_separator_CXX=:
10337
10338 # Commands to make compiler produce verbose output that lists
10339 # what "hidden" libraries, object files and flags are used when
10340 # linking a shared library.
10341 #
10342 # There doesn't appear to be a way to prevent this compiler from
10343 # explicitly linking system object files so we need to strip them
10344 # from the output so that they don't get included in the library
10345 # dependencies.
10346 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10347 ;;
10348 *)
10349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10350 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10351 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10352
10353 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10354 hardcode_libdir_separator_CXX=:
10355
10356 # Commands to make compiler produce verbose output that lists
10357 # what "hidden" libraries, object files and flags are used when
10358 # linking a shared library.
10359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10360
10361 else
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10364 fi
10365 ;;
10366 esac
10367 ;;
10368 osf4* | osf5*)
10369 case $cc_basename in
10370 KCC)
10371 # Kuck and Associates, Inc. (KAI) C++ Compiler
10372
10373 # KCC will only create a shared library if the output file
10374 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10375 # to its proper name (with version) after linking.
10376 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10377
10378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10379 hardcode_libdir_separator_CXX=:
10380
10381 # Archives containing C++ object files must be created using
10382 # the KAI C++ compiler.
10383 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10384 ;;
10385 RCC)
10386 # Rational C++ 2.4.1
10387 # FIXME: insert proper C++ library support
10388 ld_shlibs_CXX=no
10389 ;;
10390 cxx)
10391 allow_undefined_flag_CXX=' -expect_unresolved \*'
10392 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10393 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10394 echo "-hidden">> $lib.exp~
10395 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10396 $rm $lib.exp'
10397
10398 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10399 hardcode_libdir_separator_CXX=:
10400
10401 # Commands to make compiler produce verbose output that lists
10402 # what "hidden" libraries, object files and flags are used when
10403 # linking a shared library.
10404 #
10405 # There doesn't appear to be a way to prevent this compiler from
10406 # explicitly linking system object files so we need to strip them
10407 # from the output so that they don't get included in the library
10408 # dependencies.
10409 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10410 ;;
10411 *)
10412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10414 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10415
10416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10417 hardcode_libdir_separator_CXX=:
10418
10419 # Commands to make compiler produce verbose output that lists
10420 # what "hidden" libraries, object files and flags are used when
10421 # linking a shared library.
10422 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10423
10424 else
10425 # FIXME: insert proper C++ library support
10426 ld_shlibs_CXX=no
10427 fi
10428 ;;
10429 esac
10430 ;;
10431 psos*)
10432 # FIXME: insert proper C++ library support
10433 ld_shlibs_CXX=no
10434 ;;
10435 sco*)
10436 archive_cmds_need_lc_CXX=no
10437 case $cc_basename in
10438 CC)
10439 # FIXME: insert proper C++ library support
10440 ld_shlibs_CXX=no
10441 ;;
10442 *)
10443 # FIXME: insert proper C++ library support
10444 ld_shlibs_CXX=no
10445 ;;
10446 esac
10447 ;;
10448 sunos4*)
10449 case $cc_basename in
10450 CC)
10451 # Sun C++ 4.x
10452 # FIXME: insert proper C++ library support
10453 ld_shlibs_CXX=no
10454 ;;
10455 lcc)
10456 # Lucid
10457 # FIXME: insert proper C++ library support
10458 ld_shlibs_CXX=no
10459 ;;
10460 *)
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10463 ;;
10464 esac
10465 ;;
10466 solaris*)
10467 case $cc_basename in
10468 CC)
10469 # Sun C++ 4.2, 5.x and Centerline C++
10470 no_undefined_flag_CXX=' -zdefs'
10471 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10472 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10473 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10474
10475 hardcode_libdir_flag_spec_CXX='-R$libdir'
10476 hardcode_shlibpath_var_CXX=no
10477 case $host_os in
10478 solaris2.0-5 | solaris2.0-5.*) ;;
10479 *)
10480 # The C++ compiler is used as linker so we must use $wl
10481 # flag to pass the commands to the underlying system
10482 # linker.
10483 # Supported since Solaris 2.6 (maybe 2.5.1?)
10484 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10485 ;;
10486 esac
10487 link_all_deplibs_CXX=yes
10488
10489 # Commands to make compiler produce verbose output that lists
10490 # what "hidden" libraries, object files and flags are used when
10491 # linking a shared library.
10492 #
10493 # There doesn't appear to be a way to prevent this compiler from
10494 # explicitly linking system object files so we need to strip them
10495 # from the output so that they don't get included in the library
10496 # dependencies.
10497 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10498
10499 # Archives containing C++ object files must be created using
10500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10501 # necessary to make sure instantiated templates are included
10502 # in the archive.
10503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10504 ;;
10505 gcx)
10506 # Green Hills C++ Compiler
10507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10508
10509 # The C++ compiler must be used to create the archive.
10510 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10511 ;;
10512 *)
10513 # GNU C++ compiler with Solaris linker
10514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10515 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10516 if $CC --version | grep -v '^2\.7' > /dev/null; then
10517 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10520
10521 # Commands to make compiler produce verbose output that lists
10522 # what "hidden" libraries, object files and flags are used when
10523 # linking a shared library.
10524 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10525 else
10526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10527 # platform.
10528 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10531
10532 # Commands to make compiler produce verbose output that lists
10533 # what "hidden" libraries, object files and flags are used when
10534 # linking a shared library.
10535 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10536 fi
10537
10538 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10539 fi
10540 ;;
10541 esac
10542 ;;
10543 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10544 archive_cmds_need_lc_CXX=no
10545 ;;
10546 tandem*)
10547 case $cc_basename in
10548 NCC)
10549 # NonStop-UX NCC 3.20
10550 # FIXME: insert proper C++ library support
10551 ld_shlibs_CXX=no
10552 ;;
10553 *)
10554 # FIXME: insert proper C++ library support
10555 ld_shlibs_CXX=no
10556 ;;
10557 esac
10558 ;;
10559 vxworks*)
10560 # FIXME: insert proper C++ library support
10561 ld_shlibs_CXX=no
10562 ;;
10563 *)
10564 # FIXME: insert proper C++ library support
10565 ld_shlibs_CXX=no
10566 ;;
10567 esac
10568 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10569 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10570 test "$ld_shlibs_CXX" = no && can_build_shared=no
10571
10572 GCC_CXX="$GXX"
10573 LD_CXX="$LD"
10574
10575
10576 cat > conftest.$ac_ext <<EOF
10577 class Foo
10578 {
10579 public:
10580 Foo (void) { a = 0; }
10581 private:
10582 int a;
10583 };
10584 EOF
10585
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; then
10591 # Parse the compiler output and extract the necessary
10592 # objects, libraries and library flags.
10593
10594 # Sentinel used to keep track of whether or not we are before
10595 # the conftest object file.
10596 pre_test_object_deps_done=no
10597
10598 # The `*' in the case matches for architectures that use `case' in
10599 # $output_verbose_cmd can trigger glob expansion during the loop
10600 # eval without this substitution.
10601 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10602
10603 for p in `eval $output_verbose_link_cmd`; do
10604 case $p in
10605
10606 -L* | -R* | -l*)
10607 # Some compilers place space between "-{L,R}" and the path.
10608 # Remove the space.
10609 if test $p = "-L" \
10610 || test $p = "-R"; then
10611 prev=$p
10612 continue
10613 else
10614 prev=
10615 fi
10616
10617 if test "$pre_test_object_deps_done" = no; then
10618 case $p in
10619 -L* | -R*)
10620 # Internal compiler library paths should come after those
10621 # provided the user. The postdeps already come after the
10622 # user supplied libs so there is no need to process them.
10623 if test -z "$compiler_lib_search_path_CXX"; then
10624 compiler_lib_search_path_CXX="${prev}${p}"
10625 else
10626 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10627 fi
10628 ;;
10629 # The "-l" case would never come before the object being
10630 # linked, so don't bother handling this case.
10631 esac
10632 else
10633 if test -z "$postdeps_CXX"; then
10634 postdeps_CXX="${prev}${p}"
10635 else
10636 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10637 fi
10638 fi
10639 ;;
10640
10641 *.$objext)
10642 # This assumes that the test object file only shows up
10643 # once in the compiler output.
10644 if test "$p" = "conftest.$objext"; then
10645 pre_test_object_deps_done=yes
10646 continue
10647 fi
10648
10649 if test "$pre_test_object_deps_done" = no; then
10650 if test -z "$predep_objects_CXX"; then
10651 predep_objects_CXX="$p"
10652 else
10653 predep_objects_CXX="$predep_objects_CXX $p"
10654 fi
10655 else
10656 if test -z "$postdep_objects_CXX"; then
10657 postdep_objects_CXX="$p"
10658 else
10659 postdep_objects_CXX="$postdep_objects_CXX $p"
10660 fi
10661 fi
10662 ;;
10663
10664 *) ;; # Ignore the rest.
10665
10666 esac
10667 done
10668
10669 # Clean up.
10670 rm -f a.out a.exe
10671 else
10672 echo "libtool.m4: error: problem compiling CXX test program"
10673 fi
10674
10675 $rm -f confest.$objext
10676
10677 case " $postdeps_CXX " in
10678 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10679 esac
10680
10681 lt_prog_compiler_wl_CXX=
10682 lt_prog_compiler_pic_CXX=
10683 lt_prog_compiler_static_CXX=
10684
10685 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10686 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10687
10688 # C++ specific cases for pic, static, wl, etc.
10689 if test "$GXX" = yes; then
10690 lt_prog_compiler_wl_CXX='-Wl,'
10691 lt_prog_compiler_static_CXX='-static'
10692
10693 case $host_os in
10694 aix*)
10695 # All AIX code is PIC.
10696 if test "$host_cpu" = ia64; then
10697 # AIX 5 now supports IA64 processor
10698 lt_prog_compiler_static_CXX='-Bstatic'
10699 fi
10700 ;;
10701 amigaos*)
10702 # FIXME: we need at least 68020 code to build shared libraries, but
10703 # adding the `-m68020' flag to GCC prevents building anything better,
10704 # like `-m68040'.
10705 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10706 ;;
10707 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10708 # PIC is the default for these OSes.
10709 ;;
10710 mingw* | os2* | pw32*)
10711 # This hack is so that the source file can tell whether it is being
10712 # built for inclusion in a dll (and should export symbols for example).
10713 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10714 ;;
10715 darwin* | rhapsody*)
10716 # PIC is the default on this platform
10717 # Common symbols not allowed in MH_DYLIB files
10718 lt_prog_compiler_pic_CXX='-fno-common'
10719 ;;
10720 *djgpp*)
10721 # DJGPP does not support shared libraries at all
10722 lt_prog_compiler_pic_CXX=
10723 ;;
10724 sysv4*MP*)
10725 if test -d /usr/nec; then
10726 lt_prog_compiler_pic_CXX=-Kconform_pic
10727 fi
10728 ;;
10729 hpux*)
10730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10731 # not for PA HP-UX.
10732 case "$host_cpu" in
10733 hppa*64*|ia64*)
10734 ;;
10735 *)
10736 lt_prog_compiler_pic_CXX='-fPIC'
10737 ;;
10738 esac
10739 ;;
10740 *)
10741 lt_prog_compiler_pic_CXX='-fPIC'
10742 ;;
10743 esac
10744 else
10745 case $host_os in
10746 aix4* | aix5*)
10747 # All AIX code is PIC.
10748 if test "$host_cpu" = ia64; then
10749 # AIX 5 now supports IA64 processor
10750 lt_prog_compiler_static_CXX='-Bstatic'
10751 else
10752 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10753 fi
10754 ;;
10755 chorus*)
10756 case $cc_basename in
10757 cxch68)
10758 # Green Hills C++ Compiler
10759 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10760 ;;
10761 esac
10762 ;;
10763 dgux*)
10764 case $cc_basename in
10765 ec++)
10766 lt_prog_compiler_pic_CXX='-KPIC'
10767 ;;
10768 ghcx)
10769 # Green Hills C++ Compiler
10770 lt_prog_compiler_pic_CXX='-pic'
10771 ;;
10772 *)
10773 ;;
10774 esac
10775 ;;
10776 freebsd* | kfreebsd*-gnu)
10777 # FreeBSD uses GNU C++
10778 ;;
10779 hpux9* | hpux10* | hpux11*)
10780 case $cc_basename in
10781 CC)
10782 lt_prog_compiler_wl_CXX='-Wl,'
10783 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10784 if test "$host_cpu" != ia64; then
10785 lt_prog_compiler_pic_CXX='+Z'
10786 fi
10787 ;;
10788 aCC)
10789 lt_prog_compiler_wl_CXX='-Wl,'
10790 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10791 case "$host_cpu" in
10792 hppa*64*|ia64*)
10793 # +Z the default
10794 ;;
10795 *)
10796 lt_prog_compiler_pic_CXX='+Z'
10797 ;;
10798 esac
10799 ;;
10800 *)
10801 ;;
10802 esac
10803 ;;
10804 irix5* | irix6* | nonstopux*)
10805 case $cc_basename in
10806 CC)
10807 lt_prog_compiler_wl_CXX='-Wl,'
10808 lt_prog_compiler_static_CXX='-non_shared'
10809 # CC pic flag -KPIC is the default.
10810 ;;
10811 *)
10812 ;;
10813 esac
10814 ;;
10815 linux*)
10816 case $cc_basename in
10817 KCC)
10818 # KAI C++ Compiler
10819 lt_prog_compiler_wl_CXX='--backend -Wl,'
10820 lt_prog_compiler_pic_CXX='-fPIC'
10821 ;;
10822 icpc)
10823 # Intel C++
10824 lt_prog_compiler_wl_CXX='-Wl,'
10825 lt_prog_compiler_pic_CXX='-KPIC'
10826 lt_prog_compiler_static_CXX='-static'
10827 ;;
10828 cxx)
10829 # Compaq C++
10830 # Make sure the PIC flag is empty. It appears that all Alpha
10831 # Linux and Compaq Tru64 Unix objects are PIC.
10832 lt_prog_compiler_pic_CXX=
10833 lt_prog_compiler_static_CXX='-non_shared'
10834 ;;
10835 *)
10836 ;;
10837 esac
10838 ;;
10839 lynxos*)
10840 ;;
10841 m88k*)
10842 ;;
10843 mvs*)
10844 case $cc_basename in
10845 cxx)
10846 lt_prog_compiler_pic_CXX='-W c,exportall'
10847 ;;
10848 *)
10849 ;;
10850 esac
10851 ;;
10852 netbsd* | knetbsd*-gnu)
10853 ;;
10854 osf3* | osf4* | osf5*)
10855 case $cc_basename in
10856 KCC)
10857 lt_prog_compiler_wl_CXX='--backend -Wl,'
10858 ;;
10859 RCC)
10860 # Rational C++ 2.4.1
10861 lt_prog_compiler_pic_CXX='-pic'
10862 ;;
10863 cxx)
10864 # Digital/Compaq C++
10865 lt_prog_compiler_wl_CXX='-Wl,'
10866 # Make sure the PIC flag is empty. It appears that all Alpha
10867 # Linux and Compaq Tru64 Unix objects are PIC.
10868 lt_prog_compiler_pic_CXX=
10869 lt_prog_compiler_static_CXX='-non_shared'
10870 ;;
10871 *)
10872 ;;
10873 esac
10874 ;;
10875 psos*)
10876 ;;
10877 sco*)
10878 case $cc_basename in
10879 CC)
10880 lt_prog_compiler_pic_CXX='-fPIC'
10881 ;;
10882 *)
10883 ;;
10884 esac
10885 ;;
10886 solaris*)
10887 case $cc_basename in
10888 CC)
10889 # Sun C++ 4.2, 5.x and Centerline C++
10890 lt_prog_compiler_pic_CXX='-KPIC'
10891 lt_prog_compiler_static_CXX='-Bstatic'
10892 lt_prog_compiler_wl_CXX='-Qoption ld '
10893 ;;
10894 gcx)
10895 # Green Hills C++ Compiler
10896 lt_prog_compiler_pic_CXX='-PIC'
10897 ;;
10898 *)
10899 ;;
10900 esac
10901 ;;
10902 sunos4*)
10903 case $cc_basename in
10904 CC)
10905 # Sun C++ 4.x
10906 lt_prog_compiler_pic_CXX='-pic'
10907 lt_prog_compiler_static_CXX='-Bstatic'
10908 ;;
10909 lcc)
10910 # Lucid
10911 lt_prog_compiler_pic_CXX='-pic'
10912 ;;
10913 *)
10914 ;;
10915 esac
10916 ;;
10917 tandem*)
10918 case $cc_basename in
10919 NCC)
10920 # NonStop-UX NCC 3.20
10921 lt_prog_compiler_pic_CXX='-KPIC'
10922 ;;
10923 *)
10924 ;;
10925 esac
10926 ;;
10927 unixware*)
10928 ;;
10929 vxworks*)
10930 ;;
10931 *)
10932 lt_prog_compiler_can_build_shared_CXX=no
10933 ;;
10934 esac
10935 fi
10936
10937 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10938 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10939
10940 #
10941 # Check to make sure the PIC flag actually works.
10942 #
10943 if test -n "$lt_prog_compiler_pic_CXX"; then
10944
10945 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10946 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10947 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 lt_prog_compiler_pic_works_CXX=no
10951 ac_outfile=conftest.$ac_objext
10952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10953 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10954 # Insert the option either (1) after the last *FLAGS variable, or
10955 # (2) before a word containing "conftest.", or (3) at the end.
10956 # Note that $ac_compile itself does not contain backslashes and begins
10957 # with a dollar sign (not a hyphen), so the echo should work correctly.
10958 # The option is referenced via a variable to avoid confusing sed.
10959 lt_compile=`echo "$ac_compile" | $SED \
10960 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10962 -e 's:$: $lt_compiler_flag:'`
10963 (eval echo "\"\$as_me:10963: $lt_compile\"" >&5)
10964 (eval "$lt_compile" 2>conftest.err)
10965 ac_status=$?
10966 cat conftest.err >&5
10967 echo "$as_me:10967: \$? = $ac_status" >&5
10968 if (exit $ac_status) && test -s "$ac_outfile"; then
10969 # The compiler can only warn and ignore the option if not recognized
10970 # So say no if there are warnings
10971 if test ! -s conftest.err; then
10972 lt_prog_compiler_pic_works_CXX=yes
10973 fi
10974 fi
10975 $rm conftest*
10976
10977 fi
10978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10979 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10980
10981 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10982 case $lt_prog_compiler_pic_CXX in
10983 "" | " "*) ;;
10984 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10985 esac
10986 else
10987 lt_prog_compiler_pic_CXX=
10988 lt_prog_compiler_can_build_shared_CXX=no
10989 fi
10990
10991 fi
10992 case "$host_os" in
10993 # For platforms which do not support PIC, -DPIC is meaningless:
10994 *djgpp*)
10995 lt_prog_compiler_pic_CXX=
10996 ;;
10997 *)
10998 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10999 ;;
11000 esac
11001
11002 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11003 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11004 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 lt_cv_prog_compiler_c_o_CXX=no
11008 $rm -r conftest 2>/dev/null
11009 mkdir conftest
11010 cd conftest
11011 mkdir out
11012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11013
11014 lt_compiler_flag="-o out/conftest2.$ac_objext"
11015 # Insert the option either (1) after the last *FLAGS variable, or
11016 # (2) before a word containing "conftest.", or (3) at the end.
11017 # Note that $ac_compile itself does not contain backslashes and begins
11018 # with a dollar sign (not a hyphen), so the echo should work correctly.
11019 lt_compile=`echo "$ac_compile" | $SED \
11020 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11022 -e 's:$: $lt_compiler_flag:'`
11023 (eval echo "\"\$as_me:11023: $lt_compile\"" >&5)
11024 (eval "$lt_compile" 2>out/conftest.err)
11025 ac_status=$?
11026 cat out/conftest.err >&5
11027 echo "$as_me:11027: \$? = $ac_status" >&5
11028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11029 then
11030 # The compiler can only warn and ignore the option if not recognized
11031 # So say no if there are warnings
11032 if test ! -s out/conftest.err; then
11033 lt_cv_prog_compiler_c_o_CXX=yes
11034 fi
11035 fi
11036 chmod u+w .
11037 $rm conftest*
11038 # SGI C++ compiler will create directory out/ii_files/ for
11039 # template instantiation
11040 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11041 $rm out/* && rmdir out
11042 cd ..
11043 rmdir conftest
11044 $rm conftest*
11045
11046 fi
11047 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11048 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11049
11050
11051 hard_links="nottested"
11052 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11053 # do not overwrite the value of need_locks provided by the user
11054 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11055 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11056 hard_links=yes
11057 $rm conftest*
11058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11059 touch conftest.a
11060 ln conftest.a conftest.b 2>&5 || hard_links=no
11061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11062 echo "$as_me:$LINENO: result: $hard_links" >&5
11063 echo "${ECHO_T}$hard_links" >&6
11064 if test "$hard_links" = no; then
11065 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11066 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11067 need_locks=warn
11068 fi
11069 else
11070 need_locks=no
11071 fi
11072
11073 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11074 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11075
11076 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11077 case $host_os in
11078 aix4* | aix5*)
11079 # If we're using GNU nm, then we don't want the "-C" option.
11080 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11081 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11082 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11083 else
11084 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11085 fi
11086 ;;
11087 pw32*)
11088 export_symbols_cmds_CXX="$ltdll_cmds"
11089 ;;
11090 cygwin* | mingw*)
11091 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11092 ;;
11093 linux*)
11094 link_all_deplibs_CXX=no
11095 ;;
11096 *)
11097 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11098 ;;
11099 esac
11100
11101 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11102 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11103 test "$ld_shlibs_CXX" = no && can_build_shared=no
11104
11105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11106 if test "$GCC" = yes; then
11107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11108 fi
11109
11110 #
11111 # Do we need to explicitly link libc?
11112 #
11113 case "x$archive_cmds_need_lc_CXX" in
11114 x|xyes)
11115 # Assume -lc should be added
11116 archive_cmds_need_lc_CXX=yes
11117
11118 if test "$enable_shared" = yes && test "$GCC" = yes; then
11119 case $archive_cmds_CXX in
11120 *'~'*)
11121 # FIXME: we may have to deal with multi-command sequences.
11122 ;;
11123 '$CC '*)
11124 # Test whether the compiler implicitly links with -lc since on some
11125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11126 # to ld, don't add -lc before -lgcc.
11127 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11128 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11129 $rm conftest*
11130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11131
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } 2>conftest.err; then
11137 soname=conftest
11138 lib=conftest
11139 libobjs=conftest.$ac_objext
11140 deplibs=
11141 wl=$lt_prog_compiler_wl_CXX
11142 compiler_flags=-v
11143 linker_flags=-v
11144 verstring=
11145 output_objdir=.
11146 libname=conftest
11147 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11148 allow_undefined_flag_CXX=
11149 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11150 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }
11154 then
11155 archive_cmds_need_lc_CXX=no
11156 else
11157 archive_cmds_need_lc_CXX=yes
11158 fi
11159 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11160 else
11161 cat conftest.err 1>&5
11162 fi
11163 $rm conftest*
11164 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11165 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11166 ;;
11167 esac
11168 fi
11169 ;;
11170 esac
11171
11172 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11174 library_names_spec=
11175 libname_spec='lib$name'
11176 soname_spec=
11177 shrext_cmds=".so"
11178 postinstall_cmds=
11179 postuninstall_cmds=
11180 finish_cmds=
11181 finish_eval=
11182 shlibpath_var=
11183 shlibpath_overrides_runpath=unknown
11184 version_type=none
11185 dynamic_linker="$host_os ld.so"
11186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11187 if test "$GCC" = yes; then
11188 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11189 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11190 # if the path contains ";" then we assume it to be the separator
11191 # otherwise default to the standard path separator (i.e. ":") - it is
11192 # assumed that no part of a normal pathname contains ";" but that should
11193 # okay in the real world where ";" in dirpaths is itself problematic.
11194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11195 else
11196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11197 fi
11198 else
11199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11200 fi
11201 need_lib_prefix=unknown
11202 hardcode_into_libs=no
11203
11204 # when you set need_version to no, make sure it does not cause -set_version
11205 # flags to be left without arguments
11206 need_version=unknown
11207
11208 case $host_os in
11209 aix3*)
11210 version_type=linux
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11212 shlibpath_var=LIBPATH
11213
11214 # AIX 3 has no versioning support, so we append a major version to the name.
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 ;;
11217
11218 aix4* | aix5*)
11219 version_type=linux
11220 need_lib_prefix=no
11221 need_version=no
11222 hardcode_into_libs=yes
11223 if test "$host_cpu" = ia64; then
11224 # AIX 5 supports IA64
11225 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 else
11228 # With GCC up to 2.95.x, collect2 would create an import file
11229 # for dependence libraries. The import file would start with
11230 # the line `#! .'. This would cause the generated library to
11231 # depend on `.', always an invalid library. This was fixed in
11232 # development snapshots of GCC prior to 3.0.
11233 case $host_os in
11234 aix4 | aix4.[01] | aix4.[01].*)
11235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11236 echo ' yes '
11237 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11238 :
11239 else
11240 can_build_shared=no
11241 fi
11242 ;;
11243 esac
11244 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11245 # soname into executable. Probably we can add versioning support to
11246 # collect2, so additional links can be useful in future.
11247 if test "$aix_use_runtimelinking" = yes; then
11248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11249 # instead of lib<name>.a to let people know that these are not
11250 # typical AIX shared libraries.
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 else
11253 # We preserve .a as extension for shared libraries through AIX4.2
11254 # and later when we are not doing run time linking.
11255 library_names_spec='${libname}${release}.a $libname.a'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 fi
11258 shlibpath_var=LIBPATH
11259 fi
11260 ;;
11261
11262 amigaos*)
11263 library_names_spec='$libname.ixlibrary $libname.a'
11264 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11265 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'
11266 ;;
11267
11268 beos*)
11269 library_names_spec='${libname}${shared_ext}'
11270 dynamic_linker="$host_os ld.so"
11271 shlibpath_var=LIBRARY_PATH
11272 ;;
11273
11274 bsdi4*)
11275 version_type=linux
11276 need_version=no
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11283 # the default ld.so.conf also contains /usr/contrib/lib and
11284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11285 # libtool to hard-code these into programs
11286 ;;
11287
11288 cygwin* | mingw* | pw32*)
11289 version_type=windows
11290 shrext_cmds=".dll"
11291 need_version=no
11292 need_lib_prefix=no
11293
11294 case $GCC,$host_os in
11295 yes,cygwin* | yes,mingw* | yes,pw32*)
11296 library_names_spec='$libname.dll.a'
11297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11298 postinstall_cmds='base_file=`basename \${file}`~
11299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11300 dldir=$destdir/`dirname \$dlpath`~
11301 test -d \$dldir || mkdir -p \$dldir~
11302 $install_prog $dir/$dlname \$dldir/$dlname'
11303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11304 dlpath=$dir/\$dldll~
11305 $rm \$dlpath'
11306 shlibpath_overrides_runpath=yes
11307
11308 case $host_os in
11309 cygwin*)
11310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11312 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11313 ;;
11314 mingw*)
11315 # MinGW DLLs use traditional 'lib' prefix
11316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11318 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11319 # It is most probably a Windows format PATH printed by
11320 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11321 # path with ; separators, and with drive letters. We can handle the
11322 # drive letters (cygwin fileutils understands them), so leave them,
11323 # especially as we might pass files found there to a mingw objdump,
11324 # which wouldn't understand a cygwinified path. Ahh.
11325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11326 else
11327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11328 fi
11329 ;;
11330 pw32*)
11331 # pw32 DLLs use 'pw' prefix rather than 'lib'
11332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11333 ;;
11334 esac
11335 ;;
11336
11337 *)
11338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11339 ;;
11340 esac
11341 dynamic_linker='Win32 ld.exe'
11342 # FIXME: first we should search . and the directory the executable is in
11343 shlibpath_var=PATH
11344 ;;
11345
11346 darwin* | rhapsody*)
11347 dynamic_linker="$host_os dyld"
11348 version_type=darwin
11349 need_lib_prefix=no
11350 need_version=no
11351 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11352 soname_spec='${libname}${release}${major}$shared_ext'
11353 shlibpath_overrides_runpath=yes
11354 shlibpath_var=DYLD_LIBRARY_PATH
11355 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11356 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11357 if test "$GCC" = yes; then
11358 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11359 else
11360 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11361 fi
11362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11363 ;;
11364
11365 dgux*)
11366 version_type=linux
11367 need_lib_prefix=no
11368 need_version=no
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 ;;
11373
11374 freebsd1*)
11375 dynamic_linker=no
11376 ;;
11377
11378 kfreebsd*-gnu)
11379 version_type=linux
11380 need_lib_prefix=no
11381 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=no
11386 hardcode_into_libs=yes
11387 dynamic_linker='GNU ld.so'
11388 ;;
11389
11390 freebsd*)
11391 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11392 version_type=freebsd-$objformat
11393 case $version_type in
11394 freebsd-elf*)
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11396 need_version=no
11397 need_lib_prefix=no
11398 ;;
11399 freebsd-*)
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11401 need_version=yes
11402 ;;
11403 esac
11404 shlibpath_var=LD_LIBRARY_PATH
11405 case $host_os in
11406 freebsd2*)
11407 shlibpath_overrides_runpath=yes
11408 ;;
11409 freebsd3.01* | freebsdelf3.01*)
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11412 ;;
11413 *) # from 3.2 on
11414 shlibpath_overrides_runpath=no
11415 hardcode_into_libs=yes
11416 ;;
11417 esac
11418 ;;
11419
11420 gnu*)
11421 version_type=linux
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 hardcode_into_libs=yes
11428 ;;
11429
11430 hpux9* | hpux10* | hpux11*)
11431 # Give a soname corresponding to the major version so that dld.sl refuses to
11432 # link against other versions.
11433 version_type=sunos
11434 need_lib_prefix=no
11435 need_version=no
11436 case "$host_cpu" in
11437 ia64*)
11438 shrext_cmds='.so'
11439 hardcode_into_libs=yes
11440 dynamic_linker="$host_os dld.so"
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 if test "X$HPUX_IA64_MODE" = X32; then
11446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11447 else
11448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11449 fi
11450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11451 ;;
11452 hppa*64*)
11453 shrext_cmds='.sl'
11454 hardcode_into_libs=yes
11455 dynamic_linker="$host_os dld.sl"
11456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462 ;;
11463 *)
11464 shrext_cmds='.sl'
11465 dynamic_linker="$host_os dld.sl"
11466 shlibpath_var=SHLIB_PATH
11467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 ;;
11471 esac
11472 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11473 postinstall_cmds='chmod 555 $lib'
11474 ;;
11475
11476 irix5* | irix6* | nonstopux*)
11477 case $host_os in
11478 nonstopux*) version_type=nonstopux ;;
11479 *)
11480 if test "$lt_cv_prog_gnu_ld" = yes; then
11481 version_type=linux
11482 else
11483 version_type=irix
11484 fi ;;
11485 esac
11486 need_lib_prefix=no
11487 need_version=no
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11490 case $host_os in
11491 irix5* | nonstopux*)
11492 libsuff= shlibsuff=
11493 ;;
11494 *)
11495 case $LD in # libtool.m4 will add one of these switches to LD
11496 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11497 libsuff= shlibsuff= libmagic=32-bit;;
11498 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11499 libsuff=32 shlibsuff=N32 libmagic=N32;;
11500 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11501 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11502 *) libsuff= shlibsuff= libmagic=never-match;;
11503 esac
11504 ;;
11505 esac
11506 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11507 shlibpath_overrides_runpath=no
11508 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11509 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11510 hardcode_into_libs=yes
11511 ;;
11512
11513 # No shared lib support for Linux oldld, aout, or coff.
11514 linux*oldld* | linux*aout* | linux*coff*)
11515 dynamic_linker=no
11516 ;;
11517
11518 # This must be Linux ELF.
11519 linux*)
11520 version_type=linux
11521 need_lib_prefix=no
11522 need_version=no
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=no
11528 # This implies no fast_install, which is unacceptable.
11529 # Some rework will be needed to allow for fast_install
11530 # before this can be enabled.
11531 hardcode_into_libs=yes
11532
11533 # Append ld.so.conf contents to the search path
11534 if test -f /etc/ld.so.conf; then
11535 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11537 fi
11538
11539 # We used to test for /lib/ld.so.1 and disable shared libraries on
11540 # powerpc, because MkLinux only supported shared libraries with the
11541 # GNU dynamic linker. Since this was broken with cross compilers,
11542 # most powerpc-linux boxes support dynamic linking these days and
11543 # people can always --disable-shared, the test was removed, and we
11544 # assume the GNU/Linux dynamic linker is in use.
11545 dynamic_linker='GNU/Linux ld.so'
11546 ;;
11547
11548 knetbsd*-gnu)
11549 version_type=linux
11550 need_lib_prefix=no
11551 need_version=no
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 shlibpath_overrides_runpath=no
11556 hardcode_into_libs=yes
11557 dynamic_linker='GNU ld.so'
11558 ;;
11559
11560 netbsd*)
11561 version_type=sunos
11562 need_lib_prefix=no
11563 need_version=no
11564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11567 dynamic_linker='NetBSD (a.out) ld.so'
11568 else
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 dynamic_linker='NetBSD ld.elf_so'
11572 fi
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11575 hardcode_into_libs=yes
11576 ;;
11577
11578 newsos6)
11579 version_type=linux
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=yes
11583 ;;
11584
11585 nto-qnx*)
11586 version_type=linux
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes
11593 ;;
11594
11595 openbsd*)
11596 version_type=sunos
11597 need_lib_prefix=no
11598 need_version=yes
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11603 case $host_os in
11604 openbsd2.[89] | openbsd2.[89].*)
11605 shlibpath_overrides_runpath=no
11606 ;;
11607 *)
11608 shlibpath_overrides_runpath=yes
11609 ;;
11610 esac
11611 else
11612 shlibpath_overrides_runpath=yes
11613 fi
11614 ;;
11615
11616 os2*)
11617 libname_spec='$name'
11618 shrext_cmds=".dll"
11619 need_lib_prefix=no
11620 library_names_spec='$libname${shared_ext} $libname.a'
11621 dynamic_linker='OS/2 ld.exe'
11622 shlibpath_var=LIBPATH
11623 ;;
11624
11625 osf3* | osf4* | osf5*)
11626 version_type=osf
11627 need_lib_prefix=no
11628 need_version=no
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11634 ;;
11635
11636 sco3.2v5*)
11637 version_type=osf
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 ;;
11642
11643 solaris*)
11644 version_type=linux
11645 need_lib_prefix=no
11646 need_version=no
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11651 hardcode_into_libs=yes
11652 # ldd complains unless libraries are executable
11653 postinstall_cmds='chmod +x $lib'
11654 ;;
11655
11656 sunos4*)
11657 version_type=sunos
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11662 if test "$with_gnu_ld" = yes; then
11663 need_lib_prefix=no
11664 fi
11665 need_version=yes
11666 ;;
11667
11668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11669 version_type=linux
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671 soname_spec='${libname}${release}${shared_ext}$major'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 case $host_vendor in
11674 sni)
11675 shlibpath_overrides_runpath=no
11676 need_lib_prefix=no
11677 export_dynamic_flag_spec='${wl}-Blargedynsym'
11678 runpath_var=LD_RUN_PATH
11679 ;;
11680 siemens)
11681 need_lib_prefix=no
11682 ;;
11683 motorola)
11684 need_lib_prefix=no
11685 need_version=no
11686 shlibpath_overrides_runpath=no
11687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11688 ;;
11689 esac
11690 ;;
11691
11692 sysv4*MP*)
11693 if test -d /usr/nec ;then
11694 version_type=linux
11695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11696 soname_spec='$libname${shared_ext}.$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 fi
11699 ;;
11700
11701 uts4*)
11702 version_type=linux
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 ;;
11707
11708 *)
11709 dynamic_linker=no
11710 ;;
11711 esac
11712 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11713 echo "${ECHO_T}$dynamic_linker" >&6
11714 test "$dynamic_linker" = no && can_build_shared=no
11715
11716 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11717 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11718 hardcode_action_CXX=
11719 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11720 test -n "$runpath_var CXX" || \
11721 test "X$hardcode_automatic_CXX"="Xyes" ; then
11722
11723 # We can hardcode non-existant directories.
11724 if test "$hardcode_direct_CXX" != no &&
11725 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11726 # have to relink, otherwise we might link with an installed library
11727 # when we should be linking with a yet-to-be-installed one
11728 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11729 test "$hardcode_minus_L_CXX" != no; then
11730 # Linking always hardcodes the temporary library directory.
11731 hardcode_action_CXX=relink
11732 else
11733 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11734 hardcode_action_CXX=immediate
11735 fi
11736 else
11737 # We cannot hardcode anything, or else we can only hardcode existing
11738 # directories.
11739 hardcode_action_CXX=unsupported
11740 fi
11741 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11742 echo "${ECHO_T}$hardcode_action_CXX" >&6
11743
11744 if test "$hardcode_action_CXX" = relink; then
11745 # Fast installation is not supported
11746 enable_fast_install=no
11747 elif test "$shlibpath_overrides_runpath" = yes ||
11748 test "$enable_shared" = no; then
11749 # Fast installation is not necessary
11750 enable_fast_install=needless
11751 fi
11752
11753 striplib=
11754 old_striplib=
11755 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11756 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11757 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11760 echo "$as_me:$LINENO: result: yes" >&5
11761 echo "${ECHO_T}yes" >&6
11762 else
11763 # FIXME - insert some real tests, host_os isn't really good enough
11764 case $host_os in
11765 darwin*)
11766 if test -n "$STRIP" ; then
11767 striplib="$STRIP -x"
11768 echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6
11770 else
11771 echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6
11773 fi
11774 ;;
11775 *)
11776 echo "$as_me:$LINENO: result: no" >&5
11777 echo "${ECHO_T}no" >&6
11778 ;;
11779 esac
11780 fi
11781
11782 if test "x$enable_dlopen" != xyes; then
11783 enable_dlopen=unknown
11784 enable_dlopen_self=unknown
11785 enable_dlopen_self_static=unknown
11786 else
11787 lt_cv_dlopen=no
11788 lt_cv_dlopen_libs=
11789
11790 case $host_os in
11791 beos*)
11792 lt_cv_dlopen="load_add_on"
11793 lt_cv_dlopen_libs=
11794 lt_cv_dlopen_self=yes
11795 ;;
11796
11797 mingw* | pw32*)
11798 lt_cv_dlopen="LoadLibrary"
11799 lt_cv_dlopen_libs=
11800 ;;
11801
11802 cygwin*)
11803 lt_cv_dlopen="dlopen"
11804 lt_cv_dlopen_libs=
11805 ;;
11806
11807 darwin*)
11808 # if libdl is installed we need to link against it
11809 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11810 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-ldl $LIBS"
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822
11823 /* Override any gcc2 internal prototype to avoid an error. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829 char dlopen ();
11830 int
11831 main ()
11832 {
11833 dlopen ();
11834 ;
11835 return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext conftest$ac_exeext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try='test -s conftest$ac_exeext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_lib_dl_dlopen=yes
11860 else
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_cv_lib_dl_dlopen=no
11865 fi
11866 rm -f conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11869 fi
11870 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11871 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11872 if test $ac_cv_lib_dl_dlopen = yes; then
11873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11874 else
11875
11876 lt_cv_dlopen="dyld"
11877 lt_cv_dlopen_libs=
11878 lt_cv_dlopen_self=yes
11879
11880 fi
11881
11882 ;;
11883
11884 *)
11885 echo "$as_me:$LINENO: checking for shl_load" >&5
11886 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11887 if test "${ac_cv_func_shl_load+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11898 #define shl_load innocuous_shl_load
11899
11900 /* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char shl_load (); below.
11902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903 <limits.h> exists even on freestanding compilers. */
11904
11905 #ifdef __STDC__
11906 # include <limits.h>
11907 #else
11908 # include <assert.h>
11909 #endif
11910
11911 #undef shl_load
11912
11913 /* Override any gcc2 internal prototype to avoid an error. */
11914 #ifdef __cplusplus
11915 extern "C"
11916 {
11917 #endif
11918 /* We use char because int might match the return type of a gcc2
11919 builtin and then its argument prototype would still apply. */
11920 char shl_load ();
11921 /* The GNU C library defines this for functions which it implements
11922 to always fail with ENOSYS. Some functions are actually named
11923 something starting with __ and the normal name is an alias. */
11924 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11925 choke me
11926 #else
11927 char (*f) () = shl_load;
11928 #endif
11929 #ifdef __cplusplus
11930 }
11931 #endif
11932
11933 int
11934 main ()
11935 {
11936 return f != shl_load;
11937 ;
11938 return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest$ac_exeext'
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962 ac_cv_func_shl_load=yes
11963 else
11964 echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967 ac_cv_func_shl_load=no
11968 fi
11969 rm -f conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971 fi
11972 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11973 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11974 if test $ac_cv_func_shl_load = yes; then
11975 lt_cv_dlopen="shl_load"
11976 else
11977 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11978 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11979 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-ldld $LIBS"
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990
11991 /* Override any gcc2 internal prototype to avoid an error. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11997 char shl_load ();
11998 int
11999 main ()
12000 {
12001 shl_load ();
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest$ac_exeext'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_cv_lib_dld_shl_load=yes
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_cv_lib_dld_shl_load=no
12033 fi
12034 rm -f conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS=$ac_check_lib_save_LIBS
12037 fi
12038 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12039 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12040 if test $ac_cv_lib_dld_shl_load = yes; then
12041 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12042 else
12043 echo "$as_me:$LINENO: checking for dlopen" >&5
12044 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12045 if test "${ac_cv_func_dlopen+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 else
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h. */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056 #define dlopen innocuous_dlopen
12057
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char dlopen (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12062
12063 #ifdef __STDC__
12064 # include <limits.h>
12065 #else
12066 # include <assert.h>
12067 #endif
12068
12069 #undef dlopen
12070
12071 /* Override any gcc2 internal prototype to avoid an error. */
12072 #ifdef __cplusplus
12073 extern "C"
12074 {
12075 #endif
12076 /* We use char because int might match the return type of a gcc2
12077 builtin and then its argument prototype would still apply. */
12078 char dlopen ();
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12083 choke me
12084 #else
12085 char (*f) () = dlopen;
12086 #endif
12087 #ifdef __cplusplus
12088 }
12089 #endif
12090
12091 int
12092 main ()
12093 {
12094 return f != dlopen;
12095 ;
12096 return 0;
12097 }
12098 _ACEOF
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101 (eval $ac_link) 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_func_dlopen=yes
12121 else
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 ac_cv_func_dlopen=no
12126 fi
12127 rm -f conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 fi
12130 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12131 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12132 if test $ac_cv_func_dlopen = yes; then
12133 lt_cv_dlopen="dlopen"
12134 else
12135 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12136 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12137 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-ldl $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h. */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148
12149 /* Override any gcc2 internal prototype to avoid an error. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 /* We use char because int might match the return type of a gcc2
12154 builtin and then its argument prototype would still apply. */
12155 char dlopen ();
12156 int
12157 main ()
12158 {
12159 dlopen ();
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12166 (eval $ac_link) 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 ac_cv_lib_dl_dlopen=yes
12186 else
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 ac_cv_lib_dl_dlopen=no
12191 fi
12192 rm -f conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12194 LIBS=$ac_check_lib_save_LIBS
12195 fi
12196 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12197 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12198 if test $ac_cv_lib_dl_dlopen = yes; then
12199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12200 else
12201 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12202 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12203 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206 ac_check_lib_save_LIBS=$LIBS
12207 LIBS="-lsvld $LIBS"
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h. */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214
12215 /* Override any gcc2 internal prototype to avoid an error. */
12216 #ifdef __cplusplus
12217 extern "C"
12218 #endif
12219 /* We use char because int might match the return type of a gcc2
12220 builtin and then its argument prototype would still apply. */
12221 char dlopen ();
12222 int
12223 main ()
12224 {
12225 dlopen ();
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12232 (eval $ac_link) 2>conftest.er1
12233 ac_status=$?
12234 grep -v '^ *+' conftest.er1 >conftest.err
12235 rm -f conftest.er1
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest$ac_exeext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_cv_lib_svld_dlopen=yes
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_cv_lib_svld_dlopen=no
12257 fi
12258 rm -f conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12261 fi
12262 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12263 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12264 if test $ac_cv_lib_svld_dlopen = yes; then
12265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12266 else
12267 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12268 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12269 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-ldld $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280
12281 /* Override any gcc2 internal prototype to avoid an error. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char dld_link ();
12288 int
12289 main ()
12290 {
12291 dld_link ();
12292 ;
12293 return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_lib_dld_dld_link=yes
12318 else
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_cv_lib_dld_dld_link=no
12323 fi
12324 rm -f conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12327 fi
12328 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12329 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12330 if test $ac_cv_lib_dld_dld_link = yes; then
12331 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340
12341 fi
12342
12343
12344 fi
12345
12346
12347 fi
12348
12349 ;;
12350 esac
12351
12352 if test "x$lt_cv_dlopen" != xno; then
12353 enable_dlopen=yes
12354 else
12355 enable_dlopen=no
12356 fi
12357
12358 case $lt_cv_dlopen in
12359 dlopen)
12360 save_CPPFLAGS="$CPPFLAGS"
12361 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12362
12363 save_LDFLAGS="$LDFLAGS"
12364 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12365
12366 save_LIBS="$LIBS"
12367 LIBS="$lt_cv_dlopen_libs $LIBS"
12368
12369 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12370 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12371 if test "${lt_cv_dlopen_self+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374 if test "$cross_compiling" = yes; then :
12375 lt_cv_dlopen_self=cross
12376 else
12377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12378 lt_status=$lt_dlunknown
12379 cat > conftest.$ac_ext <<EOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12382
12383 #if HAVE_DLFCN_H
12384 #include <dlfcn.h>
12385 #endif
12386
12387 #include <stdio.h>
12388
12389 #ifdef RTLD_GLOBAL
12390 # define LT_DLGLOBAL RTLD_GLOBAL
12391 #else
12392 # ifdef DL_GLOBAL
12393 # define LT_DLGLOBAL DL_GLOBAL
12394 # else
12395 # define LT_DLGLOBAL 0
12396 # endif
12397 #endif
12398
12399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12400 find out it does not work in some platform. */
12401 #ifndef LT_DLLAZY_OR_NOW
12402 # ifdef RTLD_LAZY
12403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12404 # else
12405 # ifdef DL_LAZY
12406 # define LT_DLLAZY_OR_NOW DL_LAZY
12407 # else
12408 # ifdef RTLD_NOW
12409 # define LT_DLLAZY_OR_NOW RTLD_NOW
12410 # else
12411 # ifdef DL_NOW
12412 # define LT_DLLAZY_OR_NOW DL_NOW
12413 # else
12414 # define LT_DLLAZY_OR_NOW 0
12415 # endif
12416 # endif
12417 # endif
12418 # endif
12419 #endif
12420
12421 #ifdef __cplusplus
12422 extern "C" void exit (int);
12423 #endif
12424
12425 void fnord() { int i=42;}
12426 int main ()
12427 {
12428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12429 int status = $lt_dlunknown;
12430
12431 if (self)
12432 {
12433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12435 /* dlclose (self); */
12436 }
12437
12438 exit (status);
12439 }
12440 EOF
12441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442 (eval $ac_link) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12446 (./conftest; exit; ) 2>/dev/null
12447 lt_status=$?
12448 case x$lt_status in
12449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12451 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12452 esac
12453 else :
12454 # compilation failed
12455 lt_cv_dlopen_self=no
12456 fi
12457 fi
12458 rm -fr conftest*
12459
12460
12461 fi
12462 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12463 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12464
12465 if test "x$lt_cv_dlopen_self" = xyes; then
12466 LDFLAGS="$LDFLAGS $link_static_flag"
12467 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12468 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12469 if test "${lt_cv_dlopen_self_static+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472 if test "$cross_compiling" = yes; then :
12473 lt_cv_dlopen_self_static=cross
12474 else
12475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12476 lt_status=$lt_dlunknown
12477 cat > conftest.$ac_ext <<EOF
12478 #line 12478 "configure"
12479 #include "confdefs.h"
12480
12481 #if HAVE_DLFCN_H
12482 #include <dlfcn.h>
12483 #endif
12484
12485 #include <stdio.h>
12486
12487 #ifdef RTLD_GLOBAL
12488 # define LT_DLGLOBAL RTLD_GLOBAL
12489 #else
12490 # ifdef DL_GLOBAL
12491 # define LT_DLGLOBAL DL_GLOBAL
12492 # else
12493 # define LT_DLGLOBAL 0
12494 # endif
12495 #endif
12496
12497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12498 find out it does not work in some platform. */
12499 #ifndef LT_DLLAZY_OR_NOW
12500 # ifdef RTLD_LAZY
12501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12502 # else
12503 # ifdef DL_LAZY
12504 # define LT_DLLAZY_OR_NOW DL_LAZY
12505 # else
12506 # ifdef RTLD_NOW
12507 # define LT_DLLAZY_OR_NOW RTLD_NOW
12508 # else
12509 # ifdef DL_NOW
12510 # define LT_DLLAZY_OR_NOW DL_NOW
12511 # else
12512 # define LT_DLLAZY_OR_NOW 0
12513 # endif
12514 # endif
12515 # endif
12516 # endif
12517 #endif
12518
12519 #ifdef __cplusplus
12520 extern "C" void exit (int);
12521 #endif
12522
12523 void fnord() { int i=42;}
12524 int main ()
12525 {
12526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12527 int status = $lt_dlunknown;
12528
12529 if (self)
12530 {
12531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12533 /* dlclose (self); */
12534 }
12535
12536 exit (status);
12537 }
12538 EOF
12539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540 (eval $ac_link) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12544 (./conftest; exit; ) 2>/dev/null
12545 lt_status=$?
12546 case x$lt_status in
12547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12549 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12550 esac
12551 else :
12552 # compilation failed
12553 lt_cv_dlopen_self_static=no
12554 fi
12555 fi
12556 rm -fr conftest*
12557
12558
12559 fi
12560 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12561 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12562 fi
12563
12564 CPPFLAGS="$save_CPPFLAGS"
12565 LDFLAGS="$save_LDFLAGS"
12566 LIBS="$save_LIBS"
12567 ;;
12568 esac
12569
12570 case $lt_cv_dlopen_self in
12571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12572 *) enable_dlopen_self=unknown ;;
12573 esac
12574
12575 case $lt_cv_dlopen_self_static in
12576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12577 *) enable_dlopen_self_static=unknown ;;
12578 esac
12579 fi
12580
12581
12582 # The else clause should only fire when bootstrapping the
12583 # libtool distribution, otherwise you forgot to ship ltmain.sh
12584 # with your package, and you will get complaints that there are
12585 # no rules to generate ltmain.sh.
12586 if test -f "$ltmain"; then
12587 # See if we are running on zsh, and set the options which allow our commands through
12588 # without removal of \ escapes.
12589 if test -n "${ZSH_VERSION+set}" ; then
12590 setopt NO_GLOB_SUBST
12591 fi
12592 # Now quote all the things that may contain metacharacters while being
12593 # careful not to overquote the AC_SUBSTed values. We take copies of the
12594 # variables and quote the copies for generation of the libtool script.
12595 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12596 SED SHELL STRIP \
12597 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12598 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12599 deplibs_check_method reload_flag reload_cmds need_locks \
12600 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12601 lt_cv_sys_global_symbol_to_c_name_address \
12602 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12603 old_postinstall_cmds old_postuninstall_cmds \
12604 compiler_CXX \
12605 CC_CXX \
12606 LD_CXX \
12607 lt_prog_compiler_wl_CXX \
12608 lt_prog_compiler_pic_CXX \
12609 lt_prog_compiler_static_CXX \
12610 lt_prog_compiler_no_builtin_flag_CXX \
12611 export_dynamic_flag_spec_CXX \
12612 thread_safe_flag_spec_CXX \
12613 whole_archive_flag_spec_CXX \
12614 enable_shared_with_static_runtimes_CXX \
12615 old_archive_cmds_CXX \
12616 old_archive_from_new_cmds_CXX \
12617 predep_objects_CXX \
12618 postdep_objects_CXX \
12619 predeps_CXX \
12620 postdeps_CXX \
12621 compiler_lib_search_path_CXX \
12622 archive_cmds_CXX \
12623 archive_expsym_cmds_CXX \
12624 postinstall_cmds_CXX \
12625 postuninstall_cmds_CXX \
12626 old_archive_from_expsyms_cmds_CXX \
12627 allow_undefined_flag_CXX \
12628 no_undefined_flag_CXX \
12629 export_symbols_cmds_CXX \
12630 hardcode_libdir_flag_spec_CXX \
12631 hardcode_libdir_flag_spec_ld_CXX \
12632 hardcode_libdir_separator_CXX \
12633 hardcode_automatic_CXX \
12634 module_cmds_CXX \
12635 module_expsym_cmds_CXX \
12636 lt_cv_prog_compiler_c_o_CXX \
12637 exclude_expsyms_CXX \
12638 include_expsyms_CXX; do
12639
12640 case $var in
12641 old_archive_cmds_CXX | \
12642 old_archive_from_new_cmds_CXX | \
12643 archive_cmds_CXX | \
12644 archive_expsym_cmds_CXX | \
12645 module_cmds_CXX | \
12646 module_expsym_cmds_CXX | \
12647 old_archive_from_expsyms_cmds_CXX | \
12648 export_symbols_cmds_CXX | \
12649 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12650 postinstall_cmds | postuninstall_cmds | \
12651 old_postinstall_cmds | old_postuninstall_cmds | \
12652 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12653 # Double-quote double-evaled strings.
12654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12655 ;;
12656 *)
12657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12658 ;;
12659 esac
12660 done
12661
12662 case $lt_echo in
12663 *'\$0 --fallback-echo"')
12664 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12665 ;;
12666 esac
12667
12668 cfgfile="$ofile"
12669
12670 cat <<__EOF__ >> "$cfgfile"
12671 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12672
12673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12674
12675 # Shell to use when invoking shell scripts.
12676 SHELL=$lt_SHELL
12677
12678 # Whether or not to build shared libraries.
12679 build_libtool_libs=$enable_shared
12680
12681 # Whether or not to build static libraries.
12682 build_old_libs=$enable_static
12683
12684 # Whether or not to add -lc for building shared libraries.
12685 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12686
12687 # Whether or not to disallow shared libs when runtime libs are static
12688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12689
12690 # Whether or not to optimize for fast installation.
12691 fast_install=$enable_fast_install
12692
12693 # The host system.
12694 host_alias=$host_alias
12695 host=$host
12696
12697 # An echo program that does not interpret backslashes.
12698 echo=$lt_echo
12699
12700 # The archiver.
12701 AR=$lt_AR
12702 AR_FLAGS=$lt_AR_FLAGS
12703
12704 # A C compiler.
12705 LTCC=$lt_LTCC
12706
12707 # A language-specific compiler.
12708 CC=$lt_compiler_CXX
12709
12710 # Is the compiler the GNU C compiler?
12711 with_gcc=$GCC_CXX
12712
12713 # An ERE matcher.
12714 EGREP=$lt_EGREP
12715
12716 # The linker used to build libraries.
12717 LD=$lt_LD_CXX
12718
12719 # Whether we need hard or soft links.
12720 LN_S=$lt_LN_S
12721
12722 # A BSD-compatible nm program.
12723 NM=$lt_NM
12724
12725 # A symbol stripping program
12726 STRIP=$lt_STRIP
12727
12728 # Used to examine libraries when file_magic_cmd begins "file"
12729 MAGIC_CMD=$MAGIC_CMD
12730
12731 # Used on cygwin: DLL creation program.
12732 DLLTOOL="$DLLTOOL"
12733
12734 # Used on cygwin: object dumper.
12735 OBJDUMP="$OBJDUMP"
12736
12737 # Used on cygwin: assembler.
12738 AS="$AS"
12739
12740 # The name of the directory that contains temporary libtool files.
12741 objdir=$objdir
12742
12743 # How to create reloadable object files.
12744 reload_flag=$lt_reload_flag
12745 reload_cmds=$lt_reload_cmds
12746
12747 # How to pass a linker flag through the compiler.
12748 wl=$lt_lt_prog_compiler_wl_CXX
12749
12750 # Object file suffix (normally "o").
12751 objext="$ac_objext"
12752
12753 # Old archive suffix (normally "a").
12754 libext="$libext"
12755
12756 # Shared library suffix (normally ".so").
12757 shrext_cmds='$shrext_cmds'
12758
12759 # Executable file suffix (normally "").
12760 exeext="$exeext"
12761
12762 # Additional compiler flags for building library objects.
12763 pic_flag=$lt_lt_prog_compiler_pic_CXX
12764 pic_mode=$pic_mode
12765
12766 # What is the maximum length of a command?
12767 max_cmd_len=$lt_cv_sys_max_cmd_len
12768
12769 # Does compiler simultaneously support -c and -o options?
12770 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12771
12772 # Must we lock files when doing compilation ?
12773 need_locks=$lt_need_locks
12774
12775 # Do we need the lib prefix for modules?
12776 need_lib_prefix=$need_lib_prefix
12777
12778 # Do we need a version for libraries?
12779 need_version=$need_version
12780
12781 # Whether dlopen is supported.
12782 dlopen_support=$enable_dlopen
12783
12784 # Whether dlopen of programs is supported.
12785 dlopen_self=$enable_dlopen_self
12786
12787 # Whether dlopen of statically linked programs is supported.
12788 dlopen_self_static=$enable_dlopen_self_static
12789
12790 # Compiler flag to prevent dynamic linking.
12791 link_static_flag=$lt_lt_prog_compiler_static_CXX
12792
12793 # Compiler flag to turn off builtin functions.
12794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12795
12796 # Compiler flag to allow reflexive dlopens.
12797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12798
12799 # Compiler flag to generate shared objects directly from archives.
12800 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12801
12802 # Compiler flag to generate thread-safe objects.
12803 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12804
12805 # Library versioning type.
12806 version_type=$version_type
12807
12808 # Format of library name prefix.
12809 libname_spec=$lt_libname_spec
12810
12811 # List of archive names. First name is the real one, the rest are links.
12812 # The last name is the one that the linker finds with -lNAME.
12813 library_names_spec=$lt_library_names_spec
12814
12815 # The coded name of the library, if different from the real name.
12816 soname_spec=$lt_soname_spec
12817
12818 # Commands used to build and install an old-style archive.
12819 RANLIB=$lt_RANLIB
12820 old_archive_cmds=$lt_old_archive_cmds_CXX
12821 old_postinstall_cmds=$lt_old_postinstall_cmds
12822 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12823
12824 # Create an old-style archive from a shared archive.
12825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12826
12827 # Create a temporary old-style archive to link instead of a shared archive.
12828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12829
12830 # Commands used to build and install a shared archive.
12831 archive_cmds=$lt_archive_cmds_CXX
12832 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12833 postinstall_cmds=$lt_postinstall_cmds
12834 postuninstall_cmds=$lt_postuninstall_cmds
12835
12836 # Commands used to build a loadable module (assumed same as above if empty)
12837 module_cmds=$lt_module_cmds_CXX
12838 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12839
12840 # Commands to strip libraries.
12841 old_striplib=$lt_old_striplib
12842 striplib=$lt_striplib
12843
12844 # Dependencies to place before the objects being linked to create a
12845 # shared library.
12846 predep_objects=$lt_predep_objects_CXX
12847
12848 # Dependencies to place after the objects being linked to create a
12849 # shared library.
12850 postdep_objects=$lt_postdep_objects_CXX
12851
12852 # Dependencies to place before the objects being linked to create a
12853 # shared library.
12854 predeps=$lt_predeps_CXX
12855
12856 # Dependencies to place after the objects being linked to create a
12857 # shared library.
12858 postdeps=$lt_postdeps_CXX
12859
12860 # The library search path used internally by the compiler when linking
12861 # a shared library.
12862 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12863
12864 # Method to check whether dependent libraries are shared objects.
12865 deplibs_check_method=$lt_deplibs_check_method
12866
12867 # Command to use when deplibs_check_method == file_magic.
12868 file_magic_cmd=$lt_file_magic_cmd
12869
12870 # Flag that allows shared libraries with undefined symbols to be built.
12871 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12872
12873 # Flag that forces no undefined symbols.
12874 no_undefined_flag=$lt_no_undefined_flag_CXX
12875
12876 # Commands used to finish a libtool library installation in a directory.
12877 finish_cmds=$lt_finish_cmds
12878
12879 # Same as above, but a single script fragment to be evaled but not shown.
12880 finish_eval=$lt_finish_eval
12881
12882 # Take the output of nm and produce a listing of raw symbols and C names.
12883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12884
12885 # Transform the output of nm in a proper C declaration
12886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12887
12888 # Transform the output of nm in a C name address pair
12889 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12890
12891 # This is the shared library runtime path variable.
12892 runpath_var=$runpath_var
12893
12894 # This is the shared library path variable.
12895 shlibpath_var=$shlibpath_var
12896
12897 # Is shlibpath searched before the hard-coded library search path?
12898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12899
12900 # How to hardcode a shared library path into an executable.
12901 hardcode_action=$hardcode_action_CXX
12902
12903 # Whether we should hardcode library paths into libraries.
12904 hardcode_into_libs=$hardcode_into_libs
12905
12906 # Flag to hardcode \$libdir into a binary during linking.
12907 # This must work even if \$libdir does not exist.
12908 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12909
12910 # If ld is used when linking, flag to hardcode \$libdir into
12911 # a binary during linking. This must work even if \$libdir does
12912 # not exist.
12913 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12914
12915 # Whether we need a single -rpath flag with a separated argument.
12916 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12917
12918 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12919 # resulting binary.
12920 hardcode_direct=$hardcode_direct_CXX
12921
12922 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12923 # resulting binary.
12924 hardcode_minus_L=$hardcode_minus_L_CXX
12925
12926 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12927 # the resulting binary.
12928 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12929
12930 # Set to yes if building a shared library automatically hardcodes DIR into the library
12931 # and all subsequent libraries and executables linked against it.
12932 hardcode_automatic=$hardcode_automatic_CXX
12933
12934 # Variables whose values should be saved in libtool wrapper scripts and
12935 # restored at relink time.
12936 variables_saved_for_relink="$variables_saved_for_relink"
12937
12938 # Whether libtool must link a program against all its dependency libraries.
12939 link_all_deplibs=$link_all_deplibs_CXX
12940
12941 # Compile-time system search path for libraries
12942 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12943
12944 # Run-time system search path for libraries
12945 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12946
12947 # Fix the shell variable \$srcfile for the compiler.
12948 fix_srcfile_path="$fix_srcfile_path_CXX"
12949
12950 # Set to yes if exported symbols are required.
12951 always_export_symbols=$always_export_symbols_CXX
12952
12953 # The commands to list exported symbols.
12954 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12955
12956 # The commands to extract the exported symbol list from a shared archive.
12957 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12958
12959 # Symbols that should not be listed in the preloaded symbols.
12960 exclude_expsyms=$lt_exclude_expsyms_CXX
12961
12962 # Symbols that must always be exported.
12963 include_expsyms=$lt_include_expsyms_CXX
12964
12965 # ### END LIBTOOL TAG CONFIG: $tagname
12966
12967 __EOF__
12968
12969
12970 else
12971 # If there is no Makefile yet, we rely on a make rule to execute
12972 # `config.status --recheck' to rerun these tests and create the
12973 # libtool script then.
12974 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12975 if test -f "$ltmain_in"; then
12976 test -f Makefile && make "$ltmain"
12977 fi
12978 fi
12979
12980
12981 ac_ext=c
12982 ac_cpp='$CPP $CPPFLAGS'
12983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12986
12987 CC=$lt_save_CC
12988 LDCXX=$LD
12989 LD=$lt_save_LD
12990 GCC=$lt_save_GCC
12991 with_gnu_ldcxx=$with_gnu_ld
12992 with_gnu_ld=$lt_save_with_gnu_ld
12993 lt_cv_path_LDCXX=$lt_cv_path_LD
12994 lt_cv_path_LD=$lt_save_path_LD
12995 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12996 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12997
12998 else
12999 tagname=""
13000 fi
13001 ;;
13002
13003 F77)
13004 if test -n "$F77" && test "X$F77" != "Xno"; then
13005
13006 ac_ext=f
13007 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13008 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13010
13011
13012 archive_cmds_need_lc_F77=no
13013 allow_undefined_flag_F77=
13014 always_export_symbols_F77=no
13015 archive_expsym_cmds_F77=
13016 export_dynamic_flag_spec_F77=
13017 hardcode_direct_F77=no
13018 hardcode_libdir_flag_spec_F77=
13019 hardcode_libdir_flag_spec_ld_F77=
13020 hardcode_libdir_separator_F77=
13021 hardcode_minus_L_F77=no
13022 hardcode_automatic_F77=no
13023 module_cmds_F77=
13024 module_expsym_cmds_F77=
13025 link_all_deplibs_F77=unknown
13026 old_archive_cmds_F77=$old_archive_cmds
13027 no_undefined_flag_F77=
13028 whole_archive_flag_spec_F77=
13029 enable_shared_with_static_runtimes_F77=no
13030
13031 # Source file extension for f77 test sources.
13032 ac_ext=f
13033
13034 # Object file extension for compiled f77 test sources.
13035 objext=o
13036 objext_F77=$objext
13037
13038 # Code to be used in simple compile tests
13039 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13040
13041 # Code to be used in simple link tests
13042 lt_simple_link_test_code=" program t\n end\n"
13043
13044 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13045
13046 # If no C compiler was specified, use CC.
13047 LTCC=${LTCC-"$CC"}
13048
13049 # Allow CC to be a program name with arguments.
13050 compiler=$CC
13051
13052
13053 # Allow CC to be a program name with arguments.
13054 lt_save_CC="$CC"
13055 CC=${F77-"f77"}
13056 compiler=$CC
13057 compiler_F77=$CC
13058 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13059
13060 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13061 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13062 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13063 echo "${ECHO_T}$can_build_shared" >&6
13064
13065 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13066 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13067 test "$can_build_shared" = "no" && enable_shared=no
13068
13069 # On AIX, shared libraries and static libraries use the same namespace, and
13070 # are all built from PIC.
13071 case "$host_os" in
13072 aix3*)
13073 test "$enable_shared" = yes && enable_static=no
13074 if test -n "$RANLIB"; then
13075 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13076 postinstall_cmds='$RANLIB $lib'
13077 fi
13078 ;;
13079 aix4* | aix5*)
13080 test "$enable_shared" = yes && enable_static=no
13081 ;;
13082 esac
13083 echo "$as_me:$LINENO: result: $enable_shared" >&5
13084 echo "${ECHO_T}$enable_shared" >&6
13085
13086 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13087 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13088 # Make sure either enable_shared or enable_static is yes.
13089 test "$enable_shared" = yes || enable_static=yes
13090 echo "$as_me:$LINENO: result: $enable_static" >&5
13091 echo "${ECHO_T}$enable_static" >&6
13092
13093 test "$ld_shlibs_F77" = no && can_build_shared=no
13094
13095 GCC_F77="$G77"
13096 LD_F77="$LD"
13097
13098 lt_prog_compiler_wl_F77=
13099 lt_prog_compiler_pic_F77=
13100 lt_prog_compiler_static_F77=
13101
13102 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13103 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13104
13105 if test "$GCC" = yes; then
13106 lt_prog_compiler_wl_F77='-Wl,'
13107 lt_prog_compiler_static_F77='-static'
13108
13109 case $host_os in
13110 aix*)
13111 # All AIX code is PIC.
13112 if test "$host_cpu" = ia64; then
13113 # AIX 5 now supports IA64 processor
13114 lt_prog_compiler_static_F77='-Bstatic'
13115 fi
13116 ;;
13117
13118 amigaos*)
13119 # FIXME: we need at least 68020 code to build shared libraries, but
13120 # adding the `-m68020' flag to GCC prevents building anything better,
13121 # like `-m68040'.
13122 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13123 ;;
13124
13125 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13126 # PIC is the default for these OSes.
13127 ;;
13128
13129 mingw* | pw32* | os2*)
13130 # This hack is so that the source file can tell whether it is being
13131 # built for inclusion in a dll (and should export symbols for example).
13132 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13133 ;;
13134
13135 darwin* | rhapsody*)
13136 # PIC is the default on this platform
13137 # Common symbols not allowed in MH_DYLIB files
13138 lt_prog_compiler_pic_F77='-fno-common'
13139 ;;
13140
13141 msdosdjgpp*)
13142 # Just because we use GCC doesn't mean we suddenly get shared libraries
13143 # on systems that don't support them.
13144 lt_prog_compiler_can_build_shared_F77=no
13145 enable_shared=no
13146 ;;
13147
13148 sysv4*MP*)
13149 if test -d /usr/nec; then
13150 lt_prog_compiler_pic_F77=-Kconform_pic
13151 fi
13152 ;;
13153
13154 hpux*)
13155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13156 # not for PA HP-UX.
13157 case "$host_cpu" in
13158 hppa*64*|ia64*)
13159 # +Z the default
13160 ;;
13161 *)
13162 lt_prog_compiler_pic_F77='-fPIC'
13163 ;;
13164 esac
13165 ;;
13166
13167 *)
13168 lt_prog_compiler_pic_F77='-fPIC'
13169 ;;
13170 esac
13171 else
13172 # PORTME Check for flag to pass linker flags through the system compiler.
13173 case $host_os in
13174 aix*)
13175 lt_prog_compiler_wl_F77='-Wl,'
13176 if test "$host_cpu" = ia64; then
13177 # AIX 5 now supports IA64 processor
13178 lt_prog_compiler_static_F77='-Bstatic'
13179 else
13180 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13181 fi
13182 ;;
13183
13184 mingw* | pw32* | os2*)
13185 # This hack is so that the source file can tell whether it is being
13186 # built for inclusion in a dll (and should export symbols for example).
13187 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13188 ;;
13189
13190 hpux9* | hpux10* | hpux11*)
13191 lt_prog_compiler_wl_F77='-Wl,'
13192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13193 # not for PA HP-UX.
13194 case "$host_cpu" in
13195 hppa*64*|ia64*)
13196 # +Z the default
13197 ;;
13198 *)
13199 lt_prog_compiler_pic_F77='+Z'
13200 ;;
13201 esac
13202 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13203 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13204 ;;
13205
13206 irix5* | irix6* | nonstopux*)
13207 lt_prog_compiler_wl_F77='-Wl,'
13208 # PIC (with -KPIC) is the default.
13209 lt_prog_compiler_static_F77='-non_shared'
13210 ;;
13211
13212 newsos6)
13213 lt_prog_compiler_pic_F77='-KPIC'
13214 lt_prog_compiler_static_F77='-Bstatic'
13215 ;;
13216
13217 linux*)
13218 case $CC in
13219 icc* | ecc*)
13220 lt_prog_compiler_wl_F77='-Wl,'
13221 lt_prog_compiler_pic_F77='-KPIC'
13222 lt_prog_compiler_static_F77='-static'
13223 ;;
13224 ccc*)
13225 lt_prog_compiler_wl_F77='-Wl,'
13226 # All Alpha code is PIC.
13227 lt_prog_compiler_static_F77='-non_shared'
13228 ;;
13229 esac
13230 ;;
13231
13232 osf3* | osf4* | osf5*)
13233 lt_prog_compiler_wl_F77='-Wl,'
13234 # All OSF/1 code is PIC.
13235 lt_prog_compiler_static_F77='-non_shared'
13236 ;;
13237
13238 sco3.2v5*)
13239 lt_prog_compiler_pic_F77='-Kpic'
13240 lt_prog_compiler_static_F77='-dn'
13241 ;;
13242
13243 solaris*)
13244 lt_prog_compiler_wl_F77='-Wl,'
13245 lt_prog_compiler_pic_F77='-KPIC'
13246 lt_prog_compiler_static_F77='-Bstatic'
13247 ;;
13248
13249 sunos4*)
13250 lt_prog_compiler_wl_F77='-Qoption ld '
13251 lt_prog_compiler_pic_F77='-PIC'
13252 lt_prog_compiler_static_F77='-Bstatic'
13253 ;;
13254
13255 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13256 lt_prog_compiler_wl_F77='-Wl,'
13257 lt_prog_compiler_pic_F77='-KPIC'
13258 lt_prog_compiler_static_F77='-Bstatic'
13259 ;;
13260
13261 sysv4*MP*)
13262 if test -d /usr/nec ;then
13263 lt_prog_compiler_pic_F77='-Kconform_pic'
13264 lt_prog_compiler_static_F77='-Bstatic'
13265 fi
13266 ;;
13267
13268 uts4*)
13269 lt_prog_compiler_pic_F77='-pic'
13270 lt_prog_compiler_static_F77='-Bstatic'
13271 ;;
13272
13273 *)
13274 lt_prog_compiler_can_build_shared_F77=no
13275 ;;
13276 esac
13277 fi
13278
13279 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13280 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13281
13282 #
13283 # Check to make sure the PIC flag actually works.
13284 #
13285 if test -n "$lt_prog_compiler_pic_F77"; then
13286
13287 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13288 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13289 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292 lt_prog_compiler_pic_works_F77=no
13293 ac_outfile=conftest.$ac_objext
13294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13295 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13296 # Insert the option either (1) after the last *FLAGS variable, or
13297 # (2) before a word containing "conftest.", or (3) at the end.
13298 # Note that $ac_compile itself does not contain backslashes and begins
13299 # with a dollar sign (not a hyphen), so the echo should work correctly.
13300 # The option is referenced via a variable to avoid confusing sed.
13301 lt_compile=`echo "$ac_compile" | $SED \
13302 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13304 -e 's:$: $lt_compiler_flag:'`
13305 (eval echo "\"\$as_me:13305: $lt_compile\"" >&5)
13306 (eval "$lt_compile" 2>conftest.err)
13307 ac_status=$?
13308 cat conftest.err >&5
13309 echo "$as_me:13309: \$? = $ac_status" >&5
13310 if (exit $ac_status) && test -s "$ac_outfile"; then
13311 # The compiler can only warn and ignore the option if not recognized
13312 # So say no if there are warnings
13313 if test ! -s conftest.err; then
13314 lt_prog_compiler_pic_works_F77=yes
13315 fi
13316 fi
13317 $rm conftest*
13318
13319 fi
13320 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13321 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13322
13323 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13324 case $lt_prog_compiler_pic_F77 in
13325 "" | " "*) ;;
13326 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13327 esac
13328 else
13329 lt_prog_compiler_pic_F77=
13330 lt_prog_compiler_can_build_shared_F77=no
13331 fi
13332
13333 fi
13334 case "$host_os" in
13335 # For platforms which do not support PIC, -DPIC is meaningless:
13336 *djgpp*)
13337 lt_prog_compiler_pic_F77=
13338 ;;
13339 *)
13340 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13341 ;;
13342 esac
13343
13344 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13345 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13346 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349 lt_cv_prog_compiler_c_o_F77=no
13350 $rm -r conftest 2>/dev/null
13351 mkdir conftest
13352 cd conftest
13353 mkdir out
13354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13355
13356 lt_compiler_flag="-o out/conftest2.$ac_objext"
13357 # Insert the option either (1) after the last *FLAGS variable, or
13358 # (2) before a word containing "conftest.", or (3) at the end.
13359 # Note that $ac_compile itself does not contain backslashes and begins
13360 # with a dollar sign (not a hyphen), so the echo should work correctly.
13361 lt_compile=`echo "$ac_compile" | $SED \
13362 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13364 -e 's:$: $lt_compiler_flag:'`
13365 (eval echo "\"\$as_me:13365: $lt_compile\"" >&5)
13366 (eval "$lt_compile" 2>out/conftest.err)
13367 ac_status=$?
13368 cat out/conftest.err >&5
13369 echo "$as_me:13369: \$? = $ac_status" >&5
13370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13371 then
13372 # The compiler can only warn and ignore the option if not recognized
13373 # So say no if there are warnings
13374 if test ! -s out/conftest.err; then
13375 lt_cv_prog_compiler_c_o_F77=yes
13376 fi
13377 fi
13378 chmod u+w .
13379 $rm conftest*
13380 # SGI C++ compiler will create directory out/ii_files/ for
13381 # template instantiation
13382 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13383 $rm out/* && rmdir out
13384 cd ..
13385 rmdir conftest
13386 $rm conftest*
13387
13388 fi
13389 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13390 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13391
13392
13393 hard_links="nottested"
13394 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13395 # do not overwrite the value of need_locks provided by the user
13396 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13397 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13398 hard_links=yes
13399 $rm conftest*
13400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13401 touch conftest.a
13402 ln conftest.a conftest.b 2>&5 || hard_links=no
13403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13404 echo "$as_me:$LINENO: result: $hard_links" >&5
13405 echo "${ECHO_T}$hard_links" >&6
13406 if test "$hard_links" = no; then
13407 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13408 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13409 need_locks=warn
13410 fi
13411 else
13412 need_locks=no
13413 fi
13414
13415 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13416 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13417
13418 runpath_var=
13419 allow_undefined_flag_F77=
13420 enable_shared_with_static_runtimes_F77=no
13421 archive_cmds_F77=
13422 archive_expsym_cmds_F77=
13423 old_archive_From_new_cmds_F77=
13424 old_archive_from_expsyms_cmds_F77=
13425 export_dynamic_flag_spec_F77=
13426 whole_archive_flag_spec_F77=
13427 thread_safe_flag_spec_F77=
13428 hardcode_libdir_flag_spec_F77=
13429 hardcode_libdir_flag_spec_ld_F77=
13430 hardcode_libdir_separator_F77=
13431 hardcode_direct_F77=no
13432 hardcode_minus_L_F77=no
13433 hardcode_shlibpath_var_F77=unsupported
13434 link_all_deplibs_F77=unknown
13435 hardcode_automatic_F77=no
13436 module_cmds_F77=
13437 module_expsym_cmds_F77=
13438 always_export_symbols_F77=no
13439 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13440 # include_expsyms should be a list of space-separated symbols to be *always*
13441 # included in the symbol list
13442 include_expsyms_F77=
13443 # exclude_expsyms can be an extended regexp of symbols to exclude
13444 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13445 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13446 # as well as any symbol that contains `d'.
13447 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13448 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13449 # platforms (ab)use it in PIC code, but their linkers get confused if
13450 # the symbol is explicitly referenced. Since portable code cannot
13451 # rely on this symbol name, it's probably fine to never include it in
13452 # preloaded symbol tables.
13453 extract_expsyms_cmds=
13454
13455 case $host_os in
13456 cygwin* | mingw* | pw32*)
13457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13458 # When not using gcc, we currently assume that we are using
13459 # Microsoft Visual C++.
13460 if test "$GCC" != yes; then
13461 with_gnu_ld=no
13462 fi
13463 ;;
13464 openbsd*)
13465 with_gnu_ld=no
13466 ;;
13467 esac
13468
13469 ld_shlibs_F77=yes
13470 if test "$with_gnu_ld" = yes; then
13471 # If archive_cmds runs LD, not CC, wlarc should be empty
13472 wlarc='${wl}'
13473
13474 # See if GNU ld supports shared libraries.
13475 case $host_os in
13476 aix3* | aix4* | aix5*)
13477 # On AIX/PPC, the GNU linker is very broken
13478 if test "$host_cpu" != ia64; then
13479 ld_shlibs_F77=no
13480 cat <<EOF 1>&2
13481
13482 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13483 *** to be unable to reliably create shared libraries on AIX.
13484 *** Therefore, libtool is disabling shared libraries support. If you
13485 *** really care for shared libraries, you may want to modify your PATH
13486 *** so that a non-GNU linker is found, and then restart.
13487
13488 EOF
13489 fi
13490 ;;
13491
13492 amigaos*)
13493 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13494 hardcode_libdir_flag_spec_F77='-L$libdir'
13495 hardcode_minus_L_F77=yes
13496
13497 # Samuel A. Falvo II <[email protected]> reports
13498 # that the semantics of dynamic libraries on AmigaOS, at least up
13499 # to version 4, is to share data among multiple programs linked
13500 # with the same dynamic library. Since this doesn't match the
13501 # behavior of shared libraries on other platforms, we can't use
13502 # them.
13503 ld_shlibs_F77=no
13504 ;;
13505
13506 beos*)
13507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13508 allow_undefined_flag_F77=unsupported
13509 # Joseph Beckenbach <[email protected]> says some releases of gcc
13510 # support --undefined. This deserves some investigation. FIXME
13511 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512 else
13513 ld_shlibs_F77=no
13514 fi
13515 ;;
13516
13517 cygwin* | mingw* | pw32*)
13518 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13519 # as there is no search path for DLLs.
13520 hardcode_libdir_flag_spec_F77='-L$libdir'
13521 allow_undefined_flag_F77=unsupported
13522 always_export_symbols_F77=no
13523 enable_shared_with_static_runtimes_F77=yes
13524 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13525
13526 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13527 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13528 # If the export-symbols file already is a .def file (1st line
13529 # is EXPORTS), use it as is; otherwise, prepend...
13530 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13531 cp $export_symbols $output_objdir/$soname.def;
13532 else
13533 echo EXPORTS > $output_objdir/$soname.def;
13534 cat $export_symbols >> $output_objdir/$soname.def;
13535 fi~
13536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13537 else
13538 ld_shlibs=no
13539 fi
13540 ;;
13541
13542 netbsd* | knetbsd*-gnu)
13543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13544 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13545 wlarc=
13546 else
13547 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13548 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13549 fi
13550 ;;
13551
13552 solaris* | sysv5*)
13553 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13554 ld_shlibs_F77=no
13555 cat <<EOF 1>&2
13556
13557 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13558 *** create shared libraries on Solaris systems. Therefore, libtool
13559 *** is disabling shared libraries support. We urge you to upgrade GNU
13560 *** binutils to release 2.9.1 or newer. Another option is to modify
13561 *** your PATH or compiler configuration so that the native linker is
13562 *** used, and then restart.
13563
13564 EOF
13565 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13567 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13568 else
13569 ld_shlibs_F77=no
13570 fi
13571 ;;
13572
13573 sunos4*)
13574 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13575 wlarc=
13576 hardcode_direct_F77=yes
13577 hardcode_shlibpath_var_F77=no
13578 ;;
13579
13580 linux*)
13581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13582 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13583 archive_cmds_F77="$tmp_archive_cmds"
13584 supports_anon_versioning=no
13585 case `$LD -v 2>/dev/null` in
13586 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13589 *\ 2.11.*) ;; # other 2.11 versions
13590 *) supports_anon_versioning=yes ;;
13591 esac
13592 if test $supports_anon_versioning = yes; then
13593 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13595 $echo "local: *; };" >> $output_objdir/$libname.ver~
13596 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13597 else
13598 archive_expsym_cmds_F77="$tmp_archive_cmds"
13599 fi
13600 link_all_deplibs_F77=no
13601 else
13602 ld_shlibs_F77=no
13603 fi
13604 ;;
13605
13606 *)
13607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13608 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13609 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13610 else
13611 ld_shlibs_F77=no
13612 fi
13613 ;;
13614 esac
13615
13616 if test "$ld_shlibs_F77" = yes; then
13617 runpath_var=LD_RUN_PATH
13618 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13619 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13620 # ancient GNU ld didn't support --whole-archive et. al.
13621 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13622 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13623 else
13624 whole_archive_flag_spec_F77=
13625 fi
13626 fi
13627 else
13628 # PORTME fill in a description of your system's linker (not GNU ld)
13629 case $host_os in
13630 aix3*)
13631 allow_undefined_flag_F77=unsupported
13632 always_export_symbols_F77=yes
13633 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13634 # Note: this linker hardcodes the directories in LIBPATH if there
13635 # are no directories specified by -L.
13636 hardcode_minus_L_F77=yes
13637 if test "$GCC" = yes && test -z "$link_static_flag"; then
13638 # Neither direct hardcoding nor static linking is supported with a
13639 # broken collect2.
13640 hardcode_direct_F77=unsupported
13641 fi
13642 ;;
13643
13644 aix4* | aix5*)
13645 if test "$host_cpu" = ia64; then
13646 # On IA64, the linker does run time linking by default, so we don't
13647 # have to do anything special.
13648 aix_use_runtimelinking=no
13649 exp_sym_flag='-Bexport'
13650 no_entry_flag=""
13651 else
13652 # If we're using GNU nm, then we don't want the "-C" option.
13653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13655 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13656 else
13657 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13658 fi
13659 aix_use_runtimelinking=no
13660
13661 # Test if we are trying to use run time linking or normal
13662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13663 # need to do runtime linking.
13664 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13665 for ld_flag in $LDFLAGS; do
13666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13667 aix_use_runtimelinking=yes
13668 break
13669 fi
13670 done
13671 esac
13672
13673 exp_sym_flag='-bexport'
13674 no_entry_flag='-bnoentry'
13675 fi
13676
13677 # When large executables or shared objects are built, AIX ld can
13678 # have problems creating the table of contents. If linking a library
13679 # or program results in "error TOC overflow" add -mminimal-toc to
13680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13682
13683 archive_cmds_F77=''
13684 hardcode_direct_F77=yes
13685 hardcode_libdir_separator_F77=':'
13686 link_all_deplibs_F77=yes
13687
13688 if test "$GCC" = yes; then
13689 case $host_os in aix4.012|aix4.012.*)
13690 # We only want to do this on AIX 4.2 and lower, the check
13691 # below for broken collect2 doesn't work under 4.3+
13692 collect2name=`${CC} -print-prog-name=collect2`
13693 if test -f "$collect2name" && \
13694 strings "$collect2name" | grep resolve_lib_name >/dev/null
13695 then
13696 # We have reworked collect2
13697 hardcode_direct_F77=yes
13698 else
13699 # We have old collect2
13700 hardcode_direct_F77=unsupported
13701 # It fails to find uninstalled libraries when the uninstalled
13702 # path is not listed in the libpath. Setting hardcode_minus_L
13703 # to unsupported forces relinking
13704 hardcode_minus_L_F77=yes
13705 hardcode_libdir_flag_spec_F77='-L$libdir'
13706 hardcode_libdir_separator_F77=
13707 fi
13708 esac
13709 shared_flag='-shared'
13710 else
13711 # not using gcc
13712 if test "$host_cpu" = ia64; then
13713 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13714 # chokes on -Wl,-G. The following line is correct:
13715 shared_flag='-G'
13716 else
13717 if test "$aix_use_runtimelinking" = yes; then
13718 shared_flag='${wl}-G'
13719 else
13720 shared_flag='${wl}-bM:SRE'
13721 fi
13722 fi
13723 fi
13724
13725 # It seems that -bexpall does not export symbols beginning with
13726 # underscore (_), so it is better to generate a list of symbols to export.
13727 always_export_symbols_F77=yes
13728 if test "$aix_use_runtimelinking" = yes; then
13729 # Warning - without using the other runtime loading flags (-brtl),
13730 # -berok will link without error, but may produce a broken library.
13731 allow_undefined_flag_F77='-berok'
13732 # Determine the default libpath from the value encoded in an empty executable.
13733 cat >conftest.$ac_ext <<_ACEOF
13734 program main
13735
13736 end
13737 _ACEOF
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759
13760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13761 }'`
13762 # Check for a 64-bit object if we didn't find anything.
13763 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13764 }'`; fi
13765 else
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 fi
13770 rm -f conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13773
13774 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13775 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13776 else
13777 if test "$host_cpu" = ia64; then
13778 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13779 allow_undefined_flag_F77="-z nodefs"
13780 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13781 else
13782 # Determine the default libpath from the value encoded in an empty executable.
13783 cat >conftest.$ac_ext <<_ACEOF
13784 program main
13785
13786 end
13787 _ACEOF
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790 (eval $ac_link) 2>conftest.er1
13791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; } &&
13803 { ac_try='test -s conftest$ac_exeext'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13809
13810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13811 }'`
13812 # Check for a 64-bit object if we didn't find anything.
13813 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13814 }'`; fi
13815 else
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 fi
13820 rm -f conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13823
13824 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13825 # Warning - without using the other run time loading flags,
13826 # -berok will link without error, but may produce a broken library.
13827 no_undefined_flag_F77=' ${wl}-bernotok'
13828 allow_undefined_flag_F77=' ${wl}-berok'
13829 # -bexpall does not export symbols beginning with underscore (_)
13830 always_export_symbols_F77=yes
13831 # Exported symbols can be pulled into shared objects from archives
13832 whole_archive_flag_spec_F77=' '
13833 archive_cmds_need_lc_F77=yes
13834 # This is similar to how AIX traditionally builds it's shared libraries.
13835 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13836 fi
13837 fi
13838 ;;
13839
13840 amigaos*)
13841 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13842 hardcode_libdir_flag_spec_F77='-L$libdir'
13843 hardcode_minus_L_F77=yes
13844 # see comment about different semantics on the GNU ld section
13845 ld_shlibs_F77=no
13846 ;;
13847
13848 bsdi4*)
13849 export_dynamic_flag_spec_F77=-rdynamic
13850 ;;
13851
13852 cygwin* | mingw* | pw32*)
13853 # When not using gcc, we currently assume that we are using
13854 # Microsoft Visual C++.
13855 # hardcode_libdir_flag_spec is actually meaningless, as there is
13856 # no search path for DLLs.
13857 hardcode_libdir_flag_spec_F77=' '
13858 allow_undefined_flag_F77=unsupported
13859 # Tell ltmain to make .lib files, not .a files.
13860 libext=lib
13861 # Tell ltmain to make .dll files, not .so files.
13862 shrext_cmds=".dll"
13863 # FIXME: Setting linknames here is a bad hack.
13864 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13865 # The linker will automatically build a .lib file if we build a DLL.
13866 old_archive_From_new_cmds_F77='true'
13867 # FIXME: Should let the user specify the lib program.
13868 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13869 fix_srcfile_path='`cygpath -w "$srcfile"`'
13870 enable_shared_with_static_runtimes_F77=yes
13871 ;;
13872
13873 darwin* | rhapsody*)
13874 if test "$GXX" = yes ; then
13875 archive_cmds_need_lc_F77=no
13876 case "$host_os" in
13877 rhapsody* | darwin1.[012])
13878 allow_undefined_flag_F77='-undefined suppress'
13879 ;;
13880 *) # Darwin 1.3 on
13881 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13882 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13883 else
13884 case ${MACOSX_DEPLOYMENT_TARGET} in
13885 10.[012])
13886 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13887 ;;
13888 10.*)
13889 allow_undefined_flag_F77='-undefined dynamic_lookup'
13890 ;;
13891 esac
13892 fi
13893 ;;
13894 esac
13895 lt_int_apple_cc_single_mod=no
13896 output_verbose_link_cmd='echo'
13897 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13898 lt_int_apple_cc_single_mod=yes
13899 fi
13900 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13901 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13902 else
13903 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13904 fi
13905 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13906 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13907 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13908 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13909 else
13910 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13911 fi
13912 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13913 hardcode_direct_F77=no
13914 hardcode_automatic_F77=yes
13915 hardcode_shlibpath_var_F77=unsupported
13916 whole_archive_flag_spec_F77='-all_load $convenience'
13917 link_all_deplibs_F77=yes
13918 else
13919 ld_shlibs_F77=no
13920 fi
13921 ;;
13922
13923 dgux*)
13924 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13925 hardcode_libdir_flag_spec_F77='-L$libdir'
13926 hardcode_shlibpath_var_F77=no
13927 ;;
13928
13929 freebsd1*)
13930 ld_shlibs_F77=no
13931 ;;
13932
13933 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13934 # support. Future versions do this automatically, but an explicit c++rt0.o
13935 # does not break anything, and helps significantly (at the cost of a little
13936 # extra space).
13937 freebsd2.2*)
13938 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13939 hardcode_libdir_flag_spec_F77='-R$libdir'
13940 hardcode_direct_F77=yes
13941 hardcode_shlibpath_var_F77=no
13942 ;;
13943
13944 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13945 freebsd2*)
13946 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13947 hardcode_direct_F77=yes
13948 hardcode_minus_L_F77=yes
13949 hardcode_shlibpath_var_F77=no
13950 ;;
13951
13952 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13953 freebsd* | kfreebsd*-gnu)
13954 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13955 hardcode_libdir_flag_spec_F77='-R$libdir'
13956 hardcode_direct_F77=yes
13957 hardcode_shlibpath_var_F77=no
13958 ;;
13959
13960 hpux9*)
13961 if test "$GCC" = yes; then
13962 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13963 else
13964 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13965 fi
13966 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13967 hardcode_libdir_separator_F77=:
13968 hardcode_direct_F77=yes
13969
13970 # hardcode_minus_L: Not really in the search PATH,
13971 # but as the default location of the library.
13972 hardcode_minus_L_F77=yes
13973 export_dynamic_flag_spec_F77='${wl}-E'
13974 ;;
13975
13976 hpux10* | hpux11*)
13977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13978 case "$host_cpu" in
13979 hppa*64*|ia64*)
13980 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13981 ;;
13982 *)
13983 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13984 ;;
13985 esac
13986 else
13987 case "$host_cpu" in
13988 hppa*64*|ia64*)
13989 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13990 ;;
13991 *)
13992 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13993 ;;
13994 esac
13995 fi
13996 if test "$with_gnu_ld" = no; then
13997 case "$host_cpu" in
13998 hppa*64*)
13999 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14001 hardcode_libdir_separator_F77=:
14002 hardcode_direct_F77=no
14003 hardcode_shlibpath_var_F77=no
14004 ;;
14005 ia64*)
14006 hardcode_libdir_flag_spec_F77='-L$libdir'
14007 hardcode_direct_F77=no
14008 hardcode_shlibpath_var_F77=no
14009
14010 # hardcode_minus_L: Not really in the search PATH,
14011 # but as the default location of the library.
14012 hardcode_minus_L_F77=yes
14013 ;;
14014 *)
14015 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14016 hardcode_libdir_separator_F77=:
14017 hardcode_direct_F77=yes
14018 export_dynamic_flag_spec_F77='${wl}-E'
14019
14020 # hardcode_minus_L: Not really in the search PATH,
14021 # but as the default location of the library.
14022 hardcode_minus_L_F77=yes
14023 ;;
14024 esac
14025 fi
14026 ;;
14027
14028 irix5* | irix6* | nonstopux*)
14029 if test "$GCC" = yes; then
14030 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14031 else
14032 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14033 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14034 fi
14035 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14036 hardcode_libdir_separator_F77=:
14037 link_all_deplibs_F77=yes
14038 ;;
14039
14040 netbsd* | knetbsd*-gnu)
14041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14042 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14043 else
14044 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14045 fi
14046 hardcode_libdir_flag_spec_F77='-R$libdir'
14047 hardcode_direct_F77=yes
14048 hardcode_shlibpath_var_F77=no
14049 ;;
14050
14051 newsos6)
14052 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14053 hardcode_direct_F77=yes
14054 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14055 hardcode_libdir_separator_F77=:
14056 hardcode_shlibpath_var_F77=no
14057 ;;
14058
14059 openbsd*)
14060 hardcode_direct_F77=yes
14061 hardcode_shlibpath_var_F77=no
14062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14063 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14064 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14065 export_dynamic_flag_spec_F77='${wl}-E'
14066 else
14067 case $host_os in
14068 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14069 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14070 hardcode_libdir_flag_spec_F77='-R$libdir'
14071 ;;
14072 *)
14073 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14074 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14075 ;;
14076 esac
14077 fi
14078 ;;
14079
14080 os2*)
14081 hardcode_libdir_flag_spec_F77='-L$libdir'
14082 hardcode_minus_L_F77=yes
14083 allow_undefined_flag_F77=unsupported
14084 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14085 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14086 ;;
14087
14088 osf3*)
14089 if test "$GCC" = yes; then
14090 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14091 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14092 else
14093 allow_undefined_flag_F77=' -expect_unresolved \*'
14094 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14095 fi
14096 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14097 hardcode_libdir_separator_F77=:
14098 ;;
14099
14100 osf4* | osf5*) # as osf3* with the addition of -msym flag
14101 if test "$GCC" = yes; then
14102 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14103 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14104 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14105 else
14106 allow_undefined_flag_F77=' -expect_unresolved \*'
14107 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14108 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14109 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14110
14111 # Both c and cxx compiler support -rpath directly
14112 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14113 fi
14114 hardcode_libdir_separator_F77=:
14115 ;;
14116
14117 sco3.2v5*)
14118 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14119 hardcode_shlibpath_var_F77=no
14120 export_dynamic_flag_spec_F77='${wl}-Bexport'
14121 runpath_var=LD_RUN_PATH
14122 hardcode_runpath_var=yes
14123 ;;
14124
14125 solaris*)
14126 no_undefined_flag_F77=' -z text'
14127 if test "$GCC" = yes; then
14128 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14129 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14130 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14131 else
14132 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14134 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14135 fi
14136 hardcode_libdir_flag_spec_F77='-R$libdir'
14137 hardcode_shlibpath_var_F77=no
14138 case $host_os in
14139 solaris2.[0-5] | solaris2.[0-5].*) ;;
14140 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14141 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14142 esac
14143 link_all_deplibs_F77=yes
14144 ;;
14145
14146 sunos4*)
14147 if test "x$host_vendor" = xsequent; then
14148 # Use $CC to link under sequent, because it throws in some extra .o
14149 # files that make .init and .fini sections work.
14150 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14151 else
14152 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14153 fi
14154 hardcode_libdir_flag_spec_F77='-L$libdir'
14155 hardcode_direct_F77=yes
14156 hardcode_minus_L_F77=yes
14157 hardcode_shlibpath_var_F77=no
14158 ;;
14159
14160 sysv4)
14161 case $host_vendor in
14162 sni)
14163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164 hardcode_direct_F77=yes # is this really true???
14165 ;;
14166 siemens)
14167 ## LD is ld it makes a PLAMLIB
14168 ## CC just makes a GrossModule.
14169 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14170 reload_cmds_F77='$CC -r -o $output$reload_objs'
14171 hardcode_direct_F77=no
14172 ;;
14173 motorola)
14174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14176 ;;
14177 esac
14178 runpath_var='LD_RUN_PATH'
14179 hardcode_shlibpath_var_F77=no
14180 ;;
14181
14182 sysv4.3*)
14183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14184 hardcode_shlibpath_var_F77=no
14185 export_dynamic_flag_spec_F77='-Bexport'
14186 ;;
14187
14188 sysv4*MP*)
14189 if test -d /usr/nec; then
14190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14191 hardcode_shlibpath_var_F77=no
14192 runpath_var=LD_RUN_PATH
14193 hardcode_runpath_var=yes
14194 ld_shlibs_F77=yes
14195 fi
14196 ;;
14197
14198 sysv4.2uw2*)
14199 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14200 hardcode_direct_F77=yes
14201 hardcode_minus_L_F77=no
14202 hardcode_shlibpath_var_F77=no
14203 hardcode_runpath_var=yes
14204 runpath_var=LD_RUN_PATH
14205 ;;
14206
14207 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14208 no_undefined_flag_F77='${wl}-z ${wl}text'
14209 if test "$GCC" = yes; then
14210 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14211 else
14212 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 fi
14214 runpath_var='LD_RUN_PATH'
14215 hardcode_shlibpath_var_F77=no
14216 ;;
14217
14218 sysv5*)
14219 no_undefined_flag_F77=' -z text'
14220 # $CC -shared without GNU ld will not create a library from C++
14221 # object files and a static libstdc++, better avoid it by now
14222 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14223 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14224 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14225 hardcode_libdir_flag_spec_F77=
14226 hardcode_shlibpath_var_F77=no
14227 runpath_var='LD_RUN_PATH'
14228 ;;
14229
14230 uts4*)
14231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232 hardcode_libdir_flag_spec_F77='-L$libdir'
14233 hardcode_shlibpath_var_F77=no
14234 ;;
14235
14236 *)
14237 ld_shlibs_F77=no
14238 ;;
14239 esac
14240 fi
14241
14242 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14243 echo "${ECHO_T}$ld_shlibs_F77" >&6
14244 test "$ld_shlibs_F77" = no && can_build_shared=no
14245
14246 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14247 if test "$GCC" = yes; then
14248 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14249 fi
14250
14251 #
14252 # Do we need to explicitly link libc?
14253 #
14254 case "x$archive_cmds_need_lc_F77" in
14255 x|xyes)
14256 # Assume -lc should be added
14257 archive_cmds_need_lc_F77=yes
14258
14259 if test "$enable_shared" = yes && test "$GCC" = yes; then
14260 case $archive_cmds_F77 in
14261 *'~'*)
14262 # FIXME: we may have to deal with multi-command sequences.
14263 ;;
14264 '$CC '*)
14265 # Test whether the compiler implicitly links with -lc since on some
14266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14267 # to ld, don't add -lc before -lgcc.
14268 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14269 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14270 $rm conftest*
14271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14272
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } 2>conftest.err; then
14278 soname=conftest
14279 lib=conftest
14280 libobjs=conftest.$ac_objext
14281 deplibs=
14282 wl=$lt_prog_compiler_wl_F77
14283 compiler_flags=-v
14284 linker_flags=-v
14285 verstring=
14286 output_objdir=.
14287 libname=conftest
14288 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14289 allow_undefined_flag_F77=
14290 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14291 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }
14295 then
14296 archive_cmds_need_lc_F77=no
14297 else
14298 archive_cmds_need_lc_F77=yes
14299 fi
14300 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14301 else
14302 cat conftest.err 1>&5
14303 fi
14304 $rm conftest*
14305 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14306 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14307 ;;
14308 esac
14309 fi
14310 ;;
14311 esac
14312
14313 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14314 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14315 library_names_spec=
14316 libname_spec='lib$name'
14317 soname_spec=
14318 shrext_cmds=".so"
14319 postinstall_cmds=
14320 postuninstall_cmds=
14321 finish_cmds=
14322 finish_eval=
14323 shlibpath_var=
14324 shlibpath_overrides_runpath=unknown
14325 version_type=none
14326 dynamic_linker="$host_os ld.so"
14327 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14328 if test "$GCC" = yes; then
14329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14330 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14331 # if the path contains ";" then we assume it to be the separator
14332 # otherwise default to the standard path separator (i.e. ":") - it is
14333 # assumed that no part of a normal pathname contains ";" but that should
14334 # okay in the real world where ";" in dirpaths is itself problematic.
14335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14336 else
14337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14338 fi
14339 else
14340 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14341 fi
14342 need_lib_prefix=unknown
14343 hardcode_into_libs=no
14344
14345 # when you set need_version to no, make sure it does not cause -set_version
14346 # flags to be left without arguments
14347 need_version=unknown
14348
14349 case $host_os in
14350 aix3*)
14351 version_type=linux
14352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14353 shlibpath_var=LIBPATH
14354
14355 # AIX 3 has no versioning support, so we append a major version to the name.
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 ;;
14358
14359 aix4* | aix5*)
14360 version_type=linux
14361 need_lib_prefix=no
14362 need_version=no
14363 hardcode_into_libs=yes
14364 if test "$host_cpu" = ia64; then
14365 # AIX 5 supports IA64
14366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14367 shlibpath_var=LD_LIBRARY_PATH
14368 else
14369 # With GCC up to 2.95.x, collect2 would create an import file
14370 # for dependence libraries. The import file would start with
14371 # the line `#! .'. This would cause the generated library to
14372 # depend on `.', always an invalid library. This was fixed in
14373 # development snapshots of GCC prior to 3.0.
14374 case $host_os in
14375 aix4 | aix4.[01] | aix4.[01].*)
14376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14377 echo ' yes '
14378 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14379 :
14380 else
14381 can_build_shared=no
14382 fi
14383 ;;
14384 esac
14385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14386 # soname into executable. Probably we can add versioning support to
14387 # collect2, so additional links can be useful in future.
14388 if test "$aix_use_runtimelinking" = yes; then
14389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14390 # instead of lib<name>.a to let people know that these are not
14391 # typical AIX shared libraries.
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393 else
14394 # We preserve .a as extension for shared libraries through AIX4.2
14395 # and later when we are not doing run time linking.
14396 library_names_spec='${libname}${release}.a $libname.a'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 fi
14399 shlibpath_var=LIBPATH
14400 fi
14401 ;;
14402
14403 amigaos*)
14404 library_names_spec='$libname.ixlibrary $libname.a'
14405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14406 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'
14407 ;;
14408
14409 beos*)
14410 library_names_spec='${libname}${shared_ext}'
14411 dynamic_linker="$host_os ld.so"
14412 shlibpath_var=LIBRARY_PATH
14413 ;;
14414
14415 bsdi4*)
14416 version_type=linux
14417 need_version=no
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14423 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14424 # the default ld.so.conf also contains /usr/contrib/lib and
14425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14426 # libtool to hard-code these into programs
14427 ;;
14428
14429 cygwin* | mingw* | pw32*)
14430 version_type=windows
14431 shrext_cmds=".dll"
14432 need_version=no
14433 need_lib_prefix=no
14434
14435 case $GCC,$host_os in
14436 yes,cygwin* | yes,mingw* | yes,pw32*)
14437 library_names_spec='$libname.dll.a'
14438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14439 postinstall_cmds='base_file=`basename \${file}`~
14440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14441 dldir=$destdir/`dirname \$dlpath`~
14442 test -d \$dldir || mkdir -p \$dldir~
14443 $install_prog $dir/$dlname \$dldir/$dlname'
14444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14445 dlpath=$dir/\$dldll~
14446 $rm \$dlpath'
14447 shlibpath_overrides_runpath=yes
14448
14449 case $host_os in
14450 cygwin*)
14451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14454 ;;
14455 mingw*)
14456 # MinGW DLLs use traditional 'lib' prefix
14457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14460 # It is most probably a Windows format PATH printed by
14461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14462 # path with ; separators, and with drive letters. We can handle the
14463 # drive letters (cygwin fileutils understands them), so leave them,
14464 # especially as we might pass files found there to a mingw objdump,
14465 # which wouldn't understand a cygwinified path. Ahh.
14466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14467 else
14468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14469 fi
14470 ;;
14471 pw32*)
14472 # pw32 DLLs use 'pw' prefix rather than 'lib'
14473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14474 ;;
14475 esac
14476 ;;
14477
14478 *)
14479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14480 ;;
14481 esac
14482 dynamic_linker='Win32 ld.exe'
14483 # FIXME: first we should search . and the directory the executable is in
14484 shlibpath_var=PATH
14485 ;;
14486
14487 darwin* | rhapsody*)
14488 dynamic_linker="$host_os dyld"
14489 version_type=darwin
14490 need_lib_prefix=no
14491 need_version=no
14492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14493 soname_spec='${libname}${release}${major}$shared_ext'
14494 shlibpath_overrides_runpath=yes
14495 shlibpath_var=DYLD_LIBRARY_PATH
14496 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14497 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14498 if test "$GCC" = yes; then
14499 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14500 else
14501 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14502 fi
14503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14504 ;;
14505
14506 dgux*)
14507 version_type=linux
14508 need_lib_prefix=no
14509 need_version=no
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 shlibpath_var=LD_LIBRARY_PATH
14513 ;;
14514
14515 freebsd1*)
14516 dynamic_linker=no
14517 ;;
14518
14519 kfreebsd*-gnu)
14520 version_type=linux
14521 need_lib_prefix=no
14522 need_version=no
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 shlibpath_overrides_runpath=no
14527 hardcode_into_libs=yes
14528 dynamic_linker='GNU ld.so'
14529 ;;
14530
14531 freebsd*)
14532 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14533 version_type=freebsd-$objformat
14534 case $version_type in
14535 freebsd-elf*)
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14537 need_version=no
14538 need_lib_prefix=no
14539 ;;
14540 freebsd-*)
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14542 need_version=yes
14543 ;;
14544 esac
14545 shlibpath_var=LD_LIBRARY_PATH
14546 case $host_os in
14547 freebsd2*)
14548 shlibpath_overrides_runpath=yes
14549 ;;
14550 freebsd3.01* | freebsdelf3.01*)
14551 shlibpath_overrides_runpath=yes
14552 hardcode_into_libs=yes
14553 ;;
14554 *) # from 3.2 on
14555 shlibpath_overrides_runpath=no
14556 hardcode_into_libs=yes
14557 ;;
14558 esac
14559 ;;
14560
14561 gnu*)
14562 version_type=linux
14563 need_lib_prefix=no
14564 need_version=no
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 hardcode_into_libs=yes
14569 ;;
14570
14571 hpux9* | hpux10* | hpux11*)
14572 # Give a soname corresponding to the major version so that dld.sl refuses to
14573 # link against other versions.
14574 version_type=sunos
14575 need_lib_prefix=no
14576 need_version=no
14577 case "$host_cpu" in
14578 ia64*)
14579 shrext_cmds='.so'
14580 hardcode_into_libs=yes
14581 dynamic_linker="$host_os dld.so"
14582 shlibpath_var=LD_LIBRARY_PATH
14583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 if test "X$HPUX_IA64_MODE" = X32; then
14587 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14588 else
14589 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14590 fi
14591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14592 ;;
14593 hppa*64*)
14594 shrext_cmds='.sl'
14595 hardcode_into_libs=yes
14596 dynamic_linker="$host_os dld.sl"
14597 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600 soname_spec='${libname}${release}${shared_ext}$major'
14601 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14603 ;;
14604 *)
14605 shrext_cmds='.sl'
14606 dynamic_linker="$host_os dld.sl"
14607 shlibpath_var=SHLIB_PATH
14608 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 ;;
14612 esac
14613 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14614 postinstall_cmds='chmod 555 $lib'
14615 ;;
14616
14617 irix5* | irix6* | nonstopux*)
14618 case $host_os in
14619 nonstopux*) version_type=nonstopux ;;
14620 *)
14621 if test "$lt_cv_prog_gnu_ld" = yes; then
14622 version_type=linux
14623 else
14624 version_type=irix
14625 fi ;;
14626 esac
14627 need_lib_prefix=no
14628 need_version=no
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14631 case $host_os in
14632 irix5* | nonstopux*)
14633 libsuff= shlibsuff=
14634 ;;
14635 *)
14636 case $LD in # libtool.m4 will add one of these switches to LD
14637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14638 libsuff= shlibsuff= libmagic=32-bit;;
14639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14640 libsuff=32 shlibsuff=N32 libmagic=N32;;
14641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14643 *) libsuff= shlibsuff= libmagic=never-match;;
14644 esac
14645 ;;
14646 esac
14647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14648 shlibpath_overrides_runpath=no
14649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14651 hardcode_into_libs=yes
14652 ;;
14653
14654 # No shared lib support for Linux oldld, aout, or coff.
14655 linux*oldld* | linux*aout* | linux*coff*)
14656 dynamic_linker=no
14657 ;;
14658
14659 # This must be Linux ELF.
14660 linux*)
14661 version_type=linux
14662 need_lib_prefix=no
14663 need_version=no
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 shlibpath_overrides_runpath=no
14669 # This implies no fast_install, which is unacceptable.
14670 # Some rework will be needed to allow for fast_install
14671 # before this can be enabled.
14672 hardcode_into_libs=yes
14673
14674 # Append ld.so.conf contents to the search path
14675 if test -f /etc/ld.so.conf; then
14676 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14677 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14678 fi
14679
14680 # We used to test for /lib/ld.so.1 and disable shared libraries on
14681 # powerpc, because MkLinux only supported shared libraries with the
14682 # GNU dynamic linker. Since this was broken with cross compilers,
14683 # most powerpc-linux boxes support dynamic linking these days and
14684 # people can always --disable-shared, the test was removed, and we
14685 # assume the GNU/Linux dynamic linker is in use.
14686 dynamic_linker='GNU/Linux ld.so'
14687 ;;
14688
14689 knetbsd*-gnu)
14690 version_type=linux
14691 need_lib_prefix=no
14692 need_version=no
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 shlibpath_overrides_runpath=no
14697 hardcode_into_libs=yes
14698 dynamic_linker='GNU ld.so'
14699 ;;
14700
14701 netbsd*)
14702 version_type=sunos
14703 need_lib_prefix=no
14704 need_version=no
14705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14708 dynamic_linker='NetBSD (a.out) ld.so'
14709 else
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 dynamic_linker='NetBSD ld.elf_so'
14713 fi
14714 shlibpath_var=LD_LIBRARY_PATH
14715 shlibpath_overrides_runpath=yes
14716 hardcode_into_libs=yes
14717 ;;
14718
14719 newsos6)
14720 version_type=linux
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=yes
14724 ;;
14725
14726 nto-qnx*)
14727 version_type=linux
14728 need_lib_prefix=no
14729 need_version=no
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=yes
14734 ;;
14735
14736 openbsd*)
14737 version_type=sunos
14738 need_lib_prefix=no
14739 need_version=yes
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14744 case $host_os in
14745 openbsd2.[89] | openbsd2.[89].*)
14746 shlibpath_overrides_runpath=no
14747 ;;
14748 *)
14749 shlibpath_overrides_runpath=yes
14750 ;;
14751 esac
14752 else
14753 shlibpath_overrides_runpath=yes
14754 fi
14755 ;;
14756
14757 os2*)
14758 libname_spec='$name'
14759 shrext_cmds=".dll"
14760 need_lib_prefix=no
14761 library_names_spec='$libname${shared_ext} $libname.a'
14762 dynamic_linker='OS/2 ld.exe'
14763 shlibpath_var=LIBPATH
14764 ;;
14765
14766 osf3* | osf4* | osf5*)
14767 version_type=osf
14768 need_lib_prefix=no
14769 need_version=no
14770 soname_spec='${libname}${release}${shared_ext}$major'
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14775 ;;
14776
14777 sco3.2v5*)
14778 version_type=osf
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 ;;
14783
14784 solaris*)
14785 version_type=linux
14786 need_lib_prefix=no
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 shlibpath_overrides_runpath=yes
14792 hardcode_into_libs=yes
14793 # ldd complains unless libraries are executable
14794 postinstall_cmds='chmod +x $lib'
14795 ;;
14796
14797 sunos4*)
14798 version_type=sunos
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 shlibpath_overrides_runpath=yes
14803 if test "$with_gnu_ld" = yes; then
14804 need_lib_prefix=no
14805 fi
14806 need_version=yes
14807 ;;
14808
14809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14810 version_type=linux
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14812 soname_spec='${libname}${release}${shared_ext}$major'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 case $host_vendor in
14815 sni)
14816 shlibpath_overrides_runpath=no
14817 need_lib_prefix=no
14818 export_dynamic_flag_spec='${wl}-Blargedynsym'
14819 runpath_var=LD_RUN_PATH
14820 ;;
14821 siemens)
14822 need_lib_prefix=no
14823 ;;
14824 motorola)
14825 need_lib_prefix=no
14826 need_version=no
14827 shlibpath_overrides_runpath=no
14828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14829 ;;
14830 esac
14831 ;;
14832
14833 sysv4*MP*)
14834 if test -d /usr/nec ;then
14835 version_type=linux
14836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14837 soname_spec='$libname${shared_ext}.$major'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 fi
14840 ;;
14841
14842 uts4*)
14843 version_type=linux
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 ;;
14848
14849 *)
14850 dynamic_linker=no
14851 ;;
14852 esac
14853 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14854 echo "${ECHO_T}$dynamic_linker" >&6
14855 test "$dynamic_linker" = no && can_build_shared=no
14856
14857 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14858 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14859 hardcode_action_F77=
14860 if test -n "$hardcode_libdir_flag_spec_F77" || \
14861 test -n "$runpath_var F77" || \
14862 test "X$hardcode_automatic_F77"="Xyes" ; then
14863
14864 # We can hardcode non-existant directories.
14865 if test "$hardcode_direct_F77" != no &&
14866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14867 # have to relink, otherwise we might link with an installed library
14868 # when we should be linking with a yet-to-be-installed one
14869 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14870 test "$hardcode_minus_L_F77" != no; then
14871 # Linking always hardcodes the temporary library directory.
14872 hardcode_action_F77=relink
14873 else
14874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14875 hardcode_action_F77=immediate
14876 fi
14877 else
14878 # We cannot hardcode anything, or else we can only hardcode existing
14879 # directories.
14880 hardcode_action_F77=unsupported
14881 fi
14882 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14883 echo "${ECHO_T}$hardcode_action_F77" >&6
14884
14885 if test "$hardcode_action_F77" = relink; then
14886 # Fast installation is not supported
14887 enable_fast_install=no
14888 elif test "$shlibpath_overrides_runpath" = yes ||
14889 test "$enable_shared" = no; then
14890 # Fast installation is not necessary
14891 enable_fast_install=needless
14892 fi
14893
14894 striplib=
14895 old_striplib=
14896 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14897 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14898 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14899 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14900 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14901 echo "$as_me:$LINENO: result: yes" >&5
14902 echo "${ECHO_T}yes" >&6
14903 else
14904 # FIXME - insert some real tests, host_os isn't really good enough
14905 case $host_os in
14906 darwin*)
14907 if test -n "$STRIP" ; then
14908 striplib="$STRIP -x"
14909 echo "$as_me:$LINENO: result: yes" >&5
14910 echo "${ECHO_T}yes" >&6
14911 else
14912 echo "$as_me:$LINENO: result: no" >&5
14913 echo "${ECHO_T}no" >&6
14914 fi
14915 ;;
14916 *)
14917 echo "$as_me:$LINENO: result: no" >&5
14918 echo "${ECHO_T}no" >&6
14919 ;;
14920 esac
14921 fi
14922
14923
14924
14925 # The else clause should only fire when bootstrapping the
14926 # libtool distribution, otherwise you forgot to ship ltmain.sh
14927 # with your package, and you will get complaints that there are
14928 # no rules to generate ltmain.sh.
14929 if test -f "$ltmain"; then
14930 # See if we are running on zsh, and set the options which allow our commands through
14931 # without removal of \ escapes.
14932 if test -n "${ZSH_VERSION+set}" ; then
14933 setopt NO_GLOB_SUBST
14934 fi
14935 # Now quote all the things that may contain metacharacters while being
14936 # careful not to overquote the AC_SUBSTed values. We take copies of the
14937 # variables and quote the copies for generation of the libtool script.
14938 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14939 SED SHELL STRIP \
14940 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14941 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14942 deplibs_check_method reload_flag reload_cmds need_locks \
14943 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14944 lt_cv_sys_global_symbol_to_c_name_address \
14945 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14946 old_postinstall_cmds old_postuninstall_cmds \
14947 compiler_F77 \
14948 CC_F77 \
14949 LD_F77 \
14950 lt_prog_compiler_wl_F77 \
14951 lt_prog_compiler_pic_F77 \
14952 lt_prog_compiler_static_F77 \
14953 lt_prog_compiler_no_builtin_flag_F77 \
14954 export_dynamic_flag_spec_F77 \
14955 thread_safe_flag_spec_F77 \
14956 whole_archive_flag_spec_F77 \
14957 enable_shared_with_static_runtimes_F77 \
14958 old_archive_cmds_F77 \
14959 old_archive_from_new_cmds_F77 \
14960 predep_objects_F77 \
14961 postdep_objects_F77 \
14962 predeps_F77 \
14963 postdeps_F77 \
14964 compiler_lib_search_path_F77 \
14965 archive_cmds_F77 \
14966 archive_expsym_cmds_F77 \
14967 postinstall_cmds_F77 \
14968 postuninstall_cmds_F77 \
14969 old_archive_from_expsyms_cmds_F77 \
14970 allow_undefined_flag_F77 \
14971 no_undefined_flag_F77 \
14972 export_symbols_cmds_F77 \
14973 hardcode_libdir_flag_spec_F77 \
14974 hardcode_libdir_flag_spec_ld_F77 \
14975 hardcode_libdir_separator_F77 \
14976 hardcode_automatic_F77 \
14977 module_cmds_F77 \
14978 module_expsym_cmds_F77 \
14979 lt_cv_prog_compiler_c_o_F77 \
14980 exclude_expsyms_F77 \
14981 include_expsyms_F77; do
14982
14983 case $var in
14984 old_archive_cmds_F77 | \
14985 old_archive_from_new_cmds_F77 | \
14986 archive_cmds_F77 | \
14987 archive_expsym_cmds_F77 | \
14988 module_cmds_F77 | \
14989 module_expsym_cmds_F77 | \
14990 old_archive_from_expsyms_cmds_F77 | \
14991 export_symbols_cmds_F77 | \
14992 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14993 postinstall_cmds | postuninstall_cmds | \
14994 old_postinstall_cmds | old_postuninstall_cmds | \
14995 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14996 # Double-quote double-evaled strings.
14997 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14998 ;;
14999 *)
15000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15001 ;;
15002 esac
15003 done
15004
15005 case $lt_echo in
15006 *'\$0 --fallback-echo"')
15007 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15008 ;;
15009 esac
15010
15011 cfgfile="$ofile"
15012
15013 cat <<__EOF__ >> "$cfgfile"
15014 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15015
15016 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15017
15018 # Shell to use when invoking shell scripts.
15019 SHELL=$lt_SHELL
15020
15021 # Whether or not to build shared libraries.
15022 build_libtool_libs=$enable_shared
15023
15024 # Whether or not to build static libraries.
15025 build_old_libs=$enable_static
15026
15027 # Whether or not to add -lc for building shared libraries.
15028 build_libtool_need_lc=$archive_cmds_need_lc_F77
15029
15030 # Whether or not to disallow shared libs when runtime libs are static
15031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15032
15033 # Whether or not to optimize for fast installation.
15034 fast_install=$enable_fast_install
15035
15036 # The host system.
15037 host_alias=$host_alias
15038 host=$host
15039
15040 # An echo program that does not interpret backslashes.
15041 echo=$lt_echo
15042
15043 # The archiver.
15044 AR=$lt_AR
15045 AR_FLAGS=$lt_AR_FLAGS
15046
15047 # A C compiler.
15048 LTCC=$lt_LTCC
15049
15050 # A language-specific compiler.
15051 CC=$lt_compiler_F77
15052
15053 # Is the compiler the GNU C compiler?
15054 with_gcc=$GCC_F77
15055
15056 # An ERE matcher.
15057 EGREP=$lt_EGREP
15058
15059 # The linker used to build libraries.
15060 LD=$lt_LD_F77
15061
15062 # Whether we need hard or soft links.
15063 LN_S=$lt_LN_S
15064
15065 # A BSD-compatible nm program.
15066 NM=$lt_NM
15067
15068 # A symbol stripping program
15069 STRIP=$lt_STRIP
15070
15071 # Used to examine libraries when file_magic_cmd begins "file"
15072 MAGIC_CMD=$MAGIC_CMD
15073
15074 # Used on cygwin: DLL creation program.
15075 DLLTOOL="$DLLTOOL"
15076
15077 # Used on cygwin: object dumper.
15078 OBJDUMP="$OBJDUMP"
15079
15080 # Used on cygwin: assembler.
15081 AS="$AS"
15082
15083 # The name of the directory that contains temporary libtool files.
15084 objdir=$objdir
15085
15086 # How to create reloadable object files.
15087 reload_flag=$lt_reload_flag
15088 reload_cmds=$lt_reload_cmds
15089
15090 # How to pass a linker flag through the compiler.
15091 wl=$lt_lt_prog_compiler_wl_F77
15092
15093 # Object file suffix (normally "o").
15094 objext="$ac_objext"
15095
15096 # Old archive suffix (normally "a").
15097 libext="$libext"
15098
15099 # Shared library suffix (normally ".so").
15100 shrext_cmds='$shrext_cmds'
15101
15102 # Executable file suffix (normally "").
15103 exeext="$exeext"
15104
15105 # Additional compiler flags for building library objects.
15106 pic_flag=$lt_lt_prog_compiler_pic_F77
15107 pic_mode=$pic_mode
15108
15109 # What is the maximum length of a command?
15110 max_cmd_len=$lt_cv_sys_max_cmd_len
15111
15112 # Does compiler simultaneously support -c and -o options?
15113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15114
15115 # Must we lock files when doing compilation ?
15116 need_locks=$lt_need_locks
15117
15118 # Do we need the lib prefix for modules?
15119 need_lib_prefix=$need_lib_prefix
15120
15121 # Do we need a version for libraries?
15122 need_version=$need_version
15123
15124 # Whether dlopen is supported.
15125 dlopen_support=$enable_dlopen
15126
15127 # Whether dlopen of programs is supported.
15128 dlopen_self=$enable_dlopen_self
15129
15130 # Whether dlopen of statically linked programs is supported.
15131 dlopen_self_static=$enable_dlopen_self_static
15132
15133 # Compiler flag to prevent dynamic linking.
15134 link_static_flag=$lt_lt_prog_compiler_static_F77
15135
15136 # Compiler flag to turn off builtin functions.
15137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15138
15139 # Compiler flag to allow reflexive dlopens.
15140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15141
15142 # Compiler flag to generate shared objects directly from archives.
15143 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15144
15145 # Compiler flag to generate thread-safe objects.
15146 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15147
15148 # Library versioning type.
15149 version_type=$version_type
15150
15151 # Format of library name prefix.
15152 libname_spec=$lt_libname_spec
15153
15154 # List of archive names. First name is the real one, the rest are links.
15155 # The last name is the one that the linker finds with -lNAME.
15156 library_names_spec=$lt_library_names_spec
15157
15158 # The coded name of the library, if different from the real name.
15159 soname_spec=$lt_soname_spec
15160
15161 # Commands used to build and install an old-style archive.
15162 RANLIB=$lt_RANLIB
15163 old_archive_cmds=$lt_old_archive_cmds_F77
15164 old_postinstall_cmds=$lt_old_postinstall_cmds
15165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15166
15167 # Create an old-style archive from a shared archive.
15168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15169
15170 # Create a temporary old-style archive to link instead of a shared archive.
15171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15172
15173 # Commands used to build and install a shared archive.
15174 archive_cmds=$lt_archive_cmds_F77
15175 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15176 postinstall_cmds=$lt_postinstall_cmds
15177 postuninstall_cmds=$lt_postuninstall_cmds
15178
15179 # Commands used to build a loadable module (assumed same as above if empty)
15180 module_cmds=$lt_module_cmds_F77
15181 module_expsym_cmds=$lt_module_expsym_cmds_F77
15182
15183 # Commands to strip libraries.
15184 old_striplib=$lt_old_striplib
15185 striplib=$lt_striplib
15186
15187 # Dependencies to place before the objects being linked to create a
15188 # shared library.
15189 predep_objects=$lt_predep_objects_F77
15190
15191 # Dependencies to place after the objects being linked to create a
15192 # shared library.
15193 postdep_objects=$lt_postdep_objects_F77
15194
15195 # Dependencies to place before the objects being linked to create a
15196 # shared library.
15197 predeps=$lt_predeps_F77
15198
15199 # Dependencies to place after the objects being linked to create a
15200 # shared library.
15201 postdeps=$lt_postdeps_F77
15202
15203 # The library search path used internally by the compiler when linking
15204 # a shared library.
15205 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15206
15207 # Method to check whether dependent libraries are shared objects.
15208 deplibs_check_method=$lt_deplibs_check_method
15209
15210 # Command to use when deplibs_check_method == file_magic.
15211 file_magic_cmd=$lt_file_magic_cmd
15212
15213 # Flag that allows shared libraries with undefined symbols to be built.
15214 allow_undefined_flag=$lt_allow_undefined_flag_F77
15215
15216 # Flag that forces no undefined symbols.
15217 no_undefined_flag=$lt_no_undefined_flag_F77
15218
15219 # Commands used to finish a libtool library installation in a directory.
15220 finish_cmds=$lt_finish_cmds
15221
15222 # Same as above, but a single script fragment to be evaled but not shown.
15223 finish_eval=$lt_finish_eval
15224
15225 # Take the output of nm and produce a listing of raw symbols and C names.
15226 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15227
15228 # Transform the output of nm in a proper C declaration
15229 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15230
15231 # Transform the output of nm in a C name address pair
15232 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15233
15234 # This is the shared library runtime path variable.
15235 runpath_var=$runpath_var
15236
15237 # This is the shared library path variable.
15238 shlibpath_var=$shlibpath_var
15239
15240 # Is shlibpath searched before the hard-coded library search path?
15241 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15242
15243 # How to hardcode a shared library path into an executable.
15244 hardcode_action=$hardcode_action_F77
15245
15246 # Whether we should hardcode library paths into libraries.
15247 hardcode_into_libs=$hardcode_into_libs
15248
15249 # Flag to hardcode \$libdir into a binary during linking.
15250 # This must work even if \$libdir does not exist.
15251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15252
15253 # If ld is used when linking, flag to hardcode \$libdir into
15254 # a binary during linking. This must work even if \$libdir does
15255 # not exist.
15256 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15257
15258 # Whether we need a single -rpath flag with a separated argument.
15259 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15260
15261 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15262 # resulting binary.
15263 hardcode_direct=$hardcode_direct_F77
15264
15265 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15266 # resulting binary.
15267 hardcode_minus_L=$hardcode_minus_L_F77
15268
15269 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15270 # the resulting binary.
15271 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15272
15273 # Set to yes if building a shared library automatically hardcodes DIR into the library
15274 # and all subsequent libraries and executables linked against it.
15275 hardcode_automatic=$hardcode_automatic_F77
15276
15277 # Variables whose values should be saved in libtool wrapper scripts and
15278 # restored at relink time.
15279 variables_saved_for_relink="$variables_saved_for_relink"
15280
15281 # Whether libtool must link a program against all its dependency libraries.
15282 link_all_deplibs=$link_all_deplibs_F77
15283
15284 # Compile-time system search path for libraries
15285 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15286
15287 # Run-time system search path for libraries
15288 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15289
15290 # Fix the shell variable \$srcfile for the compiler.
15291 fix_srcfile_path="$fix_srcfile_path_F77"
15292
15293 # Set to yes if exported symbols are required.
15294 always_export_symbols=$always_export_symbols_F77
15295
15296 # The commands to list exported symbols.
15297 export_symbols_cmds=$lt_export_symbols_cmds_F77
15298
15299 # The commands to extract the exported symbol list from a shared archive.
15300 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15301
15302 # Symbols that should not be listed in the preloaded symbols.
15303 exclude_expsyms=$lt_exclude_expsyms_F77
15304
15305 # Symbols that must always be exported.
15306 include_expsyms=$lt_include_expsyms_F77
15307
15308 # ### END LIBTOOL TAG CONFIG: $tagname
15309
15310 __EOF__
15311
15312
15313 else
15314 # If there is no Makefile yet, we rely on a make rule to execute
15315 # `config.status --recheck' to rerun these tests and create the
15316 # libtool script then.
15317 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15318 if test -f "$ltmain_in"; then
15319 test -f Makefile && make "$ltmain"
15320 fi
15321 fi
15322
15323
15324 ac_ext=c
15325 ac_cpp='$CPP $CPPFLAGS'
15326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15329
15330 CC="$lt_save_CC"
15331
15332 else
15333 tagname=""
15334 fi
15335 ;;
15336
15337 GCJ)
15338 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15339
15340
15341
15342 # Source file extension for Java test sources.
15343 ac_ext=java
15344
15345 # Object file extension for compiled Java test sources.
15346 objext=o
15347 objext_GCJ=$objext
15348
15349 # Code to be used in simple compile tests
15350 lt_simple_compile_test_code="class foo {}\n"
15351
15352 # Code to be used in simple link tests
15353 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15354
15355 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15356
15357 # If no C compiler was specified, use CC.
15358 LTCC=${LTCC-"$CC"}
15359
15360 # Allow CC to be a program name with arguments.
15361 compiler=$CC
15362
15363
15364 # Allow CC to be a program name with arguments.
15365 lt_save_CC="$CC"
15366 CC=${GCJ-"gcj"}
15367 compiler=$CC
15368 compiler_GCJ=$CC
15369
15370 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15371 archive_cmds_need_lc_GCJ=no
15372
15373
15374 lt_prog_compiler_no_builtin_flag_GCJ=
15375
15376 if test "$GCC" = yes; then
15377 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15378
15379
15380 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15381 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15382 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385 lt_cv_prog_compiler_rtti_exceptions=no
15386 ac_outfile=conftest.$ac_objext
15387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15388 lt_compiler_flag="-fno-rtti -fno-exceptions"
15389 # Insert the option either (1) after the last *FLAGS variable, or
15390 # (2) before a word containing "conftest.", or (3) at the end.
15391 # Note that $ac_compile itself does not contain backslashes and begins
15392 # with a dollar sign (not a hyphen), so the echo should work correctly.
15393 # The option is referenced via a variable to avoid confusing sed.
15394 lt_compile=`echo "$ac_compile" | $SED \
15395 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15397 -e 's:$: $lt_compiler_flag:'`
15398 (eval echo "\"\$as_me:15398: $lt_compile\"" >&5)
15399 (eval "$lt_compile" 2>conftest.err)
15400 ac_status=$?
15401 cat conftest.err >&5
15402 echo "$as_me:15402: \$? = $ac_status" >&5
15403 if (exit $ac_status) && test -s "$ac_outfile"; then
15404 # The compiler can only warn and ignore the option if not recognized
15405 # So say no if there are warnings
15406 if test ! -s conftest.err; then
15407 lt_cv_prog_compiler_rtti_exceptions=yes
15408 fi
15409 fi
15410 $rm conftest*
15411
15412 fi
15413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15414 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15415
15416 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15417 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15418 else
15419 :
15420 fi
15421
15422 fi
15423
15424 lt_prog_compiler_wl_GCJ=
15425 lt_prog_compiler_pic_GCJ=
15426 lt_prog_compiler_static_GCJ=
15427
15428 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15429 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15430
15431 if test "$GCC" = yes; then
15432 lt_prog_compiler_wl_GCJ='-Wl,'
15433 lt_prog_compiler_static_GCJ='-static'
15434
15435 case $host_os in
15436 aix*)
15437 # All AIX code is PIC.
15438 if test "$host_cpu" = ia64; then
15439 # AIX 5 now supports IA64 processor
15440 lt_prog_compiler_static_GCJ='-Bstatic'
15441 fi
15442 ;;
15443
15444 amigaos*)
15445 # FIXME: we need at least 68020 code to build shared libraries, but
15446 # adding the `-m68020' flag to GCC prevents building anything better,
15447 # like `-m68040'.
15448 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15449 ;;
15450
15451 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15452 # PIC is the default for these OSes.
15453 ;;
15454
15455 mingw* | pw32* | os2*)
15456 # This hack is so that the source file can tell whether it is being
15457 # built for inclusion in a dll (and should export symbols for example).
15458 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15459 ;;
15460
15461 darwin* | rhapsody*)
15462 # PIC is the default on this platform
15463 # Common symbols not allowed in MH_DYLIB files
15464 lt_prog_compiler_pic_GCJ='-fno-common'
15465 ;;
15466
15467 msdosdjgpp*)
15468 # Just because we use GCC doesn't mean we suddenly get shared libraries
15469 # on systems that don't support them.
15470 lt_prog_compiler_can_build_shared_GCJ=no
15471 enable_shared=no
15472 ;;
15473
15474 sysv4*MP*)
15475 if test -d /usr/nec; then
15476 lt_prog_compiler_pic_GCJ=-Kconform_pic
15477 fi
15478 ;;
15479
15480 hpux*)
15481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15482 # not for PA HP-UX.
15483 case "$host_cpu" in
15484 hppa*64*|ia64*)
15485 # +Z the default
15486 ;;
15487 *)
15488 lt_prog_compiler_pic_GCJ='-fPIC'
15489 ;;
15490 esac
15491 ;;
15492
15493 *)
15494 lt_prog_compiler_pic_GCJ='-fPIC'
15495 ;;
15496 esac
15497 else
15498 # PORTME Check for flag to pass linker flags through the system compiler.
15499 case $host_os in
15500 aix*)
15501 lt_prog_compiler_wl_GCJ='-Wl,'
15502 if test "$host_cpu" = ia64; then
15503 # AIX 5 now supports IA64 processor
15504 lt_prog_compiler_static_GCJ='-Bstatic'
15505 else
15506 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15507 fi
15508 ;;
15509
15510 mingw* | pw32* | os2*)
15511 # This hack is so that the source file can tell whether it is being
15512 # built for inclusion in a dll (and should export symbols for example).
15513 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15514 ;;
15515
15516 hpux9* | hpux10* | hpux11*)
15517 lt_prog_compiler_wl_GCJ='-Wl,'
15518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15519 # not for PA HP-UX.
15520 case "$host_cpu" in
15521 hppa*64*|ia64*)
15522 # +Z the default
15523 ;;
15524 *)
15525 lt_prog_compiler_pic_GCJ='+Z'
15526 ;;
15527 esac
15528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15529 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15530 ;;
15531
15532 irix5* | irix6* | nonstopux*)
15533 lt_prog_compiler_wl_GCJ='-Wl,'
15534 # PIC (with -KPIC) is the default.
15535 lt_prog_compiler_static_GCJ='-non_shared'
15536 ;;
15537
15538 newsos6)
15539 lt_prog_compiler_pic_GCJ='-KPIC'
15540 lt_prog_compiler_static_GCJ='-Bstatic'
15541 ;;
15542
15543 linux*)
15544 case $CC in
15545 icc* | ecc*)
15546 lt_prog_compiler_wl_GCJ='-Wl,'
15547 lt_prog_compiler_pic_GCJ='-KPIC'
15548 lt_prog_compiler_static_GCJ='-static'
15549 ;;
15550 ccc*)
15551 lt_prog_compiler_wl_GCJ='-Wl,'
15552 # All Alpha code is PIC.
15553 lt_prog_compiler_static_GCJ='-non_shared'
15554 ;;
15555 esac
15556 ;;
15557
15558 osf3* | osf4* | osf5*)
15559 lt_prog_compiler_wl_GCJ='-Wl,'
15560 # All OSF/1 code is PIC.
15561 lt_prog_compiler_static_GCJ='-non_shared'
15562 ;;
15563
15564 sco3.2v5*)
15565 lt_prog_compiler_pic_GCJ='-Kpic'
15566 lt_prog_compiler_static_GCJ='-dn'
15567 ;;
15568
15569 solaris*)
15570 lt_prog_compiler_wl_GCJ='-Wl,'
15571 lt_prog_compiler_pic_GCJ='-KPIC'
15572 lt_prog_compiler_static_GCJ='-Bstatic'
15573 ;;
15574
15575 sunos4*)
15576 lt_prog_compiler_wl_GCJ='-Qoption ld '
15577 lt_prog_compiler_pic_GCJ='-PIC'
15578 lt_prog_compiler_static_GCJ='-Bstatic'
15579 ;;
15580
15581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15582 lt_prog_compiler_wl_GCJ='-Wl,'
15583 lt_prog_compiler_pic_GCJ='-KPIC'
15584 lt_prog_compiler_static_GCJ='-Bstatic'
15585 ;;
15586
15587 sysv4*MP*)
15588 if test -d /usr/nec ;then
15589 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15590 lt_prog_compiler_static_GCJ='-Bstatic'
15591 fi
15592 ;;
15593
15594 uts4*)
15595 lt_prog_compiler_pic_GCJ='-pic'
15596 lt_prog_compiler_static_GCJ='-Bstatic'
15597 ;;
15598
15599 *)
15600 lt_prog_compiler_can_build_shared_GCJ=no
15601 ;;
15602 esac
15603 fi
15604
15605 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15606 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15607
15608 #
15609 # Check to make sure the PIC flag actually works.
15610 #
15611 if test -n "$lt_prog_compiler_pic_GCJ"; then
15612
15613 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15614 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15615 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 else
15618 lt_prog_compiler_pic_works_GCJ=no
15619 ac_outfile=conftest.$ac_objext
15620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15621 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15622 # Insert the option either (1) after the last *FLAGS variable, or
15623 # (2) before a word containing "conftest.", or (3) at the end.
15624 # Note that $ac_compile itself does not contain backslashes and begins
15625 # with a dollar sign (not a hyphen), so the echo should work correctly.
15626 # The option is referenced via a variable to avoid confusing sed.
15627 lt_compile=`echo "$ac_compile" | $SED \
15628 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15630 -e 's:$: $lt_compiler_flag:'`
15631 (eval echo "\"\$as_me:15631: $lt_compile\"" >&5)
15632 (eval "$lt_compile" 2>conftest.err)
15633 ac_status=$?
15634 cat conftest.err >&5
15635 echo "$as_me:15635: \$? = $ac_status" >&5
15636 if (exit $ac_status) && test -s "$ac_outfile"; then
15637 # The compiler can only warn and ignore the option if not recognized
15638 # So say no if there are warnings
15639 if test ! -s conftest.err; then
15640 lt_prog_compiler_pic_works_GCJ=yes
15641 fi
15642 fi
15643 $rm conftest*
15644
15645 fi
15646 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15647 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15648
15649 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15650 case $lt_prog_compiler_pic_GCJ in
15651 "" | " "*) ;;
15652 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15653 esac
15654 else
15655 lt_prog_compiler_pic_GCJ=
15656 lt_prog_compiler_can_build_shared_GCJ=no
15657 fi
15658
15659 fi
15660 case "$host_os" in
15661 # For platforms which do not support PIC, -DPIC is meaningless:
15662 *djgpp*)
15663 lt_prog_compiler_pic_GCJ=
15664 ;;
15665 *)
15666 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15667 ;;
15668 esac
15669
15670 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15671 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15672 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 lt_cv_prog_compiler_c_o_GCJ=no
15676 $rm -r conftest 2>/dev/null
15677 mkdir conftest
15678 cd conftest
15679 mkdir out
15680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15681
15682 lt_compiler_flag="-o out/conftest2.$ac_objext"
15683 # Insert the option either (1) after the last *FLAGS variable, or
15684 # (2) before a word containing "conftest.", or (3) at the end.
15685 # Note that $ac_compile itself does not contain backslashes and begins
15686 # with a dollar sign (not a hyphen), so the echo should work correctly.
15687 lt_compile=`echo "$ac_compile" | $SED \
15688 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15690 -e 's:$: $lt_compiler_flag:'`
15691 (eval echo "\"\$as_me:15691: $lt_compile\"" >&5)
15692 (eval "$lt_compile" 2>out/conftest.err)
15693 ac_status=$?
15694 cat out/conftest.err >&5
15695 echo "$as_me:15695: \$? = $ac_status" >&5
15696 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15697 then
15698 # The compiler can only warn and ignore the option if not recognized
15699 # So say no if there are warnings
15700 if test ! -s out/conftest.err; then
15701 lt_cv_prog_compiler_c_o_GCJ=yes
15702 fi
15703 fi
15704 chmod u+w .
15705 $rm conftest*
15706 # SGI C++ compiler will create directory out/ii_files/ for
15707 # template instantiation
15708 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15709 $rm out/* && rmdir out
15710 cd ..
15711 rmdir conftest
15712 $rm conftest*
15713
15714 fi
15715 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15716 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15717
15718
15719 hard_links="nottested"
15720 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15721 # do not overwrite the value of need_locks provided by the user
15722 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15723 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15724 hard_links=yes
15725 $rm conftest*
15726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15727 touch conftest.a
15728 ln conftest.a conftest.b 2>&5 || hard_links=no
15729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15730 echo "$as_me:$LINENO: result: $hard_links" >&5
15731 echo "${ECHO_T}$hard_links" >&6
15732 if test "$hard_links" = no; then
15733 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15734 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15735 need_locks=warn
15736 fi
15737 else
15738 need_locks=no
15739 fi
15740
15741 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15742 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15743
15744 runpath_var=
15745 allow_undefined_flag_GCJ=
15746 enable_shared_with_static_runtimes_GCJ=no
15747 archive_cmds_GCJ=
15748 archive_expsym_cmds_GCJ=
15749 old_archive_From_new_cmds_GCJ=
15750 old_archive_from_expsyms_cmds_GCJ=
15751 export_dynamic_flag_spec_GCJ=
15752 whole_archive_flag_spec_GCJ=
15753 thread_safe_flag_spec_GCJ=
15754 hardcode_libdir_flag_spec_GCJ=
15755 hardcode_libdir_flag_spec_ld_GCJ=
15756 hardcode_libdir_separator_GCJ=
15757 hardcode_direct_GCJ=no
15758 hardcode_minus_L_GCJ=no
15759 hardcode_shlibpath_var_GCJ=unsupported
15760 link_all_deplibs_GCJ=unknown
15761 hardcode_automatic_GCJ=no
15762 module_cmds_GCJ=
15763 module_expsym_cmds_GCJ=
15764 always_export_symbols_GCJ=no
15765 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15766 # include_expsyms should be a list of space-separated symbols to be *always*
15767 # included in the symbol list
15768 include_expsyms_GCJ=
15769 # exclude_expsyms can be an extended regexp of symbols to exclude
15770 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15771 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15772 # as well as any symbol that contains `d'.
15773 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15774 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15775 # platforms (ab)use it in PIC code, but their linkers get confused if
15776 # the symbol is explicitly referenced. Since portable code cannot
15777 # rely on this symbol name, it's probably fine to never include it in
15778 # preloaded symbol tables.
15779 extract_expsyms_cmds=
15780
15781 case $host_os in
15782 cygwin* | mingw* | pw32*)
15783 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15784 # When not using gcc, we currently assume that we are using
15785 # Microsoft Visual C++.
15786 if test "$GCC" != yes; then
15787 with_gnu_ld=no
15788 fi
15789 ;;
15790 openbsd*)
15791 with_gnu_ld=no
15792 ;;
15793 esac
15794
15795 ld_shlibs_GCJ=yes
15796 if test "$with_gnu_ld" = yes; then
15797 # If archive_cmds runs LD, not CC, wlarc should be empty
15798 wlarc='${wl}'
15799
15800 # See if GNU ld supports shared libraries.
15801 case $host_os in
15802 aix3* | aix4* | aix5*)
15803 # On AIX/PPC, the GNU linker is very broken
15804 if test "$host_cpu" != ia64; then
15805 ld_shlibs_GCJ=no
15806 cat <<EOF 1>&2
15807
15808 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15809 *** to be unable to reliably create shared libraries on AIX.
15810 *** Therefore, libtool is disabling shared libraries support. If you
15811 *** really care for shared libraries, you may want to modify your PATH
15812 *** so that a non-GNU linker is found, and then restart.
15813
15814 EOF
15815 fi
15816 ;;
15817
15818 amigaos*)
15819 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15821 hardcode_minus_L_GCJ=yes
15822
15823 # Samuel A. Falvo II <[email protected]> reports
15824 # that the semantics of dynamic libraries on AmigaOS, at least up
15825 # to version 4, is to share data among multiple programs linked
15826 # with the same dynamic library. Since this doesn't match the
15827 # behavior of shared libraries on other platforms, we can't use
15828 # them.
15829 ld_shlibs_GCJ=no
15830 ;;
15831
15832 beos*)
15833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15834 allow_undefined_flag_GCJ=unsupported
15835 # Joseph Beckenbach <[email protected]> says some releases of gcc
15836 # support --undefined. This deserves some investigation. FIXME
15837 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15838 else
15839 ld_shlibs_GCJ=no
15840 fi
15841 ;;
15842
15843 cygwin* | mingw* | pw32*)
15844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15845 # as there is no search path for DLLs.
15846 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15847 allow_undefined_flag_GCJ=unsupported
15848 always_export_symbols_GCJ=no
15849 enable_shared_with_static_runtimes_GCJ=yes
15850 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15851
15852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15853 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15854 # If the export-symbols file already is a .def file (1st line
15855 # is EXPORTS), use it as is; otherwise, prepend...
15856 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15857 cp $export_symbols $output_objdir/$soname.def;
15858 else
15859 echo EXPORTS > $output_objdir/$soname.def;
15860 cat $export_symbols >> $output_objdir/$soname.def;
15861 fi~
15862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15863 else
15864 ld_shlibs=no
15865 fi
15866 ;;
15867
15868 netbsd* | knetbsd*-gnu)
15869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15870 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15871 wlarc=
15872 else
15873 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15875 fi
15876 ;;
15877
15878 solaris* | sysv5*)
15879 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15880 ld_shlibs_GCJ=no
15881 cat <<EOF 1>&2
15882
15883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15884 *** create shared libraries on Solaris systems. Therefore, libtool
15885 *** is disabling shared libraries support. We urge you to upgrade GNU
15886 *** binutils to release 2.9.1 or newer. Another option is to modify
15887 *** your PATH or compiler configuration so that the native linker is
15888 *** used, and then restart.
15889
15890 EOF
15891 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15892 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15893 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15894 else
15895 ld_shlibs_GCJ=no
15896 fi
15897 ;;
15898
15899 sunos4*)
15900 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15901 wlarc=
15902 hardcode_direct_GCJ=yes
15903 hardcode_shlibpath_var_GCJ=no
15904 ;;
15905
15906 linux*)
15907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15908 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15909 archive_cmds_GCJ="$tmp_archive_cmds"
15910 supports_anon_versioning=no
15911 case `$LD -v 2>/dev/null` in
15912 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15915 *\ 2.11.*) ;; # other 2.11 versions
15916 *) supports_anon_versioning=yes ;;
15917 esac
15918 if test $supports_anon_versioning = yes; then
15919 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15921 $echo "local: *; };" >> $output_objdir/$libname.ver~
15922 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15923 else
15924 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15925 fi
15926 link_all_deplibs_GCJ=no
15927 else
15928 ld_shlibs_GCJ=no
15929 fi
15930 ;;
15931
15932 *)
15933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15934 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15935 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15936 else
15937 ld_shlibs_GCJ=no
15938 fi
15939 ;;
15940 esac
15941
15942 if test "$ld_shlibs_GCJ" = yes; then
15943 runpath_var=LD_RUN_PATH
15944 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15945 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15946 # ancient GNU ld didn't support --whole-archive et. al.
15947 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15948 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15949 else
15950 whole_archive_flag_spec_GCJ=
15951 fi
15952 fi
15953 else
15954 # PORTME fill in a description of your system's linker (not GNU ld)
15955 case $host_os in
15956 aix3*)
15957 allow_undefined_flag_GCJ=unsupported
15958 always_export_symbols_GCJ=yes
15959 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15960 # Note: this linker hardcodes the directories in LIBPATH if there
15961 # are no directories specified by -L.
15962 hardcode_minus_L_GCJ=yes
15963 if test "$GCC" = yes && test -z "$link_static_flag"; then
15964 # Neither direct hardcoding nor static linking is supported with a
15965 # broken collect2.
15966 hardcode_direct_GCJ=unsupported
15967 fi
15968 ;;
15969
15970 aix4* | aix5*)
15971 if test "$host_cpu" = ia64; then
15972 # On IA64, the linker does run time linking by default, so we don't
15973 # have to do anything special.
15974 aix_use_runtimelinking=no
15975 exp_sym_flag='-Bexport'
15976 no_entry_flag=""
15977 else
15978 # If we're using GNU nm, then we don't want the "-C" option.
15979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15981 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15982 else
15983 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15984 fi
15985 aix_use_runtimelinking=no
15986
15987 # Test if we are trying to use run time linking or normal
15988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15989 # need to do runtime linking.
15990 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15991 for ld_flag in $LDFLAGS; do
15992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15993 aix_use_runtimelinking=yes
15994 break
15995 fi
15996 done
15997 esac
15998
15999 exp_sym_flag='-bexport'
16000 no_entry_flag='-bnoentry'
16001 fi
16002
16003 # When large executables or shared objects are built, AIX ld can
16004 # have problems creating the table of contents. If linking a library
16005 # or program results in "error TOC overflow" add -mminimal-toc to
16006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16008
16009 archive_cmds_GCJ=''
16010 hardcode_direct_GCJ=yes
16011 hardcode_libdir_separator_GCJ=':'
16012 link_all_deplibs_GCJ=yes
16013
16014 if test "$GCC" = yes; then
16015 case $host_os in aix4.012|aix4.012.*)
16016 # We only want to do this on AIX 4.2 and lower, the check
16017 # below for broken collect2 doesn't work under 4.3+
16018 collect2name=`${CC} -print-prog-name=collect2`
16019 if test -f "$collect2name" && \
16020 strings "$collect2name" | grep resolve_lib_name >/dev/null
16021 then
16022 # We have reworked collect2
16023 hardcode_direct_GCJ=yes
16024 else
16025 # We have old collect2
16026 hardcode_direct_GCJ=unsupported
16027 # It fails to find uninstalled libraries when the uninstalled
16028 # path is not listed in the libpath. Setting hardcode_minus_L
16029 # to unsupported forces relinking
16030 hardcode_minus_L_GCJ=yes
16031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16032 hardcode_libdir_separator_GCJ=
16033 fi
16034 esac
16035 shared_flag='-shared'
16036 else
16037 # not using gcc
16038 if test "$host_cpu" = ia64; then
16039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16040 # chokes on -Wl,-G. The following line is correct:
16041 shared_flag='-G'
16042 else
16043 if test "$aix_use_runtimelinking" = yes; then
16044 shared_flag='${wl}-G'
16045 else
16046 shared_flag='${wl}-bM:SRE'
16047 fi
16048 fi
16049 fi
16050
16051 # It seems that -bexpall does not export symbols beginning with
16052 # underscore (_), so it is better to generate a list of symbols to export.
16053 always_export_symbols_GCJ=yes
16054 if test "$aix_use_runtimelinking" = yes; then
16055 # Warning - without using the other runtime loading flags (-brtl),
16056 # -berok will link without error, but may produce a broken library.
16057 allow_undefined_flag_GCJ='-berok'
16058 # Determine the default libpath from the value encoded in an empty executable.
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065
16066 int
16067 main ()
16068 {
16069
16070 ;
16071 return 0;
16072 }
16073 _ACEOF
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16076 (eval $ac_link) 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
16083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095
16096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16097 }'`
16098 # Check for a 64-bit object if we didn't find anything.
16099 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16100 }'`; fi
16101 else
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 fi
16106 rm -f conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16109
16110 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16111 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16112 else
16113 if test "$host_cpu" = ia64; then
16114 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16115 allow_undefined_flag_GCJ="-z nodefs"
16116 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16117 else
16118 # Determine the default libpath from the value encoded in an empty executable.
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125
16126 int
16127 main ()
16128 {
16129
16130 ;
16131 return 0;
16132 }
16133 _ACEOF
16134 rm -f conftest.$ac_objext conftest$ac_exeext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16136 (eval $ac_link) 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try='test -s conftest$ac_exeext'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155
16156 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16157 }'`
16158 # Check for a 64-bit object if we didn't find anything.
16159 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16160 }'`; fi
16161 else
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 fi
16166 rm -f conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16169
16170 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16171 # Warning - without using the other run time loading flags,
16172 # -berok will link without error, but may produce a broken library.
16173 no_undefined_flag_GCJ=' ${wl}-bernotok'
16174 allow_undefined_flag_GCJ=' ${wl}-berok'
16175 # -bexpall does not export symbols beginning with underscore (_)
16176 always_export_symbols_GCJ=yes
16177 # Exported symbols can be pulled into shared objects from archives
16178 whole_archive_flag_spec_GCJ=' '
16179 archive_cmds_need_lc_GCJ=yes
16180 # This is similar to how AIX traditionally builds it's shared libraries.
16181 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16182 fi
16183 fi
16184 ;;
16185
16186 amigaos*)
16187 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16189 hardcode_minus_L_GCJ=yes
16190 # see comment about different semantics on the GNU ld section
16191 ld_shlibs_GCJ=no
16192 ;;
16193
16194 bsdi4*)
16195 export_dynamic_flag_spec_GCJ=-rdynamic
16196 ;;
16197
16198 cygwin* | mingw* | pw32*)
16199 # When not using gcc, we currently assume that we are using
16200 # Microsoft Visual C++.
16201 # hardcode_libdir_flag_spec is actually meaningless, as there is
16202 # no search path for DLLs.
16203 hardcode_libdir_flag_spec_GCJ=' '
16204 allow_undefined_flag_GCJ=unsupported
16205 # Tell ltmain to make .lib files, not .a files.
16206 libext=lib
16207 # Tell ltmain to make .dll files, not .so files.
16208 shrext_cmds=".dll"
16209 # FIXME: Setting linknames here is a bad hack.
16210 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16211 # The linker will automatically build a .lib file if we build a DLL.
16212 old_archive_From_new_cmds_GCJ='true'
16213 # FIXME: Should let the user specify the lib program.
16214 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16215 fix_srcfile_path='`cygpath -w "$srcfile"`'
16216 enable_shared_with_static_runtimes_GCJ=yes
16217 ;;
16218
16219 darwin* | rhapsody*)
16220 if test "$GXX" = yes ; then
16221 archive_cmds_need_lc_GCJ=no
16222 case "$host_os" in
16223 rhapsody* | darwin1.[012])
16224 allow_undefined_flag_GCJ='-undefined suppress'
16225 ;;
16226 *) # Darwin 1.3 on
16227 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16228 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16229 else
16230 case ${MACOSX_DEPLOYMENT_TARGET} in
16231 10.[012])
16232 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16233 ;;
16234 10.*)
16235 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16236 ;;
16237 esac
16238 fi
16239 ;;
16240 esac
16241 lt_int_apple_cc_single_mod=no
16242 output_verbose_link_cmd='echo'
16243 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16244 lt_int_apple_cc_single_mod=yes
16245 fi
16246 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16247 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16248 else
16249 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16250 fi
16251 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16252 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16253 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16254 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16255 else
16256 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16257 fi
16258 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16259 hardcode_direct_GCJ=no
16260 hardcode_automatic_GCJ=yes
16261 hardcode_shlibpath_var_GCJ=unsupported
16262 whole_archive_flag_spec_GCJ='-all_load $convenience'
16263 link_all_deplibs_GCJ=yes
16264 else
16265 ld_shlibs_GCJ=no
16266 fi
16267 ;;
16268
16269 dgux*)
16270 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16272 hardcode_shlibpath_var_GCJ=no
16273 ;;
16274
16275 freebsd1*)
16276 ld_shlibs_GCJ=no
16277 ;;
16278
16279 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16280 # support. Future versions do this automatically, but an explicit c++rt0.o
16281 # does not break anything, and helps significantly (at the cost of a little
16282 # extra space).
16283 freebsd2.2*)
16284 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16285 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16286 hardcode_direct_GCJ=yes
16287 hardcode_shlibpath_var_GCJ=no
16288 ;;
16289
16290 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16291 freebsd2*)
16292 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16293 hardcode_direct_GCJ=yes
16294 hardcode_minus_L_GCJ=yes
16295 hardcode_shlibpath_var_GCJ=no
16296 ;;
16297
16298 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16299 freebsd* | kfreebsd*-gnu)
16300 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16301 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16302 hardcode_direct_GCJ=yes
16303 hardcode_shlibpath_var_GCJ=no
16304 ;;
16305
16306 hpux9*)
16307 if test "$GCC" = yes; then
16308 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16309 else
16310 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16311 fi
16312 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16313 hardcode_libdir_separator_GCJ=:
16314 hardcode_direct_GCJ=yes
16315
16316 # hardcode_minus_L: Not really in the search PATH,
16317 # but as the default location of the library.
16318 hardcode_minus_L_GCJ=yes
16319 export_dynamic_flag_spec_GCJ='${wl}-E'
16320 ;;
16321
16322 hpux10* | hpux11*)
16323 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16324 case "$host_cpu" in
16325 hppa*64*|ia64*)
16326 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16327 ;;
16328 *)
16329 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16330 ;;
16331 esac
16332 else
16333 case "$host_cpu" in
16334 hppa*64*|ia64*)
16335 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16336 ;;
16337 *)
16338 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16339 ;;
16340 esac
16341 fi
16342 if test "$with_gnu_ld" = no; then
16343 case "$host_cpu" in
16344 hppa*64*)
16345 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16346 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16347 hardcode_libdir_separator_GCJ=:
16348 hardcode_direct_GCJ=no
16349 hardcode_shlibpath_var_GCJ=no
16350 ;;
16351 ia64*)
16352 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16353 hardcode_direct_GCJ=no
16354 hardcode_shlibpath_var_GCJ=no
16355
16356 # hardcode_minus_L: Not really in the search PATH,
16357 # but as the default location of the library.
16358 hardcode_minus_L_GCJ=yes
16359 ;;
16360 *)
16361 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16362 hardcode_libdir_separator_GCJ=:
16363 hardcode_direct_GCJ=yes
16364 export_dynamic_flag_spec_GCJ='${wl}-E'
16365
16366 # hardcode_minus_L: Not really in the search PATH,
16367 # but as the default location of the library.
16368 hardcode_minus_L_GCJ=yes
16369 ;;
16370 esac
16371 fi
16372 ;;
16373
16374 irix5* | irix6* | nonstopux*)
16375 if test "$GCC" = yes; then
16376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16377 else
16378 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16379 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16380 fi
16381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16382 hardcode_libdir_separator_GCJ=:
16383 link_all_deplibs_GCJ=yes
16384 ;;
16385
16386 netbsd* | knetbsd*-gnu)
16387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16389 else
16390 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16391 fi
16392 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16393 hardcode_direct_GCJ=yes
16394 hardcode_shlibpath_var_GCJ=no
16395 ;;
16396
16397 newsos6)
16398 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_direct_GCJ=yes
16400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16401 hardcode_libdir_separator_GCJ=:
16402 hardcode_shlibpath_var_GCJ=no
16403 ;;
16404
16405 openbsd*)
16406 hardcode_direct_GCJ=yes
16407 hardcode_shlibpath_var_GCJ=no
16408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16409 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16410 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16411 export_dynamic_flag_spec_GCJ='${wl}-E'
16412 else
16413 case $host_os in
16414 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16415 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16416 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16417 ;;
16418 *)
16419 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16420 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16421 ;;
16422 esac
16423 fi
16424 ;;
16425
16426 os2*)
16427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16428 hardcode_minus_L_GCJ=yes
16429 allow_undefined_flag_GCJ=unsupported
16430 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16431 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16432 ;;
16433
16434 osf3*)
16435 if test "$GCC" = yes; then
16436 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16437 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16438 else
16439 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16440 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16441 fi
16442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16443 hardcode_libdir_separator_GCJ=:
16444 ;;
16445
16446 osf4* | osf5*) # as osf3* with the addition of -msym flag
16447 if test "$GCC" = yes; then
16448 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16449 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16451 else
16452 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16453 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16454 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16455 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16456
16457 # Both c and cxx compiler support -rpath directly
16458 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16459 fi
16460 hardcode_libdir_separator_GCJ=:
16461 ;;
16462
16463 sco3.2v5*)
16464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465 hardcode_shlibpath_var_GCJ=no
16466 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16467 runpath_var=LD_RUN_PATH
16468 hardcode_runpath_var=yes
16469 ;;
16470
16471 solaris*)
16472 no_undefined_flag_GCJ=' -z text'
16473 if test "$GCC" = yes; then
16474 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16475 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16476 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16477 else
16478 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16479 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16480 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16481 fi
16482 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16483 hardcode_shlibpath_var_GCJ=no
16484 case $host_os in
16485 solaris2.[0-5] | solaris2.[0-5].*) ;;
16486 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16487 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16488 esac
16489 link_all_deplibs_GCJ=yes
16490 ;;
16491
16492 sunos4*)
16493 if test "x$host_vendor" = xsequent; then
16494 # Use $CC to link under sequent, because it throws in some extra .o
16495 # files that make .init and .fini sections work.
16496 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16497 else
16498 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16499 fi
16500 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16501 hardcode_direct_GCJ=yes
16502 hardcode_minus_L_GCJ=yes
16503 hardcode_shlibpath_var_GCJ=no
16504 ;;
16505
16506 sysv4)
16507 case $host_vendor in
16508 sni)
16509 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510 hardcode_direct_GCJ=yes # is this really true???
16511 ;;
16512 siemens)
16513 ## LD is ld it makes a PLAMLIB
16514 ## CC just makes a GrossModule.
16515 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16516 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16517 hardcode_direct_GCJ=no
16518 ;;
16519 motorola)
16520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16522 ;;
16523 esac
16524 runpath_var='LD_RUN_PATH'
16525 hardcode_shlibpath_var_GCJ=no
16526 ;;
16527
16528 sysv4.3*)
16529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_shlibpath_var_GCJ=no
16531 export_dynamic_flag_spec_GCJ='-Bexport'
16532 ;;
16533
16534 sysv4*MP*)
16535 if test -d /usr/nec; then
16536 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537 hardcode_shlibpath_var_GCJ=no
16538 runpath_var=LD_RUN_PATH
16539 hardcode_runpath_var=yes
16540 ld_shlibs_GCJ=yes
16541 fi
16542 ;;
16543
16544 sysv4.2uw2*)
16545 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_direct_GCJ=yes
16547 hardcode_minus_L_GCJ=no
16548 hardcode_shlibpath_var_GCJ=no
16549 hardcode_runpath_var=yes
16550 runpath_var=LD_RUN_PATH
16551 ;;
16552
16553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16554 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16555 if test "$GCC" = yes; then
16556 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16557 else
16558 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16559 fi
16560 runpath_var='LD_RUN_PATH'
16561 hardcode_shlibpath_var_GCJ=no
16562 ;;
16563
16564 sysv5*)
16565 no_undefined_flag_GCJ=' -z text'
16566 # $CC -shared without GNU ld will not create a library from C++
16567 # object files and a static libstdc++, better avoid it by now
16568 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16569 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16571 hardcode_libdir_flag_spec_GCJ=
16572 hardcode_shlibpath_var_GCJ=no
16573 runpath_var='LD_RUN_PATH'
16574 ;;
16575
16576 uts4*)
16577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579 hardcode_shlibpath_var_GCJ=no
16580 ;;
16581
16582 *)
16583 ld_shlibs_GCJ=no
16584 ;;
16585 esac
16586 fi
16587
16588 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16589 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16590 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16591
16592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16593 if test "$GCC" = yes; then
16594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16595 fi
16596
16597 #
16598 # Do we need to explicitly link libc?
16599 #
16600 case "x$archive_cmds_need_lc_GCJ" in
16601 x|xyes)
16602 # Assume -lc should be added
16603 archive_cmds_need_lc_GCJ=yes
16604
16605 if test "$enable_shared" = yes && test "$GCC" = yes; then
16606 case $archive_cmds_GCJ in
16607 *'~'*)
16608 # FIXME: we may have to deal with multi-command sequences.
16609 ;;
16610 '$CC '*)
16611 # Test whether the compiler implicitly links with -lc since on some
16612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16613 # to ld, don't add -lc before -lgcc.
16614 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16615 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16616 $rm conftest*
16617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16618
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } 2>conftest.err; then
16624 soname=conftest
16625 lib=conftest
16626 libobjs=conftest.$ac_objext
16627 deplibs=
16628 wl=$lt_prog_compiler_wl_GCJ
16629 compiler_flags=-v
16630 linker_flags=-v
16631 verstring=
16632 output_objdir=.
16633 libname=conftest
16634 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16635 allow_undefined_flag_GCJ=
16636 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16637 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }
16641 then
16642 archive_cmds_need_lc_GCJ=no
16643 else
16644 archive_cmds_need_lc_GCJ=yes
16645 fi
16646 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16647 else
16648 cat conftest.err 1>&5
16649 fi
16650 $rm conftest*
16651 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16652 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16653 ;;
16654 esac
16655 fi
16656 ;;
16657 esac
16658
16659 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16660 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16661 library_names_spec=
16662 libname_spec='lib$name'
16663 soname_spec=
16664 shrext_cmds=".so"
16665 postinstall_cmds=
16666 postuninstall_cmds=
16667 finish_cmds=
16668 finish_eval=
16669 shlibpath_var=
16670 shlibpath_overrides_runpath=unknown
16671 version_type=none
16672 dynamic_linker="$host_os ld.so"
16673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16674 if test "$GCC" = yes; then
16675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16676 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16677 # if the path contains ";" then we assume it to be the separator
16678 # otherwise default to the standard path separator (i.e. ":") - it is
16679 # assumed that no part of a normal pathname contains ";" but that should
16680 # okay in the real world where ";" in dirpaths is itself problematic.
16681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16682 else
16683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16684 fi
16685 else
16686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16687 fi
16688 need_lib_prefix=unknown
16689 hardcode_into_libs=no
16690
16691 # when you set need_version to no, make sure it does not cause -set_version
16692 # flags to be left without arguments
16693 need_version=unknown
16694
16695 case $host_os in
16696 aix3*)
16697 version_type=linux
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16699 shlibpath_var=LIBPATH
16700
16701 # AIX 3 has no versioning support, so we append a major version to the name.
16702 soname_spec='${libname}${release}${shared_ext}$major'
16703 ;;
16704
16705 aix4* | aix5*)
16706 version_type=linux
16707 need_lib_prefix=no
16708 need_version=no
16709 hardcode_into_libs=yes
16710 if test "$host_cpu" = ia64; then
16711 # AIX 5 supports IA64
16712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16713 shlibpath_var=LD_LIBRARY_PATH
16714 else
16715 # With GCC up to 2.95.x, collect2 would create an import file
16716 # for dependence libraries. The import file would start with
16717 # the line `#! .'. This would cause the generated library to
16718 # depend on `.', always an invalid library. This was fixed in
16719 # development snapshots of GCC prior to 3.0.
16720 case $host_os in
16721 aix4 | aix4.[01] | aix4.[01].*)
16722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16723 echo ' yes '
16724 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16725 :
16726 else
16727 can_build_shared=no
16728 fi
16729 ;;
16730 esac
16731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16732 # soname into executable. Probably we can add versioning support to
16733 # collect2, so additional links can be useful in future.
16734 if test "$aix_use_runtimelinking" = yes; then
16735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16736 # instead of lib<name>.a to let people know that these are not
16737 # typical AIX shared libraries.
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 else
16740 # We preserve .a as extension for shared libraries through AIX4.2
16741 # and later when we are not doing run time linking.
16742 library_names_spec='${libname}${release}.a $libname.a'
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 fi
16745 shlibpath_var=LIBPATH
16746 fi
16747 ;;
16748
16749 amigaos*)
16750 library_names_spec='$libname.ixlibrary $libname.a'
16751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16752 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'
16753 ;;
16754
16755 beos*)
16756 library_names_spec='${libname}${shared_ext}'
16757 dynamic_linker="$host_os ld.so"
16758 shlibpath_var=LIBRARY_PATH
16759 ;;
16760
16761 bsdi4*)
16762 version_type=linux
16763 need_version=no
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 soname_spec='${libname}${release}${shared_ext}$major'
16766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16767 shlibpath_var=LD_LIBRARY_PATH
16768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16770 # the default ld.so.conf also contains /usr/contrib/lib and
16771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16772 # libtool to hard-code these into programs
16773 ;;
16774
16775 cygwin* | mingw* | pw32*)
16776 version_type=windows
16777 shrext_cmds=".dll"
16778 need_version=no
16779 need_lib_prefix=no
16780
16781 case $GCC,$host_os in
16782 yes,cygwin* | yes,mingw* | yes,pw32*)
16783 library_names_spec='$libname.dll.a'
16784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16785 postinstall_cmds='base_file=`basename \${file}`~
16786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16787 dldir=$destdir/`dirname \$dlpath`~
16788 test -d \$dldir || mkdir -p \$dldir~
16789 $install_prog $dir/$dlname \$dldir/$dlname'
16790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16791 dlpath=$dir/\$dldll~
16792 $rm \$dlpath'
16793 shlibpath_overrides_runpath=yes
16794
16795 case $host_os in
16796 cygwin*)
16797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16800 ;;
16801 mingw*)
16802 # MinGW DLLs use traditional 'lib' prefix
16803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16805 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16806 # It is most probably a Windows format PATH printed by
16807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16808 # path with ; separators, and with drive letters. We can handle the
16809 # drive letters (cygwin fileutils understands them), so leave them,
16810 # especially as we might pass files found there to a mingw objdump,
16811 # which wouldn't understand a cygwinified path. Ahh.
16812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16813 else
16814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16815 fi
16816 ;;
16817 pw32*)
16818 # pw32 DLLs use 'pw' prefix rather than 'lib'
16819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16820 ;;
16821 esac
16822 ;;
16823
16824 *)
16825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16826 ;;
16827 esac
16828 dynamic_linker='Win32 ld.exe'
16829 # FIXME: first we should search . and the directory the executable is in
16830 shlibpath_var=PATH
16831 ;;
16832
16833 darwin* | rhapsody*)
16834 dynamic_linker="$host_os dyld"
16835 version_type=darwin
16836 need_lib_prefix=no
16837 need_version=no
16838 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16839 soname_spec='${libname}${release}${major}$shared_ext'
16840 shlibpath_overrides_runpath=yes
16841 shlibpath_var=DYLD_LIBRARY_PATH
16842 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16843 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16844 if test "$GCC" = yes; then
16845 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16846 else
16847 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16848 fi
16849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16850 ;;
16851
16852 dgux*)
16853 version_type=linux
16854 need_lib_prefix=no
16855 need_version=no
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16857 soname_spec='${libname}${release}${shared_ext}$major'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 ;;
16860
16861 freebsd1*)
16862 dynamic_linker=no
16863 ;;
16864
16865 kfreebsd*-gnu)
16866 version_type=linux
16867 need_lib_prefix=no
16868 need_version=no
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=no
16873 hardcode_into_libs=yes
16874 dynamic_linker='GNU ld.so'
16875 ;;
16876
16877 freebsd*)
16878 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16879 version_type=freebsd-$objformat
16880 case $version_type in
16881 freebsd-elf*)
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16883 need_version=no
16884 need_lib_prefix=no
16885 ;;
16886 freebsd-*)
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16888 need_version=yes
16889 ;;
16890 esac
16891 shlibpath_var=LD_LIBRARY_PATH
16892 case $host_os in
16893 freebsd2*)
16894 shlibpath_overrides_runpath=yes
16895 ;;
16896 freebsd3.01* | freebsdelf3.01*)
16897 shlibpath_overrides_runpath=yes
16898 hardcode_into_libs=yes
16899 ;;
16900 *) # from 3.2 on
16901 shlibpath_overrides_runpath=no
16902 hardcode_into_libs=yes
16903 ;;
16904 esac
16905 ;;
16906
16907 gnu*)
16908 version_type=linux
16909 need_lib_prefix=no
16910 need_version=no
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16912 soname_spec='${libname}${release}${shared_ext}$major'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 hardcode_into_libs=yes
16915 ;;
16916
16917 hpux9* | hpux10* | hpux11*)
16918 # Give a soname corresponding to the major version so that dld.sl refuses to
16919 # link against other versions.
16920 version_type=sunos
16921 need_lib_prefix=no
16922 need_version=no
16923 case "$host_cpu" in
16924 ia64*)
16925 shrext_cmds='.so'
16926 hardcode_into_libs=yes
16927 dynamic_linker="$host_os dld.so"
16928 shlibpath_var=LD_LIBRARY_PATH
16929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931 soname_spec='${libname}${release}${shared_ext}$major'
16932 if test "X$HPUX_IA64_MODE" = X32; then
16933 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16934 else
16935 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16936 fi
16937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16938 ;;
16939 hppa*64*)
16940 shrext_cmds='.sl'
16941 hardcode_into_libs=yes
16942 dynamic_linker="$host_os dld.sl"
16943 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946 soname_spec='${libname}${release}${shared_ext}$major'
16947 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16949 ;;
16950 *)
16951 shrext_cmds='.sl'
16952 dynamic_linker="$host_os dld.sl"
16953 shlibpath_var=SHLIB_PATH
16954 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 ;;
16958 esac
16959 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16960 postinstall_cmds='chmod 555 $lib'
16961 ;;
16962
16963 irix5* | irix6* | nonstopux*)
16964 case $host_os in
16965 nonstopux*) version_type=nonstopux ;;
16966 *)
16967 if test "$lt_cv_prog_gnu_ld" = yes; then
16968 version_type=linux
16969 else
16970 version_type=irix
16971 fi ;;
16972 esac
16973 need_lib_prefix=no
16974 need_version=no
16975 soname_spec='${libname}${release}${shared_ext}$major'
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16977 case $host_os in
16978 irix5* | nonstopux*)
16979 libsuff= shlibsuff=
16980 ;;
16981 *)
16982 case $LD in # libtool.m4 will add one of these switches to LD
16983 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16984 libsuff= shlibsuff= libmagic=32-bit;;
16985 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16986 libsuff=32 shlibsuff=N32 libmagic=N32;;
16987 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16988 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16989 *) libsuff= shlibsuff= libmagic=never-match;;
16990 esac
16991 ;;
16992 esac
16993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16994 shlibpath_overrides_runpath=no
16995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16997 hardcode_into_libs=yes
16998 ;;
16999
17000 # No shared lib support for Linux oldld, aout, or coff.
17001 linux*oldld* | linux*aout* | linux*coff*)
17002 dynamic_linker=no
17003 ;;
17004
17005 # This must be Linux ELF.
17006 linux*)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 shlibpath_overrides_runpath=no
17015 # This implies no fast_install, which is unacceptable.
17016 # Some rework will be needed to allow for fast_install
17017 # before this can be enabled.
17018 hardcode_into_libs=yes
17019
17020 # Append ld.so.conf contents to the search path
17021 if test -f /etc/ld.so.conf; then
17022 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17024 fi
17025
17026 # We used to test for /lib/ld.so.1 and disable shared libraries on
17027 # powerpc, because MkLinux only supported shared libraries with the
17028 # GNU dynamic linker. Since this was broken with cross compilers,
17029 # most powerpc-linux boxes support dynamic linking these days and
17030 # people can always --disable-shared, the test was removed, and we
17031 # assume the GNU/Linux dynamic linker is in use.
17032 dynamic_linker='GNU/Linux ld.so'
17033 ;;
17034
17035 knetbsd*-gnu)
17036 version_type=linux
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 shlibpath_var=LD_LIBRARY_PATH
17042 shlibpath_overrides_runpath=no
17043 hardcode_into_libs=yes
17044 dynamic_linker='GNU ld.so'
17045 ;;
17046
17047 netbsd*)
17048 version_type=sunos
17049 need_lib_prefix=no
17050 need_version=no
17051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17054 dynamic_linker='NetBSD (a.out) ld.so'
17055 else
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 dynamic_linker='NetBSD ld.elf_so'
17059 fi
17060 shlibpath_var=LD_LIBRARY_PATH
17061 shlibpath_overrides_runpath=yes
17062 hardcode_into_libs=yes
17063 ;;
17064
17065 newsos6)
17066 version_type=linux
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 shlibpath_overrides_runpath=yes
17070 ;;
17071
17072 nto-qnx*)
17073 version_type=linux
17074 need_lib_prefix=no
17075 need_version=no
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 shlibpath_var=LD_LIBRARY_PATH
17079 shlibpath_overrides_runpath=yes
17080 ;;
17081
17082 openbsd*)
17083 version_type=sunos
17084 need_lib_prefix=no
17085 need_version=yes
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17090 case $host_os in
17091 openbsd2.[89] | openbsd2.[89].*)
17092 shlibpath_overrides_runpath=no
17093 ;;
17094 *)
17095 shlibpath_overrides_runpath=yes
17096 ;;
17097 esac
17098 else
17099 shlibpath_overrides_runpath=yes
17100 fi
17101 ;;
17102
17103 os2*)
17104 libname_spec='$name'
17105 shrext_cmds=".dll"
17106 need_lib_prefix=no
17107 library_names_spec='$libname${shared_ext} $libname.a'
17108 dynamic_linker='OS/2 ld.exe'
17109 shlibpath_var=LIBPATH
17110 ;;
17111
17112 osf3* | osf4* | osf5*)
17113 version_type=osf
17114 need_lib_prefix=no
17115 need_version=no
17116 soname_spec='${libname}${release}${shared_ext}$major'
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 shlibpath_var=LD_LIBRARY_PATH
17119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17121 ;;
17122
17123 sco3.2v5*)
17124 version_type=osf
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 shlibpath_var=LD_LIBRARY_PATH
17128 ;;
17129
17130 solaris*)
17131 version_type=linux
17132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=yes
17138 hardcode_into_libs=yes
17139 # ldd complains unless libraries are executable
17140 postinstall_cmds='chmod +x $lib'
17141 ;;
17142
17143 sunos4*)
17144 version_type=sunos
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17149 if test "$with_gnu_ld" = yes; then
17150 need_lib_prefix=no
17151 fi
17152 need_version=yes
17153 ;;
17154
17155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17156 version_type=linux
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 case $host_vendor in
17161 sni)
17162 shlibpath_overrides_runpath=no
17163 need_lib_prefix=no
17164 export_dynamic_flag_spec='${wl}-Blargedynsym'
17165 runpath_var=LD_RUN_PATH
17166 ;;
17167 siemens)
17168 need_lib_prefix=no
17169 ;;
17170 motorola)
17171 need_lib_prefix=no
17172 need_version=no
17173 shlibpath_overrides_runpath=no
17174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17175 ;;
17176 esac
17177 ;;
17178
17179 sysv4*MP*)
17180 if test -d /usr/nec ;then
17181 version_type=linux
17182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17183 soname_spec='$libname${shared_ext}.$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 fi
17186 ;;
17187
17188 uts4*)
17189 version_type=linux
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 ;;
17194
17195 *)
17196 dynamic_linker=no
17197 ;;
17198 esac
17199 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17200 echo "${ECHO_T}$dynamic_linker" >&6
17201 test "$dynamic_linker" = no && can_build_shared=no
17202
17203 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17204 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17205 hardcode_action_GCJ=
17206 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17207 test -n "$runpath_var GCJ" || \
17208 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17209
17210 # We can hardcode non-existant directories.
17211 if test "$hardcode_direct_GCJ" != no &&
17212 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17213 # have to relink, otherwise we might link with an installed library
17214 # when we should be linking with a yet-to-be-installed one
17215 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17216 test "$hardcode_minus_L_GCJ" != no; then
17217 # Linking always hardcodes the temporary library directory.
17218 hardcode_action_GCJ=relink
17219 else
17220 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17221 hardcode_action_GCJ=immediate
17222 fi
17223 else
17224 # We cannot hardcode anything, or else we can only hardcode existing
17225 # directories.
17226 hardcode_action_GCJ=unsupported
17227 fi
17228 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17229 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17230
17231 if test "$hardcode_action_GCJ" = relink; then
17232 # Fast installation is not supported
17233 enable_fast_install=no
17234 elif test "$shlibpath_overrides_runpath" = yes ||
17235 test "$enable_shared" = no; then
17236 # Fast installation is not necessary
17237 enable_fast_install=needless
17238 fi
17239
17240 striplib=
17241 old_striplib=
17242 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17243 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17244 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17245 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17246 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17247 echo "$as_me:$LINENO: result: yes" >&5
17248 echo "${ECHO_T}yes" >&6
17249 else
17250 # FIXME - insert some real tests, host_os isn't really good enough
17251 case $host_os in
17252 darwin*)
17253 if test -n "$STRIP" ; then
17254 striplib="$STRIP -x"
17255 echo "$as_me:$LINENO: result: yes" >&5
17256 echo "${ECHO_T}yes" >&6
17257 else
17258 echo "$as_me:$LINENO: result: no" >&5
17259 echo "${ECHO_T}no" >&6
17260 fi
17261 ;;
17262 *)
17263 echo "$as_me:$LINENO: result: no" >&5
17264 echo "${ECHO_T}no" >&6
17265 ;;
17266 esac
17267 fi
17268
17269 if test "x$enable_dlopen" != xyes; then
17270 enable_dlopen=unknown
17271 enable_dlopen_self=unknown
17272 enable_dlopen_self_static=unknown
17273 else
17274 lt_cv_dlopen=no
17275 lt_cv_dlopen_libs=
17276
17277 case $host_os in
17278 beos*)
17279 lt_cv_dlopen="load_add_on"
17280 lt_cv_dlopen_libs=
17281 lt_cv_dlopen_self=yes
17282 ;;
17283
17284 mingw* | pw32*)
17285 lt_cv_dlopen="LoadLibrary"
17286 lt_cv_dlopen_libs=
17287 ;;
17288
17289 cygwin*)
17290 lt_cv_dlopen="dlopen"
17291 lt_cv_dlopen_libs=
17292 ;;
17293
17294 darwin*)
17295 # if libdl is installed we need to link against it
17296 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17297 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301 ac_check_lib_save_LIBS=$LIBS
17302 LIBS="-ldl $LIBS"
17303 cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h. */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309
17310 /* Override any gcc2 internal prototype to avoid an error. */
17311 #ifdef __cplusplus
17312 extern "C"
17313 #endif
17314 /* We use char because int might match the return type of a gcc2
17315 builtin and then its argument prototype would still apply. */
17316 char dlopen ();
17317 int
17318 main ()
17319 {
17320 dlopen ();
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17327 (eval $ac_link) 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; }; then
17346 ac_cv_lib_dl_dlopen=yes
17347 else
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351 ac_cv_lib_dl_dlopen=no
17352 fi
17353 rm -f conftest.err conftest.$ac_objext \
17354 conftest$ac_exeext conftest.$ac_ext
17355 LIBS=$ac_check_lib_save_LIBS
17356 fi
17357 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17358 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17359 if test $ac_cv_lib_dl_dlopen = yes; then
17360 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17361 else
17362
17363 lt_cv_dlopen="dyld"
17364 lt_cv_dlopen_libs=
17365 lt_cv_dlopen_self=yes
17366
17367 fi
17368
17369 ;;
17370
17371 *)
17372 echo "$as_me:$LINENO: checking for shl_load" >&5
17373 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17374 if test "${ac_cv_func_shl_load+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define shl_load innocuous_shl_load
17386
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char shl_load (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17391
17392 #ifdef __STDC__
17393 # include <limits.h>
17394 #else
17395 # include <assert.h>
17396 #endif
17397
17398 #undef shl_load
17399
17400 /* Override any gcc2 internal prototype to avoid an error. */
17401 #ifdef __cplusplus
17402 extern "C"
17403 {
17404 #endif
17405 /* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17407 char shl_load ();
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17412 choke me
17413 #else
17414 char (*f) () = shl_load;
17415 #endif
17416 #ifdef __cplusplus
17417 }
17418 #endif
17419
17420 int
17421 main ()
17422 {
17423 return f != shl_load;
17424 ;
17425 return 0;
17426 }
17427 _ACEOF
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_cv_func_shl_load=yes
17450 else
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454 ac_cv_func_shl_load=no
17455 fi
17456 rm -f conftest.err conftest.$ac_objext \
17457 conftest$ac_exeext conftest.$ac_ext
17458 fi
17459 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17460 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17461 if test $ac_cv_func_shl_load = yes; then
17462 lt_cv_dlopen="shl_load"
17463 else
17464 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17465 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17466 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469 ac_check_lib_save_LIBS=$LIBS
17470 LIBS="-ldld $LIBS"
17471 cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h. */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17477
17478 /* Override any gcc2 internal prototype to avoid an error. */
17479 #ifdef __cplusplus
17480 extern "C"
17481 #endif
17482 /* We use char because int might match the return type of a gcc2
17483 builtin and then its argument prototype would still apply. */
17484 char shl_load ();
17485 int
17486 main ()
17487 {
17488 shl_load ();
17489 ;
17490 return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17495 (eval $ac_link) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest$ac_exeext'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_cv_lib_dld_shl_load=yes
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 ac_cv_lib_dld_shl_load=no
17520 fi
17521 rm -f conftest.err conftest.$ac_objext \
17522 conftest$ac_exeext conftest.$ac_ext
17523 LIBS=$ac_check_lib_save_LIBS
17524 fi
17525 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17526 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17527 if test $ac_cv_lib_dld_shl_load = yes; then
17528 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17529 else
17530 echo "$as_me:$LINENO: checking for dlopen" >&5
17531 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17532 if test "${ac_cv_func_dlopen+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17543 #define dlopen innocuous_dlopen
17544
17545 /* System header to define __stub macros and hopefully few prototypes,
17546 which can conflict with char dlopen (); below.
17547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17548 <limits.h> exists even on freestanding compilers. */
17549
17550 #ifdef __STDC__
17551 # include <limits.h>
17552 #else
17553 # include <assert.h>
17554 #endif
17555
17556 #undef dlopen
17557
17558 /* Override any gcc2 internal prototype to avoid an error. */
17559 #ifdef __cplusplus
17560 extern "C"
17561 {
17562 #endif
17563 /* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565 char dlopen ();
17566 /* The GNU C library defines this for functions which it implements
17567 to always fail with ENOSYS. Some functions are actually named
17568 something starting with __ and the normal name is an alias. */
17569 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17570 choke me
17571 #else
17572 char (*f) () = dlopen;
17573 #endif
17574 #ifdef __cplusplus
17575 }
17576 #endif
17577
17578 int
17579 main ()
17580 {
17581 return f != dlopen;
17582 ;
17583 return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest$ac_exeext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 ac_cv_func_dlopen=yes
17608 else
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17611
17612 ac_cv_func_dlopen=no
17613 fi
17614 rm -f conftest.err conftest.$ac_objext \
17615 conftest$ac_exeext conftest.$ac_ext
17616 fi
17617 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17618 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17619 if test $ac_cv_func_dlopen = yes; then
17620 lt_cv_dlopen="dlopen"
17621 else
17622 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17623 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17624 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627 ac_check_lib_save_LIBS=$LIBS
17628 LIBS="-ldl $LIBS"
17629 cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h. */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17635
17636 /* Override any gcc2 internal prototype to avoid an error. */
17637 #ifdef __cplusplus
17638 extern "C"
17639 #endif
17640 /* We use char because int might match the return type of a gcc2
17641 builtin and then its argument prototype would still apply. */
17642 char dlopen ();
17643 int
17644 main ()
17645 {
17646 dlopen ();
17647 ;
17648 return 0;
17649 }
17650 _ACEOF
17651 rm -f conftest.$ac_objext conftest$ac_exeext
17652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17653 (eval $ac_link) 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest$ac_exeext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_cv_lib_dl_dlopen=yes
17673 else
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 ac_cv_lib_dl_dlopen=no
17678 fi
17679 rm -f conftest.err conftest.$ac_objext \
17680 conftest$ac_exeext conftest.$ac_ext
17681 LIBS=$ac_check_lib_save_LIBS
17682 fi
17683 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17684 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17685 if test $ac_cv_lib_dl_dlopen = yes; then
17686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17687 else
17688 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17689 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17690 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693 ac_check_lib_save_LIBS=$LIBS
17694 LIBS="-lsvld $LIBS"
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701
17702 /* Override any gcc2 internal prototype to avoid an error. */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 /* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17708 char dlopen ();
17709 int
17710 main ()
17711 {
17712 dlopen ();
17713 ;
17714 return 0;
17715 }
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest$ac_exeext'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_cv_lib_svld_dlopen=yes
17739 else
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17742
17743 ac_cv_lib_svld_dlopen=no
17744 fi
17745 rm -f conftest.err conftest.$ac_objext \
17746 conftest$ac_exeext conftest.$ac_ext
17747 LIBS=$ac_check_lib_save_LIBS
17748 fi
17749 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17750 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17751 if test $ac_cv_lib_svld_dlopen = yes; then
17752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17753 else
17754 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17755 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17756 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759 ac_check_lib_save_LIBS=$LIBS
17760 LIBS="-ldld $LIBS"
17761 cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h. */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767
17768 /* Override any gcc2 internal prototype to avoid an error. */
17769 #ifdef __cplusplus
17770 extern "C"
17771 #endif
17772 /* We use char because int might match the return type of a gcc2
17773 builtin and then its argument prototype would still apply. */
17774 char dld_link ();
17775 int
17776 main ()
17777 {
17778 dld_link ();
17779 ;
17780 return 0;
17781 }
17782 _ACEOF
17783 rm -f conftest.$ac_objext conftest$ac_exeext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17785 (eval $ac_link) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_dld_dld_link=yes
17805 else
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_cv_lib_dld_dld_link=no
17810 fi
17811 rm -f conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17813 LIBS=$ac_check_lib_save_LIBS
17814 fi
17815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17816 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17817 if test $ac_cv_lib_dld_dld_link = yes; then
17818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17819 fi
17820
17821
17822 fi
17823
17824
17825 fi
17826
17827
17828 fi
17829
17830
17831 fi
17832
17833
17834 fi
17835
17836 ;;
17837 esac
17838
17839 if test "x$lt_cv_dlopen" != xno; then
17840 enable_dlopen=yes
17841 else
17842 enable_dlopen=no
17843 fi
17844
17845 case $lt_cv_dlopen in
17846 dlopen)
17847 save_CPPFLAGS="$CPPFLAGS"
17848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17849
17850 save_LDFLAGS="$LDFLAGS"
17851 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17852
17853 save_LIBS="$LIBS"
17854 LIBS="$lt_cv_dlopen_libs $LIBS"
17855
17856 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17857 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17858 if test "${lt_cv_dlopen_self+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861 if test "$cross_compiling" = yes; then :
17862 lt_cv_dlopen_self=cross
17863 else
17864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17865 lt_status=$lt_dlunknown
17866 cat > conftest.$ac_ext <<EOF
17867 #line 17867 "configure"
17868 #include "confdefs.h"
17869
17870 #if HAVE_DLFCN_H
17871 #include <dlfcn.h>
17872 #endif
17873
17874 #include <stdio.h>
17875
17876 #ifdef RTLD_GLOBAL
17877 # define LT_DLGLOBAL RTLD_GLOBAL
17878 #else
17879 # ifdef DL_GLOBAL
17880 # define LT_DLGLOBAL DL_GLOBAL
17881 # else
17882 # define LT_DLGLOBAL 0
17883 # endif
17884 #endif
17885
17886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17887 find out it does not work in some platform. */
17888 #ifndef LT_DLLAZY_OR_NOW
17889 # ifdef RTLD_LAZY
17890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17891 # else
17892 # ifdef DL_LAZY
17893 # define LT_DLLAZY_OR_NOW DL_LAZY
17894 # else
17895 # ifdef RTLD_NOW
17896 # define LT_DLLAZY_OR_NOW RTLD_NOW
17897 # else
17898 # ifdef DL_NOW
17899 # define LT_DLLAZY_OR_NOW DL_NOW
17900 # else
17901 # define LT_DLLAZY_OR_NOW 0
17902 # endif
17903 # endif
17904 # endif
17905 # endif
17906 #endif
17907
17908 #ifdef __cplusplus
17909 extern "C" void exit (int);
17910 #endif
17911
17912 void fnord() { int i=42;}
17913 int main ()
17914 {
17915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17916 int status = $lt_dlunknown;
17917
17918 if (self)
17919 {
17920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17921 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17922 /* dlclose (self); */
17923 }
17924
17925 exit (status);
17926 }
17927 EOF
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 (eval $ac_link) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17933 (./conftest; exit; ) 2>/dev/null
17934 lt_status=$?
17935 case x$lt_status in
17936 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17937 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17938 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17939 esac
17940 else :
17941 # compilation failed
17942 lt_cv_dlopen_self=no
17943 fi
17944 fi
17945 rm -fr conftest*
17946
17947
17948 fi
17949 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17950 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17951
17952 if test "x$lt_cv_dlopen_self" = xyes; then
17953 LDFLAGS="$LDFLAGS $link_static_flag"
17954 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17955 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17956 if test "${lt_cv_dlopen_self_static+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959 if test "$cross_compiling" = yes; then :
17960 lt_cv_dlopen_self_static=cross
17961 else
17962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963 lt_status=$lt_dlunknown
17964 cat > conftest.$ac_ext <<EOF
17965 #line 17965 "configure"
17966 #include "confdefs.h"
17967
17968 #if HAVE_DLFCN_H
17969 #include <dlfcn.h>
17970 #endif
17971
17972 #include <stdio.h>
17973
17974 #ifdef RTLD_GLOBAL
17975 # define LT_DLGLOBAL RTLD_GLOBAL
17976 #else
17977 # ifdef DL_GLOBAL
17978 # define LT_DLGLOBAL DL_GLOBAL
17979 # else
17980 # define LT_DLGLOBAL 0
17981 # endif
17982 #endif
17983
17984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985 find out it does not work in some platform. */
17986 #ifndef LT_DLLAZY_OR_NOW
17987 # ifdef RTLD_LAZY
17988 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17989 # else
17990 # ifdef DL_LAZY
17991 # define LT_DLLAZY_OR_NOW DL_LAZY
17992 # else
17993 # ifdef RTLD_NOW
17994 # define LT_DLLAZY_OR_NOW RTLD_NOW
17995 # else
17996 # ifdef DL_NOW
17997 # define LT_DLLAZY_OR_NOW DL_NOW
17998 # else
17999 # define LT_DLLAZY_OR_NOW 0
18000 # endif
18001 # endif
18002 # endif
18003 # endif
18004 #endif
18005
18006 #ifdef __cplusplus
18007 extern "C" void exit (int);
18008 #endif
18009
18010 void fnord() { int i=42;}
18011 int main ()
18012 {
18013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18014 int status = $lt_dlunknown;
18015
18016 if (self)
18017 {
18018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18020 /* dlclose (self); */
18021 }
18022
18023 exit (status);
18024 }
18025 EOF
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18031 (./conftest; exit; ) 2>/dev/null
18032 lt_status=$?
18033 case x$lt_status in
18034 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18035 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18036 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18037 esac
18038 else :
18039 # compilation failed
18040 lt_cv_dlopen_self_static=no
18041 fi
18042 fi
18043 rm -fr conftest*
18044
18045
18046 fi
18047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18048 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18049 fi
18050
18051 CPPFLAGS="$save_CPPFLAGS"
18052 LDFLAGS="$save_LDFLAGS"
18053 LIBS="$save_LIBS"
18054 ;;
18055 esac
18056
18057 case $lt_cv_dlopen_self in
18058 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18059 *) enable_dlopen_self=unknown ;;
18060 esac
18061
18062 case $lt_cv_dlopen_self_static in
18063 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18064 *) enable_dlopen_self_static=unknown ;;
18065 esac
18066 fi
18067
18068
18069 # The else clause should only fire when bootstrapping the
18070 # libtool distribution, otherwise you forgot to ship ltmain.sh
18071 # with your package, and you will get complaints that there are
18072 # no rules to generate ltmain.sh.
18073 if test -f "$ltmain"; then
18074 # See if we are running on zsh, and set the options which allow our commands through
18075 # without removal of \ escapes.
18076 if test -n "${ZSH_VERSION+set}" ; then
18077 setopt NO_GLOB_SUBST
18078 fi
18079 # Now quote all the things that may contain metacharacters while being
18080 # careful not to overquote the AC_SUBSTed values. We take copies of the
18081 # variables and quote the copies for generation of the libtool script.
18082 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18083 SED SHELL STRIP \
18084 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18085 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18086 deplibs_check_method reload_flag reload_cmds need_locks \
18087 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18088 lt_cv_sys_global_symbol_to_c_name_address \
18089 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18090 old_postinstall_cmds old_postuninstall_cmds \
18091 compiler_GCJ \
18092 CC_GCJ \
18093 LD_GCJ \
18094 lt_prog_compiler_wl_GCJ \
18095 lt_prog_compiler_pic_GCJ \
18096 lt_prog_compiler_static_GCJ \
18097 lt_prog_compiler_no_builtin_flag_GCJ \
18098 export_dynamic_flag_spec_GCJ \
18099 thread_safe_flag_spec_GCJ \
18100 whole_archive_flag_spec_GCJ \
18101 enable_shared_with_static_runtimes_GCJ \
18102 old_archive_cmds_GCJ \
18103 old_archive_from_new_cmds_GCJ \
18104 predep_objects_GCJ \
18105 postdep_objects_GCJ \
18106 predeps_GCJ \
18107 postdeps_GCJ \
18108 compiler_lib_search_path_GCJ \
18109 archive_cmds_GCJ \
18110 archive_expsym_cmds_GCJ \
18111 postinstall_cmds_GCJ \
18112 postuninstall_cmds_GCJ \
18113 old_archive_from_expsyms_cmds_GCJ \
18114 allow_undefined_flag_GCJ \
18115 no_undefined_flag_GCJ \
18116 export_symbols_cmds_GCJ \
18117 hardcode_libdir_flag_spec_GCJ \
18118 hardcode_libdir_flag_spec_ld_GCJ \
18119 hardcode_libdir_separator_GCJ \
18120 hardcode_automatic_GCJ \
18121 module_cmds_GCJ \
18122 module_expsym_cmds_GCJ \
18123 lt_cv_prog_compiler_c_o_GCJ \
18124 exclude_expsyms_GCJ \
18125 include_expsyms_GCJ; do
18126
18127 case $var in
18128 old_archive_cmds_GCJ | \
18129 old_archive_from_new_cmds_GCJ | \
18130 archive_cmds_GCJ | \
18131 archive_expsym_cmds_GCJ | \
18132 module_cmds_GCJ | \
18133 module_expsym_cmds_GCJ | \
18134 old_archive_from_expsyms_cmds_GCJ | \
18135 export_symbols_cmds_GCJ | \
18136 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18137 postinstall_cmds | postuninstall_cmds | \
18138 old_postinstall_cmds | old_postuninstall_cmds | \
18139 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18140 # Double-quote double-evaled strings.
18141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18142 ;;
18143 *)
18144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18145 ;;
18146 esac
18147 done
18148
18149 case $lt_echo in
18150 *'\$0 --fallback-echo"')
18151 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18152 ;;
18153 esac
18154
18155 cfgfile="$ofile"
18156
18157 cat <<__EOF__ >> "$cfgfile"
18158 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18159
18160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18161
18162 # Shell to use when invoking shell scripts.
18163 SHELL=$lt_SHELL
18164
18165 # Whether or not to build shared libraries.
18166 build_libtool_libs=$enable_shared
18167
18168 # Whether or not to build static libraries.
18169 build_old_libs=$enable_static
18170
18171 # Whether or not to add -lc for building shared libraries.
18172 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18173
18174 # Whether or not to disallow shared libs when runtime libs are static
18175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18176
18177 # Whether or not to optimize for fast installation.
18178 fast_install=$enable_fast_install
18179
18180 # The host system.
18181 host_alias=$host_alias
18182 host=$host
18183
18184 # An echo program that does not interpret backslashes.
18185 echo=$lt_echo
18186
18187 # The archiver.
18188 AR=$lt_AR
18189 AR_FLAGS=$lt_AR_FLAGS
18190
18191 # A C compiler.
18192 LTCC=$lt_LTCC
18193
18194 # A language-specific compiler.
18195 CC=$lt_compiler_GCJ
18196
18197 # Is the compiler the GNU C compiler?
18198 with_gcc=$GCC_GCJ
18199
18200 # An ERE matcher.
18201 EGREP=$lt_EGREP
18202
18203 # The linker used to build libraries.
18204 LD=$lt_LD_GCJ
18205
18206 # Whether we need hard or soft links.
18207 LN_S=$lt_LN_S
18208
18209 # A BSD-compatible nm program.
18210 NM=$lt_NM
18211
18212 # A symbol stripping program
18213 STRIP=$lt_STRIP
18214
18215 # Used to examine libraries when file_magic_cmd begins "file"
18216 MAGIC_CMD=$MAGIC_CMD
18217
18218 # Used on cygwin: DLL creation program.
18219 DLLTOOL="$DLLTOOL"
18220
18221 # Used on cygwin: object dumper.
18222 OBJDUMP="$OBJDUMP"
18223
18224 # Used on cygwin: assembler.
18225 AS="$AS"
18226
18227 # The name of the directory that contains temporary libtool files.
18228 objdir=$objdir
18229
18230 # How to create reloadable object files.
18231 reload_flag=$lt_reload_flag
18232 reload_cmds=$lt_reload_cmds
18233
18234 # How to pass a linker flag through the compiler.
18235 wl=$lt_lt_prog_compiler_wl_GCJ
18236
18237 # Object file suffix (normally "o").
18238 objext="$ac_objext"
18239
18240 # Old archive suffix (normally "a").
18241 libext="$libext"
18242
18243 # Shared library suffix (normally ".so").
18244 shrext_cmds='$shrext_cmds'
18245
18246 # Executable file suffix (normally "").
18247 exeext="$exeext"
18248
18249 # Additional compiler flags for building library objects.
18250 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18251 pic_mode=$pic_mode
18252
18253 # What is the maximum length of a command?
18254 max_cmd_len=$lt_cv_sys_max_cmd_len
18255
18256 # Does compiler simultaneously support -c and -o options?
18257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18258
18259 # Must we lock files when doing compilation ?
18260 need_locks=$lt_need_locks
18261
18262 # Do we need the lib prefix for modules?
18263 need_lib_prefix=$need_lib_prefix
18264
18265 # Do we need a version for libraries?
18266 need_version=$need_version
18267
18268 # Whether dlopen is supported.
18269 dlopen_support=$enable_dlopen
18270
18271 # Whether dlopen of programs is supported.
18272 dlopen_self=$enable_dlopen_self
18273
18274 # Whether dlopen of statically linked programs is supported.
18275 dlopen_self_static=$enable_dlopen_self_static
18276
18277 # Compiler flag to prevent dynamic linking.
18278 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18279
18280 # Compiler flag to turn off builtin functions.
18281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18282
18283 # Compiler flag to allow reflexive dlopens.
18284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18285
18286 # Compiler flag to generate shared objects directly from archives.
18287 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18288
18289 # Compiler flag to generate thread-safe objects.
18290 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18291
18292 # Library versioning type.
18293 version_type=$version_type
18294
18295 # Format of library name prefix.
18296 libname_spec=$lt_libname_spec
18297
18298 # List of archive names. First name is the real one, the rest are links.
18299 # The last name is the one that the linker finds with -lNAME.
18300 library_names_spec=$lt_library_names_spec
18301
18302 # The coded name of the library, if different from the real name.
18303 soname_spec=$lt_soname_spec
18304
18305 # Commands used to build and install an old-style archive.
18306 RANLIB=$lt_RANLIB
18307 old_archive_cmds=$lt_old_archive_cmds_GCJ
18308 old_postinstall_cmds=$lt_old_postinstall_cmds
18309 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18310
18311 # Create an old-style archive from a shared archive.
18312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18313
18314 # Create a temporary old-style archive to link instead of a shared archive.
18315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18316
18317 # Commands used to build and install a shared archive.
18318 archive_cmds=$lt_archive_cmds_GCJ
18319 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18320 postinstall_cmds=$lt_postinstall_cmds
18321 postuninstall_cmds=$lt_postuninstall_cmds
18322
18323 # Commands used to build a loadable module (assumed same as above if empty)
18324 module_cmds=$lt_module_cmds_GCJ
18325 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18326
18327 # Commands to strip libraries.
18328 old_striplib=$lt_old_striplib
18329 striplib=$lt_striplib
18330
18331 # Dependencies to place before the objects being linked to create a
18332 # shared library.
18333 predep_objects=$lt_predep_objects_GCJ
18334
18335 # Dependencies to place after the objects being linked to create a
18336 # shared library.
18337 postdep_objects=$lt_postdep_objects_GCJ
18338
18339 # Dependencies to place before the objects being linked to create a
18340 # shared library.
18341 predeps=$lt_predeps_GCJ
18342
18343 # Dependencies to place after the objects being linked to create a
18344 # shared library.
18345 postdeps=$lt_postdeps_GCJ
18346
18347 # The library search path used internally by the compiler when linking
18348 # a shared library.
18349 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18350
18351 # Method to check whether dependent libraries are shared objects.
18352 deplibs_check_method=$lt_deplibs_check_method
18353
18354 # Command to use when deplibs_check_method == file_magic.
18355 file_magic_cmd=$lt_file_magic_cmd
18356
18357 # Flag that allows shared libraries with undefined symbols to be built.
18358 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18359
18360 # Flag that forces no undefined symbols.
18361 no_undefined_flag=$lt_no_undefined_flag_GCJ
18362
18363 # Commands used to finish a libtool library installation in a directory.
18364 finish_cmds=$lt_finish_cmds
18365
18366 # Same as above, but a single script fragment to be evaled but not shown.
18367 finish_eval=$lt_finish_eval
18368
18369 # Take the output of nm and produce a listing of raw symbols and C names.
18370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18371
18372 # Transform the output of nm in a proper C declaration
18373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18374
18375 # Transform the output of nm in a C name address pair
18376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18377
18378 # This is the shared library runtime path variable.
18379 runpath_var=$runpath_var
18380
18381 # This is the shared library path variable.
18382 shlibpath_var=$shlibpath_var
18383
18384 # Is shlibpath searched before the hard-coded library search path?
18385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18386
18387 # How to hardcode a shared library path into an executable.
18388 hardcode_action=$hardcode_action_GCJ
18389
18390 # Whether we should hardcode library paths into libraries.
18391 hardcode_into_libs=$hardcode_into_libs
18392
18393 # Flag to hardcode \$libdir into a binary during linking.
18394 # This must work even if \$libdir does not exist.
18395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18396
18397 # If ld is used when linking, flag to hardcode \$libdir into
18398 # a binary during linking. This must work even if \$libdir does
18399 # not exist.
18400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18401
18402 # Whether we need a single -rpath flag with a separated argument.
18403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18404
18405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18406 # resulting binary.
18407 hardcode_direct=$hardcode_direct_GCJ
18408
18409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18410 # resulting binary.
18411 hardcode_minus_L=$hardcode_minus_L_GCJ
18412
18413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18414 # the resulting binary.
18415 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18416
18417 # Set to yes if building a shared library automatically hardcodes DIR into the library
18418 # and all subsequent libraries and executables linked against it.
18419 hardcode_automatic=$hardcode_automatic_GCJ
18420
18421 # Variables whose values should be saved in libtool wrapper scripts and
18422 # restored at relink time.
18423 variables_saved_for_relink="$variables_saved_for_relink"
18424
18425 # Whether libtool must link a program against all its dependency libraries.
18426 link_all_deplibs=$link_all_deplibs_GCJ
18427
18428 # Compile-time system search path for libraries
18429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18430
18431 # Run-time system search path for libraries
18432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18433
18434 # Fix the shell variable \$srcfile for the compiler.
18435 fix_srcfile_path="$fix_srcfile_path_GCJ"
18436
18437 # Set to yes if exported symbols are required.
18438 always_export_symbols=$always_export_symbols_GCJ
18439
18440 # The commands to list exported symbols.
18441 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18442
18443 # The commands to extract the exported symbol list from a shared archive.
18444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18445
18446 # Symbols that should not be listed in the preloaded symbols.
18447 exclude_expsyms=$lt_exclude_expsyms_GCJ
18448
18449 # Symbols that must always be exported.
18450 include_expsyms=$lt_include_expsyms_GCJ
18451
18452 # ### END LIBTOOL TAG CONFIG: $tagname
18453
18454 __EOF__
18455
18456
18457 else
18458 # If there is no Makefile yet, we rely on a make rule to execute
18459 # `config.status --recheck' to rerun these tests and create the
18460 # libtool script then.
18461 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18462 if test -f "$ltmain_in"; then
18463 test -f Makefile && make "$ltmain"
18464 fi
18465 fi
18466
18467
18468 ac_ext=c
18469 ac_cpp='$CPP $CPPFLAGS'
18470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18473
18474 CC="$lt_save_CC"
18475
18476 else
18477 tagname=""
18478 fi
18479 ;;
18480
18481 RC)
18482
18483
18484
18485 # Source file extension for RC test sources.
18486 ac_ext=rc
18487
18488 # Object file extension for compiled RC test sources.
18489 objext=o
18490 objext_RC=$objext
18491
18492 # Code to be used in simple compile tests
18493 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18494
18495 # Code to be used in simple link tests
18496 lt_simple_link_test_code="$lt_simple_compile_test_code"
18497
18498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18499
18500 # If no C compiler was specified, use CC.
18501 LTCC=${LTCC-"$CC"}
18502
18503 # Allow CC to be a program name with arguments.
18504 compiler=$CC
18505
18506
18507 # Allow CC to be a program name with arguments.
18508 lt_save_CC="$CC"
18509 CC=${RC-"windres"}
18510 compiler=$CC
18511 compiler_RC=$CC
18512 lt_cv_prog_compiler_c_o_RC=yes
18513
18514 # The else clause should only fire when bootstrapping the
18515 # libtool distribution, otherwise you forgot to ship ltmain.sh
18516 # with your package, and you will get complaints that there are
18517 # no rules to generate ltmain.sh.
18518 if test -f "$ltmain"; then
18519 # See if we are running on zsh, and set the options which allow our commands through
18520 # without removal of \ escapes.
18521 if test -n "${ZSH_VERSION+set}" ; then
18522 setopt NO_GLOB_SUBST
18523 fi
18524 # Now quote all the things that may contain metacharacters while being
18525 # careful not to overquote the AC_SUBSTed values. We take copies of the
18526 # variables and quote the copies for generation of the libtool script.
18527 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18528 SED SHELL STRIP \
18529 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18530 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18531 deplibs_check_method reload_flag reload_cmds need_locks \
18532 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18533 lt_cv_sys_global_symbol_to_c_name_address \
18534 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18535 old_postinstall_cmds old_postuninstall_cmds \
18536 compiler_RC \
18537 CC_RC \
18538 LD_RC \
18539 lt_prog_compiler_wl_RC \
18540 lt_prog_compiler_pic_RC \
18541 lt_prog_compiler_static_RC \
18542 lt_prog_compiler_no_builtin_flag_RC \
18543 export_dynamic_flag_spec_RC \
18544 thread_safe_flag_spec_RC \
18545 whole_archive_flag_spec_RC \
18546 enable_shared_with_static_runtimes_RC \
18547 old_archive_cmds_RC \
18548 old_archive_from_new_cmds_RC \
18549 predep_objects_RC \
18550 postdep_objects_RC \
18551 predeps_RC \
18552 postdeps_RC \
18553 compiler_lib_search_path_RC \
18554 archive_cmds_RC \
18555 archive_expsym_cmds_RC \
18556 postinstall_cmds_RC \
18557 postuninstall_cmds_RC \
18558 old_archive_from_expsyms_cmds_RC \
18559 allow_undefined_flag_RC \
18560 no_undefined_flag_RC \
18561 export_symbols_cmds_RC \
18562 hardcode_libdir_flag_spec_RC \
18563 hardcode_libdir_flag_spec_ld_RC \
18564 hardcode_libdir_separator_RC \
18565 hardcode_automatic_RC \
18566 module_cmds_RC \
18567 module_expsym_cmds_RC \
18568 lt_cv_prog_compiler_c_o_RC \
18569 exclude_expsyms_RC \
18570 include_expsyms_RC; do
18571
18572 case $var in
18573 old_archive_cmds_RC | \
18574 old_archive_from_new_cmds_RC | \
18575 archive_cmds_RC | \
18576 archive_expsym_cmds_RC | \
18577 module_cmds_RC | \
18578 module_expsym_cmds_RC | \
18579 old_archive_from_expsyms_cmds_RC | \
18580 export_symbols_cmds_RC | \
18581 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18582 postinstall_cmds | postuninstall_cmds | \
18583 old_postinstall_cmds | old_postuninstall_cmds | \
18584 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18585 # Double-quote double-evaled strings.
18586 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18587 ;;
18588 *)
18589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18590 ;;
18591 esac
18592 done
18593
18594 case $lt_echo in
18595 *'\$0 --fallback-echo"')
18596 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18597 ;;
18598 esac
18599
18600 cfgfile="$ofile"
18601
18602 cat <<__EOF__ >> "$cfgfile"
18603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18604
18605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18606
18607 # Shell to use when invoking shell scripts.
18608 SHELL=$lt_SHELL
18609
18610 # Whether or not to build shared libraries.
18611 build_libtool_libs=$enable_shared
18612
18613 # Whether or not to build static libraries.
18614 build_old_libs=$enable_static
18615
18616 # Whether or not to add -lc for building shared libraries.
18617 build_libtool_need_lc=$archive_cmds_need_lc_RC
18618
18619 # Whether or not to disallow shared libs when runtime libs are static
18620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18621
18622 # Whether or not to optimize for fast installation.
18623 fast_install=$enable_fast_install
18624
18625 # The host system.
18626 host_alias=$host_alias
18627 host=$host
18628
18629 # An echo program that does not interpret backslashes.
18630 echo=$lt_echo
18631
18632 # The archiver.
18633 AR=$lt_AR
18634 AR_FLAGS=$lt_AR_FLAGS
18635
18636 # A C compiler.
18637 LTCC=$lt_LTCC
18638
18639 # A language-specific compiler.
18640 CC=$lt_compiler_RC
18641
18642 # Is the compiler the GNU C compiler?
18643 with_gcc=$GCC_RC
18644
18645 # An ERE matcher.
18646 EGREP=$lt_EGREP
18647
18648 # The linker used to build libraries.
18649 LD=$lt_LD_RC
18650
18651 # Whether we need hard or soft links.
18652 LN_S=$lt_LN_S
18653
18654 # A BSD-compatible nm program.
18655 NM=$lt_NM
18656
18657 # A symbol stripping program
18658 STRIP=$lt_STRIP
18659
18660 # Used to examine libraries when file_magic_cmd begins "file"
18661 MAGIC_CMD=$MAGIC_CMD
18662
18663 # Used on cygwin: DLL creation program.
18664 DLLTOOL="$DLLTOOL"
18665
18666 # Used on cygwin: object dumper.
18667 OBJDUMP="$OBJDUMP"
18668
18669 # Used on cygwin: assembler.
18670 AS="$AS"
18671
18672 # The name of the directory that contains temporary libtool files.
18673 objdir=$objdir
18674
18675 # How to create reloadable object files.
18676 reload_flag=$lt_reload_flag
18677 reload_cmds=$lt_reload_cmds
18678
18679 # How to pass a linker flag through the compiler.
18680 wl=$lt_lt_prog_compiler_wl_RC
18681
18682 # Object file suffix (normally "o").
18683 objext="$ac_objext"
18684
18685 # Old archive suffix (normally "a").
18686 libext="$libext"
18687
18688 # Shared library suffix (normally ".so").
18689 shrext_cmds='$shrext_cmds'
18690
18691 # Executable file suffix (normally "").
18692 exeext="$exeext"
18693
18694 # Additional compiler flags for building library objects.
18695 pic_flag=$lt_lt_prog_compiler_pic_RC
18696 pic_mode=$pic_mode
18697
18698 # What is the maximum length of a command?
18699 max_cmd_len=$lt_cv_sys_max_cmd_len
18700
18701 # Does compiler simultaneously support -c and -o options?
18702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18703
18704 # Must we lock files when doing compilation ?
18705 need_locks=$lt_need_locks
18706
18707 # Do we need the lib prefix for modules?
18708 need_lib_prefix=$need_lib_prefix
18709
18710 # Do we need a version for libraries?
18711 need_version=$need_version
18712
18713 # Whether dlopen is supported.
18714 dlopen_support=$enable_dlopen
18715
18716 # Whether dlopen of programs is supported.
18717 dlopen_self=$enable_dlopen_self
18718
18719 # Whether dlopen of statically linked programs is supported.
18720 dlopen_self_static=$enable_dlopen_self_static
18721
18722 # Compiler flag to prevent dynamic linking.
18723 link_static_flag=$lt_lt_prog_compiler_static_RC
18724
18725 # Compiler flag to turn off builtin functions.
18726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18727
18728 # Compiler flag to allow reflexive dlopens.
18729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18730
18731 # Compiler flag to generate shared objects directly from archives.
18732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18733
18734 # Compiler flag to generate thread-safe objects.
18735 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18736
18737 # Library versioning type.
18738 version_type=$version_type
18739
18740 # Format of library name prefix.
18741 libname_spec=$lt_libname_spec
18742
18743 # List of archive names. First name is the real one, the rest are links.
18744 # The last name is the one that the linker finds with -lNAME.
18745 library_names_spec=$lt_library_names_spec
18746
18747 # The coded name of the library, if different from the real name.
18748 soname_spec=$lt_soname_spec
18749
18750 # Commands used to build and install an old-style archive.
18751 RANLIB=$lt_RANLIB
18752 old_archive_cmds=$lt_old_archive_cmds_RC
18753 old_postinstall_cmds=$lt_old_postinstall_cmds
18754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18755
18756 # Create an old-style archive from a shared archive.
18757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18758
18759 # Create a temporary old-style archive to link instead of a shared archive.
18760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18761
18762 # Commands used to build and install a shared archive.
18763 archive_cmds=$lt_archive_cmds_RC
18764 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18765 postinstall_cmds=$lt_postinstall_cmds
18766 postuninstall_cmds=$lt_postuninstall_cmds
18767
18768 # Commands used to build a loadable module (assumed same as above if empty)
18769 module_cmds=$lt_module_cmds_RC
18770 module_expsym_cmds=$lt_module_expsym_cmds_RC
18771
18772 # Commands to strip libraries.
18773 old_striplib=$lt_old_striplib
18774 striplib=$lt_striplib
18775
18776 # Dependencies to place before the objects being linked to create a
18777 # shared library.
18778 predep_objects=$lt_predep_objects_RC
18779
18780 # Dependencies to place after the objects being linked to create a
18781 # shared library.
18782 postdep_objects=$lt_postdep_objects_RC
18783
18784 # Dependencies to place before the objects being linked to create a
18785 # shared library.
18786 predeps=$lt_predeps_RC
18787
18788 # Dependencies to place after the objects being linked to create a
18789 # shared library.
18790 postdeps=$lt_postdeps_RC
18791
18792 # The library search path used internally by the compiler when linking
18793 # a shared library.
18794 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18795
18796 # Method to check whether dependent libraries are shared objects.
18797 deplibs_check_method=$lt_deplibs_check_method
18798
18799 # Command to use when deplibs_check_method == file_magic.
18800 file_magic_cmd=$lt_file_magic_cmd
18801
18802 # Flag that allows shared libraries with undefined symbols to be built.
18803 allow_undefined_flag=$lt_allow_undefined_flag_RC
18804
18805 # Flag that forces no undefined symbols.
18806 no_undefined_flag=$lt_no_undefined_flag_RC
18807
18808 # Commands used to finish a libtool library installation in a directory.
18809 finish_cmds=$lt_finish_cmds
18810
18811 # Same as above, but a single script fragment to be evaled but not shown.
18812 finish_eval=$lt_finish_eval
18813
18814 # Take the output of nm and produce a listing of raw symbols and C names.
18815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18816
18817 # Transform the output of nm in a proper C declaration
18818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18819
18820 # Transform the output of nm in a C name address pair
18821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18822
18823 # This is the shared library runtime path variable.
18824 runpath_var=$runpath_var
18825
18826 # This is the shared library path variable.
18827 shlibpath_var=$shlibpath_var
18828
18829 # Is shlibpath searched before the hard-coded library search path?
18830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18831
18832 # How to hardcode a shared library path into an executable.
18833 hardcode_action=$hardcode_action_RC
18834
18835 # Whether we should hardcode library paths into libraries.
18836 hardcode_into_libs=$hardcode_into_libs
18837
18838 # Flag to hardcode \$libdir into a binary during linking.
18839 # This must work even if \$libdir does not exist.
18840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18841
18842 # If ld is used when linking, flag to hardcode \$libdir into
18843 # a binary during linking. This must work even if \$libdir does
18844 # not exist.
18845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18846
18847 # Whether we need a single -rpath flag with a separated argument.
18848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18849
18850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18851 # resulting binary.
18852 hardcode_direct=$hardcode_direct_RC
18853
18854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18855 # resulting binary.
18856 hardcode_minus_L=$hardcode_minus_L_RC
18857
18858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18859 # the resulting binary.
18860 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18861
18862 # Set to yes if building a shared library automatically hardcodes DIR into the library
18863 # and all subsequent libraries and executables linked against it.
18864 hardcode_automatic=$hardcode_automatic_RC
18865
18866 # Variables whose values should be saved in libtool wrapper scripts and
18867 # restored at relink time.
18868 variables_saved_for_relink="$variables_saved_for_relink"
18869
18870 # Whether libtool must link a program against all its dependency libraries.
18871 link_all_deplibs=$link_all_deplibs_RC
18872
18873 # Compile-time system search path for libraries
18874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18875
18876 # Run-time system search path for libraries
18877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18878
18879 # Fix the shell variable \$srcfile for the compiler.
18880 fix_srcfile_path="$fix_srcfile_path_RC"
18881
18882 # Set to yes if exported symbols are required.
18883 always_export_symbols=$always_export_symbols_RC
18884
18885 # The commands to list exported symbols.
18886 export_symbols_cmds=$lt_export_symbols_cmds_RC
18887
18888 # The commands to extract the exported symbol list from a shared archive.
18889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18890
18891 # Symbols that should not be listed in the preloaded symbols.
18892 exclude_expsyms=$lt_exclude_expsyms_RC
18893
18894 # Symbols that must always be exported.
18895 include_expsyms=$lt_include_expsyms_RC
18896
18897 # ### END LIBTOOL TAG CONFIG: $tagname
18898
18899 __EOF__
18900
18901
18902 else
18903 # If there is no Makefile yet, we rely on a make rule to execute
18904 # `config.status --recheck' to rerun these tests and create the
18905 # libtool script then.
18906 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18907 if test -f "$ltmain_in"; then
18908 test -f Makefile && make "$ltmain"
18909 fi
18910 fi
18911
18912
18913 ac_ext=c
18914 ac_cpp='$CPP $CPPFLAGS'
18915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18918
18919 CC="$lt_save_CC"
18920
18921 ;;
18922
18923 *)
18924 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18925 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18926 { (exit 1); exit 1; }; }
18927 ;;
18928 esac
18929
18930 # Append the new tag name to the list of available tags.
18931 if test -n "$tagname" ; then
18932 available_tags="$available_tags $tagname"
18933 fi
18934 fi
18935 done
18936 IFS="$lt_save_ifs"
18937
18938 # Now substitute the updated list of available tags.
18939 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18940 mv "${ofile}T" "$ofile"
18941 chmod +x "$ofile"
18942 else
18943 rm -f "${ofile}T"
18944 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18945 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18946 { (exit 1); exit 1; }; }
18947 fi
18948 fi
18949
18950
18951
18952 # This can be used to rebuild libtool when needed
18953 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18954
18955 # Always use our own libtool.
18956 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18957
18958 # Prevent multiple expansion
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979 # Find a good install program. We prefer a C program (faster),
18980 # so one script is as good as another. But avoid the broken or
18981 # incompatible versions:
18982 # SysV /etc/install, /usr/sbin/install
18983 # SunOS /usr/etc/install
18984 # IRIX /sbin/install
18985 # AIX /bin/install
18986 # AmigaOS /C/install, which installs bootblocks on floppy discs
18987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18990 # OS/2's system install, which has a completely different semantic
18991 # ./install, which can be erroneously created by make from ./install.sh.
18992 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18994 if test -z "$INSTALL"; then
18995 if test "${ac_cv_path_install+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18999 for as_dir in $PATH
19000 do
19001 IFS=$as_save_IFS
19002 test -z "$as_dir" && as_dir=.
19003 # Account for people who put trailing slashes in PATH elements.
19004 case $as_dir/ in
19005 ./ | .// | /cC/* | \
19006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19008 /usr/ucb/* ) ;;
19009 *)
19010 # OSF1 and SCO ODT 3.0 have their own names for install.
19011 # Don't use installbsd from OSF since it installs stuff as root
19012 # by default.
19013 for ac_prog in ginstall scoinst install; do
19014 for ac_exec_ext in '' $ac_executable_extensions; do
19015 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19016 if test $ac_prog = install &&
19017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19018 # AIX install. It has an incompatible calling convention.
19019 :
19020 elif test $ac_prog = install &&
19021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19022 # program-specific install script used by HP pwplus--don't use.
19023 :
19024 else
19025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19026 break 3
19027 fi
19028 fi
19029 done
19030 done
19031 ;;
19032 esac
19033 done
19034
19035
19036 fi
19037 if test "${ac_cv_path_install+set}" = set; then
19038 INSTALL=$ac_cv_path_install
19039 else
19040 # As a last resort, use the slow shell script. We don't cache a
19041 # path for INSTALL within a source directory, because that will
19042 # break other packages using the cache if that directory is
19043 # removed, or if the path is relative.
19044 INSTALL=$ac_install_sh
19045 fi
19046 fi
19047 echo "$as_me:$LINENO: result: $INSTALL" >&5
19048 echo "${ECHO_T}$INSTALL" >&6
19049
19050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19051 # It thinks the first close brace ends the variable substitution.
19052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19053
19054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19055
19056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19057
19058
19059 # Checks for libraries.
19060 #
19061 # Handle user hints
19062 #
19063 echo "$as_me:$LINENO: checking if zlib is wanted" >&5
19064 echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
19065
19066 # Check whether --with-zlib or --without-zlib was given.
19067 if test "${with_zlib+set}" = set; then
19068 withval="$with_zlib"
19069 if test "$withval" = no ; then
19070 echo "$as_me:$LINENO: result: no" >&5
19071 echo "${ECHO_T}no" >&6
19072 else
19073 echo "$as_me:$LINENO: result: yes" >&5
19074 echo "${ECHO_T}yes" >&6
19075 if test "$withval" = yes ; then
19076 ZLIB_HOME="default path"
19077 else
19078 LDFLAGS="$LDFLAGS -L$withval/lib"
19079 CPPFLAGS="$CPPFLAGS -I$withval/include"
19080 ZLIB_HOME="$withval"
19081 fi
19082 fi
19083 else
19084
19085 echo "$as_me:$LINENO: result: yes" >&5
19086 echo "${ECHO_T}yes" >&6
19087 ZLIB_HOME="default path"
19088
19089 fi;
19090
19091 #
19092 # Locate zlib, if wanted
19093 #
19094 if test -n "${ZLIB_HOME}"
19095 then
19096
19097
19098 ac_ext=c
19099 ac_cpp='$CPP $CPPFLAGS'
19100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103
19104 echo "$as_me:$LINENO: checking for zlib in $ZLIB_HOME" >&5
19105 echo $ECHO_N "checking for zlib in $ZLIB_HOME... $ECHO_C" >&6
19106 if test "${ac_cv_header_zlib_h+set}" = set; then
19107 echo "$as_me:$LINENO: checking for zlib.h" >&5
19108 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19109 if test "${ac_cv_header_zlib_h+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 fi
19112 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19113 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19114 else
19115 # Is the header compilable?
19116 echo "$as_me:$LINENO: checking zlib.h usability" >&5
19117 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <zlib.h>
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest.$ac_objext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_header_compiler=yes
19149 else
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 ac_header_compiler=no
19154 fi
19155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19157 echo "${ECHO_T}$ac_header_compiler" >&6
19158
19159 # Is the header present?
19160 echo "$as_me:$LINENO: checking zlib.h presence" >&5
19161 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h. */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 #include <zlib.h>
19169 _ACEOF
19170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } >/dev/null; then
19178 if test -s conftest.err; then
19179 ac_cpp_err=$ac_c_preproc_warn_flag
19180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19181 else
19182 ac_cpp_err=
19183 fi
19184 else
19185 ac_cpp_err=yes
19186 fi
19187 if test -z "$ac_cpp_err"; then
19188 ac_header_preproc=yes
19189 else
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 ac_header_preproc=no
19194 fi
19195 rm -f conftest.err conftest.$ac_ext
19196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19197 echo "${ECHO_T}$ac_header_preproc" >&6
19198
19199 # So? What about this header?
19200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19201 yes:no: )
19202 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19203 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19204 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19205 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19206 ac_header_preproc=yes
19207 ;;
19208 no:yes:* )
19209 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19210 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19211 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19212 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19213 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19214 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19215 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19216 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19217 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19218 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19219 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19220 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19221 (
19222 cat <<\_ASBOX
19223 ## ------------------------------------------ ##
19224 ## Report this to the AC_PACKAGE_NAME lists. ##
19225 ## ------------------------------------------ ##
19226 _ASBOX
19227 ) |
19228 sed "s/^/$as_me: WARNING: /" >&2
19229 ;;
19230 esac
19231 echo "$as_me:$LINENO: checking for zlib.h" >&5
19232 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19233 if test "${ac_cv_header_zlib_h+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236 ac_cv_header_zlib_h=$ac_header_preproc
19237 fi
19238 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19239 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19240
19241 fi
19242 if test $ac_cv_header_zlib_h = yes; then
19243 zlib_cv_zlib_h=yes
19244 else
19245 zlib_cv_zlib_h=no
19246 fi
19247
19248
19249 if test "$zlib_cv_zlib_h" = yes; then
19250
19251 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
19252 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
19253 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256 ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-lz $LIBS"
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264
19265 /* Override any gcc2 internal prototype to avoid an error. */
19266 #ifdef __cplusplus
19267 extern "C"
19268 #endif
19269 /* We use char because int might match the return type of a gcc2
19270 builtin and then its argument prototype would still apply. */
19271 char inflateEnd ();
19272 int
19273 main ()
19274 {
19275 inflateEnd ();
19276 ;
19277 return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19282 (eval $ac_link) 2>conftest.er1
19283 ac_status=$?
19284 grep -v '^ *+' conftest.er1 >conftest.err
19285 rm -f conftest.er1
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } &&
19289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19295 { ac_try='test -s conftest$ac_exeext'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_cv_lib_z_inflateEnd=yes
19302 else
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 ac_cv_lib_z_inflateEnd=no
19307 fi
19308 rm -f conftest.err conftest.$ac_objext \
19309 conftest$ac_exeext conftest.$ac_ext
19310 LIBS=$ac_check_lib_save_LIBS
19311 fi
19312 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
19313 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
19314 if test $ac_cv_lib_z_inflateEnd = yes; then
19315 cat >>confdefs.h <<_ACEOF
19316 #define HAVE_LIBZ 1
19317 _ACEOF
19318
19319 LIBS="-lz $LIBS"
19320
19321 fi
19322
19323 fi
19324 if test "${ac_cv_lib_z_inflateEnd:+yes}" != yes
19325 then
19326 #
19327 # If either header or library was not found, bomb
19328 #
19329 { { echo "$as_me:$LINENO: error: Either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib." >&5
19330 echo "$as_me: error: Either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib." >&2;}
19331 { (exit 1); exit 1; }; }
19332 fi
19333 ac_ext=c
19334 ac_cpp='$CPP $CPPFLAGS'
19335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19338
19339 fi
19340
19341
19342
19343 # Checks for header files.
19344
19345
19346
19347
19348
19349 ac_header_dirent=no
19350 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19351 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19352 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19353 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 else
19357 cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h. */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 #include <sys/types.h>
19364 #include <$ac_hdr>
19365
19366 int
19367 main ()
19368 {
19369 if ((DIR *) 0)
19370 return 0;
19371 ;
19372 return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 eval "$as_ac_Header=yes"
19397 else
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 eval "$as_ac_Header=no"
19402 fi
19403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 fi
19405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19408 cat >>confdefs.h <<_ACEOF
19409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19410 _ACEOF
19411
19412 ac_header_dirent=$ac_hdr; break
19413 fi
19414
19415 done
19416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19417 if test $ac_header_dirent = dirent.h; then
19418 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19420 if test "${ac_cv_search_opendir+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423 ac_func_search_save_LIBS=$LIBS
19424 ac_cv_search_opendir=no
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h. */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431
19432 /* Override any gcc2 internal prototype to avoid an error. */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 /* We use char because int might match the return type of a gcc2
19437 builtin and then its argument prototype would still apply. */
19438 char opendir ();
19439 int
19440 main ()
19441 {
19442 opendir ();
19443 ;
19444 return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449 (eval $ac_link) 2>conftest.er1
19450 ac_status=$?
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
19456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest$ac_exeext'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_cv_search_opendir="none required"
19469 else
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473 fi
19474 rm -f conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476 if test "$ac_cv_search_opendir" = no; then
19477 for ac_lib in dir; do
19478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485
19486 /* Override any gcc2 internal prototype to avoid an error. */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 /* We use char because int might match the return type of a gcc2
19491 builtin and then its argument prototype would still apply. */
19492 char opendir ();
19493 int
19494 main ()
19495 {
19496 opendir ();
19497 ;
19498 return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503 (eval $ac_link) 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" || test ! -s conftest.err'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_cv_search_opendir="-l$ac_lib"
19523 break
19524 else
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 fi
19529 rm -f conftest.err conftest.$ac_objext \
19530 conftest$ac_exeext conftest.$ac_ext
19531 done
19532 fi
19533 LIBS=$ac_func_search_save_LIBS
19534 fi
19535 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19536 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19537 if test "$ac_cv_search_opendir" != no; then
19538 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19539
19540 fi
19541
19542 else
19543 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19545 if test "${ac_cv_search_opendir+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 ac_func_search_save_LIBS=$LIBS
19549 ac_cv_search_opendir=no
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556
19557 /* Override any gcc2 internal prototype to avoid an error. */
19558 #ifdef __cplusplus
19559 extern "C"
19560 #endif
19561 /* We use char because int might match the return type of a gcc2
19562 builtin and then its argument prototype would still apply. */
19563 char opendir ();
19564 int
19565 main ()
19566 {
19567 opendir ();
19568 ;
19569 return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19574 (eval $ac_link) 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
19581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest$ac_exeext'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19593 ac_cv_search_opendir="none required"
19594 else
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 fi
19599 rm -f conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19601 if test "$ac_cv_search_opendir" = no; then
19602 for ac_lib in x; do
19603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610
19611 /* Override any gcc2 internal prototype to avoid an error. */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 /* We use char because int might match the return type of a gcc2
19616 builtin and then its argument prototype would still apply. */
19617 char opendir ();
19618 int
19619 main ()
19620 {
19621 opendir ();
19622 ;
19623 return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19628 (eval $ac_link) 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest$ac_exeext'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 ac_cv_search_opendir="-l$ac_lib"
19648 break
19649 else
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 fi
19654 rm -f conftest.err conftest.$ac_objext \
19655 conftest$ac_exeext conftest.$ac_ext
19656 done
19657 fi
19658 LIBS=$ac_func_search_save_LIBS
19659 fi
19660 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19661 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19662 if test "$ac_cv_search_opendir" != no; then
19663 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19664
19665 fi
19666
19667 fi
19668
19669 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19671 if test "${ac_cv_header_stdc+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h. */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19680 #include <stdlib.h>
19681 #include <stdarg.h>
19682 #include <string.h>
19683 #include <float.h>
19684
19685 int
19686 main ()
19687 {
19688
19689 ;
19690 return 0;
19691 }
19692 _ACEOF
19693 rm -f conftest.$ac_objext
19694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19695 (eval $ac_compile) 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; } &&
19708 { ac_try='test -s conftest.$ac_objext'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 ac_cv_header_stdc=yes
19715 else
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719 ac_cv_header_stdc=no
19720 fi
19721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19722
19723 if test $ac_cv_header_stdc = yes; then
19724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h. */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <string.h>
19732
19733 _ACEOF
19734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19735 $EGREP "memchr" >/dev/null 2>&1; then
19736 :
19737 else
19738 ac_cv_header_stdc=no
19739 fi
19740 rm -f conftest*
19741
19742 fi
19743
19744 if test $ac_cv_header_stdc = yes; then
19745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h. */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 #include <stdlib.h>
19753
19754 _ACEOF
19755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19756 $EGREP "free" >/dev/null 2>&1; then
19757 :
19758 else
19759 ac_cv_header_stdc=no
19760 fi
19761 rm -f conftest*
19762
19763 fi
19764
19765 if test $ac_cv_header_stdc = yes; then
19766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19767 if test "$cross_compiling" = yes; then
19768 :
19769 else
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h. */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776 #include <ctype.h>
19777 #if ((' ' & 0x0FF) == 0x020)
19778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19780 #else
19781 # define ISLOWER(c) \
19782 (('a' <= (c) && (c) <= 'i') \
19783 || ('j' <= (c) && (c) <= 'r') \
19784 || ('s' <= (c) && (c) <= 'z'))
19785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19786 #endif
19787
19788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19789 int
19790 main ()
19791 {
19792 int i;
19793 for (i = 0; i < 256; i++)
19794 if (XOR (islower (i), ISLOWER (i))
19795 || toupper (i) != TOUPPER (i))
19796 exit(2);
19797 exit (0);
19798 }
19799 _ACEOF
19800 rm -f conftest$ac_exeext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802 (eval $ac_link) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 :
19812 else
19813 echo "$as_me: program exited with status $ac_status" >&5
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817 ( exit $ac_status )
19818 ac_cv_header_stdc=no
19819 fi
19820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19821 fi
19822 fi
19823 fi
19824 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19825 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19826 if test $ac_cv_header_stdc = yes; then
19827
19828 cat >>confdefs.h <<\_ACEOF
19829 #define STDC_HEADERS 1
19830 _ACEOF
19831
19832 fi
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842 for ac_header in fcntl.h limits.h stddef.h stdlib.h string.h sys/select.h sys/time.h unistd.h
19843 do
19844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846 echo "$as_me:$LINENO: checking for $ac_header" >&5
19847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 fi
19851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19853 else
19854 # Is the header compilable?
19855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
19864 #include <$ac_header>
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest.$ac_objext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_header_compiler=yes
19888 else
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 ac_header_compiler=no
19893 fi
19894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19896 echo "${ECHO_T}$ac_header_compiler" >&6
19897
19898 # Is the header present?
19899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 #include <$ac_header>
19908 _ACEOF
19909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } >/dev/null; then
19917 if test -s conftest.err; then
19918 ac_cpp_err=$ac_c_preproc_warn_flag
19919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19920 else
19921 ac_cpp_err=
19922 fi
19923 else
19924 ac_cpp_err=yes
19925 fi
19926 if test -z "$ac_cpp_err"; then
19927 ac_header_preproc=yes
19928 else
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 ac_header_preproc=no
19933 fi
19934 rm -f conftest.err conftest.$ac_ext
19935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19936 echo "${ECHO_T}$ac_header_preproc" >&6
19937
19938 # So? What about this header?
19939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19940 yes:no: )
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19945 ac_header_preproc=yes
19946 ;;
19947 no:yes:* )
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19960 (
19961 cat <<\_ASBOX
19962 ## ------------------------------------------ ##
19963 ## Report this to the AC_PACKAGE_NAME lists. ##
19964 ## ------------------------------------------ ##
19965 _ASBOX
19966 ) |
19967 sed "s/^/$as_me: WARNING: /" >&2
19968 ;;
19969 esac
19970 echo "$as_me:$LINENO: checking for $ac_header" >&5
19971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 eval "$as_ac_Header=\$ac_header_preproc"
19976 fi
19977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19979
19980 fi
19981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19984 _ACEOF
19985
19986 fi
19987
19988 done
19989
19990
19991 # Checks for typedefs, structures, and compiler characteristics.
19992 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19993 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19994 if test "${ac_cv_c_bigendian+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997 # See if sys/param.h defines the BYTE_ORDER macro.
19998 cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h. */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004 #include <sys/types.h>
20005 #include <sys/param.h>
20006
20007 int
20008 main ()
20009 {
20010 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20011 bogus endian macros
20012 #endif
20013
20014 ;
20015 return 0;
20016 }
20017 _ACEOF
20018 rm -f conftest.$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020 (eval $ac_compile) 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 # It does; now see whether it defined to BIG_ENDIAN or not.
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h. */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 #include <sys/types.h>
20047 #include <sys/param.h>
20048
20049 int
20050 main ()
20051 {
20052 #if BYTE_ORDER != BIG_ENDIAN
20053 not big endian
20054 #endif
20055
20056 ;
20057 return 0;
20058 }
20059 _ACEOF
20060 rm -f conftest.$ac_objext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>conftest.er1
20063 ac_status=$?
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20072 ac_status=$?
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; } &&
20075 { ac_try='test -s conftest.$ac_objext'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 ac_cv_c_bigendian=yes
20082 else
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086 ac_cv_c_bigendian=no
20087 fi
20088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20089 else
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 # It does not; compile a test program.
20094 if test "$cross_compiling" = yes; then
20095 # try to guess the endianness by grepping values into an object file
20096 ac_cv_c_bigendian=unknown
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h. */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20104 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20105 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20106 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20107 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20108 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20109 int
20110 main ()
20111 {
20112 _ascii (); _ebcdic ();
20113 ;
20114 return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119 (eval $ac_compile) 2>conftest.er1
20120 ac_status=$?
20121 grep -v '^ *+' conftest.er1 >conftest.err
20122 rm -f conftest.er1
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
20126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest.$ac_objext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20139 ac_cv_c_bigendian=yes
20140 fi
20141 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20142 if test "$ac_cv_c_bigendian" = unknown; then
20143 ac_cv_c_bigendian=no
20144 else
20145 # finding both strings is unlikely to happen, but who knows?
20146 ac_cv_c_bigendian=unknown
20147 fi
20148 fi
20149 else
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153 fi
20154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20155 else
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h. */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 int
20163 main ()
20164 {
20165 /* Are we little or big endian? From Harbison&Steele. */
20166 union
20167 {
20168 long l;
20169 char c[sizeof (long)];
20170 } u;
20171 u.l = 1;
20172 exit (u.c[sizeof (long) - 1] == 1);
20173 }
20174 _ACEOF
20175 rm -f conftest$ac_exeext
20176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20177 (eval $ac_link) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 ac_cv_c_bigendian=no
20187 else
20188 echo "$as_me: program exited with status $ac_status" >&5
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20191
20192 ( exit $ac_status )
20193 ac_cv_c_bigendian=yes
20194 fi
20195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20196 fi
20197 fi
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199 fi
20200 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20201 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20202 case $ac_cv_c_bigendian in
20203 yes)
20204
20205 cat >>confdefs.h <<\_ACEOF
20206 #define WORDS_BIGENDIAN 1
20207 _ACEOF
20208 ;;
20209 no)
20210 ;;
20211 *)
20212 { { echo "$as_me:$LINENO: error: unknown endianness
20213 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20214 echo "$as_me: error: unknown endianness
20215 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20216 { (exit 1); exit 1; }; } ;;
20217 esac
20218
20219 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20220 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20221 if test "${ac_cv_c_const+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h. */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20230
20231 int
20232 main ()
20233 {
20234 /* FIXME: Include the comments suggested by Paul. */
20235 #ifndef __cplusplus
20236 /* Ultrix mips cc rejects this. */
20237 typedef int charset[2];
20238 const charset x;
20239 /* SunOS 4.1.1 cc rejects this. */
20240 char const *const *ccp;
20241 char **p;
20242 /* NEC SVR4.0.2 mips cc rejects this. */
20243 struct point {int x, y;};
20244 static struct point const zero = {0,0};
20245 /* AIX XL C 1.02.0.0 rejects this.
20246 It does not let you subtract one const X* pointer from another in
20247 an arm of an if-expression whose if-part is not a constant
20248 expression */
20249 const char *g = "string";
20250 ccp = &g + (g ? g-g : 0);
20251 /* HPUX 7.0 cc rejects these. */
20252 ++ccp;
20253 p = (char**) ccp;
20254 ccp = (char const *const *) p;
20255 { /* SCO 3.2v4 cc rejects this. */
20256 char *t;
20257 char const *s = 0 ? (char *) 0 : (char const *) 0;
20258
20259 *t++ = 0;
20260 }
20261 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20262 int x[] = {25, 17};
20263 const int *foo = &x[0];
20264 ++foo;
20265 }
20266 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20267 typedef const int *iptr;
20268 iptr p = 0;
20269 ++p;
20270 }
20271 { /* AIX XL C 1.02.0.0 rejects this saying
20272 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20273 struct s { int j; const int *ap[3]; };
20274 struct s *b; b->j = 5;
20275 }
20276 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20277 const int foo = 10;
20278 }
20279 #endif
20280
20281 ;
20282 return 0;
20283 }
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287 (eval $ac_compile) 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_c_const=yes
20307 else
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 ac_cv_c_const=no
20312 fi
20313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20314 fi
20315 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20316 echo "${ECHO_T}$ac_cv_c_const" >&6
20317 if test $ac_cv_c_const = no; then
20318
20319 cat >>confdefs.h <<\_ACEOF
20320 #define const
20321 _ACEOF
20322
20323 fi
20324
20325 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20326 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20327 if test "${ac_cv_header_stat_broken+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330 cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h. */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20336 #include <sys/types.h>
20337 #include <sys/stat.h>
20338
20339 #if defined(S_ISBLK) && defined(S_IFDIR)
20340 # if S_ISBLK (S_IFDIR)
20341 You lose.
20342 # endif
20343 #endif
20344
20345 #if defined(S_ISBLK) && defined(S_IFCHR)
20346 # if S_ISBLK (S_IFCHR)
20347 You lose.
20348 # endif
20349 #endif
20350
20351 #if defined(S_ISLNK) && defined(S_IFREG)
20352 # if S_ISLNK (S_IFREG)
20353 You lose.
20354 # endif
20355 #endif
20356
20357 #if defined(S_ISSOCK) && defined(S_IFREG)
20358 # if S_ISSOCK (S_IFREG)
20359 You lose.
20360 # endif
20361 #endif
20362
20363 _ACEOF
20364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20365 $EGREP "You lose" >/dev/null 2>&1; then
20366 ac_cv_header_stat_broken=yes
20367 else
20368 ac_cv_header_stat_broken=no
20369 fi
20370 rm -f conftest*
20371
20372 fi
20373 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20374 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20375 if test $ac_cv_header_stat_broken = yes; then
20376
20377 cat >>confdefs.h <<\_ACEOF
20378 #define STAT_MACROS_BROKEN 1
20379 _ACEOF
20380
20381 fi
20382
20383 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20384 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20385 if test "${ac_cv_header_time+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <sys/types.h>
20395 #include <sys/time.h>
20396 #include <time.h>
20397
20398 int
20399 main ()
20400 {
20401 if ((struct tm *) 0)
20402 return 0;
20403 ;
20404 return 0;
20405 }
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; } &&
20422 { ac_try='test -s conftest.$ac_objext'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 ac_cv_header_time=yes
20429 else
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ac_cv_header_time=no
20434 fi
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436 fi
20437 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20438 echo "${ECHO_T}$ac_cv_header_time" >&6
20439 if test $ac_cv_header_time = yes; then
20440
20441 cat >>confdefs.h <<\_ACEOF
20442 #define TIME_WITH_SYS_TIME 1
20443 _ACEOF
20444
20445 fi
20446
20447 echo "$as_me:$LINENO: checking for off_t" >&5
20448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20449 if test "${ac_cv_type_off_t+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 else
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 $ac_includes_default
20459 int
20460 main ()
20461 {
20462 if ((off_t *) 0)
20463 return 0;
20464 if (sizeof (off_t))
20465 return 0;
20466 ;
20467 return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472 (eval $ac_compile) 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest.$ac_objext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_cv_type_off_t=yes
20492 else
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 ac_cv_type_off_t=no
20497 fi
20498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20499 fi
20500 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20501 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20502 if test $ac_cv_type_off_t = yes; then
20503 :
20504 else
20505
20506 cat >>confdefs.h <<_ACEOF
20507 #define off_t long
20508 _ACEOF
20509
20510 fi
20511
20512 echo "$as_me:$LINENO: checking for mode_t" >&5
20513 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
20514 if test "${ac_cv_type_mode_t+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 $ac_includes_default
20524 int
20525 main ()
20526 {
20527 if ((mode_t *) 0)
20528 return 0;
20529 if (sizeof (mode_t))
20530 return 0;
20531 ;
20532 return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_type_mode_t=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 ac_cv_type_mode_t=no
20562 fi
20563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20564 fi
20565 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20566 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
20567 if test $ac_cv_type_mode_t = yes; then
20568 :
20569 else
20570
20571 cat >>confdefs.h <<_ACEOF
20572 #define mode_t int
20573 _ACEOF
20574
20575 fi
20576
20577 echo "$as_me:$LINENO: checking for size_t" >&5
20578 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20579 if test "${ac_cv_type_size_t+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 $ac_includes_default
20589 int
20590 main ()
20591 {
20592 if ((size_t *) 0)
20593 return 0;
20594 if (sizeof (size_t))
20595 return 0;
20596 ;
20597 return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; } &&
20615 { ac_try='test -s conftest.$ac_objext'
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ac_cv_type_size_t=yes
20622 else
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20625
20626 ac_cv_type_size_t=no
20627 fi
20628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20629 fi
20630 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20631 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20632 if test $ac_cv_type_size_t = yes; then
20633 :
20634 else
20635
20636 cat >>confdefs.h <<_ACEOF
20637 #define size_t unsigned
20638 _ACEOF
20639
20640 fi
20641
20642 echo "$as_me:$LINENO: checking for pid_t" >&5
20643 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20644 if test "${ac_cv_type_pid_t+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 $ac_includes_default
20654 int
20655 main ()
20656 {
20657 if ((pid_t *) 0)
20658 return 0;
20659 if (sizeof (pid_t))
20660 return 0;
20661 ;
20662 return 0;
20663 }
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20667 (eval $ac_compile) 2>conftest.er1
20668 ac_status=$?
20669 grep -v '^ *+' conftest.er1 >conftest.err
20670 rm -f conftest.er1
20671 cat conftest.err >&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } &&
20674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest.$ac_objext'
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_cv_type_pid_t=yes
20687 else
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691 ac_cv_type_pid_t=no
20692 fi
20693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20694 fi
20695 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20696 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20697 if test $ac_cv_type_pid_t = yes; then
20698 :
20699 else
20700
20701 cat >>confdefs.h <<_ACEOF
20702 #define pid_t int
20703 _ACEOF
20704
20705 fi
20706
20707 echo "$as_me:$LINENO: checking for size_t" >&5
20708 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20709 if test "${ac_cv_type_size_t+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712 cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h. */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20718 $ac_includes_default
20719 int
20720 main ()
20721 {
20722 if ((size_t *) 0)
20723 return 0;
20724 if (sizeof (size_t))
20725 return 0;
20726 ;
20727 return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732 (eval $ac_compile) 2>conftest.er1
20733 ac_status=$?
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest.$ac_objext'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_type_size_t=yes
20752 else
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 ac_cv_type_size_t=no
20757 fi
20758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20759 fi
20760 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20761 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20762 if test $ac_cv_type_size_t = yes; then
20763 :
20764 else
20765
20766 cat >>confdefs.h <<_ACEOF
20767 #define size_t unsigned
20768 _ACEOF
20769
20770 fi
20771
20772 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20773 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20774 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 $ac_includes_default
20784 int
20785 main ()
20786 {
20787 static struct stat ac_aggr;
20788 if (ac_aggr.st_blksize)
20789 return 0;
20790 ;
20791 return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; } &&
20809 { ac_try='test -s conftest.$ac_objext'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 ac_cv_member_struct_stat_st_blksize=yes
20816 else
20817 echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h. */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 $ac_includes_default
20827 int
20828 main ()
20829 {
20830 static struct stat ac_aggr;
20831 if (sizeof ac_aggr.st_blksize)
20832 return 0;
20833 ;
20834 return 0;
20835 }
20836 _ACEOF
20837 rm -f conftest.$ac_objext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20839 (eval $ac_compile) 2>conftest.er1
20840 ac_status=$?
20841 grep -v '^ *+' conftest.er1 >conftest.err
20842 rm -f conftest.er1
20843 cat conftest.err >&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } &&
20846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try='test -s conftest.$ac_objext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_cv_member_struct_stat_st_blksize=yes
20859 else
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ac_cv_member_struct_stat_st_blksize=no
20864 fi
20865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20866 fi
20867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20868 fi
20869 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20871 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20875 _ACEOF
20876
20877
20878 fi
20879
20880
20881
20882
20883 echo "$as_me:$LINENO: checking for ssize_t" >&5
20884 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
20885 if test "${db_cv_ssize_t+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 else
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h. */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <sys/types.h>
20895 int
20896 main ()
20897 {
20898 ssize_t foo;
20899 ;
20900 return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20905 (eval $ac_compile) 2>conftest.er1
20906 ac_status=$?
20907 grep -v '^ *+' conftest.er1 >conftest.err
20908 rm -f conftest.er1
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; } &&
20918 { ac_try='test -s conftest.$ac_objext'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20921 ac_status=$?
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 db_cv_ssize_t=yes
20925 else
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 db_cv_ssize_t=no
20930 fi
20931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20932 fi
20933 echo "$as_me:$LINENO: result: $db_cv_ssize_t" >&5
20934 echo "${ECHO_T}$db_cv_ssize_t" >&6
20935 if test "$db_cv_ssize_t" = no; then
20936 ssize_t_decl="typedef int ssize_t;"
20937 fi
20938
20939
20940 echo "$as_me:$LINENO: checking for u_char" >&5
20941 echo $ECHO_N "checking for u_char... $ECHO_C" >&6
20942 if test "${db_cv_uchar+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h. */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 #include <sys/types.h>
20952 int
20953 main ()
20954 {
20955 u_char foo;
20956 ;
20957 return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20962 (eval $ac_compile) 2>conftest.er1
20963 ac_status=$?
20964 grep -v '^ *+' conftest.er1 >conftest.err
20965 rm -f conftest.er1
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } &&
20969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest.$ac_objext'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 db_cv_uchar=yes
20982 else
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 db_cv_uchar=no
20987 fi
20988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20989 fi
20990 echo "$as_me:$LINENO: result: $db_cv_uchar" >&5
20991 echo "${ECHO_T}$db_cv_uchar" >&6
20992 if test "$db_cv_uchar" = no; then
20993 u_char_decl="typedef unsigned char u_char;"
20994 fi
20995
20996
20997 echo "$as_me:$LINENO: checking for u_short" >&5
20998 echo $ECHO_N "checking for u_short... $ECHO_C" >&6
20999 if test "${db_cv_ushort+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <sys/types.h>
21009 int
21010 main ()
21011 {
21012 u_short foo;
21013 ;
21014 return 0;
21015 }
21016 _ACEOF
21017 rm -f conftest.$ac_objext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21019 (eval $ac_compile) 2>conftest.er1
21020 ac_status=$?
21021 grep -v '^ *+' conftest.er1 >conftest.err
21022 rm -f conftest.er1
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } &&
21026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21029 ac_status=$?
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; } &&
21032 { ac_try='test -s conftest.$ac_objext'
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 db_cv_ushort=yes
21039 else
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043 db_cv_ushort=no
21044 fi
21045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21046 fi
21047 echo "$as_me:$LINENO: result: $db_cv_ushort" >&5
21048 echo "${ECHO_T}$db_cv_ushort" >&6
21049 if test "$db_cv_ushort" = no; then
21050 u_short_decl="typedef unsigned short u_short;"
21051 fi
21052
21053
21054 echo "$as_me:$LINENO: checking for u_int" >&5
21055 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
21056 if test "${db_cv_uint+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h. */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 #include <sys/types.h>
21066 int
21067 main ()
21068 {
21069 u_int foo;
21070 ;
21071 return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext
21075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21076 (eval $ac_compile) 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
21095 db_cv_uint=yes
21096 else
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 db_cv_uint=no
21101 fi
21102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21103 fi
21104 echo "$as_me:$LINENO: result: $db_cv_uint" >&5
21105 echo "${ECHO_T}$db_cv_uint" >&6
21106 if test "$db_cv_uint" = no; then
21107 u_int_decl="typedef unsigned int u_int;"
21108 fi
21109
21110
21111 echo "$as_me:$LINENO: checking for u_long" >&5
21112 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
21113 if test "${db_cv_ulong+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21116 cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h. */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 #include <sys/types.h>
21123 int
21124 main ()
21125 {
21126 u_long foo;
21127 ;
21128 return 0;
21129 }
21130 _ACEOF
21131 rm -f conftest.$ac_objext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21133 (eval $ac_compile) 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; } &&
21146 { ac_try='test -s conftest.$ac_objext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21149 ac_status=$?
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 db_cv_ulong=yes
21153 else
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157 db_cv_ulong=no
21158 fi
21159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21160 fi
21161 echo "$as_me:$LINENO: result: $db_cv_ulong" >&5
21162 echo "${ECHO_T}$db_cv_ulong" >&6
21163 if test "$db_cv_ulong" = no; then
21164 u_long_decl="typedef unsigned long u_long;"
21165 fi
21166
21167
21168 echo "$as_me:$LINENO: checking for u_int8_t" >&5
21169 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
21170 if test "${db_cv_uint8+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 #include <sys/types.h>
21180 int
21181 main ()
21182 {
21183 u_int8_t foo;
21184 ;
21185 return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21190 (eval $ac_compile) 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
21197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest.$ac_objext'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 db_cv_uint8=yes
21210 else
21211 echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21213
21214 if test "$cross_compiling" = yes; then
21215 :
21216 else
21217 cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h. */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 main(){exit(sizeof(unsigned char) != 1);}
21224 _ACEOF
21225 rm -f conftest$ac_exeext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21227 (eval $ac_link) 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
21236 db_cv_uint8="unsigned char"
21237 else
21238 echo "$as_me: program exited with status $ac_status" >&5
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21241
21242 ( exit $ac_status )
21243 db_cv_uint8=no
21244 fi
21245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21246 fi
21247 fi
21248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21249 fi
21250 echo "$as_me:$LINENO: result: $db_cv_uint8" >&5
21251 echo "${ECHO_T}$db_cv_uint8" >&6
21252 if test "$db_cv_uint8" = no; then
21253 { { echo "$as_me:$LINENO: error: No unsigned 8-bit integral type." >&5
21254 echo "$as_me: error: No unsigned 8-bit integral type." >&2;}
21255 { (exit 1); exit 1; }; }
21256 fi
21257 if test "$db_cv_uint8" != yes; then
21258 u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
21259 fi
21260
21261
21262 echo "$as_me:$LINENO: checking for u_int16_t" >&5
21263 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
21264 if test "${db_cv_uint16+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #include <sys/types.h>
21274 int
21275 main ()
21276 {
21277 u_int16_t foo;
21278 ;
21279 return 0;
21280 }
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284 (eval $ac_compile) 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } &&
21291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; } &&
21297 { ac_try='test -s conftest.$ac_objext'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21303 db_cv_uint16=yes
21304 else
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21307
21308 if test "$cross_compiling" = yes; then
21309 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21310 See \`config.log' for more details." >&5
21311 echo "$as_me: error: cannot run test program while cross compiling
21312 See \`config.log' for more details." >&2;}
21313 { (exit 1); exit 1; }; }
21314 else
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h. */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 main(){exit(sizeof(unsigned short) != 2);}
21322 _ACEOF
21323 rm -f conftest$ac_exeext
21324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21325 (eval $ac_link) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 db_cv_uint16="unsigned short"
21335 else
21336 echo "$as_me: program exited with status $ac_status" >&5
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21339
21340 ( exit $ac_status )
21341 if test "$cross_compiling" = yes; then
21342 :
21343 else
21344 cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h. */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 main(){exit(sizeof(unsigned int) != 2);}
21351 _ACEOF
21352 rm -f conftest$ac_exeext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354 (eval $ac_link) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; }; then
21363 db_cv_uint16="unsigned int"
21364 else
21365 echo "$as_me: program exited with status $ac_status" >&5
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 ( exit $ac_status )
21370 db_cv_uint16=no
21371 fi
21372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21373 fi
21374 fi
21375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21376 fi
21377 fi
21378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21379 fi
21380 echo "$as_me:$LINENO: result: $db_cv_uint16" >&5
21381 echo "${ECHO_T}$db_cv_uint16" >&6
21382 if test "$db_cv_uint16" = no; then
21383 { { echo "$as_me:$LINENO: error: No unsigned 16-bit integral type." >&5
21384 echo "$as_me: error: No unsigned 16-bit integral type." >&2;}
21385 { (exit 1); exit 1; }; }
21386 fi
21387 if test "$db_cv_uint16" != yes; then
21388 u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
21389 fi
21390
21391
21392 echo "$as_me:$LINENO: checking for int16_t" >&5
21393 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
21394 if test "${db_cv_int16+set}" = set; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 #include <sys/types.h>
21404 int
21405 main ()
21406 {
21407 int16_t foo;
21408 ;
21409 return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest.$ac_objext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21414 (eval $ac_compile) 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
21421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest.$ac_objext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 db_cv_int16=yes
21434 else
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 if test "$cross_compiling" = yes; then
21439 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21440 See \`config.log' for more details." >&5
21441 echo "$as_me: error: cannot run test program while cross compiling
21442 See \`config.log' for more details." >&2;}
21443 { (exit 1); exit 1; }; }
21444 else
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h. */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 main(){exit(sizeof(short) != 2);}
21452 _ACEOF
21453 rm -f conftest$ac_exeext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21455 (eval $ac_link) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21460 (eval $ac_try) 2>&5
21461 ac_status=$?
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; }; then
21464 db_cv_int16="short"
21465 else
21466 echo "$as_me: program exited with status $ac_status" >&5
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ( exit $ac_status )
21471 if test "$cross_compiling" = yes; then
21472 :
21473 else
21474 cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h. */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 main(){exit(sizeof(int) != 2);}
21481 _ACEOF
21482 rm -f conftest$ac_exeext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21484 (eval $ac_link) 2>&5
21485 ac_status=$?
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21493 db_cv_int16="int"
21494 else
21495 echo "$as_me: program exited with status $ac_status" >&5
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 ( exit $ac_status )
21500 db_cv_int16=no
21501 fi
21502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21503 fi
21504 fi
21505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21506 fi
21507 fi
21508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21509 fi
21510 echo "$as_me:$LINENO: result: $db_cv_int16" >&5
21511 echo "${ECHO_T}$db_cv_int16" >&6
21512 if test "$db_cv_int16" = no; then
21513 { { echo "$as_me:$LINENO: error: No signed 16-bit integral type." >&5
21514 echo "$as_me: error: No signed 16-bit integral type." >&2;}
21515 { (exit 1); exit 1; }; }
21516 fi
21517 if test "$db_cv_int16" != yes; then
21518 int16_decl="typedef $db_cv_int16 int16_t;"
21519 fi
21520
21521
21522 echo "$as_me:$LINENO: checking for u_int32_t" >&5
21523 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
21524 if test "${db_cv_uint32+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527 cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h. */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <sys/types.h>
21534 int
21535 main ()
21536 {
21537 u_int32_t foo;
21538 ;
21539 return 0;
21540 }
21541 _ACEOF
21542 rm -f conftest.$ac_objext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21544 (eval $ac_compile) 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try='test -s conftest.$ac_objext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 db_cv_uint32=yes
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21567
21568 if test "$cross_compiling" = yes; then
21569 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21570 See \`config.log' for more details." >&5
21571 echo "$as_me: error: cannot run test program while cross compiling
21572 See \`config.log' for more details." >&2;}
21573 { (exit 1); exit 1; }; }
21574 else
21575 cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h. */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 main(){exit(sizeof(unsigned int) != 4);}
21582 _ACEOF
21583 rm -f conftest$ac_exeext
21584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21585 (eval $ac_link) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 db_cv_uint32="unsigned int"
21595 else
21596 echo "$as_me: program exited with status $ac_status" >&5
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 ( exit $ac_status )
21601 if test "$cross_compiling" = yes; then
21602 :
21603 else
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 main(){exit(sizeof(unsigned long) != 4);}
21611 _ACEOF
21612 rm -f conftest$ac_exeext
21613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21614 (eval $ac_link) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
21623 db_cv_uint32="unsigned long"
21624 else
21625 echo "$as_me: program exited with status $ac_status" >&5
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 ( exit $ac_status )
21630 db_cv_uint32=no
21631 fi
21632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21633 fi
21634 fi
21635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21636 fi
21637 fi
21638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21639 fi
21640 echo "$as_me:$LINENO: result: $db_cv_uint32" >&5
21641 echo "${ECHO_T}$db_cv_uint32" >&6
21642 if test "$db_cv_uint32" = no; then
21643 { { echo "$as_me:$LINENO: error: No unsigned 32-bit integral type." >&5
21644 echo "$as_me: error: No unsigned 32-bit integral type." >&2;}
21645 { (exit 1); exit 1; }; }
21646 fi
21647 if test "$db_cv_uint32" != yes; then
21648 u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
21649 fi
21650
21651
21652 echo "$as_me:$LINENO: checking for int32_t" >&5
21653 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
21654 if test "${db_cv_int32+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 else
21657 cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h. */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <sys/types.h>
21664 int
21665 main ()
21666 {
21667 int32_t foo;
21668 ;
21669 return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21674 (eval $ac_compile) 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } &&
21687 { ac_try='test -s conftest.$ac_objext'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 db_cv_int32=yes
21694 else
21695 echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 if test "$cross_compiling" = yes; then
21699 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21700 See \`config.log' for more details." >&5
21701 echo "$as_me: error: cannot run test program while cross compiling
21702 See \`config.log' for more details." >&2;}
21703 { (exit 1); exit 1; }; }
21704 else
21705 cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h. */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 main(){exit(sizeof(int) != 4);}
21712 _ACEOF
21713 rm -f conftest$ac_exeext
21714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21715 (eval $ac_link) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 db_cv_int32="int"
21725 else
21726 echo "$as_me: program exited with status $ac_status" >&5
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730 ( exit $ac_status )
21731 if test "$cross_compiling" = yes; then
21732 :
21733 else
21734 cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h. */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 main(){exit(sizeof(long) != 4);}
21741 _ACEOF
21742 rm -f conftest$ac_exeext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21744 (eval $ac_link) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21753 db_cv_int32="long"
21754 else
21755 echo "$as_me: program exited with status $ac_status" >&5
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759 ( exit $ac_status )
21760 db_cv_int32=no
21761 fi
21762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21763 fi
21764 fi
21765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21766 fi
21767 fi
21768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21769 fi
21770 echo "$as_me:$LINENO: result: $db_cv_int32" >&5
21771 echo "${ECHO_T}$db_cv_int32" >&6
21772 if test "$db_cv_int32" = no; then
21773 { { echo "$as_me:$LINENO: error: No signed 32-bit integral type." >&5
21774 echo "$as_me: error: No signed 32-bit integral type." >&2;}
21775 { (exit 1); exit 1; }; }
21776 fi
21777 if test "$db_cv_int32" != yes; then
21778 int32_decl="typedef $db_cv_int32 int32_t;"
21779 fi
21780
21781
21782 # Process all options before using them. This is necessary because there
21783 # are dependencies among them.
21784
21785
21786 echo "$as_me:$LINENO: checking if --enable-bigfile option specified" >&5
21787 echo $ECHO_N "checking if --enable-bigfile option specified... $ECHO_C" >&6
21788 # Check whether --enable-bigfile or --disable-bigfile was given.
21789 if test "${enable_bigfile+set}" = set; then
21790 enableval="$enable_bigfile"
21791 db_cv_bigfile="$enable_bigfile"
21792 else
21793 db_cv_bigfile="yes"
21794 fi;
21795 echo "$as_me:$LINENO: result: $db_cv_bigfile" >&5
21796 echo "${ECHO_T}$db_cv_bigfile" >&6
21797
21798 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
21799 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
21800 # Check whether --enable-debug or --disable-debug was given.
21801 if test "${enable_debug+set}" = set; then
21802 enableval="$enable_debug"
21803 db_cv_debug="$enable_debug"
21804 else
21805 db_cv_debug="no"
21806 fi;
21807 echo "$as_me:$LINENO: result: $db_cv_debug" >&5
21808 echo "${ECHO_T}$db_cv_debug" >&6
21809
21810 echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
21811 echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
21812 # Check whether --enable-debug_rop or --disable-debug_rop was given.
21813 if test "${enable_debug_rop+set}" = set; then
21814 enableval="$enable_debug_rop"
21815 db_cv_debug_rop="$enable_debug_rop"
21816 else
21817 db_cv_debug_rop="no"
21818 fi;
21819 echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
21820 echo "${ECHO_T}$db_cv_debug_rop" >&6
21821
21822 echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
21823 echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
21824 # Check whether --enable-debug_wop or --disable-debug_wop was given.
21825 if test "${enable_debug_wop+set}" = set; then
21826 enableval="$enable_debug_wop"
21827 db_cv_debug_wop="$enable_debug_wop"
21828 else
21829 db_cv_debug_wop="no"
21830 fi;
21831 echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
21832 echo "${ECHO_T}$db_cv_debug_wop" >&6
21833
21834 echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
21835 echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
21836 # Check whether --enable-diagnostic or --disable-diagnostic was given.
21837 if test "${enable_diagnostic+set}" = set; then
21838 enableval="$enable_diagnostic"
21839 db_cv_diagnostic="$enable_diagnostic"
21840 else
21841 db_cv_diagnostic="no"
21842 fi;
21843 echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
21844 echo "${ECHO_T}$db_cv_diagnostic" >&6
21845
21846 echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
21847 echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
21848 # Check whether --enable-posixmutexes or --disable-posixmutexes was given.
21849 if test "${enable_posixmutexes+set}" = set; then
21850 enableval="$enable_posixmutexes"
21851 db_cv_posixmutexes="$enable_posixmutexes"
21852 else
21853 db_cv_posixmutexes="no"
21854 fi;
21855 echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
21856 echo "${ECHO_T}$db_cv_posixmutexes" >&6
21857
21858 echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
21859 echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
21860 # Check whether --enable-uimutexes or --disable-uimutexes was given.
21861 if test "${enable_uimutexes+set}" = set; then
21862 enableval="$enable_uimutexes"
21863 db_cv_uimutexes="$enable_uimutexes"
21864 else
21865 db_cv_uimutexes="no"
21866 fi;
21867 echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
21868 echo "${ECHO_T}$db_cv_uimutexes" >&6
21869
21870
21871
21872
21873
21874 echo "$as_me:$LINENO: checking for mutexes" >&5
21875 echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
21876 if test "${db_cv_mutex+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879 db_cv_mutex=no
21880
21881 orig_libs=$LIBS
21882
21883 if test "$db_cv_posixmutexes" = yes; then
21884 db_cv_mutex="POSIX/pthreads/library"
21885 fi
21886
21887 if test "$db_cv_uimutexes" = yes; then
21888 db_cv_mutex="UI/threads/library"
21889 fi
21890
21891 if test "$db_cv_mutex" = no; then
21892
21893 if test "$cross_compiling" = yes; then
21894 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21895 See \`config.log' for more details." >&5
21896 echo "$as_me: error: cannot run test program while cross compiling
21897 See \`config.log' for more details." >&2;}
21898 { (exit 1); exit 1; }; }
21899 else
21900 cat >conftest.$ac_ext <<_ACEOF
21901 /* confdefs.h. */
21902 _ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21906
21907 #include <synch.h>
21908 main(){
21909 static lwp_mutex_t mi = SHAREDMUTEX;
21910 static lwp_cond_t ci = SHAREDCV;
21911 lwp_mutex_t mutex = mi;
21912 lwp_cond_t cond = ci;
21913 exit (
21914 _lwp_mutex_lock(&mutex) ||
21915 _lwp_mutex_unlock(&mutex));}
21916
21917 _ACEOF
21918 rm -f conftest$ac_exeext
21919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 db_cv_mutex="Solaris/lwp"
21930 else
21931 echo "$as_me: program exited with status $ac_status" >&5
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935 ( exit $ac_status )
21936 :
21937 fi
21938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21939 fi
21940
21941 fi
21942
21943 if test "$db_cv_mutex" = no; then
21944 LIBS="-lthread $LIBS"
21945 if test "$cross_compiling" = yes; then
21946 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21947 See \`config.log' for more details." >&5
21948 echo "$as_me: error: cannot run test program while cross compiling
21949 See \`config.log' for more details." >&2;}
21950 { (exit 1); exit 1; }; }
21951 else
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958
21959 #include <thread.h>
21960 #include <synch.h>
21961 main(){
21962 mutex_t mutex;
21963 cond_t cond;
21964 int type = USYNC_PROCESS;
21965 exit (
21966 mutex_init(&mutex, type, NULL) ||
21967 cond_init(&cond, type, NULL) ||
21968 mutex_lock(&mutex) ||
21969 mutex_unlock(&mutex));
21970 }
21971 _ACEOF
21972 rm -f conftest$ac_exeext
21973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21974 (eval $ac_link) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 db_cv_mutex="UI/threads/library"
21984 else
21985 echo "$as_me: program exited with status $ac_status" >&5
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989 ( exit $ac_status )
21990 :
21991 fi
21992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21993 fi
21994 LIBS="$orig_libs"
21995 fi
21996 if test "$db_cv_mutex" = no; then
21997 if test "$cross_compiling" = yes; then
21998 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21999 See \`config.log' for more details." >&5
22000 echo "$as_me: error: cannot run test program while cross compiling
22001 See \`config.log' for more details." >&2;}
22002 { (exit 1); exit 1; }; }
22003 else
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010
22011 #include <thread.h>
22012 #include <synch.h>
22013 main(){
22014 mutex_t mutex;
22015 cond_t cond;
22016 int type = USYNC_PROCESS;
22017 exit (
22018 mutex_init(&mutex, type, NULL) ||
22019 cond_init(&cond, type, NULL) ||
22020 mutex_lock(&mutex) ||
22021 mutex_unlock(&mutex));
22022 }
22023 _ACEOF
22024 rm -f conftest$ac_exeext
22025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22026 (eval $ac_link) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 db_cv_mutex="UI/threads"
22036 else
22037 echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041 ( exit $ac_status )
22042 :
22043 fi
22044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 fi
22046 fi
22047
22048 if test "$db_cv_mutex" = no; then
22049 if test "$cross_compiling" = yes; then
22050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22051 See \`config.log' for more details." >&5
22052 echo "$as_me: error: cannot run test program while cross compiling
22053 See \`config.log' for more details." >&2;}
22054 { (exit 1); exit 1; }; }
22055 else
22056 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h. */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062
22063 #include <pthread.h>
22064 main(){
22065 pthread_cond_t cond;
22066 pthread_mutex_t mutex;
22067 pthread_condattr_t condattr;
22068 pthread_mutexattr_t mutexattr;
22069 exit (
22070 pthread_condattr_init(&condattr) ||
22071 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
22072 pthread_mutexattr_init(&mutexattr) ||
22073 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
22074 pthread_cond_init(&cond, &condattr) ||
22075 pthread_mutex_init(&mutex, &mutexattr) ||
22076 pthread_mutex_lock(&mutex) ||
22077 pthread_mutex_unlock(&mutex) ||
22078 pthread_mutex_destroy(&mutex) ||
22079 pthread_cond_destroy(&cond) ||
22080 pthread_condattr_destroy(&condattr) ||
22081 pthread_mutexattr_destroy(&mutexattr));
22082 }
22083 _ACEOF
22084 rm -f conftest$ac_exeext
22085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22086 (eval $ac_link) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 db_cv_mutex="POSIX/pthreads"
22096 else
22097 echo "$as_me: program exited with status $ac_status" >&5
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101 ( exit $ac_status )
22102 :
22103 fi
22104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22105 fi
22106 fi
22107 if test "$db_cv_mutex" = no; then
22108 LIBS="-lpthread $LIBS"
22109 if test "$cross_compiling" = yes; then
22110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22111 See \`config.log' for more details." >&5
22112 echo "$as_me: error: cannot run test program while cross compiling
22113 See \`config.log' for more details." >&2;}
22114 { (exit 1); exit 1; }; }
22115 else
22116 cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h. */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122
22123 #include <pthread.h>
22124 main(){
22125 pthread_cond_t cond;
22126 pthread_mutex_t mutex;
22127 pthread_condattr_t condattr;
22128 pthread_mutexattr_t mutexattr;
22129 exit (
22130 pthread_condattr_init(&condattr) ||
22131 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
22132 pthread_mutexattr_init(&mutexattr) ||
22133 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
22134 pthread_cond_init(&cond, &condattr) ||
22135 pthread_mutex_init(&mutex, &mutexattr) ||
22136 pthread_mutex_lock(&mutex) ||
22137 pthread_mutex_unlock(&mutex) ||
22138 pthread_mutex_destroy(&mutex) ||
22139 pthread_cond_destroy(&cond) ||
22140 pthread_condattr_destroy(&condattr) ||
22141 pthread_mutexattr_destroy(&mutexattr));
22142 }
22143 _ACEOF
22144 rm -f conftest$ac_exeext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22146 (eval $ac_link) 2>&5
22147 ac_status=$?
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; }; then
22155 db_cv_mutex="POSIX/pthreads/library"
22156 else
22157 echo "$as_me: program exited with status $ac_status" >&5
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22160
22161 ( exit $ac_status )
22162 :
22163 fi
22164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22165 fi
22166 LIBS="$orig_libs"
22167 fi
22168
22169 if test "$db_cv_mutex" = no; then
22170 if test "$cross_compiling" = yes; then
22171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22172 See \`config.log' for more details." >&5
22173 echo "$as_me: error: cannot run test program while cross compiling
22174 See \`config.log' for more details." >&2;}
22175 { (exit 1); exit 1; }; }
22176 else
22177 cat >conftest.$ac_ext <<_ACEOF
22178 /* confdefs.h. */
22179 _ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h. */
22183
22184 #include <sys/mman.h>
22185 main(){
22186 #if defined(__hppa)
22187 typedef msemaphore tsl_t;
22188 msemaphore x;
22189 msem_init(&x, 0);
22190 msem_lock(&x, 0);
22191 msem_unlock(&x, 0);
22192 exit(0);
22193 #else
22194 exit(1);
22195 #endif
22196 }
22197 _ACEOF
22198 rm -f conftest$ac_exeext
22199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22200 (eval $ac_link) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22206 ac_status=$?
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; }; then
22209 db_cv_mutex="HP/msem_init"
22210 else
22211 echo "$as_me: program exited with status $ac_status" >&5
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215 ( exit $ac_status )
22216 :
22217 fi
22218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22219 fi
22220 fi
22221
22222 if test "$db_cv_mutex" = no; then
22223 if test "$cross_compiling" = yes; then
22224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22225 See \`config.log' for more details." >&5
22226 echo "$as_me: error: cannot run test program while cross compiling
22227 See \`config.log' for more details." >&2;}
22228 { (exit 1); exit 1; }; }
22229 else
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236
22237 #include <sys/types.h>
22238 #include <sys/mman.h>;
22239 main(){
22240 typedef msemaphore tsl_t;
22241 msemaphore x;
22242 msem_init(&x, 0);
22243 msem_lock(&x, 0);
22244 msem_unlock(&x, 0);
22245 exit(0);
22246 }
22247 _ACEOF
22248 rm -f conftest$ac_exeext
22249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22250 (eval $ac_link) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }; then
22259 db_cv_mutex="UNIX/msem_init"
22260 else
22261 echo "$as_me: program exited with status $ac_status" >&5
22262 echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22264
22265 ( exit $ac_status )
22266 :
22267 fi
22268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22269 fi
22270 fi
22271
22272 if test "$db_cv_mutex" = no; then
22273 LIBS="$LIBS -lmproc"
22274 cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h. */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 #include <ulocks.h>
22281 int
22282 main ()
22283 {
22284 typedef spinlock_t tsl_t;
22285 spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x);
22286 ;
22287 return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext conftest$ac_exeext
22291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22292 (eval $ac_link) 2>conftest.er1
22293 ac_status=$?
22294 grep -v '^ *+' conftest.er1 >conftest.err
22295 rm -f conftest.er1
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } &&
22299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; } &&
22305 { ac_try='test -s conftest$ac_exeext'
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311 db_cv_mutex="ReliantUNIX/initspin"
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 fi
22317 rm -f conftest.err conftest.$ac_objext \
22318 conftest$ac_exeext conftest.$ac_ext
22319 LIBS="$orig_libs"
22320 fi
22321
22322 if test "$db_cv_mutex" = no; then
22323 if test "$cross_compiling" = yes; then
22324 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22325 See \`config.log' for more details." >&5
22326 echo "$as_me: error: cannot run test program while cross compiling
22327 See \`config.log' for more details." >&2;}
22328 { (exit 1); exit 1; }; }
22329 else
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336
22337 main(){
22338 #if defined(__USLC__)
22339 exit(0);
22340 #endif
22341 exit(1);
22342 }
22343 _ACEOF
22344 rm -f conftest$ac_exeext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22346 (eval $ac_link) 2>&5
22347 ac_status=$?
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22355 db_cv_mutex="SCO/x86/cc-assembly"
22356 else
22357 echo "$as_me: program exited with status $ac_status" >&5
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22360
22361 ( exit $ac_status )
22362 :
22363 fi
22364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22365 fi
22366 fi
22367
22368 if test "$db_cv_mutex" = no; then
22369 cat >conftest.$ac_ext <<_ACEOF
22370 /* confdefs.h. */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22375 #include <abi_mutex.h>
22376 int
22377 main ()
22378 {
22379 typedef abilock_t tsl_t;
22380 abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x);
22381 ;
22382 return 0;
22383 }
22384 _ACEOF
22385 rm -f conftest.$ac_objext conftest$ac_exeext
22386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22387 (eval $ac_link) 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try='test -s conftest$ac_exeext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 db_cv_mutex="SGI/init_lock"
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411 fi
22412 rm -f conftest.err conftest.$ac_objext \
22413 conftest$ac_exeext conftest.$ac_ext
22414 fi
22415
22416 if test "$db_cv_mutex" = DOESNT_WORK; then
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 #include <synch.h>
22424 int
22425 main ()
22426 {
22427 typedef sema_t tsl_t;
22428 sema_t x;
22429 sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x);
22430 ;
22431 return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22436 (eval $ac_link) 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; } &&
22449 { ac_try='test -s conftest$ac_exeext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 db_cv_mutex="UNIX/sema_init"
22456 else
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 fi
22461 rm -f conftest.err conftest.$ac_objext \
22462 conftest$ac_exeext conftest.$ac_ext
22463 fi
22464
22465 if test "$db_cv_mutex" = no; then
22466 cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h. */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 #include <sys/machlock.h>
22473 int
22474 main ()
22475 {
22476 typedef lock_t tsl_t;
22477 lock_t x;
22478 _lock_try(&x); _lock_clear(&x);
22479 ;
22480 return 0;
22481 }
22482 _ACEOF
22483 rm -f conftest.$ac_objext conftest$ac_exeext
22484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22485 (eval $ac_link) 2>conftest.er1
22486 ac_status=$?
22487 grep -v '^ *+' conftest.er1 >conftest.err
22488 rm -f conftest.er1
22489 cat conftest.err >&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } &&
22492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; } &&
22498 { ac_try='test -s conftest$ac_exeext'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 db_cv_mutex="Solaris/_lock_try"
22505 else
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509 fi
22510 rm -f conftest.err conftest.$ac_objext \
22511 conftest$ac_exeext conftest.$ac_ext
22512 fi
22513
22514 if test "$db_cv_mutex" = no; then
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 #include <sys/atomic_op.h>
22522 int
22523 main ()
22524 {
22525 int x; _check_lock(x,0,1); _clear_lock(x,0);
22526 ;
22527 return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22532 (eval $ac_link) 2>conftest.er1
22533 ac_status=$?
22534 grep -v '^ *+' conftest.er1 >conftest.err
22535 rm -f conftest.er1
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } &&
22539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; } &&
22545 { ac_try='test -s conftest$ac_exeext'
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; }; then
22551 db_cv_mutex="AIX/_check_lock"
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556 fi
22557 rm -f conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
22559 fi
22560
22561 if test "$db_cv_mutex" = no; then
22562 if test "$cross_compiling" = yes; then
22563 :
22564 else
22565 cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h. */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22571
22572 main(){
22573 #if defined(__alpha)
22574 #if defined(__GNUC__)
22575 exit(0);
22576 #endif
22577 #endif
22578 exit(1);}
22579 _ACEOF
22580 rm -f conftest$ac_exeext
22581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22582 (eval $ac_link) 2>&5
22583 ac_status=$?
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; }; then
22591 db_cv_mutex="ALPHA/gcc-assembly"
22592 else
22593 echo "$as_me: program exited with status $ac_status" >&5
22594 echo "$as_me: failed program was:" >&5
22595 sed 's/^/| /' conftest.$ac_ext >&5
22596
22597 ( exit $ac_status )
22598 :
22599 fi
22600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22601 fi
22602 fi
22603
22604 if test "$db_cv_mutex" = no; then
22605 if test "$cross_compiling" = yes; then
22606 :
22607 else
22608 cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h. */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614
22615 main(){
22616 #if defined(__hppa)
22617 #if defined(__GNUC__)
22618 exit(0);
22619 #endif
22620 #endif
22621 exit(1);}
22622 _ACEOF
22623 rm -f conftest$ac_exeext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22625 (eval $ac_link) 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 db_cv_mutex="HPPA/gcc-assembly"
22635 else
22636 echo "$as_me: program exited with status $ac_status" >&5
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 ( exit $ac_status )
22641 :
22642 fi
22643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22644 fi
22645 fi
22646
22647 if test "$db_cv_mutex" = DOESNT_WORK; then
22648 if test "$cross_compiling" = yes; then
22649 :
22650 else
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657
22658 main(){
22659 #if defined(__sparc__)
22660 #if defined(__GNUC__)
22661 exit(0);
22662 #endif
22663 #endif
22664 exit(1);
22665 }
22666 _ACEOF
22667 rm -f conftest$ac_exeext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22669 (eval $ac_link) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 db_cv_mutex="Sparc/gcc-assembly"
22679 else
22680 echo "$as_me: program exited with status $ac_status" >&5
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684 ( exit $ac_status )
22685 :
22686 fi
22687 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22688 fi
22689 fi
22690
22691 if test "$db_cv_mutex" = no; then
22692 if test "$cross_compiling" = yes; then
22693 :
22694 else
22695 cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h. */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22701
22702 main(){
22703 #if (defined(mc68020) || defined(sun3))
22704 #if defined(__GNUC__)
22705 exit(0);
22706 #endif
22707 #endif
22708 exit(1);
22709 }
22710 _ACEOF
22711 rm -f conftest$ac_exeext
22712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22713 (eval $ac_link) 2>&5
22714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718 (eval $ac_try) 2>&5
22719 ac_status=$?
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; }; then
22722 db_cv_mutex="68K/gcc-assembly"
22723 else
22724 echo "$as_me: program exited with status $ac_status" >&5
22725 echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728 ( exit $ac_status )
22729 :
22730 fi
22731 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22732 fi
22733 fi
22734
22735 if test "$db_cv_mutex" = no; then
22736 if test "$cross_compiling" = yes; then
22737 :
22738 else
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745
22746 main(){
22747 #if defined(i386)
22748 #if defined(__GNUC__)
22749 exit(0);
22750 #endif
22751 #endif
22752 exit(1);
22753 }
22754 _ACEOF
22755 rm -f conftest$ac_exeext
22756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22757 (eval $ac_link) 2>&5
22758 ac_status=$?
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762 (eval $ac_try) 2>&5
22763 ac_status=$?
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); }; }; then
22766 db_cv_mutex="x86/gcc-assembly"
22767 else
22768 echo "$as_me: program exited with status $ac_status" >&5
22769 echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22771
22772 ( exit $ac_status )
22773 :
22774 fi
22775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22776 fi
22777 fi
22778
22779 if test "$db_cv_mutex" = no; then
22780 if test "$cross_compiling" = yes; then
22781 :
22782 else
22783 cat >conftest.$ac_ext <<_ACEOF
22784 /* confdefs.h. */
22785 _ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h. */
22789
22790 main(){
22791 #if defined(_UTS)
22792 exit(0);
22793 #endif
22794 exit(1);
22795 }
22796 _ACEOF
22797 rm -f conftest$ac_exeext
22798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22799 (eval $ac_link) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 db_cv_mutex="UTS/cc-assembly"
22809 else
22810 echo "$as_me: program exited with status $ac_status" >&5
22811 echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22813
22814 ( exit $ac_status )
22815 :
22816 fi
22817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22818 fi
22819 fi
22820
22821 fi
22822 echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
22823 echo "${ECHO_T}$db_cv_mutex" >&6
22824
22825 if test "$db_cv_mutex" = no; then
22826 { echo "$as_me:$LINENO: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
22827 echo "$as_me: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&2;}
22828
22829 cat >>confdefs.h <<\_ACEOF
22830 #define HAVE_MUTEX_FCNTL
22831 _ACEOF
22832
22833 else
22834
22835 cat >>confdefs.h <<\_ACEOF
22836 #define HAVE_MUTEX_THREADS
22837 _ACEOF
22838
22839 fi
22840
22841 case "$db_cv_mutex" in
22842 68K/gcc-assembly)
22843 cat >>confdefs.h <<\_ACEOF
22844 #define HAVE_MUTEX_TAS
22845 _ACEOF
22846
22847
22848 cat >>confdefs.h <<\_ACEOF
22849 #define HAVE_MUTEX_68K_GCC_ASSEMBLY
22850 _ACEOF
22851 ;;
22852 AIX/_check_lock)
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_MUTEX_TAS
22855 _ACEOF
22856
22857
22858 cat >>confdefs.h <<\_ACEOF
22859 #define HAVE_MUTEX_AIX_CHECK_LOCK
22860 _ACEOF
22861 ;;
22862 ALPHA/gcc-assembly)
22863 cat >>confdefs.h <<\_ACEOF
22864 #define HAVE_MUTEX_TAS
22865 _ACEOF
22866
22867
22868 cat >>confdefs.h <<\_ACEOF
22869 #define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY
22870 _ACEOF
22871 ;;
22872 HP/msem_init)
22873 cat >>confdefs.h <<\_ACEOF
22874 #define HAVE_MUTEX_TAS
22875 _ACEOF
22876
22877
22878 cat >>confdefs.h <<\_ACEOF
22879 #define HAVE_MUTEX_HPPA_MSEM_INIT
22880 _ACEOF
22881 ;;
22882 HPPA/gcc-assembly)
22883 cat >>confdefs.h <<\_ACEOF
22884 #define HAVE_MUTEX_TAS
22885 _ACEOF
22886
22887
22888 cat >>confdefs.h <<\_ACEOF
22889 #define HAVE_MUTEX_HPPA_GCC_ASSEMBLY
22890 _ACEOF
22891 ;;
22892 POSIX/pthreads)
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_MUTEX_PTHREAD
22895 _ACEOF
22896
22897
22898 cat >>confdefs.h <<\_ACEOF
22899 #define HAVE_MUTEX_PTHREADS
22900 _ACEOF
22901 ;;
22902 POSIX/pthreads/library) LIBS="-lpthread $LIBS"
22903
22904 cat >>confdefs.h <<\_ACEOF
22905 #define HAVE_MUTEX_PTHREAD
22906 _ACEOF
22907
22908
22909 cat >>confdefs.h <<\_ACEOF
22910 #define HAVE_MUTEX_PTHREADS
22911 _ACEOF
22912 ;;
22913 ReliantUNIX/initspin) LIBS="$LIBS -lmproc"
22914
22915 cat >>confdefs.h <<\_ACEOF
22916 #define HAVE_MUTEX_TAS
22917 _ACEOF
22918
22919
22920 cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_MUTEX_RELIANTUNIX_INITSPIN
22922 _ACEOF
22923 ;;
22924 SCO/x86/cc-assembly)
22925 cat >>confdefs.h <<\_ACEOF
22926 #define HAVE_MUTEX_TAS
22927 _ACEOF
22928
22929
22930 cat >>confdefs.h <<\_ACEOF
22931 #define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY
22932 _ACEOF
22933 ;;
22934 SGI/init_lock)
22935 cat >>confdefs.h <<\_ACEOF
22936 #define HAVE_MUTEX_TAS
22937 _ACEOF
22938
22939
22940 cat >>confdefs.h <<\_ACEOF
22941 #define HAVE_MUTEX_SGI_INIT_LOCK
22942 _ACEOF
22943 ;;
22944 Solaris/_lock_try)
22945 cat >>confdefs.h <<\_ACEOF
22946 #define HAVE_MUTEX_TAS
22947 _ACEOF
22948
22949
22950 cat >>confdefs.h <<\_ACEOF
22951 #define HAVE_MUTEX_SOLARIS_LOCK_TRY
22952 _ACEOF
22953 ;;
22954 Solaris/lwp)
22955 cat >>confdefs.h <<\_ACEOF
22956 #define HAVE_MUTEX_PTHREAD
22957 _ACEOF
22958
22959
22960 cat >>confdefs.h <<\_ACEOF
22961 #define HAVE_MUTEX_SOLARIS_LWP
22962 _ACEOF
22963 ;;
22964 Sparc/gcc-assembly)
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_MUTEX_TAS
22967 _ACEOF
22968
22969
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_MUTEX_SPARC_GCC_ASSEMBLY
22972 _ACEOF
22973 ;;
22974 UI/threads)
22975 cat >>confdefs.h <<\_ACEOF
22976 #define HAVE_MUTEX_PTHREAD
22977 _ACEOF
22978
22979
22980 cat >>confdefs.h <<\_ACEOF
22981 #define HAVE_MUTEX_UI_THREADS
22982 _ACEOF
22983 ;;
22984 UI/threads/library) LIBS="-lthread $LIBS"
22985
22986 cat >>confdefs.h <<\_ACEOF
22987 #define HAVE_MUTEX_PTHREAD
22988 _ACEOF
22989
22990
22991 cat >>confdefs.h <<\_ACEOF
22992 #define HAVE_MUTEX_UI_THREADS
22993 _ACEOF
22994 ;;
22995 UNIX/msem_init)
22996 cat >>confdefs.h <<\_ACEOF
22997 #define HAVE_MUTEX_TAS
22998 _ACEOF
22999
23000
23001 cat >>confdefs.h <<\_ACEOF
23002 #define HAVE_MUTEX_MSEM_INIT
23003 _ACEOF
23004 ;;
23005 UNIX/sema_init)
23006 cat >>confdefs.h <<\_ACEOF
23007 #define HAVE_MUTEX_TAS
23008 _ACEOF
23009
23010
23011 cat >>confdefs.h <<\_ACEOF
23012 #define HAVE_MUTEX_SEMA_INIT
23013 _ACEOF
23014 ;;
23015 UTS/cc-assembly) ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
23016
23017 cat >>confdefs.h <<\_ACEOF
23018 #define HAVE_MUTEX_UTS_CC_ASSEMBLY
23019 _ACEOF
23020 ;;
23021 x86/gcc-assembly)
23022 cat >>confdefs.h <<\_ACEOF
23023 #define HAVE_MUTEX_TAS
23024 _ACEOF
23025
23026
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_MUTEX_X86_GCC_ASSEMBLY
23029 _ACEOF
23030 ;;
23031 esac
23032
23033
23034
23035 # This is where we handle stuff that autoconf can't handle: compiler,
23036 # preprocessor and load flags, libraries that the standard tests don't
23037 # look for. The default optimization is -O.
23038 #
23039 # There are additional libraries we need for some compiler/architecture
23040 # combinations.
23041 #
23042 # Some architectures require DB to be compiled with special flags and/or
23043 # libraries for threaded applications
23044 #
23045 # The makefile CC may be different than the CC used in config testing,
23046 # because the makefile CC may be set to use $(LIBTOOL).
23047 #
23048 # XXX
23049 # Don't override anything if it's already set from the environment.
23050 optimize_def="-O"
23051 case "$host_os" in
23052 aix4.*) optimize_def="-O2"
23053 CC=${CC-"xlc_r"}
23054 CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS";;
23055 bsdi3*) CC=${CC-"shlicc2"}
23056 optimize_def="-O2"
23057 LIBS="-lipc $LIBS";;
23058 bsdi*) optimize_def="-O2";;
23059 freebsd*) optimize_def="-O2"
23060 CPPFLAGS="-D_THREAD_SAFE -pthread $CPPFLAGS";;
23061 hpux*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
23062 irix*) optimize_def="-O2"
23063 CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
23064 linux*) optimize_def="-O2"
23065 CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
23066 mpeix*) CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS"
23067 LIBS="-lsocket -lsvipc $LIBS";;
23068 osf*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
23069 sco3.2v4*) CC=${CC-"cc -belf"}
23070 LIBS="-lsocket -lnsl_s $LIBS";;
23071 sco*) CC=${CC-"cc -belf"}
23072 LIBS="-lsocket -lnsl $LIBS";;
23073 solaris*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
23074 esac
23075
23076 CFLAGS=${CFLAGS-$optimize_def}
23077 CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
23078
23079 # If the user wants a debugging environment, add -g to the CFLAGS value.
23080 #
23081 # XXX
23082 # Some compilers can't mix optimizing and debug flags. The only way to
23083 # handle this is to specify CFLAGS in the environment before configuring.
23084 if test "$db_cv_debug" = yes; then
23085
23086 cat >>confdefs.h <<\_ACEOF
23087 #define DEBUG
23088 _ACEOF
23089
23090 CFLAGS="$CFLAGS -g"
23091 CXXFLAGS="$CXXFLAGS -g"
23092 fi
23093
23094 if test "$db_cv_diagnostic" = yes; then
23095
23096 cat >>confdefs.h <<\_ACEOF
23097 #define DIAGNOSTIC
23098 _ACEOF
23099
23100 fi
23101 if test "$db_cv_debug_rop" = yes; then
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define DEBUG_ROP
23105 _ACEOF
23106
23107 fi
23108 if test "$db_cv_debug_wop" = yes; then
23109
23110 cat >>confdefs.h <<\_ACEOF
23111 #define DEBUG_WOP
23112 _ACEOF
23113
23114 fi
23115 # Checks for library functions.
23116 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23117 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23118 if test "${ac_cv_func_closedir_void+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121 if test "$cross_compiling" = yes; then
23122 ac_cv_func_closedir_void=yes
23123 else
23124 cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h. */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 $ac_includes_default
23131 #include <$ac_header_dirent>
23132 #ifndef __cplusplus
23133 int closedir ();
23134 #endif
23135
23136 int
23137 main ()
23138 {
23139 exit (closedir (opendir (".")) != 0);
23140 ;
23141 return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest$ac_exeext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23146 (eval $ac_link) 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; }; then
23155 ac_cv_func_closedir_void=no
23156 else
23157 echo "$as_me: program exited with status $ac_status" >&5
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161 ( exit $ac_status )
23162 ac_cv_func_closedir_void=yes
23163 fi
23164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23165 fi
23166 fi
23167 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23168 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23169 if test $ac_cv_func_closedir_void = yes; then
23170
23171 cat >>confdefs.h <<\_ACEOF
23172 #define CLOSEDIR_VOID 1
23173 _ACEOF
23174
23175 fi
23176
23177
23178 for ac_header in stdlib.h
23179 do
23180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23182 echo "$as_me:$LINENO: checking for $ac_header" >&5
23183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23186 fi
23187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23189 else
23190 # Is the header compilable?
23191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23193 cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h. */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h. */
23199 $ac_includes_default
23200 #include <$ac_header>
23201 _ACEOF
23202 rm -f conftest.$ac_objext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23204 (eval $ac_compile) 2>conftest.er1
23205 ac_status=$?
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
23211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23214 ac_status=$?
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; } &&
23217 { ac_try='test -s conftest.$ac_objext'
23218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); }; }; then
23223 ac_header_compiler=yes
23224 else
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228 ac_header_compiler=no
23229 fi
23230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23232 echo "${ECHO_T}$ac_header_compiler" >&6
23233
23234 # Is the header present?
23235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h. */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 #include <$ac_header>
23244 _ACEOF
23245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23247 ac_status=$?
23248 grep -v '^ *+' conftest.er1 >conftest.err
23249 rm -f conftest.er1
23250 cat conftest.err >&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } >/dev/null; then
23253 if test -s conftest.err; then
23254 ac_cpp_err=$ac_c_preproc_warn_flag
23255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23256 else
23257 ac_cpp_err=
23258 fi
23259 else
23260 ac_cpp_err=yes
23261 fi
23262 if test -z "$ac_cpp_err"; then
23263 ac_header_preproc=yes
23264 else
23265 echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23267
23268 ac_header_preproc=no
23269 fi
23270 rm -f conftest.err conftest.$ac_ext
23271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23272 echo "${ECHO_T}$ac_header_preproc" >&6
23273
23274 # So? What about this header?
23275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23276 yes:no: )
23277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23281 ac_header_preproc=yes
23282 ;;
23283 no:yes:* )
23284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23296 (
23297 cat <<\_ASBOX
23298 ## ------------------------------------------ ##
23299 ## Report this to the AC_PACKAGE_NAME lists. ##
23300 ## ------------------------------------------ ##
23301 _ASBOX
23302 ) |
23303 sed "s/^/$as_me: WARNING: /" >&2
23304 ;;
23305 esac
23306 echo "$as_me:$LINENO: checking for $ac_header" >&5
23307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311 eval "$as_ac_Header=\$ac_header_preproc"
23312 fi
23313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23315
23316 fi
23317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23318 cat >>confdefs.h <<_ACEOF
23319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23320 _ACEOF
23321
23322 fi
23323
23324 done
23325
23326 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23327 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
23328 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23330 else
23331 if test "$cross_compiling" = yes; then
23332 ac_cv_func_malloc_0_nonnull=no
23333 else
23334 cat >conftest.$ac_ext <<_ACEOF
23335 /* confdefs.h. */
23336 _ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23340 #if STDC_HEADERS || HAVE_STDLIB_H
23341 # include <stdlib.h>
23342 #else
23343 char *malloc ();
23344 #endif
23345
23346 int
23347 main ()
23348 {
23349 exit (malloc (0) ? 0 : 1);
23350 ;
23351 return 0;
23352 }
23353 _ACEOF
23354 rm -f conftest$ac_exeext
23355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23356 (eval $ac_link) 2>&5
23357 ac_status=$?
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; }; then
23365 ac_cv_func_malloc_0_nonnull=yes
23366 else
23367 echo "$as_me: program exited with status $ac_status" >&5
23368 echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23370
23371 ( exit $ac_status )
23372 ac_cv_func_malloc_0_nonnull=no
23373 fi
23374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23375 fi
23376 fi
23377 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23378 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
23379 if test $ac_cv_func_malloc_0_nonnull = yes; then
23380
23381 cat >>confdefs.h <<\_ACEOF
23382 #define HAVE_MALLOC 1
23383 _ACEOF
23384
23385 else
23386 cat >>confdefs.h <<\_ACEOF
23387 #define HAVE_MALLOC 0
23388 _ACEOF
23389
23390 case $LIBOBJS in
23391 "malloc.$ac_objext" | \
23392 *" malloc.$ac_objext" | \
23393 "malloc.$ac_objext "* | \
23394 *" malloc.$ac_objext "* ) ;;
23395 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
23396 esac
23397
23398
23399 cat >>confdefs.h <<\_ACEOF
23400 #define malloc rpl_malloc
23401 _ACEOF
23402
23403 fi
23404
23405
23406
23407 echo "$as_me:$LINENO: checking for working memcmp" >&5
23408 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
23409 if test "${ac_cv_func_memcmp_working+set}" = set; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23411 else
23412 if test "$cross_compiling" = yes; then
23413 ac_cv_func_memcmp_working=no
23414 else
23415 cat >conftest.$ac_ext <<_ACEOF
23416 /* confdefs.h. */
23417 _ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23421 $ac_includes_default
23422 int
23423 main ()
23424 {
23425
23426 /* Some versions of memcmp are not 8-bit clean. */
23427 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23428 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23429 exit (1);
23430
23431 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23432 or more and with at least one buffer not starting on a 4-byte boundary.
23433 William Lewis provided this test program. */
23434 {
23435 char foo[21];
23436 char bar[21];
23437 int i;
23438 for (i = 0; i < 4; i++)
23439 {
23440 char *a = foo + i;
23441 char *b = bar + i;
23442 strcpy (a, "--------01111111");
23443 strcpy (b, "--------10000000");
23444 if (memcmp (a, b, 16) >= 0)
23445 exit (1);
23446 }
23447 exit (0);
23448 }
23449
23450 ;
23451 return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest$ac_exeext
23455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23456 (eval $ac_link) 2>&5
23457 ac_status=$?
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; }; then
23465 ac_cv_func_memcmp_working=yes
23466 else
23467 echo "$as_me: program exited with status $ac_status" >&5
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471 ( exit $ac_status )
23472 ac_cv_func_memcmp_working=no
23473 fi
23474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23475 fi
23476 fi
23477 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23478 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
23479 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
23480 "memcmp.$ac_objext" | \
23481 *" memcmp.$ac_objext" | \
23482 "memcmp.$ac_objext "* | \
23483 *" memcmp.$ac_objext "* ) ;;
23484 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
23485 esac
23486
23487
23488
23489
23490 for ac_header in stdlib.h unistd.h
23491 do
23492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23494 echo "$as_me:$LINENO: checking for $ac_header" >&5
23495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 fi
23499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23501 else
23502 # Is the header compilable?
23503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23505 cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h. */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 $ac_includes_default
23512 #include <$ac_header>
23513 _ACEOF
23514 rm -f conftest.$ac_objext
23515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23516 (eval $ac_compile) 2>conftest.er1
23517 ac_status=$?
23518 grep -v '^ *+' conftest.er1 >conftest.err
23519 rm -f conftest.er1
23520 cat conftest.err >&5
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } &&
23523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; } &&
23529 { ac_try='test -s conftest.$ac_objext'
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ac_header_compiler=yes
23536 else
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540 ac_header_compiler=no
23541 fi
23542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23544 echo "${ECHO_T}$ac_header_compiler" >&6
23545
23546 # Is the header present?
23547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h. */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 #include <$ac_header>
23556 _ACEOF
23557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23559 ac_status=$?
23560 grep -v '^ *+' conftest.er1 >conftest.err
23561 rm -f conftest.er1
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } >/dev/null; then
23565 if test -s conftest.err; then
23566 ac_cpp_err=$ac_c_preproc_warn_flag
23567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23568 else
23569 ac_cpp_err=
23570 fi
23571 else
23572 ac_cpp_err=yes
23573 fi
23574 if test -z "$ac_cpp_err"; then
23575 ac_header_preproc=yes
23576 else
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23579
23580 ac_header_preproc=no
23581 fi
23582 rm -f conftest.err conftest.$ac_ext
23583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23584 echo "${ECHO_T}$ac_header_preproc" >&6
23585
23586 # So? What about this header?
23587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23588 yes:no: )
23589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23593 ac_header_preproc=yes
23594 ;;
23595 no:yes:* )
23596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23608 (
23609 cat <<\_ASBOX
23610 ## ------------------------------------------ ##
23611 ## Report this to the AC_PACKAGE_NAME lists. ##
23612 ## ------------------------------------------ ##
23613 _ASBOX
23614 ) |
23615 sed "s/^/$as_me: WARNING: /" >&2
23616 ;;
23617 esac
23618 echo "$as_me:$LINENO: checking for $ac_header" >&5
23619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622 else
23623 eval "$as_ac_Header=\$ac_header_preproc"
23624 fi
23625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23627
23628 fi
23629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23630 cat >>confdefs.h <<_ACEOF
23631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23632 _ACEOF
23633
23634 fi
23635
23636 done
23637
23638
23639 for ac_func in getpagesize
23640 do
23641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23642 echo "$as_me:$LINENO: checking for $ac_func" >&5
23643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23644 if eval "test \"\${$as_ac_var+set}\" = set"; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 else
23647 cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h. */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23655 #define $ac_func innocuous_$ac_func
23656
23657 /* System header to define __stub macros and hopefully few prototypes,
23658 which can conflict with char $ac_func (); below.
23659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23660 <limits.h> exists even on freestanding compilers. */
23661
23662 #ifdef __STDC__
23663 # include <limits.h>
23664 #else
23665 # include <assert.h>
23666 #endif
23667
23668 #undef $ac_func
23669
23670 /* Override any gcc2 internal prototype to avoid an error. */
23671 #ifdef __cplusplus
23672 extern "C"
23673 {
23674 #endif
23675 /* We use char because int might match the return type of a gcc2
23676 builtin and then its argument prototype would still apply. */
23677 char $ac_func ();
23678 /* The GNU C library defines this for functions which it implements
23679 to always fail with ENOSYS. Some functions are actually named
23680 something starting with __ and the normal name is an alias. */
23681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23682 choke me
23683 #else
23684 char (*f) () = $ac_func;
23685 #endif
23686 #ifdef __cplusplus
23687 }
23688 #endif
23689
23690 int
23691 main ()
23692 {
23693 return f != $ac_func;
23694 ;
23695 return 0;
23696 }
23697 _ACEOF
23698 rm -f conftest.$ac_objext conftest$ac_exeext
23699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>conftest.er1
23701 ac_status=$?
23702 grep -v '^ *+' conftest.er1 >conftest.err
23703 rm -f conftest.er1
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } &&
23707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23710 ac_status=$?
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; } &&
23713 { ac_try='test -s conftest$ac_exeext'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
23719 eval "$as_ac_var=yes"
23720 else
23721 echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23723
23724 eval "$as_ac_var=no"
23725 fi
23726 rm -f conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
23728 fi
23729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23731 if test `eval echo '${'$as_ac_var'}'` = yes; then
23732 cat >>confdefs.h <<_ACEOF
23733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23734 _ACEOF
23735
23736 fi
23737 done
23738
23739 echo "$as_me:$LINENO: checking for working mmap" >&5
23740 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23741 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23743 else
23744 if test "$cross_compiling" = yes; then
23745 ac_cv_func_mmap_fixed_mapped=no
23746 else
23747 cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h. */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h. */
23753 $ac_includes_default
23754 /* malloc might have been renamed as rpl_malloc. */
23755 #undef malloc
23756
23757 /* Thanks to Mike Haertel and Jim Avera for this test.
23758 Here is a matrix of mmap possibilities:
23759 mmap private not fixed
23760 mmap private fixed at somewhere currently unmapped
23761 mmap private fixed at somewhere already mapped
23762 mmap shared not fixed
23763 mmap shared fixed at somewhere currently unmapped
23764 mmap shared fixed at somewhere already mapped
23765 For private mappings, we should verify that changes cannot be read()
23766 back from the file, nor mmap's back from the file at a different
23767 address. (There have been systems where private was not correctly
23768 implemented like the infamous i386 svr4.0, and systems where the
23769 VM page cache was not coherent with the file system buffer cache
23770 like early versions of FreeBSD and possibly contemporary NetBSD.)
23771 For shared mappings, we should conversely verify that changes get
23772 propagated back to all the places they're supposed to be.
23773
23774 Grep wants private fixed already mapped.
23775 The main things grep needs to know about mmap are:
23776 * does it exist and is it safe to write into the mmap'd area
23777 * how to use it (BSD variants) */
23778
23779 #include <fcntl.h>
23780 #include <sys/mman.h>
23781
23782 #if !STDC_HEADERS && !HAVE_STDLIB_H
23783 char *malloc ();
23784 #endif
23785
23786 /* This mess was copied from the GNU getpagesize.h. */
23787 #if !HAVE_GETPAGESIZE
23788 /* Assume that all systems that can run configure have sys/param.h. */
23789 # if !HAVE_SYS_PARAM_H
23790 # define HAVE_SYS_PARAM_H 1
23791 # endif
23792
23793 # ifdef _SC_PAGESIZE
23794 # define getpagesize() sysconf(_SC_PAGESIZE)
23795 # else /* no _SC_PAGESIZE */
23796 # if HAVE_SYS_PARAM_H
23797 # include <sys/param.h>
23798 # ifdef EXEC_PAGESIZE
23799 # define getpagesize() EXEC_PAGESIZE
23800 # else /* no EXEC_PAGESIZE */
23801 # ifdef NBPG
23802 # define getpagesize() NBPG * CLSIZE
23803 # ifndef CLSIZE
23804 # define CLSIZE 1
23805 # endif /* no CLSIZE */
23806 # else /* no NBPG */
23807 # ifdef NBPC
23808 # define getpagesize() NBPC
23809 # else /* no NBPC */
23810 # ifdef PAGESIZE
23811 # define getpagesize() PAGESIZE
23812 # endif /* PAGESIZE */
23813 # endif /* no NBPC */
23814 # endif /* no NBPG */
23815 # endif /* no EXEC_PAGESIZE */
23816 # else /* no HAVE_SYS_PARAM_H */
23817 # define getpagesize() 8192 /* punt totally */
23818 # endif /* no HAVE_SYS_PARAM_H */
23819 # endif /* no _SC_PAGESIZE */
23820
23821 #endif /* no HAVE_GETPAGESIZE */
23822
23823 int
23824 main ()
23825 {
23826 char *data, *data2, *data3;
23827 int i, pagesize;
23828 int fd;
23829
23830 pagesize = getpagesize ();
23831
23832 /* First, make a file with some known garbage in it. */
23833 data = (char *) malloc (pagesize);
23834 if (!data)
23835 exit (1);
23836 for (i = 0; i < pagesize; ++i)
23837 *(data + i) = rand ();
23838 umask (0);
23839 fd = creat ("conftest.mmap", 0600);
23840 if (fd < 0)
23841 exit (1);
23842 if (write (fd, data, pagesize) != pagesize)
23843 exit (1);
23844 close (fd);
23845
23846 /* Next, try to mmap the file at a fixed address which already has
23847 something else allocated at it. If we can, also make sure that
23848 we see the same garbage. */
23849 fd = open ("conftest.mmap", O_RDWR);
23850 if (fd < 0)
23851 exit (1);
23852 data2 = (char *) malloc (2 * pagesize);
23853 if (!data2)
23854 exit (1);
23855 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23856 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23857 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23858 exit (1);
23859 for (i = 0; i < pagesize; ++i)
23860 if (*(data + i) != *(data2 + i))
23861 exit (1);
23862
23863 /* Finally, make sure that changes to the mapped area do not
23864 percolate back to the file as seen by read(). (This is a bug on
23865 some variants of i386 svr4.0.) */
23866 for (i = 0; i < pagesize; ++i)
23867 *(data2 + i) = *(data2 + i) + 1;
23868 data3 = (char *) malloc (pagesize);
23869 if (!data3)
23870 exit (1);
23871 if (read (fd, data3, pagesize) != pagesize)
23872 exit (1);
23873 for (i = 0; i < pagesize; ++i)
23874 if (*(data + i) != *(data3 + i))
23875 exit (1);
23876 close (fd);
23877 exit (0);
23878 }
23879 _ACEOF
23880 rm -f conftest$ac_exeext
23881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23882 (eval $ac_link) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; }; then
23891 ac_cv_func_mmap_fixed_mapped=yes
23892 else
23893 echo "$as_me: program exited with status $ac_status" >&5
23894 echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23896
23897 ( exit $ac_status )
23898 ac_cv_func_mmap_fixed_mapped=no
23899 fi
23900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23901 fi
23902 fi
23903 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23904 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23905 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23906
23907 cat >>confdefs.h <<\_ACEOF
23908 #define HAVE_MMAP 1
23909 _ACEOF
23910
23911 fi
23912 rm -f conftest.mmap
23913
23914
23915 for ac_header in stdlib.h
23916 do
23917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23919 echo "$as_me:$LINENO: checking for $ac_header" >&5
23920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23923 fi
23924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23926 else
23927 # Is the header compilable?
23928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23930 cat >conftest.$ac_ext <<_ACEOF
23931 /* confdefs.h. */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 $ac_includes_default
23937 #include <$ac_header>
23938 _ACEOF
23939 rm -f conftest.$ac_objext
23940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23941 (eval $ac_compile) 2>conftest.er1
23942 ac_status=$?
23943 grep -v '^ *+' conftest.er1 >conftest.err
23944 rm -f conftest.er1
23945 cat conftest.err >&5
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } &&
23948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950 (eval $ac_try) 2>&5
23951 ac_status=$?
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); }; } &&
23954 { ac_try='test -s conftest.$ac_objext'
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23957 ac_status=$?
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; }; then
23960 ac_header_compiler=yes
23961 else
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 ac_header_compiler=no
23966 fi
23967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23969 echo "${ECHO_T}$ac_header_compiler" >&6
23970
23971 # Is the header present?
23972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23974 cat >conftest.$ac_ext <<_ACEOF
23975 /* confdefs.h. */
23976 _ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 #include <$ac_header>
23981 _ACEOF
23982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23984 ac_status=$?
23985 grep -v '^ *+' conftest.er1 >conftest.err
23986 rm -f conftest.er1
23987 cat conftest.err >&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } >/dev/null; then
23990 if test -s conftest.err; then
23991 ac_cpp_err=$ac_c_preproc_warn_flag
23992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23993 else
23994 ac_cpp_err=
23995 fi
23996 else
23997 ac_cpp_err=yes
23998 fi
23999 if test -z "$ac_cpp_err"; then
24000 ac_header_preproc=yes
24001 else
24002 echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24004
24005 ac_header_preproc=no
24006 fi
24007 rm -f conftest.err conftest.$ac_ext
24008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24009 echo "${ECHO_T}$ac_header_preproc" >&6
24010
24011 # So? What about this header?
24012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24013 yes:no: )
24014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24018 ac_header_preproc=yes
24019 ;;
24020 no:yes:* )
24021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24033 (
24034 cat <<\_ASBOX
24035 ## ------------------------------------------ ##
24036 ## Report this to the AC_PACKAGE_NAME lists. ##
24037 ## ------------------------------------------ ##
24038 _ASBOX
24039 ) |
24040 sed "s/^/$as_me: WARNING: /" >&2
24041 ;;
24042 esac
24043 echo "$as_me:$LINENO: checking for $ac_header" >&5
24044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048 eval "$as_ac_Header=\$ac_header_preproc"
24049 fi
24050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24052
24053 fi
24054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24055 cat >>confdefs.h <<_ACEOF
24056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24057 _ACEOF
24058
24059 fi
24060
24061 done
24062
24063 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
24064 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
24065 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
24066 echo $ECHO_N "(cached) $ECHO_C" >&6
24067 else
24068 if test "$cross_compiling" = yes; then
24069 ac_cv_func_realloc_0_nonnull=no
24070 else
24071 cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h. */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 #if STDC_HEADERS || HAVE_STDLIB_H
24078 # include <stdlib.h>
24079 #else
24080 char *realloc ();
24081 #endif
24082
24083 int
24084 main ()
24085 {
24086 exit (realloc (0, 0) ? 0 : 1);
24087 ;
24088 return 0;
24089 }
24090 _ACEOF
24091 rm -f conftest$ac_exeext
24092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24093 (eval $ac_link) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098 (eval $ac_try) 2>&5
24099 ac_status=$?
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; }; then
24102 ac_cv_func_realloc_0_nonnull=yes
24103 else
24104 echo "$as_me: program exited with status $ac_status" >&5
24105 echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24107
24108 ( exit $ac_status )
24109 ac_cv_func_realloc_0_nonnull=no
24110 fi
24111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24112 fi
24113 fi
24114 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
24115 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
24116 if test $ac_cv_func_realloc_0_nonnull = yes; then
24117
24118 cat >>confdefs.h <<\_ACEOF
24119 #define HAVE_REALLOC 1
24120 _ACEOF
24121
24122 else
24123 cat >>confdefs.h <<\_ACEOF
24124 #define HAVE_REALLOC 0
24125 _ACEOF
24126
24127 case $LIBOBJS in
24128 "realloc.$ac_objext" | \
24129 *" realloc.$ac_objext" | \
24130 "realloc.$ac_objext "* | \
24131 *" realloc.$ac_objext "* ) ;;
24132 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
24133 esac
24134
24135
24136 cat >>confdefs.h <<\_ACEOF
24137 #define realloc rpl_realloc
24138 _ACEOF
24139
24140 fi
24141
24142
24143
24144
24145
24146 for ac_header in sys/select.h sys/socket.h
24147 do
24148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24150 echo "$as_me:$LINENO: checking for $ac_header" >&5
24151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24154 fi
24155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24157 else
24158 # Is the header compilable?
24159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24161 cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h. */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24167 $ac_includes_default
24168 #include <$ac_header>
24169 _ACEOF
24170 rm -f conftest.$ac_objext
24171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24172 (eval $ac_compile) 2>conftest.er1
24173 ac_status=$?
24174 grep -v '^ *+' conftest.er1 >conftest.err
24175 rm -f conftest.er1
24176 cat conftest.err >&5
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } &&
24179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24181 (eval $ac_try) 2>&5
24182 ac_status=$?
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); }; } &&
24185 { ac_try='test -s conftest.$ac_objext'
24186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24188 ac_status=$?
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); }; }; then
24191 ac_header_compiler=yes
24192 else
24193 echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24195
24196 ac_header_compiler=no
24197 fi
24198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24200 echo "${ECHO_T}$ac_header_compiler" >&6
24201
24202 # Is the header present?
24203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24205 cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h. */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211 #include <$ac_header>
24212 _ACEOF
24213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24215 ac_status=$?
24216 grep -v '^ *+' conftest.er1 >conftest.err
24217 rm -f conftest.er1
24218 cat conftest.err >&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); } >/dev/null; then
24221 if test -s conftest.err; then
24222 ac_cpp_err=$ac_c_preproc_warn_flag
24223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24224 else
24225 ac_cpp_err=
24226 fi
24227 else
24228 ac_cpp_err=yes
24229 fi
24230 if test -z "$ac_cpp_err"; then
24231 ac_header_preproc=yes
24232 else
24233 echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24235
24236 ac_header_preproc=no
24237 fi
24238 rm -f conftest.err conftest.$ac_ext
24239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24240 echo "${ECHO_T}$ac_header_preproc" >&6
24241
24242 # So? What about this header?
24243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24244 yes:no: )
24245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24249 ac_header_preproc=yes
24250 ;;
24251 no:yes:* )
24252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24264 (
24265 cat <<\_ASBOX
24266 ## ------------------------------------------ ##
24267 ## Report this to the AC_PACKAGE_NAME lists. ##
24268 ## ------------------------------------------ ##
24269 _ASBOX
24270 ) |
24271 sed "s/^/$as_me: WARNING: /" >&2
24272 ;;
24273 esac
24274 echo "$as_me:$LINENO: checking for $ac_header" >&5
24275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24277 echo $ECHO_N "(cached) $ECHO_C" >&6
24278 else
24279 eval "$as_ac_Header=\$ac_header_preproc"
24280 fi
24281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24283
24284 fi
24285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24286 cat >>confdefs.h <<_ACEOF
24287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24288 _ACEOF
24289
24290 fi
24291
24292 done
24293
24294 echo "$as_me:$LINENO: checking types of arguments for select" >&5
24295 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
24296 if test "${ac_cv_func_select_args+set}" = set; then
24297 echo $ECHO_N "(cached) $ECHO_C" >&6
24298 else
24299 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24300 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
24301 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h. */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 $ac_includes_default
24309 #if HAVE_SYS_SELECT_H
24310 # include <sys/select.h>
24311 #endif
24312 #if HAVE_SYS_SOCKET_H
24313 # include <sys/socket.h>
24314 #endif
24315
24316 int
24317 main ()
24318 {
24319 extern int select ($ac_arg1,
24320 $ac_arg234, $ac_arg234, $ac_arg234,
24321 $ac_arg5);
24322 ;
24323 return 0;
24324 }
24325 _ACEOF
24326 rm -f conftest.$ac_objext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24328 (eval $ac_compile) 2>conftest.er1
24329 ac_status=$?
24330 grep -v '^ *+' conftest.er1 >conftest.err
24331 rm -f conftest.er1
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; } &&
24341 { ac_try='test -s conftest.$ac_objext'
24342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343 (eval $ac_try) 2>&5
24344 ac_status=$?
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24348 else
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352 fi
24353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24354 done
24355 done
24356 done
24357 # Provide a safe default value.
24358 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
24359
24360 fi
24361 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
24362 echo "${ECHO_T}$ac_cv_func_select_args" >&6
24363 ac_save_IFS=$IFS; IFS=','
24364 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24365 IFS=$ac_save_IFS
24366 shift
24367
24368 cat >>confdefs.h <<_ACEOF
24369 #define SELECT_TYPE_ARG1 $1
24370 _ACEOF
24371
24372
24373 cat >>confdefs.h <<_ACEOF
24374 #define SELECT_TYPE_ARG234 ($2)
24375 _ACEOF
24376
24377
24378 cat >>confdefs.h <<_ACEOF
24379 #define SELECT_TYPE_ARG5 ($3)
24380 _ACEOF
24381
24382 rm -f conftest*
24383
24384 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24385 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24386 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389 rm -f conftest.sym conftest.file
24390 echo >conftest.file
24391 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24392 if test "$cross_compiling" = yes; then
24393 ac_cv_func_lstat_dereferences_slashed_symlink=no
24394 else
24395 cat >conftest.$ac_ext <<_ACEOF
24396 /* confdefs.h. */
24397 _ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24401 $ac_includes_default
24402 int
24403 main ()
24404 {
24405 struct stat sbuf;
24406 /* Linux will dereference the symlink and fail.
24407 That is better in the sense that it means we will not
24408 have to compile and use the lstat wrapper. */
24409 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24410 ;
24411 return 0;
24412 }
24413 _ACEOF
24414 rm -f conftest$ac_exeext
24415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24416 (eval $ac_link) 2>&5
24417 ac_status=$?
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24426 else
24427 echo "$as_me: program exited with status $ac_status" >&5
24428 echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24430
24431 ( exit $ac_status )
24432 ac_cv_func_lstat_dereferences_slashed_symlink=no
24433 fi
24434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24435 fi
24436 else
24437 # If the `ln -s' command failed, then we probably don't even
24438 # have an lstat function.
24439 ac_cv_func_lstat_dereferences_slashed_symlink=no
24440 fi
24441 rm -f conftest.sym conftest.file
24442
24443 fi
24444 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24445 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24446
24447 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24448
24449 cat >>confdefs.h <<_ACEOF
24450 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24451 _ACEOF
24452
24453
24454 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24455 case $LIBOBJS in
24456 "lstat.$ac_objext" | \
24457 *" lstat.$ac_objext" | \
24458 "lstat.$ac_objext "* | \
24459 *" lstat.$ac_objext "* ) ;;
24460 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24461 esac
24462
24463 fi
24464
24465 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
24466 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
24467 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
24468 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 else
24470 if test "$cross_compiling" = yes; then
24471 ac_cv_func_stat_empty_string_bug=yes
24472 else
24473 cat >conftest.$ac_ext <<_ACEOF
24474 /* confdefs.h. */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24479 $ac_includes_default
24480 int
24481 main ()
24482 {
24483 struct stat sbuf;
24484 exit (stat ("", &sbuf) ? 1 : 0);
24485 ;
24486 return 0;
24487 }
24488 _ACEOF
24489 rm -f conftest$ac_exeext
24490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24491 (eval $ac_link) 2>&5
24492 ac_status=$?
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; }; then
24500 ac_cv_func_stat_empty_string_bug=yes
24501 else
24502 echo "$as_me: program exited with status $ac_status" >&5
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506 ( exit $ac_status )
24507 ac_cv_func_stat_empty_string_bug=no
24508 fi
24509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24510 fi
24511 fi
24512 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
24513 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
24514 if test $ac_cv_func_stat_empty_string_bug = yes; then
24515 case $LIBOBJS in
24516 "stat.$ac_objext" | \
24517 *" stat.$ac_objext" | \
24518 "stat.$ac_objext "* | \
24519 *" stat.$ac_objext "* ) ;;
24520 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
24521 esac
24522
24523
24524 cat >>confdefs.h <<_ACEOF
24525 #define HAVE_STAT_EMPTY_STRING_BUG 1
24526 _ACEOF
24527
24528 fi
24529
24530
24531 for ac_func in vprintf
24532 do
24533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24534 echo "$as_me:$LINENO: checking for $ac_func" >&5
24535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24536 if eval "test \"\${$as_ac_var+set}\" = set"; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24547 #define $ac_func innocuous_$ac_func
24548
24549 /* System header to define __stub macros and hopefully few prototypes,
24550 which can conflict with char $ac_func (); below.
24551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24552 <limits.h> exists even on freestanding compilers. */
24553
24554 #ifdef __STDC__
24555 # include <limits.h>
24556 #else
24557 # include <assert.h>
24558 #endif
24559
24560 #undef $ac_func
24561
24562 /* Override any gcc2 internal prototype to avoid an error. */
24563 #ifdef __cplusplus
24564 extern "C"
24565 {
24566 #endif
24567 /* We use char because int might match the return type of a gcc2
24568 builtin and then its argument prototype would still apply. */
24569 char $ac_func ();
24570 /* The GNU C library defines this for functions which it implements
24571 to always fail with ENOSYS. Some functions are actually named
24572 something starting with __ and the normal name is an alias. */
24573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24574 choke me
24575 #else
24576 char (*f) () = $ac_func;
24577 #endif
24578 #ifdef __cplusplus
24579 }
24580 #endif
24581
24582 int
24583 main ()
24584 {
24585 return f != $ac_func;
24586 ;
24587 return 0;
24588 }
24589 _ACEOF
24590 rm -f conftest.$ac_objext conftest$ac_exeext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24592 (eval $ac_link) 2>conftest.er1
24593 ac_status=$?
24594 grep -v '^ *+' conftest.er1 >conftest.err
24595 rm -f conftest.er1
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } &&
24599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; } &&
24605 { ac_try='test -s conftest$ac_exeext'
24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); }; }; then
24611 eval "$as_ac_var=yes"
24612 else
24613 echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24615
24616 eval "$as_ac_var=no"
24617 fi
24618 rm -f conftest.err conftest.$ac_objext \
24619 conftest$ac_exeext conftest.$ac_ext
24620 fi
24621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24623 if test `eval echo '${'$as_ac_var'}'` = yes; then
24624 cat >>confdefs.h <<_ACEOF
24625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24626 _ACEOF
24627
24628 echo "$as_me:$LINENO: checking for _doprnt" >&5
24629 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
24630 if test "${ac_cv_func__doprnt+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 else
24633 cat >conftest.$ac_ext <<_ACEOF
24634 /* confdefs.h. */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h. */
24639 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
24640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24641 #define _doprnt innocuous__doprnt
24642
24643 /* System header to define __stub macros and hopefully few prototypes,
24644 which can conflict with char _doprnt (); below.
24645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24646 <limits.h> exists even on freestanding compilers. */
24647
24648 #ifdef __STDC__
24649 # include <limits.h>
24650 #else
24651 # include <assert.h>
24652 #endif
24653
24654 #undef _doprnt
24655
24656 /* Override any gcc2 internal prototype to avoid an error. */
24657 #ifdef __cplusplus
24658 extern "C"
24659 {
24660 #endif
24661 /* We use char because int might match the return type of a gcc2
24662 builtin and then its argument prototype would still apply. */
24663 char _doprnt ();
24664 /* The GNU C library defines this for functions which it implements
24665 to always fail with ENOSYS. Some functions are actually named
24666 something starting with __ and the normal name is an alias. */
24667 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24668 choke me
24669 #else
24670 char (*f) () = _doprnt;
24671 #endif
24672 #ifdef __cplusplus
24673 }
24674 #endif
24675
24676 int
24677 main ()
24678 {
24679 return f != _doprnt;
24680 ;
24681 return 0;
24682 }
24683 _ACEOF
24684 rm -f conftest.$ac_objext conftest$ac_exeext
24685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24686 (eval $ac_link) 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } &&
24693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24696 ac_status=$?
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; } &&
24699 { ac_try='test -s conftest$ac_exeext'
24700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701 (eval $ac_try) 2>&5
24702 ac_status=$?
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ac_cv_func__doprnt=yes
24706 else
24707 echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 ac_cv_func__doprnt=no
24711 fi
24712 rm -f conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
24714 fi
24715 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
24716 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
24717 if test $ac_cv_func__doprnt = yes; then
24718
24719 cat >>confdefs.h <<\_ACEOF
24720 #define HAVE_DOPRNT 1
24721 _ACEOF
24722
24723 fi
24724
24725 fi
24726 done
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743 for ac_func in getcwd getuid memmove memset munmap pstat_getdynamic sched_yeeld select strchr strerror strstr strtol sysconf yeld
24744 do
24745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24746 echo "$as_me:$LINENO: checking for $ac_func" >&5
24747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24748 if eval "test \"\${$as_ac_var+set}\" = set"; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751 cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h. */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24759 #define $ac_func innocuous_$ac_func
24760
24761 /* System header to define __stub macros and hopefully few prototypes,
24762 which can conflict with char $ac_func (); below.
24763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24764 <limits.h> exists even on freestanding compilers. */
24765
24766 #ifdef __STDC__
24767 # include <limits.h>
24768 #else
24769 # include <assert.h>
24770 #endif
24771
24772 #undef $ac_func
24773
24774 /* Override any gcc2 internal prototype to avoid an error. */
24775 #ifdef __cplusplus
24776 extern "C"
24777 {
24778 #endif
24779 /* We use char because int might match the return type of a gcc2
24780 builtin and then its argument prototype would still apply. */
24781 char $ac_func ();
24782 /* The GNU C library defines this for functions which it implements
24783 to always fail with ENOSYS. Some functions are actually named
24784 something starting with __ and the normal name is an alias. */
24785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24786 choke me
24787 #else
24788 char (*f) () = $ac_func;
24789 #endif
24790 #ifdef __cplusplus
24791 }
24792 #endif
24793
24794 int
24795 main ()
24796 {
24797 return f != $ac_func;
24798 ;
24799 return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24804 (eval $ac_link) 2>conftest.er1
24805 ac_status=$?
24806 grep -v '^ *+' conftest.er1 >conftest.err
24807 rm -f conftest.er1
24808 cat conftest.err >&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); } &&
24811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; } &&
24817 { ac_try='test -s conftest$ac_exeext'
24818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819 (eval $ac_try) 2>&5
24820 ac_status=$?
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; }; then
24823 eval "$as_ac_var=yes"
24824 else
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828 eval "$as_ac_var=no"
24829 fi
24830 rm -f conftest.err conftest.$ac_objext \
24831 conftest$ac_exeext conftest.$ac_ext
24832 fi
24833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24835 if test `eval echo '${'$as_ac_var'}'` = yes; then
24836 cat >>confdefs.h <<_ACEOF
24837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24838 _ACEOF
24839
24840 fi
24841 done
24842
24843
24844 ac_config_files="$ac_config_files Makefile db.h"
24845
24846 cat >confcache <<\_ACEOF
24847 # This file is a shell script that caches the results of configure
24848 # tests run on this system so they can be shared between configure
24849 # scripts and configure runs, see configure's option --config-cache.
24850 # It is not useful on other systems. If it contains results you don't
24851 # want to keep, you may remove or edit it.
24852 #
24853 # config.status only pays attention to the cache file if you give it
24854 # the --recheck option to rerun configure.
24855 #
24856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24858 # following values.
24859
24860 _ACEOF
24861
24862 # The following way of writing the cache mishandles newlines in values,
24863 # but we know of no workaround that is simple, portable, and efficient.
24864 # So, don't put newlines in cache variables' values.
24865 # Ultrix sh set writes to stderr and can't be redirected directly,
24866 # and sets the high bit in the cache file unless we assign to the vars.
24867 {
24868 (set) 2>&1 |
24869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24870 *ac_space=\ *)
24871 # `set' does not quote correctly, so add quotes (double-quote
24872 # substitution turns \\\\ into \\, and sed turns \\ into \).
24873 sed -n \
24874 "s/'/'\\\\''/g;
24875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24876 ;;
24877 *)
24878 # `set' quotes correctly as required by POSIX, so do not add quotes.
24879 sed -n \
24880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24881 ;;
24882 esac;
24883 } |
24884 sed '
24885 t clear
24886 : clear
24887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24888 t end
24889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24890 : end' >>confcache
24891 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24892 if test -w $cache_file; then
24893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24894 cat confcache >$cache_file
24895 else
24896 echo "not updating unwritable cache $cache_file"
24897 fi
24898 fi
24899 rm -f confcache
24900
24901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24902 # Let make expand exec_prefix.
24903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24904
24905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24907 # trailing colons and then remove the whole line if VPATH becomes empty
24908 # (actually we leave an empty line to preserve line numbers).
24909 if test "x$srcdir" = x.; then
24910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24911 s/:*\$(srcdir):*/:/;
24912 s/:*\${srcdir}:*/:/;
24913 s/:*@srcdir@:*/:/;
24914 s/^\([^=]*=[ ]*\):*/\1/;
24915 s/:*$//;
24916 s/^[^=]*=[ ]*$//;
24917 }'
24918 fi
24919
24920 DEFS=-DHAVE_CONFIG_H
24921
24922 ac_libobjs=
24923 ac_ltlibobjs=
24924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24925 # 1. Remove the extension, and $U if already installed.
24926 ac_i=`echo "$ac_i" |
24927 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24928 # 2. Add them.
24929 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24930 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24931 done
24932 LIBOBJS=$ac_libobjs
24933
24934 LTLIBOBJS=$ac_ltlibobjs
24935
24936
24937 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24938 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24939 Usually this means the macro was only invoked conditionally." >&5
24940 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24941 Usually this means the macro was only invoked conditionally." >&2;}
24942 { (exit 1); exit 1; }; }
24943 fi
24944 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24945 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24946 Usually this means the macro was only invoked conditionally." >&5
24947 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24948 Usually this means the macro was only invoked conditionally." >&2;}
24949 { (exit 1); exit 1; }; }
24950 fi
24951 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24953 Usually this means the macro was only invoked conditionally." >&5
24954 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24955 Usually this means the macro was only invoked conditionally." >&2;}
24956 { (exit 1); exit 1; }; }
24957 fi
24958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24959 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24960 Usually this means the macro was only invoked conditionally." >&5
24961 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24962 Usually this means the macro was only invoked conditionally." >&2;}
24963 { (exit 1); exit 1; }; }
24964 fi
24965
24966 : ${CONFIG_STATUS=./config.status}
24967 ac_clean_files_save=$ac_clean_files
24968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24971 cat >$CONFIG_STATUS <<_ACEOF
24972 #! $SHELL
24973 # Generated by $as_me.
24974 # Run this file to recreate the current configuration.
24975 # Compiler output produced by configure, useful for debugging
24976 # configure, is in config.log if it exists.
24977
24978 debug=false
24979 ac_cs_recheck=false
24980 ac_cs_silent=false
24981 SHELL=\${CONFIG_SHELL-$SHELL}
24982 _ACEOF
24983
24984 cat >>$CONFIG_STATUS <<\_ACEOF
24985 ## --------------------- ##
24986 ## M4sh Initialization. ##
24987 ## --------------------- ##
24988
24989 # Be Bourne compatible
24990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24991 emulate sh
24992 NULLCMD=:
24993 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24994 # is contrary to our usage. Disable this feature.
24995 alias -g '${1+"$@"}'='"$@"'
24996 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24997 set -o posix
24998 fi
24999 DUALCASE=1; export DUALCASE # for MKS sh
25000
25001 # Support unset when possible.
25002 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25003 as_unset=unset
25004 else
25005 as_unset=false
25006 fi
25007
25008
25009 # Work around bugs in pre-3.0 UWIN ksh.
25010 $as_unset ENV MAIL MAILPATH
25011 PS1='$ '
25012 PS2='> '
25013 PS4='+ '
25014
25015 # NLS nuisances.
25016 for as_var in \
25017 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25018 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25019 LC_TELEPHONE LC_TIME
25020 do
25021 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25022 eval $as_var=C; export $as_var
25023 else
25024 $as_unset $as_var
25025 fi
25026 done
25027
25028 # Required to use basename.
25029 if expr a : '\(a\)' >/dev/null 2>&1; then
25030 as_expr=expr
25031 else
25032 as_expr=false
25033 fi
25034
25035 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25036 as_basename=basename
25037 else
25038 as_basename=false
25039 fi
25040
25041
25042 # Name of the executable.
25043 as_me=`$as_basename "$0" ||
25044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25045 X"$0" : 'X\(//\)$' \| \
25046 X"$0" : 'X\(/\)$' \| \
25047 . : '\(.\)' 2>/dev/null ||
25048 echo X/"$0" |
25049 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25050 /^X\/\(\/\/\)$/{ s//\1/; q; }
25051 /^X\/\(\/\).*/{ s//\1/; q; }
25052 s/.*/./; q'`
25053
25054
25055 # PATH needs CR, and LINENO needs CR and PATH.
25056 # Avoid depending upon Character Ranges.
25057 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25058 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25059 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25060 as_cr_digits='0123456789'
25061 as_cr_alnum=$as_cr_Letters$as_cr_digits
25062
25063 # The user is always right.
25064 if test "${PATH_SEPARATOR+set}" != set; then
25065 echo "#! /bin/sh" >conf$$.sh
25066 echo "exit 0" >>conf$$.sh
25067 chmod +x conf$$.sh
25068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25069 PATH_SEPARATOR=';'
25070 else
25071 PATH_SEPARATOR=:
25072 fi
25073 rm -f conf$$.sh
25074 fi
25075
25076
25077 as_lineno_1=$LINENO
25078 as_lineno_2=$LINENO
25079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25080 test "x$as_lineno_1" != "x$as_lineno_2" &&
25081 test "x$as_lineno_3" = "x$as_lineno_2" || {
25082 # Find who we are. Look in the path if we contain no path at all
25083 # relative or not.
25084 case $0 in
25085 *[\\/]* ) as_myself=$0 ;;
25086 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25087 for as_dir in $PATH
25088 do
25089 IFS=$as_save_IFS
25090 test -z "$as_dir" && as_dir=.
25091 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25092 done
25093
25094 ;;
25095 esac
25096 # We did not find ourselves, most probably we were run as `sh COMMAND'
25097 # in which case we are not to be found in the path.
25098 if test "x$as_myself" = x; then
25099 as_myself=$0
25100 fi
25101 if test ! -f "$as_myself"; then
25102 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25103 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25104 { (exit 1); exit 1; }; }
25105 fi
25106 case $CONFIG_SHELL in
25107 '')
25108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25109 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25110 do
25111 IFS=$as_save_IFS
25112 test -z "$as_dir" && as_dir=.
25113 for as_base in sh bash ksh sh5; do
25114 case $as_dir in
25115 /*)
25116 if ("$as_dir/$as_base" -c '
25117 as_lineno_1=$LINENO
25118 as_lineno_2=$LINENO
25119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25120 test "x$as_lineno_1" != "x$as_lineno_2" &&
25121 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25122 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25123 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25124 CONFIG_SHELL=$as_dir/$as_base
25125 export CONFIG_SHELL
25126 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25127 fi;;
25128 esac
25129 done
25130 done
25131 ;;
25132 esac
25133
25134 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25135 # uniformly replaced by the line number. The first 'sed' inserts a
25136 # line-number line before each line; the second 'sed' does the real
25137 # work. The second script uses 'N' to pair each line-number line
25138 # with the numbered line, and appends trailing '-' during
25139 # substitution so that $LINENO is not a special case at line end.
25140 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25141 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25142 sed '=' <$as_myself |
25143 sed '
25144 N
25145 s,$,-,
25146 : loop
25147 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25148 t loop
25149 s,-$,,
25150 s,^['$as_cr_digits']*\n,,
25151 ' >$as_me.lineno &&
25152 chmod +x $as_me.lineno ||
25153 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25154 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25155 { (exit 1); exit 1; }; }
25156
25157 # Don't try to exec as it changes $[0], causing all sort of problems
25158 # (the dirname of $[0] is not the place where we might find the
25159 # original and so on. Autoconf is especially sensible to this).
25160 . ./$as_me.lineno
25161 # Exit status is that of the last command.
25162 exit
25163 }
25164
25165
25166 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25167 *c*,-n*) ECHO_N= ECHO_C='
25168 ' ECHO_T=' ' ;;
25169 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25170 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25171 esac
25172
25173 if expr a : '\(a\)' >/dev/null 2>&1; then
25174 as_expr=expr
25175 else
25176 as_expr=false
25177 fi
25178
25179 rm -f conf$$ conf$$.exe conf$$.file
25180 echo >conf$$.file
25181 if ln -s conf$$.file conf$$ 2>/dev/null; then
25182 # We could just check for DJGPP; but this test a) works b) is more generic
25183 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25184 if test -f conf$$.exe; then
25185 # Don't use ln at all; we don't have any links
25186 as_ln_s='cp -p'
25187 else
25188 as_ln_s='ln -s'
25189 fi
25190 elif ln conf$$.file conf$$ 2>/dev/null; then
25191 as_ln_s=ln
25192 else
25193 as_ln_s='cp -p'
25194 fi
25195 rm -f conf$$ conf$$.exe conf$$.file
25196
25197 if mkdir -p . 2>/dev/null; then
25198 as_mkdir_p=:
25199 else
25200 test -d ./-p && rmdir ./-p
25201 as_mkdir_p=false
25202 fi
25203
25204 as_executable_p="test -f"
25205
25206 # Sed expression to map a string onto a valid CPP name.
25207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25208
25209 # Sed expression to map a string onto a valid variable name.
25210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25211
25212
25213 # IFS
25214 # We need space, tab and new line, in precisely that order.
25215 as_nl='
25216 '
25217 IFS=" $as_nl"
25218
25219 # CDPATH.
25220 $as_unset CDPATH
25221
25222 exec 6>&1
25223
25224 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25225 # report actual input values of CONFIG_FILES etc. instead of their
25226 # values after options handling. Logging --version etc. is OK.
25227 exec 5>>config.log
25228 {
25229 echo
25230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25231 ## Running $as_me. ##
25232 _ASBOX
25233 } >&5
25234 cat >&5 <<_CSEOF
25235
25236 This file was extended by $as_me, which was
25237 generated by GNU Autoconf 2.59. Invocation command line was
25238
25239 CONFIG_FILES = $CONFIG_FILES
25240 CONFIG_HEADERS = $CONFIG_HEADERS
25241 CONFIG_LINKS = $CONFIG_LINKS
25242 CONFIG_COMMANDS = $CONFIG_COMMANDS
25243 $ $0 $@
25244
25245 _CSEOF
25246 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25247 echo >&5
25248 _ACEOF
25249
25250 # Files that config.status was made for.
25251 if test -n "$ac_config_files"; then
25252 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25253 fi
25254
25255 if test -n "$ac_config_headers"; then
25256 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25257 fi
25258
25259 if test -n "$ac_config_links"; then
25260 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25261 fi
25262
25263 if test -n "$ac_config_commands"; then
25264 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25265 fi
25266
25267 cat >>$CONFIG_STATUS <<\_ACEOF
25268
25269 ac_cs_usage="\
25270 \`$as_me' instantiates files from templates according to the
25271 current configuration.
25272
25273 Usage: $0 [OPTIONS] [FILE]...
25274
25275 -h, --help print this help, then exit
25276 -V, --version print version number, then exit
25277 -q, --quiet do not print progress messages
25278 -d, --debug don't remove temporary files
25279 --recheck update $as_me by reconfiguring in the same conditions
25280 --file=FILE[:TEMPLATE]
25281 instantiate the configuration file FILE
25282 --header=FILE[:TEMPLATE]
25283 instantiate the configuration header FILE
25284
25285 Configuration files:
25286 $config_files
25287
25288 Configuration headers:
25289 $config_headers
25290
25291 Configuration commands:
25292 $config_commands
25293
25294 Report bugs to <[email protected]>."
25295 _ACEOF
25296
25297 cat >>$CONFIG_STATUS <<_ACEOF
25298 ac_cs_version="\\
25299 config.status
25300 configured by $0, generated by GNU Autoconf 2.59,
25301 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25302
25303 Copyright (C) 2003 Free Software Foundation, Inc.
25304 This config.status script is free software; the Free Software Foundation
25305 gives unlimited permission to copy, distribute and modify it."
25306 srcdir=$srcdir
25307 INSTALL="$INSTALL"
25308 _ACEOF
25309
25310 cat >>$CONFIG_STATUS <<\_ACEOF
25311 # If no file are specified by the user, then we need to provide default
25312 # value. By we need to know if files were specified by the user.
25313 ac_need_defaults=:
25314 while test $# != 0
25315 do
25316 case $1 in
25317 --*=*)
25318 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25319 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25320 ac_shift=:
25321 ;;
25322 -*)
25323 ac_option=$1
25324 ac_optarg=$2
25325 ac_shift=shift
25326 ;;
25327 *) # This is not an option, so the user has probably given explicit
25328 # arguments.
25329 ac_option=$1
25330 ac_need_defaults=false;;
25331 esac
25332
25333 case $ac_option in
25334 # Handling of the options.
25335 _ACEOF
25336 cat >>$CONFIG_STATUS <<\_ACEOF
25337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25338 ac_cs_recheck=: ;;
25339 --version | --vers* | -V )
25340 echo "$ac_cs_version"; exit 0 ;;
25341 --he | --h)
25342 # Conflict between --help and --header
25343 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25344 Try \`$0 --help' for more information." >&5
25345 echo "$as_me: error: ambiguous option: $1
25346 Try \`$0 --help' for more information." >&2;}
25347 { (exit 1); exit 1; }; };;
25348 --help | --hel | -h )
25349 echo "$ac_cs_usage"; exit 0 ;;
25350 --debug | --d* | -d )
25351 debug=: ;;
25352 --file | --fil | --fi | --f )
25353 $ac_shift
25354 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25355 ac_need_defaults=false;;
25356 --header | --heade | --head | --hea )
25357 $ac_shift
25358 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25359 ac_need_defaults=false;;
25360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25361 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25362 ac_cs_silent=: ;;
25363
25364 # This is an error.
25365 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25366 Try \`$0 --help' for more information." >&5
25367 echo "$as_me: error: unrecognized option: $1
25368 Try \`$0 --help' for more information." >&2;}
25369 { (exit 1); exit 1; }; } ;;
25370
25371 *) ac_config_targets="$ac_config_targets $1" ;;
25372
25373 esac
25374 shift
25375 done
25376
25377 ac_configure_extra_args=
25378
25379 if $ac_cs_silent; then
25380 exec 6>/dev/null
25381 ac_configure_extra_args="$ac_configure_extra_args --silent"
25382 fi
25383
25384 _ACEOF
25385 cat >>$CONFIG_STATUS <<_ACEOF
25386 if \$ac_cs_recheck; then
25387 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25388 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25389 fi
25390
25391 _ACEOF
25392
25393 cat >>$CONFIG_STATUS <<_ACEOF
25394 #
25395 # INIT-COMMANDS section.
25396 #
25397
25398 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25399
25400 _ACEOF
25401
25402
25403
25404 cat >>$CONFIG_STATUS <<\_ACEOF
25405 for ac_config_target in $ac_config_targets
25406 do
25407 case "$ac_config_target" in
25408 # Handling of arguments.
25409 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25410 "db.h" ) CONFIG_FILES="$CONFIG_FILES db.h" ;;
25411 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25412 "db_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h" ;;
25413 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25414 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25415 { (exit 1); exit 1; }; };;
25416 esac
25417 done
25418
25419 # If the user did not use the arguments to specify the items to instantiate,
25420 # then the envvar interface is used. Set only those that are not.
25421 # We use the long form for the default assignment because of an extremely
25422 # bizarre bug on SunOS 4.1.3.
25423 if $ac_need_defaults; then
25424 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25425 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25426 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25427 fi
25428
25429 # Have a temporary directory for convenience. Make it in the build tree
25430 # simply because there is no reason to put it here, and in addition,
25431 # creating and moving files from /tmp can sometimes cause problems.
25432 # Create a temporary directory, and hook for its removal unless debugging.
25433 $debug ||
25434 {
25435 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25436 trap '{ (exit 1); exit 1; }' 1 2 13 15
25437 }
25438
25439 # Create a (secure) tmp directory for tmp files.
25440
25441 {
25442 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25443 test -n "$tmp" && test -d "$tmp"
25444 } ||
25445 {
25446 tmp=./confstat$$-$RANDOM
25447 (umask 077 && mkdir $tmp)
25448 } ||
25449 {
25450 echo "$me: cannot create a temporary directory in ." >&2
25451 { (exit 1); exit 1; }
25452 }
25453
25454 _ACEOF
25455
25456 cat >>$CONFIG_STATUS <<_ACEOF
25457
25458 #
25459 # CONFIG_FILES section.
25460 #
25461
25462 # No need to generate the scripts if there are no CONFIG_FILES.
25463 # This happens for instance when ./config.status config.h
25464 if test -n "\$CONFIG_FILES"; then
25465 # Protect against being on the right side of a sed subst in config.status.
25466 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25467 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25468 s,@SHELL@,$SHELL,;t t
25469 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25470 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25471 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25472 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25473 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25474 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25475 s,@exec_prefix@,$exec_prefix,;t t
25476 s,@prefix@,$prefix,;t t
25477 s,@program_transform_name@,$program_transform_name,;t t
25478 s,@bindir@,$bindir,;t t
25479 s,@sbindir@,$sbindir,;t t
25480 s,@libexecdir@,$libexecdir,;t t
25481 s,@datadir@,$datadir,;t t
25482 s,@sysconfdir@,$sysconfdir,;t t
25483 s,@sharedstatedir@,$sharedstatedir,;t t
25484 s,@localstatedir@,$localstatedir,;t t
25485 s,@libdir@,$libdir,;t t
25486 s,@includedir@,$includedir,;t t
25487 s,@oldincludedir@,$oldincludedir,;t t
25488 s,@infodir@,$infodir,;t t
25489 s,@mandir@,$mandir,;t t
25490 s,@build_alias@,$build_alias,;t t
25491 s,@host_alias@,$host_alias,;t t
25492 s,@target_alias@,$target_alias,;t t
25493 s,@DEFS@,$DEFS,;t t
25494 s,@ECHO_C@,$ECHO_C,;t t
25495 s,@ECHO_N@,$ECHO_N,;t t
25496 s,@ECHO_T@,$ECHO_T,;t t
25497 s,@LIBS@,$LIBS,;t t
25498 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
25499 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
25500 s,@MICRO_VERSION@,$MICRO_VERSION,;t t
25501 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25502 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25503 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25504 s,@CYGPATH_W@,$CYGPATH_W,;t t
25505 s,@PACKAGE@,$PACKAGE,;t t
25506 s,@VERSION@,$VERSION,;t t
25507 s,@ACLOCAL@,$ACLOCAL,;t t
25508 s,@AUTOCONF@,$AUTOCONF,;t t
25509 s,@AUTOMAKE@,$AUTOMAKE,;t t
25510 s,@AUTOHEADER@,$AUTOHEADER,;t t
25511 s,@MAKEINFO@,$MAKEINFO,;t t
25512 s,@AMTAR@,$AMTAR,;t t
25513 s,@install_sh@,$install_sh,;t t
25514 s,@STRIP@,$STRIP,;t t
25515 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25516 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25517 s,@AWK@,$AWK,;t t
25518 s,@SET_MAKE@,$SET_MAKE,;t t
25519 s,@am__leading_dot@,$am__leading_dot,;t t
25520 s,@build@,$build,;t t
25521 s,@build_cpu@,$build_cpu,;t t
25522 s,@build_vendor@,$build_vendor,;t t
25523 s,@build_os@,$build_os,;t t
25524 s,@host@,$host,;t t
25525 s,@host_cpu@,$host_cpu,;t t
25526 s,@host_vendor@,$host_vendor,;t t
25527 s,@host_os@,$host_os,;t t
25528 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25529 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25530 s,@MAINT@,$MAINT,;t t
25531 s,@CXX@,$CXX,;t t
25532 s,@CXXFLAGS@,$CXXFLAGS,;t t
25533 s,@LDFLAGS@,$LDFLAGS,;t t
25534 s,@CPPFLAGS@,$CPPFLAGS,;t t
25535 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25536 s,@EXEEXT@,$EXEEXT,;t t
25537 s,@OBJEXT@,$OBJEXT,;t t
25538 s,@DEPDIR@,$DEPDIR,;t t
25539 s,@am__include@,$am__include,;t t
25540 s,@am__quote@,$am__quote,;t t
25541 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25542 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25543 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25544 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25545 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25546 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25547 s,@CC@,$CC,;t t
25548 s,@CFLAGS@,$CFLAGS,;t t
25549 s,@ac_ct_CC@,$ac_ct_CC,;t t
25550 s,@CCDEPMODE@,$CCDEPMODE,;t t
25551 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25552 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25553 s,@EGREP@,$EGREP,;t t
25554 s,@LN_S@,$LN_S,;t t
25555 s,@ECHO@,$ECHO,;t t
25556 s,@AR@,$AR,;t t
25557 s,@ac_ct_AR@,$ac_ct_AR,;t t
25558 s,@RANLIB@,$RANLIB,;t t
25559 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25560 s,@CPP@,$CPP,;t t
25561 s,@CXXCPP@,$CXXCPP,;t t
25562 s,@F77@,$F77,;t t
25563 s,@FFLAGS@,$FFLAGS,;t t
25564 s,@ac_ct_F77@,$ac_ct_F77,;t t
25565 s,@LIBTOOL@,$LIBTOOL,;t t
25566 s,@ssize_t_decl@,$ssize_t_decl,;t t
25567 s,@u_char_decl@,$u_char_decl,;t t
25568 s,@u_short_decl@,$u_short_decl,;t t
25569 s,@u_int_decl@,$u_int_decl,;t t
25570 s,@u_long_decl@,$u_long_decl,;t t
25571 s,@u_int8_decl@,$u_int8_decl,;t t
25572 s,@u_int16_decl@,$u_int16_decl,;t t
25573 s,@int16_decl@,$int16_decl,;t t
25574 s,@u_int32_decl@,$u_int32_decl,;t t
25575 s,@int32_decl@,$int32_decl,;t t
25576 s,@LIBOBJS@,$LIBOBJS,;t t
25577 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25578 CEOF
25579
25580 _ACEOF
25581
25582 cat >>$CONFIG_STATUS <<\_ACEOF
25583 # Split the substitutions into bite-sized pieces for seds with
25584 # small command number limits, like on Digital OSF/1 and HP-UX.
25585 ac_max_sed_lines=48
25586 ac_sed_frag=1 # Number of current file.
25587 ac_beg=1 # First line for current file.
25588 ac_end=$ac_max_sed_lines # Line after last line for current file.
25589 ac_more_lines=:
25590 ac_sed_cmds=
25591 while $ac_more_lines; do
25592 if test $ac_beg -gt 1; then
25593 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25594 else
25595 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25596 fi
25597 if test ! -s $tmp/subs.frag; then
25598 ac_more_lines=false
25599 else
25600 # The purpose of the label and of the branching condition is to
25601 # speed up the sed processing (if there are no `@' at all, there
25602 # is no need to browse any of the substitutions).
25603 # These are the two extra sed commands mentioned above.
25604 (echo ':t
25605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25606 if test -z "$ac_sed_cmds"; then
25607 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25608 else
25609 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25610 fi
25611 ac_sed_frag=`expr $ac_sed_frag + 1`
25612 ac_beg=$ac_end
25613 ac_end=`expr $ac_end + $ac_max_sed_lines`
25614 fi
25615 done
25616 if test -z "$ac_sed_cmds"; then
25617 ac_sed_cmds=cat
25618 fi
25619 fi # test -n "$CONFIG_FILES"
25620
25621 _ACEOF
25622 cat >>$CONFIG_STATUS <<\_ACEOF
25623 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25625 case $ac_file in
25626 - | *:- | *:-:* ) # input from stdin
25627 cat >$tmp/stdin
25628 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25630 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25632 * ) ac_file_in=$ac_file.in ;;
25633 esac
25634
25635 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25636 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25638 X"$ac_file" : 'X\(//\)[^/]' \| \
25639 X"$ac_file" : 'X\(//\)$' \| \
25640 X"$ac_file" : 'X\(/\)' \| \
25641 . : '\(.\)' 2>/dev/null ||
25642 echo X"$ac_file" |
25643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25645 /^X\(\/\/\)$/{ s//\1/; q; }
25646 /^X\(\/\).*/{ s//\1/; q; }
25647 s/.*/./; q'`
25648 { if $as_mkdir_p; then
25649 mkdir -p "$ac_dir"
25650 else
25651 as_dir="$ac_dir"
25652 as_dirs=
25653 while test ! -d "$as_dir"; do
25654 as_dirs="$as_dir $as_dirs"
25655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25657 X"$as_dir" : 'X\(//\)[^/]' \| \
25658 X"$as_dir" : 'X\(//\)$' \| \
25659 X"$as_dir" : 'X\(/\)' \| \
25660 . : '\(.\)' 2>/dev/null ||
25661 echo X"$as_dir" |
25662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25664 /^X\(\/\/\)$/{ s//\1/; q; }
25665 /^X\(\/\).*/{ s//\1/; q; }
25666 s/.*/./; q'`
25667 done
25668 test ! -n "$as_dirs" || mkdir $as_dirs
25669 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25671 { (exit 1); exit 1; }; }; }
25672
25673 ac_builddir=.
25674
25675 if test "$ac_dir" != .; then
25676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25677 # A "../" for each directory in $ac_dir_suffix.
25678 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25679 else
25680 ac_dir_suffix= ac_top_builddir=
25681 fi
25682
25683 case $srcdir in
25684 .) # No --srcdir option. We are building in place.
25685 ac_srcdir=.
25686 if test -z "$ac_top_builddir"; then
25687 ac_top_srcdir=.
25688 else
25689 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25690 fi ;;
25691 [\\/]* | ?:[\\/]* ) # Absolute path.
25692 ac_srcdir=$srcdir$ac_dir_suffix;
25693 ac_top_srcdir=$srcdir ;;
25694 *) # Relative path.
25695 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25696 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25697 esac
25698
25699 # Do not use `cd foo && pwd` to compute absolute paths, because
25700 # the directories may not exist.
25701 case `pwd` in
25702 .) ac_abs_builddir="$ac_dir";;
25703 *)
25704 case "$ac_dir" in
25705 .) ac_abs_builddir=`pwd`;;
25706 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25707 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25708 esac;;
25709 esac
25710 case $ac_abs_builddir in
25711 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25712 *)
25713 case ${ac_top_builddir}. in
25714 .) ac_abs_top_builddir=$ac_abs_builddir;;
25715 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25716 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25717 esac;;
25718 esac
25719 case $ac_abs_builddir in
25720 .) ac_abs_srcdir=$ac_srcdir;;
25721 *)
25722 case $ac_srcdir in
25723 .) ac_abs_srcdir=$ac_abs_builddir;;
25724 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25725 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25726 esac;;
25727 esac
25728 case $ac_abs_builddir in
25729 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25730 *)
25731 case $ac_top_srcdir in
25732 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25733 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25734 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25735 esac;;
25736 esac
25737
25738
25739 case $INSTALL in
25740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25741 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25742 esac
25743
25744 # Let's still pretend it is `configure' which instantiates (i.e., don't
25745 # use $as_me), people would be surprised to read:
25746 # /* config.h. Generated by config.status. */
25747 if test x"$ac_file" = x-; then
25748 configure_input=
25749 else
25750 configure_input="$ac_file. "
25751 fi
25752 configure_input=$configure_input"Generated from `echo $ac_file_in |
25753 sed 's,.*/,,'` by configure."
25754
25755 # First look for the input files in the build tree, otherwise in the
25756 # src tree.
25757 ac_file_inputs=`IFS=:
25758 for f in $ac_file_in; do
25759 case $f in
25760 -) echo $tmp/stdin ;;
25761 [\\/$]*)
25762 # Absolute (can't be DOS-style, as IFS=:)
25763 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25764 echo "$as_me: error: cannot find input file: $f" >&2;}
25765 { (exit 1); exit 1; }; }
25766 echo "$f";;
25767 *) # Relative
25768 if test -f "$f"; then
25769 # Build tree
25770 echo "$f"
25771 elif test -f "$srcdir/$f"; then
25772 # Source tree
25773 echo "$srcdir/$f"
25774 else
25775 # /dev/null tree
25776 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25777 echo "$as_me: error: cannot find input file: $f" >&2;}
25778 { (exit 1); exit 1; }; }
25779 fi;;
25780 esac
25781 done` || { (exit 1); exit 1; }
25782
25783 if test x"$ac_file" != x-; then
25784 { echo "$as_me:$LINENO: creating $ac_file" >&5
25785 echo "$as_me: creating $ac_file" >&6;}
25786 rm -f "$ac_file"
25787 fi
25788 _ACEOF
25789 cat >>$CONFIG_STATUS <<_ACEOF
25790 sed "$ac_vpsub
25791 $extrasub
25792 _ACEOF
25793 cat >>$CONFIG_STATUS <<\_ACEOF
25794 :t
25795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25796 s,@configure_input@,$configure_input,;t t
25797 s,@srcdir@,$ac_srcdir,;t t
25798 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25799 s,@top_srcdir@,$ac_top_srcdir,;t t
25800 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25801 s,@builddir@,$ac_builddir,;t t
25802 s,@abs_builddir@,$ac_abs_builddir,;t t
25803 s,@top_builddir@,$ac_top_builddir,;t t
25804 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25805 s,@INSTALL@,$ac_INSTALL,;t t
25806 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25807 rm -f $tmp/stdin
25808 if test x"$ac_file" != x-; then
25809 mv $tmp/out $ac_file
25810 else
25811 cat $tmp/out
25812 rm -f $tmp/out
25813 fi
25814
25815 done
25816 _ACEOF
25817 cat >>$CONFIG_STATUS <<\_ACEOF
25818
25819 #
25820 # CONFIG_HEADER section.
25821 #
25822
25823 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25824 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25825 #
25826 # ac_d sets the value in "#define NAME VALUE" lines.
25827 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25828 ac_dB='[ ].*$,\1#\2'
25829 ac_dC=' '
25830 ac_dD=',;t'
25831 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25832 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25833 ac_uB='$,\1#\2define\3'
25834 ac_uC=' '
25835 ac_uD=',;t'
25836
25837 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25839 case $ac_file in
25840 - | *:- | *:-:* ) # input from stdin
25841 cat >$tmp/stdin
25842 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25844 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25846 * ) ac_file_in=$ac_file.in ;;
25847 esac
25848
25849 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25850 echo "$as_me: creating $ac_file" >&6;}
25851
25852 # First look for the input files in the build tree, otherwise in the
25853 # src tree.
25854 ac_file_inputs=`IFS=:
25855 for f in $ac_file_in; do
25856 case $f in
25857 -) echo $tmp/stdin ;;
25858 [\\/$]*)
25859 # Absolute (can't be DOS-style, as IFS=:)
25860 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25861 echo "$as_me: error: cannot find input file: $f" >&2;}
25862 { (exit 1); exit 1; }; }
25863 # Do quote $f, to prevent DOS paths from being IFS'd.
25864 echo "$f";;
25865 *) # Relative
25866 if test -f "$f"; then
25867 # Build tree
25868 echo "$f"
25869 elif test -f "$srcdir/$f"; then
25870 # Source tree
25871 echo "$srcdir/$f"
25872 else
25873 # /dev/null tree
25874 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25875 echo "$as_me: error: cannot find input file: $f" >&2;}
25876 { (exit 1); exit 1; }; }
25877 fi;;
25878 esac
25879 done` || { (exit 1); exit 1; }
25880 # Remove the trailing spaces.
25881 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25882
25883 _ACEOF
25884
25885 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25886 # `conftest.undefs', that substitutes the proper values into
25887 # config.h.in to produce config.h. The first handles `#define'
25888 # templates, and the second `#undef' templates.
25889 # And first: Protect against being on the right side of a sed subst in
25890 # config.status. Protect against being in an unquoted here document
25891 # in config.status.
25892 rm -f conftest.defines conftest.undefs
25893 # Using a here document instead of a string reduces the quoting nightmare.
25894 # Putting comments in sed scripts is not portable.
25895 #
25896 # `end' is used to avoid that the second main sed command (meant for
25897 # 0-ary CPP macros) applies to n-ary macro definitions.
25898 # See the Autoconf documentation for `clear'.
25899 cat >confdef2sed.sed <<\_ACEOF
25900 s/[\\&,]/\\&/g
25901 s,[\\$`],\\&,g
25902 t clear
25903 : clear
25904 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25905 t end
25906 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25907 : end
25908 _ACEOF
25909 # If some macros were called several times there might be several times
25910 # the same #defines, which is useless. Nevertheless, we may not want to
25911 # sort them, since we want the *last* AC-DEFINE to be honored.
25912 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25913 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25914 rm -f confdef2sed.sed
25915
25916 # This sed command replaces #undef with comments. This is necessary, for
25917 # example, in the case of _POSIX_SOURCE, which is predefined and required
25918 # on some systems where configure will not decide to define it.
25919 cat >>conftest.undefs <<\_ACEOF
25920 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25921 _ACEOF
25922
25923 # Break up conftest.defines because some shells have a limit on the size
25924 # of here documents, and old seds have small limits too (100 cmds).
25925 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25926 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25927 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25928 echo ' :' >>$CONFIG_STATUS
25929 rm -f conftest.tail
25930 while grep . conftest.defines >/dev/null
25931 do
25932 # Write a limited-size here document to $tmp/defines.sed.
25933 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25934 # Speed up: don't consider the non `#define' lines.
25935 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25936 # Work around the forget-to-reset-the-flag bug.
25937 echo 't clr' >>$CONFIG_STATUS
25938 echo ': clr' >>$CONFIG_STATUS
25939 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25940 echo 'CEOF
25941 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25942 rm -f $tmp/in
25943 mv $tmp/out $tmp/in
25944 ' >>$CONFIG_STATUS
25945 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25946 rm -f conftest.defines
25947 mv conftest.tail conftest.defines
25948 done
25949 rm -f conftest.defines
25950 echo ' fi # grep' >>$CONFIG_STATUS
25951 echo >>$CONFIG_STATUS
25952
25953 # Break up conftest.undefs because some shells have a limit on the size
25954 # of here documents, and old seds have small limits too (100 cmds).
25955 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25956 rm -f conftest.tail
25957 while grep . conftest.undefs >/dev/null
25958 do
25959 # Write a limited-size here document to $tmp/undefs.sed.
25960 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25961 # Speed up: don't consider the non `#undef'
25962 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25963 # Work around the forget-to-reset-the-flag bug.
25964 echo 't clr' >>$CONFIG_STATUS
25965 echo ': clr' >>$CONFIG_STATUS
25966 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25967 echo 'CEOF
25968 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25969 rm -f $tmp/in
25970 mv $tmp/out $tmp/in
25971 ' >>$CONFIG_STATUS
25972 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25973 rm -f conftest.undefs
25974 mv conftest.tail conftest.undefs
25975 done
25976 rm -f conftest.undefs
25977
25978 cat >>$CONFIG_STATUS <<\_ACEOF
25979 # Let's still pretend it is `configure' which instantiates (i.e., don't
25980 # use $as_me), people would be surprised to read:
25981 # /* config.h. Generated by config.status. */
25982 if test x"$ac_file" = x-; then
25983 echo "/* Generated by configure. */" >$tmp/config.h
25984 else
25985 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25986 fi
25987 cat $tmp/in >>$tmp/config.h
25988 rm -f $tmp/in
25989 if test x"$ac_file" != x-; then
25990 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25991 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25992 echo "$as_me: $ac_file is unchanged" >&6;}
25993 else
25994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25996 X"$ac_file" : 'X\(//\)[^/]' \| \
25997 X"$ac_file" : 'X\(//\)$' \| \
25998 X"$ac_file" : 'X\(/\)' \| \
25999 . : '\(.\)' 2>/dev/null ||
26000 echo X"$ac_file" |
26001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26003 /^X\(\/\/\)$/{ s//\1/; q; }
26004 /^X\(\/\).*/{ s//\1/; q; }
26005 s/.*/./; q'`
26006 { if $as_mkdir_p; then
26007 mkdir -p "$ac_dir"
26008 else
26009 as_dir="$ac_dir"
26010 as_dirs=
26011 while test ! -d "$as_dir"; do
26012 as_dirs="$as_dir $as_dirs"
26013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26015 X"$as_dir" : 'X\(//\)[^/]' \| \
26016 X"$as_dir" : 'X\(//\)$' \| \
26017 X"$as_dir" : 'X\(/\)' \| \
26018 . : '\(.\)' 2>/dev/null ||
26019 echo X"$as_dir" |
26020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26022 /^X\(\/\/\)$/{ s//\1/; q; }
26023 /^X\(\/\).*/{ s//\1/; q; }
26024 s/.*/./; q'`
26025 done
26026 test ! -n "$as_dirs" || mkdir $as_dirs
26027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26029 { (exit 1); exit 1; }; }; }
26030
26031 rm -f $ac_file
26032 mv $tmp/config.h $ac_file
26033 fi
26034 else
26035 cat $tmp/config.h
26036 rm -f $tmp/config.h
26037 fi
26038 # Compute $ac_file's index in $config_headers.
26039 _am_stamp_count=1
26040 for _am_header in $config_headers :; do
26041 case $_am_header in
26042 $ac_file | $ac_file:* )
26043 break ;;
26044 * )
26045 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26046 esac
26047 done
26048 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26049 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26050 X$ac_file : 'X\(//\)[^/]' \| \
26051 X$ac_file : 'X\(//\)$' \| \
26052 X$ac_file : 'X\(/\)' \| \
26053 . : '\(.\)' 2>/dev/null ||
26054 echo X$ac_file |
26055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26057 /^X\(\/\/\)$/{ s//\1/; q; }
26058 /^X\(\/\).*/{ s//\1/; q; }
26059 s/.*/./; q'`/stamp-h$_am_stamp_count
26060 done
26061 _ACEOF
26062 cat >>$CONFIG_STATUS <<\_ACEOF
26063
26064 #
26065 # CONFIG_COMMANDS section.
26066 #
26067 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26068 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26069 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26070 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26071 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26072 X"$ac_dest" : 'X\(//\)[^/]' \| \
26073 X"$ac_dest" : 'X\(//\)$' \| \
26074 X"$ac_dest" : 'X\(/\)' \| \
26075 . : '\(.\)' 2>/dev/null ||
26076 echo X"$ac_dest" |
26077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26079 /^X\(\/\/\)$/{ s//\1/; q; }
26080 /^X\(\/\).*/{ s//\1/; q; }
26081 s/.*/./; q'`
26082 { if $as_mkdir_p; then
26083 mkdir -p "$ac_dir"
26084 else
26085 as_dir="$ac_dir"
26086 as_dirs=
26087 while test ! -d "$as_dir"; do
26088 as_dirs="$as_dir $as_dirs"
26089 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26091 X"$as_dir" : 'X\(//\)[^/]' \| \
26092 X"$as_dir" : 'X\(//\)$' \| \
26093 X"$as_dir" : 'X\(/\)' \| \
26094 . : '\(.\)' 2>/dev/null ||
26095 echo X"$as_dir" |
26096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26098 /^X\(\/\/\)$/{ s//\1/; q; }
26099 /^X\(\/\).*/{ s//\1/; q; }
26100 s/.*/./; q'`
26101 done
26102 test ! -n "$as_dirs" || mkdir $as_dirs
26103 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26105 { (exit 1); exit 1; }; }; }
26106
26107 ac_builddir=.
26108
26109 if test "$ac_dir" != .; then
26110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26111 # A "../" for each directory in $ac_dir_suffix.
26112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26113 else
26114 ac_dir_suffix= ac_top_builddir=
26115 fi
26116
26117 case $srcdir in
26118 .) # No --srcdir option. We are building in place.
26119 ac_srcdir=.
26120 if test -z "$ac_top_builddir"; then
26121 ac_top_srcdir=.
26122 else
26123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26124 fi ;;
26125 [\\/]* | ?:[\\/]* ) # Absolute path.
26126 ac_srcdir=$srcdir$ac_dir_suffix;
26127 ac_top_srcdir=$srcdir ;;
26128 *) # Relative path.
26129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26131 esac
26132
26133 # Do not use `cd foo && pwd` to compute absolute paths, because
26134 # the directories may not exist.
26135 case `pwd` in
26136 .) ac_abs_builddir="$ac_dir";;
26137 *)
26138 case "$ac_dir" in
26139 .) ac_abs_builddir=`pwd`;;
26140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26142 esac;;
26143 esac
26144 case $ac_abs_builddir in
26145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26146 *)
26147 case ${ac_top_builddir}. in
26148 .) ac_abs_top_builddir=$ac_abs_builddir;;
26149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26151 esac;;
26152 esac
26153 case $ac_abs_builddir in
26154 .) ac_abs_srcdir=$ac_srcdir;;
26155 *)
26156 case $ac_srcdir in
26157 .) ac_abs_srcdir=$ac_abs_builddir;;
26158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26160 esac;;
26161 esac
26162 case $ac_abs_builddir in
26163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26164 *)
26165 case $ac_top_srcdir in
26166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26169 esac;;
26170 esac
26171
26172
26173 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26174 echo "$as_me: executing $ac_dest commands" >&6;}
26175 case $ac_dest in
26176 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26177 # Strip MF so we end up with the name of the file.
26178 mf=`echo "$mf" | sed -e 's/:.*$//'`
26179 # Check whether this is an Automake generated Makefile or not.
26180 # We used to match only the files named `Makefile.in', but
26181 # some people rename them; so instead we look at the file content.
26182 # Grep'ing the first line is not enough: some people post-process
26183 # each Makefile.in and add a new line on top of each file to say so.
26184 # So let's grep whole file.
26185 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26186 dirpart=`(dirname "$mf") 2>/dev/null ||
26187 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26188 X"$mf" : 'X\(//\)[^/]' \| \
26189 X"$mf" : 'X\(//\)$' \| \
26190 X"$mf" : 'X\(/\)' \| \
26191 . : '\(.\)' 2>/dev/null ||
26192 echo X"$mf" |
26193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26195 /^X\(\/\/\)$/{ s//\1/; q; }
26196 /^X\(\/\).*/{ s//\1/; q; }
26197 s/.*/./; q'`
26198 else
26199 continue
26200 fi
26201 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
26202 # Extract the definition of DEP_FILES from the Makefile without
26203 # running `make'.
26204 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
26205 test -z "$DEPDIR" && continue
26206 # When using ansi2knr, U may be empty or an underscore; expand it
26207 U=`sed -n -e '/^U = / s///p' < "$mf"`
26208 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
26209 # We invoke sed twice because it is the simplest approach to
26210 # changing $(DEPDIR) to its actual value in the expansion.
26211 for file in `sed -n -e '
26212 /^DEP_FILES = .*\\\\$/ {
26213 s/^DEP_FILES = //
26214 :loop
26215 s/\\\\$//
26216 p
26217 n
26218 /\\\\$/ b loop
26219 p
26220 }
26221 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
26222 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26223 # Make sure the directory exists.
26224 test -f "$dirpart/$file" && continue
26225 fdir=`(dirname "$file") 2>/dev/null ||
26226 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26227 X"$file" : 'X\(//\)[^/]' \| \
26228 X"$file" : 'X\(//\)$' \| \
26229 X"$file" : 'X\(/\)' \| \
26230 . : '\(.\)' 2>/dev/null ||
26231 echo X"$file" |
26232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26234 /^X\(\/\/\)$/{ s//\1/; q; }
26235 /^X\(\/\).*/{ s//\1/; q; }
26236 s/.*/./; q'`
26237 { if $as_mkdir_p; then
26238 mkdir -p $dirpart/$fdir
26239 else
26240 as_dir=$dirpart/$fdir
26241 as_dirs=
26242 while test ! -d "$as_dir"; do
26243 as_dirs="$as_dir $as_dirs"
26244 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26246 X"$as_dir" : 'X\(//\)[^/]' \| \
26247 X"$as_dir" : 'X\(//\)$' \| \
26248 X"$as_dir" : 'X\(/\)' \| \
26249 . : '\(.\)' 2>/dev/null ||
26250 echo X"$as_dir" |
26251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26253 /^X\(\/\/\)$/{ s//\1/; q; }
26254 /^X\(\/\).*/{ s//\1/; q; }
26255 s/.*/./; q'`
26256 done
26257 test ! -n "$as_dirs" || mkdir $as_dirs
26258 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26259 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26260 { (exit 1); exit 1; }; }; }
26261
26262 # echo "creating $dirpart/$file"
26263 echo '# dummy' > "$dirpart/$file"
26264 done
26265 done
26266 ;;
26267 esac
26268 done
26269 _ACEOF
26270
26271 cat >>$CONFIG_STATUS <<\_ACEOF
26272
26273 { (exit 0); exit 0; }
26274 _ACEOF
26275 chmod +x $CONFIG_STATUS
26276 ac_clean_files=$ac_clean_files_save
26277
26278
26279 # configure is writing to config.log, and then calls config.status.
26280 # config.status does its own redirection, appending to config.log.
26281 # Unfortunately, on DOS this fails, as config.log is still kept open
26282 # by configure, so config.status won't be able to write to it; its
26283 # output is simply discarded. So we exec the FD to /dev/null,
26284 # effectively closing config.log, so it can be properly (re)opened and
26285 # appended to by config.status. When coming back to configure, we
26286 # need to make the FD available again.
26287 if test "$no_create" != yes; then
26288 ac_cs_success=:
26289 ac_config_status_args=
26290 test "$silent" = yes &&
26291 ac_config_status_args="$ac_config_status_args --quiet"
26292 exec 5>/dev/null
26293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26294 exec 5>>config.log
26295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26296 # would make configure fail if this is the last instruction.
26297 $ac_cs_success || { (exit 1); exit 1; }
26298 fi
26299