Revert the disabling of pam_setcred so that IMAP works as expected.
[hcoop/debian/courier-authlib.git] / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1007
1008 cat <<\_ACEOF
1009
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-ltdl-install install libltdl
1040
1041 Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
1049
1050 Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1057 CPP C preprocessor
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 Report bugs to <bug-libtool@gnu.org>.
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1073 ac_popdir=`pwd`
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1076 ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083 ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087 .) # No --srcdir option. We are building in place.
1088 ac_srcdir=.
1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107 case "$ac_dir" in
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 esac;;
1139 esac
1140
1141 cd $ac_dir
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1144 echo
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1147 echo
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1151 echo
1152 $ac_configure --help
1153 else
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 fi
1156 cd $ac_popdir
1157 done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162 cat <<\_ACEOF
1163 libltdl configure 1.2
1164 generated by GNU Autoconf 2.59
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170 exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by libltdl $as_me 1.2, which was
1178 generated by GNU Autoconf 2.59. Invocation command line was
1179
1180 $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197
1198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211 IFS=$as_save_IFS
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240 for ac_arg
1241 do
1242 case $ac_arg in
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 continue ;;
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 esac
1250 case $ac_pass in
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 2)
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
1255 ac_must_keep_next=false # Got value, back to normal.
1256 else
1257 case $ac_arg in
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264 esac
1265 ;;
1266 -* ) ac_must_keep_next=true ;;
1267 esac
1268 fi
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1271 ac_sep=" "
1272 ;;
1273 esac
1274 done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log. We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1286 {
1287 echo
1288
1289 cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294 echo
1295 # The following way of writing the cache mishandles newlines in values,
1296 {
1297 (set) 2>&1 |
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299 *ac_space=\ *)
1300 sed -n \
1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303 ;;
1304 *)
1305 sed -n \
1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307 ;;
1308 esac;
1309 }
1310 echo
1311
1312 cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317 echo
1318 for ac_var in $ac_subst_vars
1319 do
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1322 done | sort
1323 echo
1324
1325 if test -n "$ac_subst_files"; then
1326 cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331 echo
1332 for ac_var in $ac_subst_files
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338 fi
1339
1340 if test -s confdefs.h; then
1341 cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346 echo
1347 sed "/^$/d" confdefs.h | sort
1348 echo
1349 fi
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1353 } >&5
1354 rm -f core *.core &&
1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356 exit $exit_status
1357 ' 0
1358 for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 else
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402 fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1409 . "$ac_site_file"
1410 fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419 case $cache_file in
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1422 esac
1423 fi
1424 else
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427 >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1440 set,)
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1444 ,set)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,);;
1449 *)
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1454 echo "$as_me: former value: $ac_old_val" >&2;}
1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1456 echo "$as_me: current value: $ac_new_val" >&2;}
1457 ac_cache_corrupted=:
1458 fi;;
1459 esac
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1462 case $ac_new_val in
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1466 esac
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470 esac
1471 fi
1472 done
1473 if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516 ## ------------------------------- ##
1517 ## Libltdl specific configuration. ##
1518 ## ------------------------------- ##
1519
1520 ac_aux_dir=
1521 for ac_dir in . $srcdir/.; do
1522 if test -f $ac_dir/install-sh; then
1523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 break
1526 elif test -f $ac_dir/install.sh; then
1527 ac_aux_dir=$ac_dir
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 break
1530 elif test -f $ac_dir/shtool; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 break
1534 fi
1535 done
1536 if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1539 { (exit 1); exit 1; }; }
1540 fi
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545
1546 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1547 if test -f ${srcdir}/ltmain.sh; then
1548 # if libltdl is libtoolized, it is assumed to be stand-alone and
1549 # installed unless the command line overrides it (tested above)
1550 enable_ltdl_install=yes
1551 else
1552 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1553 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1554 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1555 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1556 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1557 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1558 { (exit 1); exit 1; }; }
1559 fi
1560 fi
1561
1562
1563 ## ------------------------ ##
1564 ## Automake Initialisation. ##
1565 ## ------------------------ ##
1566 am__api_version="1.9"
1567 # Find a good install program. We prefer a C program (faster),
1568 # so one script is as good as another. But avoid the broken or
1569 # incompatible versions:
1570 # SysV /etc/install, /usr/sbin/install
1571 # SunOS /usr/etc/install
1572 # IRIX /sbin/install
1573 # AIX /bin/install
1574 # AmigaOS /C/install, which installs bootblocks on floppy discs
1575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578 # OS/2's system install, which has a completely different semantic
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596 /usr/ucb/* ) ;;
1597 *)
1598 # OSF1 and SCO ODT 3.0 have their own names for install.
1599 # Don't use installbsd from OSF since it installs stuff as root
1600 # by default.
1601 for ac_prog in ginstall scoinst install; do
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604 if test $ac_prog = install &&
1605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # AIX install. It has an incompatible calling convention.
1607 :
1608 elif test $ac_prog = install &&
1609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610 # program-specific install script used by HP pwplus--don't use.
1611 :
1612 else
1613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614 break 3
1615 fi
1616 fi
1617 done
1618 done
1619 ;;
1620 esac
1621 done
1622
1623
1624 fi
1625 if test "${ac_cv_path_install+set}" = set; then
1626 INSTALL=$ac_cv_path_install
1627 else
1628 # As a last resort, use the slow shell script. We don't cache a
1629 # path for INSTALL within a source directory, because that will
1630 # break other packages using the cache if that directory is
1631 # removed, or if the path is relative.
1632 INSTALL=$ac_install_sh
1633 fi
1634 fi
1635 echo "$as_me:$LINENO: result: $INSTALL" >&5
1636 echo "${ECHO_T}$INSTALL" >&6
1637
1638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639 # It thinks the first close brace ends the variable substitution.
1640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641
1642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643
1644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645
1646 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1647 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648 # Just in case
1649 sleep 1
1650 echo timestamp > conftest.file
1651 # Do `set' in a subshell so we don't clobber the current shell's
1652 # arguments. Must try -L first in case configure is actually a
1653 # symlink; some systems play weird games with the mod time of symlinks
1654 # (eg FreeBSD returns the mod time of the symlink's containing
1655 # directory).
1656 if (
1657 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1658 if test "$*" = "X"; then
1659 # -L didn't work.
1660 set X `ls -t $srcdir/configure conftest.file`
1661 fi
1662 rm -f conftest.file
1663 if test "$*" != "X $srcdir/configure conftest.file" \
1664 && test "$*" != "X conftest.file $srcdir/configure"; then
1665
1666 # If neither matched, then we have a broken ls. This can happen
1667 # if, for instance, CONFIG_SHELL is bash and it inherits a
1668 # broken ls alias from the environment. This has actually
1669 # happened. Such a system could not be considered "sane".
1670 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&5
1672 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1673 alias in your environment" >&2;}
1674 { (exit 1); exit 1; }; }
1675 fi
1676
1677 test "$2" = conftest.file
1678 )
1679 then
1680 # Ok.
1681 :
1682 else
1683 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1684 Check your system clock" >&5
1685 echo "$as_me: error: newly created file is older than distributed files!
1686 Check your system clock" >&2;}
1687 { (exit 1); exit 1; }; }
1688 fi
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691 test "$program_prefix" != NONE &&
1692 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1693 # Use a double $ so make ignores it.
1694 test "$program_suffix" != NONE &&
1695 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1696 # Double any \ or $. echo might interpret backslashes.
1697 # By default was `s,x,x', remove it if useless.
1698 cat <<\_ACEOF >conftest.sed
1699 s/[\\$]/&&/g;s/;s,x,x,$//
1700 _ACEOF
1701 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702 rm conftest.sed
1703
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1711 else
1712 am_missing_run=
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 fi
1716
1717 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1718 # We used to keeping the `.' as first argument, in order to
1719 # allow $(mkdir_p) to be used without argument. As in
1720 # $(mkdir_p) $(somedir)
1721 # where $(somedir) is conditionally defined. However this is wrong
1722 # for two reasons:
1723 # 1. if the package is installed by a user who cannot write `.'
1724 # make install will fail,
1725 # 2. the above comment should most certainly read
1726 # $(mkdir_p) $(DESTDIR)$(somedir)
1727 # so it does not work when $(somedir) is undefined and
1728 # $(DESTDIR) is not.
1729 # To support the latter case, we have to write
1730 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1731 # so the `.' trick is pointless.
1732 mkdir_p='mkdir -p --'
1733 else
1734 # On NextStep and OpenStep, the `mkdir' command does not
1735 # recognize any option. It will interpret all options as
1736 # directories to create, and then abort because `.' already
1737 # exists.
1738 for d in ./-p ./--version;
1739 do
1740 test -d $d && rmdir $d
1741 done
1742 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1743 if test -f "$ac_aux_dir/mkinstalldirs"; then
1744 mkdir_p='$(mkinstalldirs)'
1745 else
1746 mkdir_p='$(install_sh) -d'
1747 fi
1748 fi
1749
1750 for ac_prog in gawk mawk nawk awk
1751 do
1752 # Extract the first word of "$ac_prog", so it can be a program name with args.
1753 set dummy $ac_prog; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_AWK+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$AWK"; then
1760 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_AWK="$ac_prog"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1772 fi
1773 done
1774 done
1775
1776 fi
1777 fi
1778 AWK=$ac_cv_prog_AWK
1779 if test -n "$AWK"; then
1780 echo "$as_me:$LINENO: result: $AWK" >&5
1781 echo "${ECHO_T}$AWK" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787 test -n "$AWK" && break
1788 done
1789
1790 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1793 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 cat >conftest.make <<\_ACEOF
1797 all:
1798 @echo 'ac_maketemp="$(MAKE)"'
1799 _ACEOF
1800 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1801 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1802 if test -n "$ac_maketemp"; then
1803 eval ac_cv_prog_make_${ac_make}_set=yes
1804 else
1805 eval ac_cv_prog_make_${ac_make}_set=no
1806 fi
1807 rm -f conftest.make
1808 fi
1809 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 SET_MAKE=
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 SET_MAKE="MAKE=${MAKE-make}"
1817 fi
1818
1819 rm -rf .tst 2>/dev/null
1820 mkdir .tst 2>/dev/null
1821 if test -d .tst; then
1822 am__leading_dot=.
1823 else
1824 am__leading_dot=_
1825 fi
1826 rmdir .tst 2>/dev/null
1827
1828 # test to see if srcdir already configured
1829 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1830 test -f $srcdir/config.status; then
1831 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1832 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1833 { (exit 1); exit 1; }; }
1834 fi
1835
1836 # test whether we have cygpath
1837 if test -z "$CYGPATH_W"; then
1838 if (cygpath --version) >/dev/null 2>/dev/null; then
1839 CYGPATH_W='cygpath -w'
1840 else
1841 CYGPATH_W=echo
1842 fi
1843 fi
1844
1845
1846 # Define the identity of the package.
1847 PACKAGE=libltdl
1848 VERSION=1.2
1849
1850
1851 # Some tools Automake needs.
1852
1853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854
1855
1856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857
1858
1859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860
1861
1862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863
1864
1865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1866
1867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1868
1869 # Installed binaries are usually stripped using `strip' when the user
1870 # run `make install-strip'. However `strip' might not be the right
1871 # tool to use in cross-compilation environments, therefore Automake
1872 # will honor the `STRIP' environment variable to overrule this program.
1873 if test "$cross_compiling" != no; then
1874 if test -n "$ac_tool_prefix"; then
1875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}strip; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_STRIP+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 if test -n "$STRIP"; then
1883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1895 fi
1896 done
1897 done
1898
1899 fi
1900 fi
1901 STRIP=$ac_cv_prog_STRIP
1902 if test -n "$STRIP"; then
1903 echo "$as_me:$LINENO: result: $STRIP" >&5
1904 echo "${ECHO_T}$STRIP" >&6
1905 else
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910 fi
1911 if test -z "$ac_cv_prog_STRIP"; then
1912 ac_ct_STRIP=$STRIP
1913 # Extract the first word of "strip", so it can be a program name with args.
1914 set dummy strip; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test -n "$ac_ct_STRIP"; then
1921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_ac_ct_STRIP="strip"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1933 fi
1934 done
1935 done
1936
1937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1938 fi
1939 fi
1940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1941 if test -n "$ac_ct_STRIP"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1943 echo "${ECHO_T}$ac_ct_STRIP" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 STRIP=$ac_ct_STRIP
1950 else
1951 STRIP="$ac_cv_prog_STRIP"
1952 fi
1953
1954 fi
1955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1956
1957 # We need awk for the "check" target. The system "awk" is bad on
1958 # some platforms.
1959 # Always define AMTAR for backward compatibility.
1960
1961 AMTAR=${AMTAR-"${am_missing_run}tar"}
1962
1963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1964
1965
1966
1967
1968
1969 ac_config_headers="$ac_config_headers config.h:config-h.in"
1970
1971
1972
1973 ## ------------------ ##
1974 ## C compiler checks. ##
1975 ## ------------------ ##
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003 done
2004 done
2005
2006 fi
2007 fi
2008 CC=$ac_cv_prog_CC
2009 if test -n "$CC"; then
2010 echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6
2012 else
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2015 fi
2016
2017 fi
2018 if test -z "$ac_cv_prog_CC"; then
2019 ac_ct_CC=$CC
2020 # Extract the first word of "gcc", so it can be a program name with args.
2021 set dummy gcc; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_ac_ct_CC="gcc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041 done
2042 done
2043
2044 fi
2045 fi
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2050 else
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055 CC=$ac_ct_CC
2056 else
2057 CC="$ac_cv_prog_CC"
2058 fi
2059
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2063 set dummy ${ac_tool_prefix}cc; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$CC"; then
2070 ac_cv_prog_CC="$CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_CC="${ac_tool_prefix}cc"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2082 fi
2083 done
2084 done
2085
2086 fi
2087 fi
2088 CC=$ac_cv_prog_CC
2089 if test -n "$CC"; then
2090 echo "$as_me:$LINENO: result: $CC" >&5
2091 echo "${ECHO_T}$CC" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097 fi
2098 if test -z "$ac_cv_prog_CC"; then
2099 ac_ct_CC=$CC
2100 # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 if test -n "$ac_ct_CC"; then
2108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2109 else
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113 IFS=$as_save_IFS
2114 test -z "$as_dir" && as_dir=.
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117 ac_cv_prog_ac_ct_CC="cc"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 break 2
2120 fi
2121 done
2122 done
2123
2124 fi
2125 fi
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 echo "${ECHO_T}$ac_ct_CC" >&6
2130 else
2131 echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2133 fi
2134
2135 CC=$ac_ct_CC
2136 else
2137 CC="$ac_cv_prog_CC"
2138 fi
2139
2140 fi
2141 if test -z "$CC"; then
2142 # Extract the first word of "cc", so it can be a program name with args.
2143 set dummy cc; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 else
2152 ac_prog_rejected=no
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2161 ac_prog_rejected=yes
2162 continue
2163 fi
2164 ac_cv_prog_CC="cc"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2167 fi
2168 done
2169 done
2170
2171 if test $ac_prog_rejected = yes; then
2172 # We found a bogon in the path, so make sure we never use it.
2173 set dummy $ac_cv_prog_CC
2174 shift
2175 if test $# != 0; then
2176 # We chose a different compiler from the bogus one.
2177 # However, it has the same basename, so the bogon will be chosen
2178 # first if we set CC to just the basename; use the full file name.
2179 shift
2180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2181 fi
2182 fi
2183 fi
2184 fi
2185 CC=$ac_cv_prog_CC
2186 if test -n "$CC"; then
2187 echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6
2189 else
2190 echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2192 fi
2193
2194 fi
2195 if test -z "$CC"; then
2196 if test -n "$ac_tool_prefix"; then
2197 for ac_prog in cl
2198 do
2199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2219 fi
2220 done
2221 done
2222
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6
2229 else
2230 echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2232 fi
2233
2234 test -n "$CC" && break
2235 done
2236 fi
2237 if test -z "$CC"; then
2238 ac_ct_CC=$CC
2239 for ac_prog in cl
2240 do
2241 # Extract the first word of "$ac_prog", so it can be a program name with args.
2242 set dummy $ac_prog; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_ac_ct_CC="$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262 done
2263 done
2264
2265 fi
2266 fi
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 echo "${ECHO_T}$ac_ct_CC" >&6
2271 else
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2274 fi
2275
2276 test -n "$ac_ct_CC" && break
2277 done
2278
2279 CC=$ac_ct_CC
2280 fi
2281
2282 fi
2283
2284
2285 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: no acceptable C compiler found in \$PATH
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2290
2291 # Provide some information about the compiler.
2292 echo "$as_me:$LINENO:" \
2293 "checking for C compiler version" >&5
2294 ac_compiler=`set X $ac_compile; echo $2`
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2296 (eval $ac_compiler --version </dev/null >&5) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }
2300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2301 (eval $ac_compiler -v </dev/null >&5) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }
2305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2306 (eval $ac_compiler -V </dev/null >&5) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }
2310
2311 cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h. */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2317
2318 int
2319 main ()
2320 {
2321
2322 ;
2323 return 0;
2324 }
2325 _ACEOF
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2330 # of exeext.
2331 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2335 (eval $ac_link_default) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; then
2339 # Find the output, starting from the most likely. This scheme is
2340 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2341 # resort.
2342
2343 # Be careful to initialize this variable, since it used to be cached.
2344 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2345 ac_cv_exeext=
2346 # b.out is created by i960 compilers.
2347 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2348 do
2349 test -f "$ac_file" || continue
2350 case $ac_file in
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2352 ;;
2353 conftest.$ac_ext )
2354 # This is the source file.
2355 ;;
2356 [ab].out )
2357 # We found the default executable, but exeext='' is most
2358 # certainly right.
2359 break;;
2360 *.* )
2361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362 # FIXME: I believe we export ac_cv_exeext for Libtool,
2363 # but it would be cool to find out if it's true. Does anybody
2364 # maintain Libtool? --akim.
2365 export ac_cv_exeext
2366 break;;
2367 * )
2368 break;;
2369 esac
2370 done
2371 else
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: C compiler cannot create executables
2378 See \`config.log' for more details." >&2;}
2379 { (exit 77); exit 77; }; }
2380 fi
2381
2382 ac_exeext=$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6
2385
2386 # Check the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2389 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2390 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2391 # If not cross compiling, check that we can run a simple program.
2392 if test "$cross_compiling" != yes; then
2393 if { ac_try='./$ac_file'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 cross_compiling=no
2400 else
2401 if test "$cross_compiling" = maybe; then
2402 cross_compiling=yes
2403 else
2404 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2405 If you meant to cross compile, use \`--host'.
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: cannot run C compiled programs.
2408 If you meant to cross compile, use \`--host'.
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2411 fi
2412 fi
2413 fi
2414 echo "$as_me:$LINENO: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2416
2417 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2418 ac_clean_files=$ac_clean_files_save
2419 # Check the compiler produces executables we can run. If not, either
2420 # the compiler is broken, or we cross compile.
2421 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424 echo "${ECHO_T}$cross_compiling" >&6
2425
2426 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429 (eval $ac_link) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2436 # `rm'.
2437 for ac_file in conftest.exe conftest conftest.*; do
2438 test -f "$ac_file" || continue
2439 case $ac_file in
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442 export ac_cv_exeext
2443 break;;
2444 * ) break;;
2445 esac
2446 done
2447 else
2448 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2451 See \`config.log' for more details." >&2;}
2452 { (exit 1); exit 1; }; }
2453 fi
2454
2455 rm -f conftest$ac_cv_exeext
2456 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2457 echo "${ECHO_T}$ac_cv_exeext" >&6
2458
2459 rm -f conftest.$ac_ext
2460 EXEEXT=$ac_cv_exeext
2461 ac_exeext=$EXEEXT
2462 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2463 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2464 if test "${ac_cv_objext+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h. */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2473
2474 int
2475 main ()
2476 {
2477
2478 ;
2479 return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.o conftest.obj
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2489 case $ac_file in
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2492 break;;
2493 esac
2494 done
2495 else
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2504 fi
2505
2506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2507 fi
2508 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2509 echo "${ECHO_T}$ac_cv_objext" >&6
2510 OBJEXT=$ac_cv_objext
2511 ac_objext=$OBJEXT
2512 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523
2524 int
2525 main ()
2526 {
2527 #ifndef __GNUC__
2528 choke me
2529 #endif
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_compiler_gnu=yes
2558 else
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 ac_compiler_gnu=no
2563 fi
2564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2566
2567 fi
2568 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2569 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2570 GCC=`test $ac_compiler_gnu = yes && echo yes`
2571 ac_test_CFLAGS=${CFLAGS+set}
2572 ac_save_CFLAGS=$CFLAGS
2573 CFLAGS="-g"
2574 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2576 if test "${ac_cv_prog_cc_g+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2585
2586 int
2587 main ()
2588 {
2589
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_cv_prog_cc_g=yes
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 ac_cv_prog_cc_g=no
2622 fi
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 fi
2625 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2627 if test "$ac_test_CFLAGS" = set; then
2628 CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630 if test "$GCC" = yes; then
2631 CFLAGS="-g -O2"
2632 else
2633 CFLAGS="-g"
2634 fi
2635 else
2636 if test "$GCC" = yes; then
2637 CFLAGS="-O2"
2638 else
2639 CFLAGS=
2640 fi
2641 fi
2642 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2643 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 ac_cv_prog_cc_stdc=no
2648 ac_save_CC=$CC
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h. */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2655 #include <stdarg.h>
2656 #include <stdio.h>
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2663 char **p;
2664 int i;
2665 {
2666 return p[i];
2667 }
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2669 {
2670 char *s;
2671 va_list v;
2672 va_start (v,p);
2673 s = g (p, va_arg (v,int));
2674 va_end (v);
2675 return s;
2676 }
2677
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2679 function prototypes and stuff, but not '\xHH' hex character constants.
2680 These don't provoke an error unfortunately, instead are silently treated
2681 as 'x'. The following induces an error, until -std1 is added to get
2682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2683 array size at least. It's necessary to write '\x00'==0 to get something
2684 that's true only with -std1. */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
2687 int test (int i, double x);
2688 struct s1 {int (*f) (int a);};
2689 struct s2 {int (*f) (double a);};
2690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691 int argc;
2692 char **argv;
2693 int
2694 main ()
2695 {
2696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2697 ;
2698 return 0;
2699 }
2700 _ACEOF
2701 # Don't try gcc -ansi; that turns off useful extensions and
2702 # breaks some systems' header files.
2703 # AIX -qlanglvl=ansi
2704 # Ultrix and OSF/1 -std1
2705 # HP-UX 10.20 and later -Ae
2706 # HP-UX older versions -Aa -D_HPUX_SOURCE
2707 # SVR4 -Xc -D__EXTENSIONS__
2708 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2709 do
2710 CC="$ac_save_CC $ac_arg"
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 ac_cv_prog_cc_stdc=$ac_arg
2734 break
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 fi
2740 rm -f conftest.err conftest.$ac_objext
2741 done
2742 rm -f conftest.$ac_ext conftest.$ac_objext
2743 CC=$ac_save_CC
2744
2745 fi
2746
2747 case "x$ac_cv_prog_cc_stdc" in
2748 x|xno)
2749 echo "$as_me:$LINENO: result: none needed" >&5
2750 echo "${ECHO_T}none needed" >&6 ;;
2751 *)
2752 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2754 CC="$CC $ac_cv_prog_cc_stdc" ;;
2755 esac
2756
2757 # Some people use a C++ compiler to compile C. Since we use `exit',
2758 # in C++ we need to declare it. In case someone uses the same compiler
2759 # for both compiling C and C++ we need to have the C++ compiler decide
2760 # the declaration of exit, since it's the most demanding environment.
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #ifndef __cplusplus
2763 choke me
2764 #endif
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 for ac_declaration in \
2789 '' \
2790 'extern "C" void std::exit (int) throw (); using std::exit;' \
2791 'extern "C" void std::exit (int); using std::exit;' \
2792 'extern "C" void exit (int) throw ();' \
2793 'extern "C" void exit (int);' \
2794 'void exit (int);'
2795 do
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h. */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2802 $ac_declaration
2803 #include <stdlib.h>
2804 int
2805 main ()
2806 {
2807 exit (42);
2808 ;
2809 return 0;
2810 }
2811 _ACEOF
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814 (eval $ac_compile) 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -z "$ac_c_werror_flag"
2822 || test ! -s conftest.err'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 :
2835 else
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 continue
2840 fi
2841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h. */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 $ac_declaration
2849 int
2850 main ()
2851 {
2852 exit (42);
2853 ;
2854 return 0;
2855 }
2856 _ACEOF
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>conftest.er1
2860 ac_status=$?
2861 grep -v '^ *+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -z "$ac_c_werror_flag"
2867 || test ! -s conftest.err'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; } &&
2873 { ac_try='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 break
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2883
2884 fi
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 done
2887 rm -f conftest*
2888 if test -n "$ac_declaration"; then
2889 echo '#ifdef __cplusplus' >>confdefs.h
2890 echo $ac_declaration >>confdefs.h
2891 echo '#endif' >>confdefs.h
2892 fi
2893
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 ac_ext=c
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 DEPDIR="${am__leading_dot}deps"
2906
2907 ac_config_commands="$ac_config_commands depfiles"
2908
2909
2910 am_make=${MAKE-make}
2911 cat > confinc << 'END'
2912 am__doit:
2913 @echo done
2914 .PHONY: am__doit
2915 END
2916 # If we don't find an include directive, just comment out the code.
2917 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2918 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2919 am__include="#"
2920 am__quote=
2921 _am_result=none
2922 # First try GNU make style include.
2923 echo "include confinc" > confmf
2924 # We grep out `Entering directory' and `Leaving directory'
2925 # messages which can occur if `w' ends up in MAKEFLAGS.
2926 # In particular we don't look at `^make:' because GNU make might
2927 # be invoked under some other name (usually "gmake"), in which
2928 # case it prints its new name instead of `make'.
2929 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2930 am__include=include
2931 am__quote=
2932 _am_result=GNU
2933 fi
2934 # Now try BSD make style include.
2935 if test "$am__include" = "#"; then
2936 echo '.include "confinc"' > confmf
2937 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2938 am__include=.include
2939 am__quote="\""
2940 _am_result=BSD
2941 fi
2942 fi
2943
2944
2945 echo "$as_me:$LINENO: result: $_am_result" >&5
2946 echo "${ECHO_T}$_am_result" >&6
2947 rm -f confinc confmf
2948
2949 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2950 if test "${enable_dependency_tracking+set}" = set; then
2951 enableval="$enable_dependency_tracking"
2952
2953 fi;
2954 if test "x$enable_dependency_tracking" != xno; then
2955 am_depcomp="$ac_aux_dir/depcomp"
2956 AMDEPBACKSLASH='\'
2957 fi
2958
2959
2960 if test "x$enable_dependency_tracking" != xno; then
2961 AMDEP_TRUE=
2962 AMDEP_FALSE='#'
2963 else
2964 AMDEP_TRUE='#'
2965 AMDEP_FALSE=
2966 fi
2967
2968
2969
2970
2971 depcc="$CC" am_compiler_list=
2972
2973 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2974 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2979 # We make a subdir and do the tests there. Otherwise we can end up
2980 # making bogus files that we don't know about and never remove. For
2981 # instance it was reported that on HP-UX the gcc test will end up
2982 # making a dummy file named `D' -- because `-MD' means `put the output
2983 # in D'.
2984 mkdir conftest.dir
2985 # Copy depcomp to subdir because otherwise we won't find it if we're
2986 # using a relative directory.
2987 cp "$am_depcomp" conftest.dir
2988 cd conftest.dir
2989 # We will build objects and dependencies in a subdirectory because
2990 # it helps to detect inapplicable dependency modes. For instance
2991 # both Tru64's cc and ICC support -MD to output dependencies as a
2992 # side effect of compilation, but ICC will put the dependencies in
2993 # the current directory while Tru64 will put them in the object
2994 # directory.
2995 mkdir sub
2996
2997 am_cv_CC_dependencies_compiler_type=none
2998 if test "$am_compiler_list" = ""; then
2999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000 fi
3001 for depmode in $am_compiler_list; do
3002 # Setup a source with many dependencies, because some compilers
3003 # like to wrap large dependency lists on column 80 (with \), and
3004 # we should not choose a depcomp mode which is confused by this.
3005 #
3006 # We need to recreate these files for each test, as the compiler may
3007 # overwrite some of them when testing with obscure command lines.
3008 # This happens at least with the AIX C compiler.
3009 : > sub/conftest.c
3010 for i in 1 2 3 4 5 6; do
3011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3013 # Solaris 8's {/usr,}/bin/sh.
3014 touch sub/conftst$i.h
3015 done
3016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017
3018 case $depmode in
3019 nosideeffect)
3020 # after this tag, mechanisms are not by side-effect, so they'll
3021 # only be used when explicitly requested
3022 if test "x$enable_dependency_tracking" = xyes; then
3023 continue
3024 else
3025 break
3026 fi
3027 ;;
3028 none) break ;;
3029 esac
3030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031 # mode. It turns out that the SunPro C++ compiler does not properly
3032 # handle `-M -o', and we need to detect this.
3033 if depmode=$depmode \
3034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037 >/dev/null 2>conftest.err &&
3038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041 # icc doesn't choke on unknown options, it will just issue warnings
3042 # or remarks (even with -Werror). So we grep stderr for any message
3043 # that says an option was ignored or not supported.
3044 # When given -MP, icc 7.0 and 7.1 complain thusly:
3045 # icc: Command line warning: ignoring option '-M'; no argument required
3046 # The diagnosis changed in icc 8.0:
3047 # icc: Command line remark: option '-MP' not supported
3048 if (grep 'ignoring option' conftest.err ||
3049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3050 am_cv_CC_dependencies_compiler_type=$depmode
3051 break
3052 fi
3053 fi
3054 done
3055
3056 cd ..
3057 rm -rf conftest.dir
3058 else
3059 am_cv_CC_dependencies_compiler_type=none
3060 fi
3061
3062 fi
3063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066
3067
3068
3069 if
3070 test "x$enable_dependency_tracking" != xno \
3071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3072 am__fastdepCC_TRUE=
3073 am__fastdepCC_FALSE='#'
3074 else
3075 am__fastdepCC_TRUE='#'
3076 am__fastdepCC_FALSE=
3077 fi
3078
3079
3080
3081 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3082 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3083 if test "${ac_cv_c_const+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092
3093 int
3094 main ()
3095 {
3096 /* FIXME: Include the comments suggested by Paul. */
3097 #ifndef __cplusplus
3098 /* Ultrix mips cc rejects this. */
3099 typedef int charset[2];
3100 const charset x;
3101 /* SunOS 4.1.1 cc rejects this. */
3102 char const *const *ccp;
3103 char **p;
3104 /* NEC SVR4.0.2 mips cc rejects this. */
3105 struct point {int x, y;};
3106 static struct point const zero = {0,0};
3107 /* AIX XL C 1.02.0.0 rejects this.
3108 It does not let you subtract one const X* pointer from another in
3109 an arm of an if-expression whose if-part is not a constant
3110 expression */
3111 const char *g = "string";
3112 ccp = &g + (g ? g-g : 0);
3113 /* HPUX 7.0 cc rejects these. */
3114 ++ccp;
3115 p = (char**) ccp;
3116 ccp = (char const *const *) p;
3117 { /* SCO 3.2v4 cc rejects this. */
3118 char *t;
3119 char const *s = 0 ? (char *) 0 : (char const *) 0;
3120
3121 *t++ = 0;
3122 }
3123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3124 int x[] = {25, 17};
3125 const int *foo = &x[0];
3126 ++foo;
3127 }
3128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3129 typedef const int *iptr;
3130 iptr p = 0;
3131 ++p;
3132 }
3133 { /* AIX XL C 1.02.0.0 rejects this saying
3134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3135 struct s { int j; const int *ap[3]; };
3136 struct s *b; b->j = 5;
3137 }
3138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3139 const int foo = 10;
3140 }
3141 #endif
3142
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag"
3157 || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
3163 { ac_try='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_cv_c_const=yes
3170 else
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 ac_cv_c_const=no
3175 fi
3176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3179 echo "${ECHO_T}$ac_cv_c_const" >&6
3180 if test $ac_cv_c_const = no; then
3181
3182 cat >>confdefs.h <<\_ACEOF
3183 #define const
3184 _ACEOF
3185
3186 fi
3187
3188 echo "$as_me:$LINENO: checking for inline" >&5
3189 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3190 if test "${ac_cv_c_inline+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 ac_cv_c_inline=no
3194 for ac_kw in inline __inline__ __inline; do
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201 #ifndef __cplusplus
3202 typedef int foo_t;
3203 static $ac_kw foo_t static_foo () {return 0; }
3204 $ac_kw foo_t foo () {return 0; }
3205 #endif
3206
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -z "$ac_c_werror_flag"
3218 || test ! -s conftest.err'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 (eval $ac_try) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 ac_cv_c_inline=$ac_kw; break
3231 else
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 fi
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237 done
3238
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3241 echo "${ECHO_T}$ac_cv_c_inline" >&6
3242
3243
3244 case $ac_cv_c_inline in
3245 inline | yes) ;;
3246 *)
3247 case $ac_cv_c_inline in
3248 no) ac_val=;;
3249 *) ac_val=$ac_cv_c_inline;;
3250 esac
3251 cat >>confdefs.h <<_ACEOF
3252 #ifndef __cplusplus
3253 #define inline $ac_val
3254 #endif
3255 _ACEOF
3256 ;;
3257 esac
3258
3259
3260
3261 ## ----------------------- ##
3262 ## Libtool initialisation. ##
3263 ## ----------------------- ##
3264
3265
3266 # Check whether --enable-shared or --disable-shared was given.
3267 if test "${enable_shared+set}" = set; then
3268 enableval="$enable_shared"
3269 p=${PACKAGE-default}
3270 case $enableval in
3271 yes) enable_shared=yes ;;
3272 no) enable_shared=no ;;
3273 *)
3274 enable_shared=no
3275 # Look at the argument we got. We use all the common list separators.
3276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3277 for pkg in $enableval; do
3278 IFS="$lt_save_ifs"
3279 if test "X$pkg" = "X$p"; then
3280 enable_shared=yes
3281 fi
3282 done
3283 IFS="$lt_save_ifs"
3284 ;;
3285 esac
3286 else
3287 enable_shared=yes
3288 fi;
3289
3290 # Check whether --enable-static or --disable-static was given.
3291 if test "${enable_static+set}" = set; then
3292 enableval="$enable_static"
3293 p=${PACKAGE-default}
3294 case $enableval in
3295 yes) enable_static=yes ;;
3296 no) enable_static=no ;;
3297 *)
3298 enable_static=no
3299 # Look at the argument we got. We use all the common list separators.
3300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3301 for pkg in $enableval; do
3302 IFS="$lt_save_ifs"
3303 if test "X$pkg" = "X$p"; then
3304 enable_static=yes
3305 fi
3306 done
3307 IFS="$lt_save_ifs"
3308 ;;
3309 esac
3310 else
3311 enable_static=yes
3312 fi;
3313
3314 # Check whether --enable-fast-install or --disable-fast-install was given.
3315 if test "${enable_fast_install+set}" = set; then
3316 enableval="$enable_fast_install"
3317 p=${PACKAGE-default}
3318 case $enableval in
3319 yes) enable_fast_install=yes ;;
3320 no) enable_fast_install=no ;;
3321 *)
3322 enable_fast_install=no
3323 # Look at the argument we got. We use all the common list separators.
3324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3325 for pkg in $enableval; do
3326 IFS="$lt_save_ifs"
3327 if test "X$pkg" = "X$p"; then
3328 enable_fast_install=yes
3329 fi
3330 done
3331 IFS="$lt_save_ifs"
3332 ;;
3333 esac
3334 else
3335 enable_fast_install=yes
3336 fi;
3337
3338 # Make sure we can run config.sub.
3339 $ac_config_sub sun4 >/dev/null 2>&1 ||
3340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3341 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3342 { (exit 1); exit 1; }; }
3343
3344 echo "$as_me:$LINENO: checking build system type" >&5
3345 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3346 if test "${ac_cv_build+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 ac_cv_build_alias=$build_alias
3350 test -z "$ac_cv_build_alias" &&
3351 ac_cv_build_alias=`$ac_config_guess`
3352 test -z "$ac_cv_build_alias" &&
3353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3355 { (exit 1); exit 1; }; }
3356 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3358 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3359 { (exit 1); exit 1; }; }
3360
3361 fi
3362 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3363 echo "${ECHO_T}$ac_cv_build" >&6
3364 build=$ac_cv_build
3365 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3366 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3367 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3368
3369
3370 echo "$as_me:$LINENO: checking host system type" >&5
3371 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3372 if test "${ac_cv_host+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 ac_cv_host_alias=$host_alias
3376 test -z "$ac_cv_host_alias" &&
3377 ac_cv_host_alias=$ac_cv_build_alias
3378 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3380 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3381 { (exit 1); exit 1; }; }
3382
3383 fi
3384 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3385 echo "${ECHO_T}$ac_cv_host" >&6
3386 host=$ac_cv_host
3387 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3388 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3389 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3390
3391
3392 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3393 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3394 if test "${lt_cv_path_SED+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 # Loop through the user's path and test for sed and gsed.
3398 # Then use that list of sed's as ones to test for truncation.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for lt_ac_prog in sed gsed; do
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3407 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3408 fi
3409 done
3410 done
3411 done
3412 IFS=$as_save_IFS
3413 lt_ac_max=0
3414 lt_ac_count=0
3415 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3416 # along with /bin/sed that truncates output.
3417 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3418 test ! -f $lt_ac_sed && continue
3419 cat /dev/null > conftest.in
3420 lt_ac_count=0
3421 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3422 # Check for GNU sed and select it if it is found.
3423 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3424 lt_cv_path_SED=$lt_ac_sed
3425 break
3426 fi
3427 while true; do
3428 cat conftest.in conftest.in >conftest.tmp
3429 mv conftest.tmp conftest.in
3430 cp conftest.in conftest.nl
3431 echo >>conftest.nl
3432 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3433 cmp -s conftest.out conftest.nl || break
3434 # 10000 chars as input seems more than enough
3435 test $lt_ac_count -gt 10 && break
3436 lt_ac_count=`expr $lt_ac_count + 1`
3437 if test $lt_ac_count -gt $lt_ac_max; then
3438 lt_ac_max=$lt_ac_count
3439 lt_cv_path_SED=$lt_ac_sed
3440 fi
3441 done
3442 done
3443
3444 fi
3445
3446 SED=$lt_cv_path_SED
3447
3448 echo "$as_me:$LINENO: result: $SED" >&5
3449 echo "${ECHO_T}$SED" >&6
3450
3451 echo "$as_me:$LINENO: checking for egrep" >&5
3452 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3453 if test "${ac_cv_prog_egrep+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3457 then ac_cv_prog_egrep='grep -E'
3458 else ac_cv_prog_egrep='egrep'
3459 fi
3460 fi
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3462 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3463 EGREP=$ac_cv_prog_egrep
3464
3465
3466
3467 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3468 if test "${with_gnu_ld+set}" = set; then
3469 withval="$with_gnu_ld"
3470 test "$withval" = no || with_gnu_ld=yes
3471 else
3472 with_gnu_ld=no
3473 fi;
3474 ac_prog=ld
3475 if test "$GCC" = yes; then
3476 # Check if gcc -print-prog-name=ld gives a path.
3477 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3478 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3479 case $host in
3480 *-*-mingw*)
3481 # gcc leaves a trailing carriage return which upsets mingw
3482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3483 *)
3484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3485 esac
3486 case $ac_prog in
3487 # Accept absolute paths.
3488 [\\/]* | ?:[\\/]*)
3489 re_direlt='/[^/][^/]*/\.\./'
3490 # Canonicalize the pathname of ld
3491 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3492 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3493 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3494 done
3495 test -z "$LD" && LD="$ac_prog"
3496 ;;
3497 "")
3498 # If it fails, then pretend we aren't using GCC.
3499 ac_prog=ld
3500 ;;
3501 *)
3502 # If it is relative, then search for the first ld in PATH.
3503 with_gnu_ld=unknown
3504 ;;
3505 esac
3506 elif test "$with_gnu_ld" = yes; then
3507 echo "$as_me:$LINENO: checking for GNU ld" >&5
3508 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3509 else
3510 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3511 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3512 fi
3513 if test "${lt_cv_path_LD+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 if test -z "$LD"; then
3517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3518 for ac_dir in $PATH; do
3519 IFS="$lt_save_ifs"
3520 test -z "$ac_dir" && ac_dir=.
3521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3522 lt_cv_path_LD="$ac_dir/$ac_prog"
3523 # Check to see if the program is GNU ld. I'd rather use --version,
3524 # but apparently some variants of GNU ld only accept -v.
3525 # Break only if it was the GNU/non-GNU ld that we prefer.
3526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3527 *GNU* | *'with BFD'*)
3528 test "$with_gnu_ld" != no && break
3529 ;;
3530 *)
3531 test "$with_gnu_ld" != yes && break
3532 ;;
3533 esac
3534 fi
3535 done
3536 IFS="$lt_save_ifs"
3537 else
3538 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3539 fi
3540 fi
3541
3542 LD="$lt_cv_path_LD"
3543 if test -n "$LD"; then
3544 echo "$as_me:$LINENO: result: $LD" >&5
3545 echo "${ECHO_T}$LD" >&6
3546 else
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 fi
3550 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3551 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3552 { (exit 1); exit 1; }; }
3553 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3554 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3555 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3559 case `$LD -v 2>&1 </dev/null` in
3560 *GNU* | *'with BFD'*)
3561 lt_cv_prog_gnu_ld=yes
3562 ;;
3563 *)
3564 lt_cv_prog_gnu_ld=no
3565 ;;
3566 esac
3567 fi
3568 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3569 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3570 with_gnu_ld=$lt_cv_prog_gnu_ld
3571
3572
3573 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3574 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3575 if test "${lt_cv_ld_reload_flag+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 lt_cv_ld_reload_flag='-r'
3579 fi
3580 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3581 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3582 reload_flag=$lt_cv_ld_reload_flag
3583 case $reload_flag in
3584 "" | " "*) ;;
3585 *) reload_flag=" $reload_flag" ;;
3586 esac
3587 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3588 case $host_os in
3589 darwin*)
3590 if test "$GCC" = yes; then
3591 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3592 else
3593 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3594 fi
3595 ;;
3596 esac
3597
3598 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3599 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3600 if test "${lt_cv_path_NM+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 if test -n "$NM"; then
3604 # Let the user override the test.
3605 lt_cv_path_NM="$NM"
3606 else
3607 lt_nm_to_check="${ac_tool_prefix}nm"
3608 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3609 lt_nm_to_check="$lt_nm_to_check nm"
3610 fi
3611 for lt_tmp_nm in $lt_nm_to_check; do
3612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3613 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3614 IFS="$lt_save_ifs"
3615 test -z "$ac_dir" && ac_dir=.
3616 tmp_nm="$ac_dir/$lt_tmp_nm"
3617 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3618 # Check to see if the nm accepts a BSD-compat flag.
3619 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3620 # nm: unknown option "B" ignored
3621 # Tru64's nm complains that /dev/null is an invalid object file
3622 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3623 */dev/null* | *'Invalid file or object type'*)
3624 lt_cv_path_NM="$tmp_nm -B"
3625 break
3626 ;;
3627 *)
3628 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3629 */dev/null*)
3630 lt_cv_path_NM="$tmp_nm -p"
3631 break
3632 ;;
3633 *)
3634 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3635 continue # so that we can try to find one that supports BSD flags
3636 ;;
3637 esac
3638 ;;
3639 esac
3640 fi
3641 done
3642 IFS="$lt_save_ifs"
3643 done
3644 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3645 fi
3646 fi
3647 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3648 echo "${ECHO_T}$lt_cv_path_NM" >&6
3649 NM="$lt_cv_path_NM"
3650
3651 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3652 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 LN_S=$as_ln_s
3654 if test "$LN_S" = "ln -s"; then
3655 echo "$as_me:$LINENO: result: yes" >&5
3656 echo "${ECHO_T}yes" >&6
3657 else
3658 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3659 echo "${ECHO_T}no, using $LN_S" >&6
3660 fi
3661
3662 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3663 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3664 if test "${lt_cv_deplibs_check_method+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 lt_cv_file_magic_cmd='$MAGIC_CMD'
3668 lt_cv_file_magic_test_file=
3669 lt_cv_deplibs_check_method='unknown'
3670 # Need to set the preceding variable on all platforms that support
3671 # interlibrary dependencies.
3672 # 'none' -- dependencies not supported.
3673 # `unknown' -- same as none, but documents that we really don't know.
3674 # 'pass_all' -- all dependencies passed with no checks.
3675 # 'test_compile' -- check by making test program.
3676 # 'file_magic [[regex]]' -- check by looking for files in library path
3677 # which responds to the $file_magic_cmd with a given extended regex.
3678 # If you have `file' or equivalent on your system and you're not sure
3679 # whether `pass_all' will *always* work, you probably want this one.
3680
3681 case $host_os in
3682 aix4* | aix5*)
3683 lt_cv_deplibs_check_method=pass_all
3684 ;;
3685
3686 beos*)
3687 lt_cv_deplibs_check_method=pass_all
3688 ;;
3689
3690 bsdi[45]*)
3691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3692 lt_cv_file_magic_cmd='/usr/bin/file -L'
3693 lt_cv_file_magic_test_file=/shlib/libc.so
3694 ;;
3695
3696 cygwin*)
3697 # func_win32_libid is a shell function defined in ltmain.sh
3698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3699 lt_cv_file_magic_cmd='func_win32_libid'
3700 ;;
3701
3702 mingw* | pw32*)
3703 # Base MSYS/MinGW do not provide the 'file' command needed by
3704 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3705 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3706 lt_cv_file_magic_cmd='$OBJDUMP -f'
3707 ;;
3708
3709 darwin* | rhapsody*)
3710 lt_cv_deplibs_check_method=pass_all
3711 ;;
3712
3713 freebsd* | kfreebsd*-gnu | dragonfly*)
3714 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3715 case $host_cpu in
3716 i*86 )
3717 # Not sure whether the presence of OpenBSD here was a mistake.
3718 # Let's accept both of them until this is cleared up.
3719 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3720 lt_cv_file_magic_cmd=/usr/bin/file
3721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3722 ;;
3723 esac
3724 else
3725 lt_cv_deplibs_check_method=pass_all
3726 fi
3727 ;;
3728
3729 gnu*)
3730 lt_cv_deplibs_check_method=pass_all
3731 ;;
3732
3733 hpux10.20* | hpux11*)
3734 lt_cv_file_magic_cmd=/usr/bin/file
3735 case $host_cpu in
3736 ia64*)
3737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3739 ;;
3740 hppa*64*)
3741 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]'
3742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3743 ;;
3744 *)
3745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3746 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3747 ;;
3748 esac
3749 ;;
3750
3751 interix3*)
3752 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3754 ;;
3755
3756 irix5* | irix6* | nonstopux*)
3757 case $LD in
3758 *-32|*"-32 ") libmagic=32-bit;;
3759 *-n32|*"-n32 ") libmagic=N32;;
3760 *-64|*"-64 ") libmagic=64-bit;;
3761 *) libmagic=never-match;;
3762 esac
3763 lt_cv_deplibs_check_method=pass_all
3764 ;;
3765
3766 # This must be Linux ELF.
3767 linux*)
3768 lt_cv_deplibs_check_method=pass_all
3769 ;;
3770
3771 netbsd*)
3772 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3774 else
3775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3776 fi
3777 ;;
3778
3779 newos6*)
3780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3781 lt_cv_file_magic_cmd=/usr/bin/file
3782 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3783 ;;
3784
3785 nto-qnx*)
3786 lt_cv_deplibs_check_method=unknown
3787 ;;
3788
3789 openbsd*)
3790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3792 else
3793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3794 fi
3795 ;;
3796
3797 osf3* | osf4* | osf5*)
3798 lt_cv_deplibs_check_method=pass_all
3799 ;;
3800
3801 solaris*)
3802 lt_cv_deplibs_check_method=pass_all
3803 ;;
3804
3805 sysv4 | sysv4.3*)
3806 case $host_vendor in
3807 motorola)
3808 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]'
3809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3810 ;;
3811 ncr)
3812 lt_cv_deplibs_check_method=pass_all
3813 ;;
3814 sequent)
3815 lt_cv_file_magic_cmd='/bin/file'
3816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3817 ;;
3818 sni)
3819 lt_cv_file_magic_cmd='/bin/file'
3820 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3821 lt_cv_file_magic_test_file=/lib/libc.so
3822 ;;
3823 siemens)
3824 lt_cv_deplibs_check_method=pass_all
3825 ;;
3826 pc)
3827 lt_cv_deplibs_check_method=pass_all
3828 ;;
3829 esac
3830 ;;
3831
3832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3833 lt_cv_deplibs_check_method=pass_all
3834 ;;
3835 esac
3836
3837 fi
3838 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3839 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3840 file_magic_cmd=$lt_cv_file_magic_cmd
3841 deplibs_check_method=$lt_cv_deplibs_check_method
3842 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3843
3844
3845
3846
3847 # If no C compiler was specified, use CC.
3848 LTCC=${LTCC-"$CC"}
3849
3850 # If no C compiler flags were specified, use CFLAGS.
3851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3852
3853 # Allow CC to be a program name with arguments.
3854 compiler=$CC
3855
3856 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3857 if test "${enable_libtool_lock+set}" = set; then
3858 enableval="$enable_libtool_lock"
3859
3860 fi;
3861 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3862
3863 # Some flags need to be propagated to the compiler or linker for good
3864 # libtool support.
3865 case $host in
3866 ia64-*-hpux*)
3867 # Find out which ABI we are using.
3868 echo 'int i;' > conftest.$ac_ext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; then
3874 case `/usr/bin/file conftest.$ac_objext` in
3875 *ELF-32*)
3876 HPUX_IA64_MODE="32"
3877 ;;
3878 *ELF-64*)
3879 HPUX_IA64_MODE="64"
3880 ;;
3881 esac
3882 fi
3883 rm -rf conftest*
3884 ;;
3885 *-*-irix6*)
3886 # Find out which ABI we are using.
3887 echo '#line 3887 "configure"' > conftest.$ac_ext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; then
3893 if test "$lt_cv_prog_gnu_ld" = yes; then
3894 case `/usr/bin/file conftest.$ac_objext` in
3895 *32-bit*)
3896 LD="${LD-ld} -melf32bsmip"
3897 ;;
3898 *N32*)
3899 LD="${LD-ld} -melf32bmipn32"
3900 ;;
3901 *64-bit*)
3902 LD="${LD-ld} -melf64bmip"
3903 ;;
3904 esac
3905 else
3906 case `/usr/bin/file conftest.$ac_objext` in
3907 *32-bit*)
3908 LD="${LD-ld} -32"
3909 ;;
3910 *N32*)
3911 LD="${LD-ld} -n32"
3912 ;;
3913 *64-bit*)
3914 LD="${LD-ld} -64"
3915 ;;
3916 esac
3917 fi
3918 fi
3919 rm -rf conftest*
3920 ;;
3921
3922 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3923 # Find out which ABI we are using.
3924 echo 'int i;' > conftest.$ac_ext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; then
3930 case `/usr/bin/file conftest.o` in
3931 *32-bit*)
3932 case $host in
3933 x86_64-*linux*)
3934 LD="${LD-ld} -m elf_i386"
3935 ;;
3936 ppc64-*linux*|powerpc64-*linux*)
3937 LD="${LD-ld} -m elf32ppclinux"
3938 ;;
3939 s390x-*linux*)
3940 LD="${LD-ld} -m elf_s390"
3941 ;;
3942 sparc64-*linux*)
3943 LD="${LD-ld} -m elf32_sparc"
3944 ;;
3945 esac
3946 ;;
3947 *64-bit*)
3948 case $host in
3949 x86_64-*linux*)
3950 LD="${LD-ld} -m elf_x86_64"
3951 ;;
3952 ppc*-*linux*|powerpc*-*linux*)
3953 LD="${LD-ld} -m elf64ppc"
3954 ;;
3955 s390*-*linux*)
3956 LD="${LD-ld} -m elf64_s390"
3957 ;;
3958 sparc*-*linux*)
3959 LD="${LD-ld} -m elf64_sparc"
3960 ;;
3961 esac
3962 ;;
3963 esac
3964 fi
3965 rm -rf conftest*
3966 ;;
3967
3968 *-*-sco3.2v5*)
3969 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3970 SAVE_CFLAGS="$CFLAGS"
3971 CFLAGS="$CFLAGS -belf"
3972 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3973 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3974 if test "${lt_cv_cc_needs_belf+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 ac_ext=c
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989
3990 int
3991 main ()
3992 {
3993
3994 ;
3995 return 0;
3996 }
3997 _ACEOF
3998 rm -f conftest.$ac_objext conftest$ac_exeext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4000 (eval $ac_link) 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -z "$ac_c_werror_flag"
4008 || test ! -s conftest.err'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest$ac_exeext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 lt_cv_cc_needs_belf=yes
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 lt_cv_cc_needs_belf=no
4026 fi
4027 rm -f conftest.err conftest.$ac_objext \
4028 conftest$ac_exeext conftest.$ac_ext
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035 fi
4036 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4037 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4038 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4040 CFLAGS="$SAVE_CFLAGS"
4041 fi
4042 ;;
4043 sparc*-*solaris*)
4044 # Find out which ABI we are using.
4045 echo 'int i;' > conftest.$ac_ext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; then
4051 case `/usr/bin/file conftest.o` in
4052 *64-bit*)
4053 case $lt_cv_prog_gnu_ld in
4054 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4055 *) LD="${LD-ld} -64" ;;
4056 esac
4057 ;;
4058 esac
4059 fi
4060 rm -rf conftest*
4061 ;;
4062
4063 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4066 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 if test -n "$DLLTOOL"; then
4073 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086 done
4087 done
4088
4089 fi
4090 fi
4091 DLLTOOL=$ac_cv_prog_DLLTOOL
4092 if test -n "$DLLTOOL"; then
4093 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4094 echo "${ECHO_T}$DLLTOOL" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100 fi
4101 if test -z "$ac_cv_prog_DLLTOOL"; then
4102 ac_ct_DLLTOOL=$DLLTOOL
4103 # Extract the first word of "dlltool", so it can be a program name with args.
4104 set dummy dlltool; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 if test -n "$ac_ct_DLLTOOL"; then
4111 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4123 fi
4124 done
4125 done
4126
4127 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4128 fi
4129 fi
4130 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4131 if test -n "$ac_ct_DLLTOOL"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4133 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4134 else
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4137 fi
4138
4139 DLLTOOL=$ac_ct_DLLTOOL
4140 else
4141 DLLTOOL="$ac_cv_prog_DLLTOOL"
4142 fi
4143
4144 if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4146 set dummy ${ac_tool_prefix}as; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_AS+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$AS"; then
4153 ac_cv_prog_AS="$AS" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_AS="${ac_tool_prefix}as"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168
4169 fi
4170 fi
4171 AS=$ac_cv_prog_AS
4172 if test -n "$AS"; then
4173 echo "$as_me:$LINENO: result: $AS" >&5
4174 echo "${ECHO_T}$AS" >&6
4175 else
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4178 fi
4179
4180 fi
4181 if test -z "$ac_cv_prog_AS"; then
4182 ac_ct_AS=$AS
4183 # Extract the first word of "as", so it can be a program name with args.
4184 set dummy as; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 if test -n "$ac_ct_AS"; then
4191 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_ac_ct_AS="as"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204 done
4205 done
4206
4207 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4208 fi
4209 fi
4210 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4211 if test -n "$ac_ct_AS"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4213 echo "${ECHO_T}$ac_ct_AS" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4217 fi
4218
4219 AS=$ac_ct_AS
4220 else
4221 AS="$ac_cv_prog_AS"
4222 fi
4223
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 if test -n "$OBJDUMP"; then
4233 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246 done
4247 done
4248
4249 fi
4250 fi
4251 OBJDUMP=$ac_cv_prog_OBJDUMP
4252 if test -n "$OBJDUMP"; then
4253 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4254 echo "${ECHO_T}$OBJDUMP" >&6
4255 else
4256 echo "$as_me:$LINENO: result: no" >&5
4257 echo "${ECHO_T}no" >&6
4258 fi
4259
4260 fi
4261 if test -z "$ac_cv_prog_OBJDUMP"; then
4262 ac_ct_OBJDUMP=$OBJDUMP
4263 # Extract the first word of "objdump", so it can be a program name with args.
4264 set dummy objdump; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 if test -n "$ac_ct_OBJDUMP"; then
4271 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284 done
4285 done
4286
4287 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4288 fi
4289 fi
4290 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4291 if test -n "$ac_ct_OBJDUMP"; then
4292 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4293 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4294 else
4295 echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4297 fi
4298
4299 OBJDUMP=$ac_ct_OBJDUMP
4300 else
4301 OBJDUMP="$ac_cv_prog_OBJDUMP"
4302 fi
4303
4304 ;;
4305
4306 esac
4307
4308 need_locks="$enable_libtool_lock"
4309
4310
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4317 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4318 # On Suns, sometimes $CPP names a directory.
4319 if test -n "$CPP" && test -d "$CPP"; then
4320 CPP=
4321 fi
4322 if test -z "$CPP"; then
4323 if test "${ac_cv_prog_CPP+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 # Double quotes because CPP needs to be expanded
4327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4328 do
4329 ac_preproc_ok=false
4330 for ac_c_preproc_warn_flag in '' yes
4331 do
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #ifdef __STDC__
4345 # include <limits.h>
4346 #else
4347 # include <assert.h>
4348 #endif
4349 Syntax error
4350 _ACEOF
4351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362 else
4363 ac_cpp_err=
4364 fi
4365 else
4366 ac_cpp_err=yes
4367 fi
4368 if test -z "$ac_cpp_err"; then
4369 :
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 # Broken: fails on valid input.
4375 continue
4376 fi
4377 rm -f conftest.err conftest.$ac_ext
4378
4379 # OK, works on sane cases. Now check whether non-existent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4388 _ACEOF
4389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4402 fi
4403 else
4404 ac_cpp_err=yes
4405 fi
4406 if test -z "$ac_cpp_err"; then
4407 # Broken: success on invalid input.
4408 continue
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 # Passes both tests.
4414 ac_preproc_ok=:
4415 break
4416 fi
4417 rm -f conftest.err conftest.$ac_ext
4418
4419 done
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then
4423 break
4424 fi
4425
4426 done
4427 ac_cv_prog_CPP=$CPP
4428
4429 fi
4430 CPP=$ac_cv_prog_CPP
4431 else
4432 ac_cv_prog_CPP=$CPP
4433 fi
4434 echo "$as_me:$LINENO: result: $CPP" >&5
4435 echo "${ECHO_T}$CPP" >&6
4436 ac_preproc_ok=false
4437 for ac_c_preproc_warn_flag in '' yes
4438 do
4439 # Use a header file that comes with gcc, so configuring glibc
4440 # with a fresh cross-compiler works.
4441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4442 # <limits.h> exists even on freestanding compilers.
4443 # On the NeXT, cc -E runs the code through the compiler's parser,
4444 # not just through cpp. "Syntax error" is here to catch this case.
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #ifdef __STDC__
4452 # include <limits.h>
4453 #else
4454 # include <assert.h>
4455 #endif
4456 Syntax error
4457 _ACEOF
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469 else
4470 ac_cpp_err=
4471 fi
4472 else
4473 ac_cpp_err=yes
4474 fi
4475 if test -z "$ac_cpp_err"; then
4476 :
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 # Broken: fails on valid input.
4482 continue
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485
4486 # OK, works on sane cases. Now check whether non-existent headers
4487 # can be detected and how.
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <ac_nonexistent.h>
4495 _ACEOF
4496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } >/dev/null; then
4504 if test -s conftest.err; then
4505 ac_cpp_err=$ac_c_preproc_warn_flag
4506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4507 else
4508 ac_cpp_err=
4509 fi
4510 else
4511 ac_cpp_err=yes
4512 fi
4513 if test -z "$ac_cpp_err"; then
4514 # Broken: success on invalid input.
4515 continue
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520 # Passes both tests.
4521 ac_preproc_ok=:
4522 break
4523 fi
4524 rm -f conftest.err conftest.$ac_ext
4525
4526 done
4527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4528 rm -f conftest.err conftest.$ac_ext
4529 if $ac_preproc_ok; then
4530 :
4531 else
4532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4537 fi
4538
4539 ac_ext=c
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
4545
4546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4548 if test "${ac_cv_header_stdc+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <stdlib.h>
4558 #include <stdarg.h>
4559 #include <string.h>
4560 #include <float.h>
4561
4562 int
4563 main ()
4564 {
4565
4566 ;
4567 return 0;
4568 }
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_c_werror_flag"
4580 || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_header_stdc=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 ac_cv_header_stdc=no
4598 fi
4599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4600
4601 if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 #include <string.h>
4610
4611 _ACEOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then
4614 :
4615 else
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f conftest*
4619
4620 fi
4621
4622 if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 #include <stdlib.h>
4631
4632 _ACEOF
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then
4635 :
4636 else
4637 ac_cv_header_stdc=no
4638 fi
4639 rm -f conftest*
4640
4641 fi
4642
4643 if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then
4646 :
4647 else
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <ctype.h>
4655 #if ((' ' & 0x0FF) == 0x020)
4656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658 #else
4659 # define ISLOWER(c) \
4660 (('a' <= (c) && (c) <= 'i') \
4661 || ('j' <= (c) && (c) <= 'r') \
4662 || ('s' <= (c) && (c) <= 'z'))
4663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664 #endif
4665
4666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667 int
4668 main ()
4669 {
4670 int i;
4671 for (i = 0; i < 256; i++)
4672 if (XOR (islower (i), ISLOWER (i))
4673 || toupper (i) != TOUPPER (i))
4674 exit(2);
4675 exit (0);
4676 }
4677 _ACEOF
4678 rm -f conftest$ac_exeext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 :
4690 else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ( exit $ac_status )
4696 ac_cv_header_stdc=no
4697 fi
4698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4699 fi
4700 fi
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4704 if test $ac_cv_header_stdc = yes; then
4705
4706 cat >>confdefs.h <<\_ACEOF
4707 #define STDC_HEADERS 1
4708 _ACEOF
4709
4710 fi
4711
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4723 inttypes.h stdint.h unistd.h
4724 do
4725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 echo "$as_me:$LINENO: checking for $ac_header" >&5
4727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
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
4739 #include <$ac_header>
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 eval "$as_ac_Header=yes"
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 eval "$as_ac_Header=no"
4769 fi
4770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4775 cat >>confdefs.h <<_ACEOF
4776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 _ACEOF
4778
4779 fi
4780
4781 done
4782
4783
4784
4785 for ac_header in dlfcn.h
4786 do
4787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4789 echo "$as_me:$LINENO: checking for $ac_header" >&5
4790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 fi
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 else
4797 # Is the header compilable?
4798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 $ac_includes_default
4807 #include <$ac_header>
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_header_compiler=yes
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836 ac_header_compiler=no
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840 echo "${ECHO_T}$ac_header_compiler" >&6
4841
4842 # Is the header present?
4843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <$ac_header>
4852 _ACEOF
4853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } >/dev/null; then
4861 if test -s conftest.err; then
4862 ac_cpp_err=$ac_c_preproc_warn_flag
4863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4864 else
4865 ac_cpp_err=
4866 fi
4867 else
4868 ac_cpp_err=yes
4869 fi
4870 if test -z "$ac_cpp_err"; then
4871 ac_header_preproc=yes
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 ac_header_preproc=no
4877 fi
4878 rm -f conftest.err conftest.$ac_ext
4879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4880 echo "${ECHO_T}$ac_header_preproc" >&6
4881
4882 # So? What about this header?
4883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4884 yes:no: )
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4889 ac_header_preproc=yes
4890 ;;
4891 no:yes:* )
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4904 (
4905 cat <<\_ASBOX
4906 ## ---------------------------------- ##
4907 ## Report this to bug-libtool@gnu.org ##
4908 ## ---------------------------------- ##
4909 _ASBOX
4910 ) |
4911 sed "s/^/$as_me: WARNING: /" >&2
4912 ;;
4913 esac
4914 echo "$as_me:$LINENO: checking for $ac_header" >&5
4915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 eval "$as_ac_Header=\$ac_header_preproc"
4920 fi
4921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4923
4924 fi
4925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928 _ACEOF
4929
4930 fi
4931
4932 done
4933
4934 ac_ext=cc
4935 ac_cpp='$CXXCPP $CPPFLAGS'
4936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4939 if test -n "$ac_tool_prefix"; then
4940 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4941 do
4942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_prog_CXX+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if test -n "$CXX"; then
4950 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965
4966 fi
4967 fi
4968 CXX=$ac_cv_prog_CXX
4969 if test -n "$CXX"; then
4970 echo "$as_me:$LINENO: result: $CXX" >&5
4971 echo "${ECHO_T}$CXX" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977 test -n "$CXX" && break
4978 done
4979 fi
4980 if test -z "$CXX"; then
4981 ac_ct_CXX=$CXX
4982 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4983 do
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 if test -n "$ac_ct_CXX"; then
4992 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_ac_ct_CXX="$ac_prog"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005 done
5006 done
5007
5008 fi
5009 fi
5010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5011 if test -n "$ac_ct_CXX"; then
5012 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5013 echo "${ECHO_T}$ac_ct_CXX" >&6
5014 else
5015 echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6
5017 fi
5018
5019 test -n "$ac_ct_CXX" && break
5020 done
5021 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5022
5023 CXX=$ac_ct_CXX
5024 fi
5025
5026
5027 # Provide some information about the compiler.
5028 echo "$as_me:$LINENO:" \
5029 "checking for C++ compiler version" >&5
5030 ac_compiler=`set X $ac_compile; echo $2`
5031 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5032 (eval $ac_compiler --version </dev/null >&5) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }
5036 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5037 (eval $ac_compiler -v </dev/null >&5) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }
5041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5042 (eval $ac_compiler -V </dev/null >&5) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }
5046
5047 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5048 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5049 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058
5059 int
5060 main ()
5061 {
5062 #ifndef __GNUC__
5063 choke me
5064 #endif
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest.$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_cxx_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 ac_compiler_gnu=yes
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 ac_compiler_gnu=no
5098 fi
5099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5101
5102 fi
5103 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5104 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5105 GXX=`test $ac_compiler_gnu = yes && echo yes`
5106 ac_test_CXXFLAGS=${CXXFLAGS+set}
5107 ac_save_CXXFLAGS=$CXXFLAGS
5108 CXXFLAGS="-g"
5109 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5110 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5111 if test "${ac_cv_prog_cxx_g+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120
5121 int
5122 main ()
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_cxx_werror_flag"
5139 || test ! -s conftest.err'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_cv_prog_cxx_g=yes
5152 else
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 ac_cv_prog_cxx_g=no
5157 fi
5158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5161 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5162 if test "$ac_test_CXXFLAGS" = set; then
5163 CXXFLAGS=$ac_save_CXXFLAGS
5164 elif test $ac_cv_prog_cxx_g = yes; then
5165 if test "$GXX" = yes; then
5166 CXXFLAGS="-g -O2"
5167 else
5168 CXXFLAGS="-g"
5169 fi
5170 else
5171 if test "$GXX" = yes; then
5172 CXXFLAGS="-O2"
5173 else
5174 CXXFLAGS=
5175 fi
5176 fi
5177 for ac_declaration in \
5178 '' \
5179 'extern "C" void std::exit (int) throw (); using std::exit;' \
5180 'extern "C" void std::exit (int); using std::exit;' \
5181 'extern "C" void exit (int) throw ();' \
5182 'extern "C" void exit (int);' \
5183 'void exit (int);'
5184 do
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 $ac_declaration
5192 #include <stdlib.h>
5193 int
5194 main ()
5195 {
5196 exit (42);
5197 ;
5198 return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203 (eval $ac_compile) 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_cxx_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 :
5224 else
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 continue
5229 fi
5230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_declaration
5238 int
5239 main ()
5240 {
5241 exit (42);
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_cxx_werror_flag"
5256 || test ! -s conftest.err'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 break
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273 fi
5274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5275 done
5276 rm -f conftest*
5277 if test -n "$ac_declaration"; then
5278 echo '#ifdef __cplusplus' >>confdefs.h
5279 echo $ac_declaration >>confdefs.h
5280 echo '#endif' >>confdefs.h
5281 fi
5282
5283 ac_ext=cc
5284 ac_cpp='$CXXCPP $CPPFLAGS'
5285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5288
5289 depcc="$CXX" am_compiler_list=
5290
5291 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5292 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5293 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5297 # We make a subdir and do the tests there. Otherwise we can end up
5298 # making bogus files that we don't know about and never remove. For
5299 # instance it was reported that on HP-UX the gcc test will end up
5300 # making a dummy file named `D' -- because `-MD' means `put the output
5301 # in D'.
5302 mkdir conftest.dir
5303 # Copy depcomp to subdir because otherwise we won't find it if we're
5304 # using a relative directory.
5305 cp "$am_depcomp" conftest.dir
5306 cd conftest.dir
5307 # We will build objects and dependencies in a subdirectory because
5308 # it helps to detect inapplicable dependency modes. For instance
5309 # both Tru64's cc and ICC support -MD to output dependencies as a
5310 # side effect of compilation, but ICC will put the dependencies in
5311 # the current directory while Tru64 will put them in the object
5312 # directory.
5313 mkdir sub
5314
5315 am_cv_CXX_dependencies_compiler_type=none
5316 if test "$am_compiler_list" = ""; then
5317 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5318 fi
5319 for depmode in $am_compiler_list; do
5320 # Setup a source with many dependencies, because some compilers
5321 # like to wrap large dependency lists on column 80 (with \), and
5322 # we should not choose a depcomp mode which is confused by this.
5323 #
5324 # We need to recreate these files for each test, as the compiler may
5325 # overwrite some of them when testing with obscure command lines.
5326 # This happens at least with the AIX C compiler.
5327 : > sub/conftest.c
5328 for i in 1 2 3 4 5 6; do
5329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5330 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5331 # Solaris 8's {/usr,}/bin/sh.
5332 touch sub/conftst$i.h
5333 done
5334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5335
5336 case $depmode in
5337 nosideeffect)
5338 # after this tag, mechanisms are not by side-effect, so they'll
5339 # only be used when explicitly requested
5340 if test "x$enable_dependency_tracking" = xyes; then
5341 continue
5342 else
5343 break
5344 fi
5345 ;;
5346 none) break ;;
5347 esac
5348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5349 # mode. It turns out that the SunPro C++ compiler does not properly
5350 # handle `-M -o', and we need to detect this.
5351 if depmode=$depmode \
5352 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5354 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5355 >/dev/null 2>conftest.err &&
5356 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5357 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5358 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5359 # icc doesn't choke on unknown options, it will just issue warnings
5360 # or remarks (even with -Werror). So we grep stderr for any message
5361 # that says an option was ignored or not supported.
5362 # When given -MP, icc 7.0 and 7.1 complain thusly:
5363 # icc: Command line warning: ignoring option '-M'; no argument required
5364 # The diagnosis changed in icc 8.0:
5365 # icc: Command line remark: option '-MP' not supported
5366 if (grep 'ignoring option' conftest.err ||
5367 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5368 am_cv_CXX_dependencies_compiler_type=$depmode
5369 break
5370 fi
5371 fi
5372 done
5373
5374 cd ..
5375 rm -rf conftest.dir
5376 else
5377 am_cv_CXX_dependencies_compiler_type=none
5378 fi
5379
5380 fi
5381 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5382 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5383 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5384
5385
5386
5387 if
5388 test "x$enable_dependency_tracking" != xno \
5389 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5390 am__fastdepCXX_TRUE=
5391 am__fastdepCXX_FALSE='#'
5392 else
5393 am__fastdepCXX_TRUE='#'
5394 am__fastdepCXX_FALSE=
5395 fi
5396
5397
5398
5399
5400 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5401 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5402 (test "X$CXX" != "Xg++"))) ; then
5403 ac_ext=cc
5404 ac_cpp='$CXXCPP $CPPFLAGS'
5405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5408 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5409 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5410 if test -z "$CXXCPP"; then
5411 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 # Double quotes because CXXCPP needs to be expanded
5415 for CXXCPP in "$CXX -E" "/lib/cpp"
5416 do
5417 ac_preproc_ok=false
5418 for ac_cxx_preproc_warn_flag in '' yes
5419 do
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #ifdef __STDC__
5433 # include <limits.h>
5434 #else
5435 # include <assert.h>
5436 #endif
5437 Syntax error
5438 _ACEOF
5439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } >/dev/null; then
5447 if test -s conftest.err; then
5448 ac_cpp_err=$ac_cxx_preproc_warn_flag
5449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5450 else
5451 ac_cpp_err=
5452 fi
5453 else
5454 ac_cpp_err=yes
5455 fi
5456 if test -z "$ac_cpp_err"; then
5457 :
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 # Broken: fails on valid input.
5463 continue
5464 fi
5465 rm -f conftest.err conftest.$ac_ext
5466
5467 # OK, works on sane cases. Now check whether non-existent headers
5468 # can be detected and how.
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } >/dev/null; then
5485 if test -s conftest.err; then
5486 ac_cpp_err=$ac_cxx_preproc_warn_flag
5487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5488 else
5489 ac_cpp_err=
5490 fi
5491 else
5492 ac_cpp_err=yes
5493 fi
5494 if test -z "$ac_cpp_err"; then
5495 # Broken: success on invalid input.
5496 continue
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 # Passes both tests.
5502 ac_preproc_ok=:
5503 break
5504 fi
5505 rm -f conftest.err conftest.$ac_ext
5506
5507 done
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.$ac_ext
5510 if $ac_preproc_ok; then
5511 break
5512 fi
5513
5514 done
5515 ac_cv_prog_CXXCPP=$CXXCPP
5516
5517 fi
5518 CXXCPP=$ac_cv_prog_CXXCPP
5519 else
5520 ac_cv_prog_CXXCPP=$CXXCPP
5521 fi
5522 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5523 echo "${ECHO_T}$CXXCPP" >&6
5524 ac_preproc_ok=false
5525 for ac_cxx_preproc_warn_flag in '' yes
5526 do
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #ifdef __STDC__
5540 # include <limits.h>
5541 #else
5542 # include <assert.h>
5543 #endif
5544 Syntax error
5545 _ACEOF
5546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } >/dev/null; then
5554 if test -s conftest.err; then
5555 ac_cpp_err=$ac_cxx_preproc_warn_flag
5556 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5557 else
5558 ac_cpp_err=
5559 fi
5560 else
5561 ac_cpp_err=yes
5562 fi
5563 if test -z "$ac_cpp_err"; then
5564 :
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5568
5569 # Broken: fails on valid input.
5570 continue
5571 fi
5572 rm -f conftest.err conftest.$ac_ext
5573
5574 # OK, works on sane cases. Now check whether non-existent headers
5575 # can be detected and how.
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #include <ac_nonexistent.h>
5583 _ACEOF
5584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_cxx_preproc_warn_flag
5594 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5595 else
5596 ac_cpp_err=
5597 fi
5598 else
5599 ac_cpp_err=yes
5600 fi
5601 if test -z "$ac_cpp_err"; then
5602 # Broken: success on invalid input.
5603 continue
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 # Passes both tests.
5609 ac_preproc_ok=:
5610 break
5611 fi
5612 rm -f conftest.err conftest.$ac_ext
5613
5614 done
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.err conftest.$ac_ext
5617 if $ac_preproc_ok; then
5618 :
5619 else
5620 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5621 See \`config.log' for more details." >&5
5622 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5623 See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
5625 fi
5626
5627 ac_ext=cc
5628 ac_cpp='$CXXCPP $CPPFLAGS'
5629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5632
5633 fi
5634
5635
5636 ac_ext=f
5637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5640 if test -n "$ac_tool_prefix"; then
5641 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5642 do
5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_F77+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 if test -n "$F77"; then
5651 ac_cv_prog_F77="$F77" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666
5667 fi
5668 fi
5669 F77=$ac_cv_prog_F77
5670 if test -n "$F77"; then
5671 echo "$as_me:$LINENO: result: $F77" >&5
5672 echo "${ECHO_T}$F77" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 fi
5677
5678 test -n "$F77" && break
5679 done
5680 fi
5681 if test -z "$F77"; then
5682 ac_ct_F77=$F77
5683 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5684 do
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686 set dummy $ac_prog; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -n "$ac_ct_F77"; then
5693 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_F77="$ac_prog"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706 done
5707 done
5708
5709 fi
5710 fi
5711 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5712 if test -n "$ac_ct_F77"; then
5713 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5714 echo "${ECHO_T}$ac_ct_F77" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5718 fi
5719
5720 test -n "$ac_ct_F77" && break
5721 done
5722
5723 F77=$ac_ct_F77
5724 fi
5725
5726
5727 # Provide some information about the compiler.
5728 echo "$as_me:5728:" \
5729 "checking for Fortran 77 compiler version" >&5
5730 ac_compiler=`set X $ac_compile; echo $2`
5731 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5732 (eval $ac_compiler --version </dev/null >&5) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }
5736 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5737 (eval $ac_compiler -v </dev/null >&5) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }
5741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5742 (eval $ac_compiler -V </dev/null >&5) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }
5746 rm -f a.out
5747
5748 # If we don't use `.F' as extension, the preprocessor is not run on the
5749 # input file. (Note that this only needs to work for GNU compilers.)
5750 ac_save_ext=$ac_ext
5751 ac_ext=F
5752 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5753 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5754 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757 cat >conftest.$ac_ext <<_ACEOF
5758 program main
5759 #ifndef __GNUC__
5760 choke me
5761 #endif
5762
5763 end
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_f77_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_compiler_gnu=yes
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 ac_compiler_gnu=no
5793 fi
5794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5795 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5796
5797 fi
5798 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5799 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5800 ac_ext=$ac_save_ext
5801 ac_test_FFLAGS=${FFLAGS+set}
5802 ac_save_FFLAGS=$FFLAGS
5803 FFLAGS=
5804 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5805 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5806 if test "${ac_cv_prog_f77_g+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 FFLAGS=-g
5810 cat >conftest.$ac_ext <<_ACEOF
5811 program main
5812
5813 end
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_f77_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_cv_prog_f77_g=yes
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_cv_prog_f77_g=no
5843 fi
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845
5846 fi
5847 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5848 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5849 if test "$ac_test_FFLAGS" = set; then
5850 FFLAGS=$ac_save_FFLAGS
5851 elif test $ac_cv_prog_f77_g = yes; then
5852 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5853 FFLAGS="-g -O2"
5854 else
5855 FFLAGS="-g"
5856 fi
5857 else
5858 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5859 FFLAGS="-O2"
5860 else
5861 FFLAGS=
5862 fi
5863 fi
5864
5865 G77=`test $ac_compiler_gnu = yes && echo yes`
5866 ac_ext=c
5867 ac_cpp='$CPP $CPPFLAGS'
5868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871
5872
5873
5874 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5875
5876 # find the maximum length of command line arguments
5877 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5878 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5879 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 i=0
5883 teststring="ABCD"
5884
5885 case $build_os in
5886 msdosdjgpp*)
5887 # On DJGPP, this test can blow up pretty badly due to problems in libc
5888 # (any single argument exceeding 2000 bytes causes a buffer overrun
5889 # during glob expansion). Even if it were fixed, the result of this
5890 # check would be larger than it should be.
5891 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5892 ;;
5893
5894 gnu*)
5895 # Under GNU Hurd, this test is not required because there is
5896 # no limit to the length of command line arguments.
5897 # Libtool will interpret -1 as no limit whatsoever
5898 lt_cv_sys_max_cmd_len=-1;
5899 ;;
5900
5901 cygwin* | mingw*)
5902 # On Win9x/ME, this test blows up -- it succeeds, but takes
5903 # about 5 minutes as the teststring grows exponentially.
5904 # Worse, since 9x/ME are not pre-emptively multitasking,
5905 # you end up with a "frozen" computer, even though with patience
5906 # the test eventually succeeds (with a max line length of 256k).
5907 # Instead, let's just punt: use the minimum linelength reported by
5908 # all of the supported platforms: 8192 (on NT/2K/XP).
5909 lt_cv_sys_max_cmd_len=8192;
5910 ;;
5911
5912 amigaos*)
5913 # On AmigaOS with pdksh, this test takes hours, literally.
5914 # So we just punt and use a minimum line length of 8192.
5915 lt_cv_sys_max_cmd_len=8192;
5916 ;;
5917
5918 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5919 # This has been around since 386BSD, at least. Likely further.
5920 if test -x /sbin/sysctl; then
5921 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5922 elif test -x /usr/sbin/sysctl; then
5923 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5924 else
5925 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5926 fi
5927 # And add a safety zone
5928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5930 ;;
5931
5932 interix*)
5933 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5934 lt_cv_sys_max_cmd_len=196608
5935 ;;
5936
5937 osf*)
5938 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5939 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5940 # nice to cause kernel panics so lets avoid the loop below.
5941 # First set a reasonable default.
5942 lt_cv_sys_max_cmd_len=16384
5943 #
5944 if test -x /sbin/sysconfig; then
5945 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5946 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5947 esac
5948 fi
5949 ;;
5950 sco3.2v5*)
5951 lt_cv_sys_max_cmd_len=102400
5952 ;;
5953 sysv5* | sco5v6* | sysv4.2uw2*)
5954 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5955 if test -n "$kargmax"; then
5956 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5957 else
5958 lt_cv_sys_max_cmd_len=32768
5959 fi
5960 ;;
5961 *)
5962 # If test is not a shell built-in, we'll probably end up computing a
5963 # maximum length that is only half of the actual maximum length, but
5964 # we can't tell.
5965 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5966 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5967 = "XX$teststring") >/dev/null 2>&1 &&
5968 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5969 lt_cv_sys_max_cmd_len=$new_result &&
5970 test $i != 17 # 1/2 MB should be enough
5971 do
5972 i=`expr $i + 1`
5973 teststring=$teststring$teststring
5974 done
5975 teststring=
5976 # Add a significant safety factor because C++ compilers can tack on massive
5977 # amounts of additional arguments before passing them to the linker.
5978 # It appears as though 1/2 is a usable value.
5979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5980 ;;
5981 esac
5982
5983 fi
5984
5985 if test -n $lt_cv_sys_max_cmd_len ; then
5986 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5987 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5988 else
5989 echo "$as_me:$LINENO: result: none" >&5
5990 echo "${ECHO_T}none" >&6
5991 fi
5992
5993
5994
5995
5996 # Check for command to grab the raw symbol name followed by C symbol from nm.
5997 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5998 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5999 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002
6003 # These are sane defaults that work on at least a few old systems.
6004 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6005
6006 # Character class describing NM global symbol codes.
6007 symcode='[BCDEGRST]'
6008
6009 # Regexp to match symbols that can be accessed directly from C.
6010 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6011
6012 # Transform an extracted symbol line into a proper C declaration
6013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6014
6015 # Transform an extracted symbol line into symbol name and symbol address
6016 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'"
6017
6018 # Define system-specific variables.
6019 case $host_os in
6020 aix*)
6021 symcode='[BCDT]'
6022 ;;
6023 cygwin* | mingw* | pw32*)
6024 symcode='[ABCDGISTW]'
6025 ;;
6026 hpux*) # Its linker distinguishes data from code symbols
6027 if test "$host_cpu" = ia64; then
6028 symcode='[ABCDEGRST]'
6029 fi
6030 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6031 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'"
6032 ;;
6033 linux*)
6034 if test "$host_cpu" = ia64; then
6035 symcode='[ABCDGIRSTW]'
6036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6037 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'"
6038 fi
6039 ;;
6040 irix* | nonstopux*)
6041 symcode='[BCDEGRST]'
6042 ;;
6043 osf*)
6044 symcode='[BCDEGQRST]'
6045 ;;
6046 solaris*)
6047 symcode='[BDRT]'
6048 ;;
6049 sco3.2v5*)
6050 symcode='[DT]'
6051 ;;
6052 sysv4.2uw2*)
6053 symcode='[DT]'
6054 ;;
6055 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6056 symcode='[ABDT]'
6057 ;;
6058 sysv4)
6059 symcode='[DFNSTU]'
6060 ;;
6061 esac
6062
6063 # Handle CRLF in mingw tool chain
6064 opt_cr=
6065 case $build_os in
6066 mingw*)
6067 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6068 ;;
6069 esac
6070
6071 # If we're using GNU nm, then use its standard symbol codes.
6072 case `$NM -V 2>&1` in
6073 *GNU* | *'with BFD'*)
6074 symcode='[ABCDGIRSTW]' ;;
6075 esac
6076
6077 # Try without a prefix undercore, then with it.
6078 for ac_symprfx in "" "_"; do
6079
6080 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6081 symxfrm="\\1 $ac_symprfx\\2 \\2"
6082
6083 # Write the raw and C identifiers.
6084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6085
6086 # Check to see that the pipe works correctly.
6087 pipe_works=no
6088
6089 rm -f conftest*
6090 cat > conftest.$ac_ext <<EOF
6091 #ifdef __cplusplus
6092 extern "C" {
6093 #endif
6094 char nm_test_var;
6095 void nm_test_func(){}
6096 #ifdef __cplusplus
6097 }
6098 #endif
6099 int main(){nm_test_var='a';nm_test_func();return(0);}
6100 EOF
6101
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; then
6107 # Now try to grab the symbols.
6108 nlist=conftest.nm
6109 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6110 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && test -s "$nlist"; then
6114 # Try sorting and uniquifying the output.
6115 if sort "$nlist" | uniq > "$nlist"T; then
6116 mv -f "$nlist"T "$nlist"
6117 else
6118 rm -f "$nlist"T
6119 fi
6120
6121 # Make sure that we snagged all the symbols we need.
6122 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6123 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6124 cat <<EOF > conftest.$ac_ext
6125 #ifdef __cplusplus
6126 extern "C" {
6127 #endif
6128
6129 EOF
6130 # Now generate the symbol file.
6131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6132
6133 cat <<EOF >> conftest.$ac_ext
6134 #if defined (__STDC__) && __STDC__
6135 # define lt_ptr_t void *
6136 #else
6137 # define lt_ptr_t char *
6138 # define const
6139 #endif
6140
6141 /* The mapping between symbol names and symbols. */
6142 const struct {
6143 const char *name;
6144 lt_ptr_t address;
6145 }
6146 lt_preloaded_symbols[] =
6147 {
6148 EOF
6149 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6150 cat <<\EOF >> conftest.$ac_ext
6151 {0, (lt_ptr_t) 0}
6152 };
6153
6154 #ifdef __cplusplus
6155 }
6156 #endif
6157 EOF
6158 # Now try linking the two files.
6159 mv conftest.$ac_objext conftstm.$ac_objext
6160 lt_save_LIBS="$LIBS"
6161 lt_save_CFLAGS="$CFLAGS"
6162 LIBS="conftstm.$ac_objext"
6163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6169 pipe_works=yes
6170 fi
6171 LIBS="$lt_save_LIBS"
6172 CFLAGS="$lt_save_CFLAGS"
6173 else
6174 echo "cannot find nm_test_func in $nlist" >&5
6175 fi
6176 else
6177 echo "cannot find nm_test_var in $nlist" >&5
6178 fi
6179 else
6180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6181 fi
6182 else
6183 echo "$progname: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 fi
6186 rm -f conftest* conftst*
6187
6188 # Do not use the global_symbol_pipe unless it works.
6189 if test "$pipe_works" = yes; then
6190 break
6191 else
6192 lt_cv_sys_global_symbol_pipe=
6193 fi
6194 done
6195
6196 fi
6197
6198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199 lt_cv_sys_global_symbol_to_cdecl=
6200 fi
6201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202 echo "$as_me:$LINENO: result: failed" >&5
6203 echo "${ECHO_T}failed" >&6
6204 else
6205 echo "$as_me:$LINENO: result: ok" >&5
6206 echo "${ECHO_T}ok" >&6
6207 fi
6208
6209 echo "$as_me:$LINENO: checking for objdir" >&5
6210 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6211 if test "${lt_cv_objdir+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 rm -f .libs 2>/dev/null
6215 mkdir .libs 2>/dev/null
6216 if test -d .libs; then
6217 lt_cv_objdir=.libs
6218 else
6219 # MS-DOS does not allow filenames that begin with a dot.
6220 lt_cv_objdir=_libs
6221 fi
6222 rmdir .libs 2>/dev/null
6223 fi
6224 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6225 echo "${ECHO_T}$lt_cv_objdir" >&6
6226 objdir=$lt_cv_objdir
6227
6228
6229
6230
6231
6232 case $host_os in
6233 aix3*)
6234 # AIX sometimes has problems with the GCC collect2 program. For some
6235 # reason, if we set the COLLECT_NAMES environment variable, the problems
6236 # vanish in a puff of smoke.
6237 if test "X${COLLECT_NAMES+set}" != Xset; then
6238 COLLECT_NAMES=
6239 export COLLECT_NAMES
6240 fi
6241 ;;
6242 esac
6243
6244 # Sed substitution that helps us do robust quoting. It backslashifies
6245 # metacharacters that are still active within double-quoted strings.
6246 Xsed='sed -e 1s/^X//'
6247 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6248
6249 # Same as above, but do not quote variable references.
6250 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6251
6252 # Sed substitution to delay expansion of an escaped shell variable in a
6253 # double_quote_subst'ed string.
6254 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6255
6256 # Sed substitution to avoid accidental globbing in evaled expressions
6257 no_glob_subst='s/\*/\\\*/g'
6258
6259 # Constants:
6260 rm="rm -f"
6261
6262 # Global variables:
6263 default_ofile=libtool
6264 can_build_shared=yes
6265
6266 # All known linkers require a `.a' archive for static linking (except MSVC,
6267 # which needs '.lib').
6268 libext=a
6269 ltmain="$ac_aux_dir/ltmain.sh"
6270 ofile="$default_ofile"
6271 with_gnu_ld="$lt_cv_prog_gnu_ld"
6272
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}ar; ac_word=$2
6276 echo "$as_me:$LINENO: checking for $ac_word" >&5
6277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6278 if test "${ac_cv_prog_AR+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 if test -n "$AR"; then
6282 ac_cv_prog_AR="$AR" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_AR="${ac_tool_prefix}ar"
6292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295 done
6296 done
6297
6298 fi
6299 fi
6300 AR=$ac_cv_prog_AR
6301 if test -n "$AR"; then
6302 echo "$as_me:$LINENO: result: $AR" >&5
6303 echo "${ECHO_T}$AR" >&6
6304 else
6305 echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6
6307 fi
6308
6309 fi
6310 if test -z "$ac_cv_prog_AR"; then
6311 ac_ct_AR=$AR
6312 # Extract the first word of "ar", so it can be a program name with args.
6313 set dummy ar; ac_word=$2
6314 echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319 if test -n "$ac_ct_AR"; then
6320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_ac_ct_AR="ar"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335
6336 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6337 fi
6338 fi
6339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6340 if test -n "$ac_ct_AR"; then
6341 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6342 echo "${ECHO_T}$ac_ct_AR" >&6
6343 else
6344 echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6
6346 fi
6347
6348 AR=$ac_ct_AR
6349 else
6350 AR="$ac_cv_prog_AR"
6351 fi
6352
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6356 echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6358 if test "${ac_cv_prog_RANLIB+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 if test -n "$RANLIB"; then
6362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375 done
6376 done
6377
6378 fi
6379 fi
6380 RANLIB=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6
6384 else
6385 echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6
6387 fi
6388
6389 fi
6390 if test -z "$ac_cv_prog_RANLIB"; then
6391 ac_ct_RANLIB=$RANLIB
6392 # Extract the first word of "ranlib", so it can be a program name with args.
6393 set dummy ranlib; ac_word=$2
6394 echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 if test -n "$ac_ct_RANLIB"; then
6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_ac_ct_RANLIB="ranlib"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415
6416 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6417 fi
6418 fi
6419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6420 if test -n "$ac_ct_RANLIB"; then
6421 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6422 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6423 else
6424 echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6
6426 fi
6427
6428 RANLIB=$ac_ct_RANLIB
6429 else
6430 RANLIB="$ac_cv_prog_RANLIB"
6431 fi
6432
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}strip; ac_word=$2
6436 echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6438 if test "${ac_cv_prog_STRIP+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441 if test -n "$STRIP"; then
6442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455 done
6456 done
6457
6458 fi
6459 fi
6460 STRIP=$ac_cv_prog_STRIP
6461 if test -n "$STRIP"; then
6462 echo "$as_me:$LINENO: result: $STRIP" >&5
6463 echo "${ECHO_T}$STRIP" >&6
6464 else
6465 echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6
6467 fi
6468
6469 fi
6470 if test -z "$ac_cv_prog_STRIP"; then
6471 ac_ct_STRIP=$STRIP
6472 # Extract the first word of "strip", so it can be a program name with args.
6473 set dummy strip; ac_word=$2
6474 echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 if test -n "$ac_ct_STRIP"; then
6480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_ac_ct_STRIP="strip"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493 done
6494 done
6495
6496 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6497 fi
6498 fi
6499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6500 if test -n "$ac_ct_STRIP"; then
6501 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6502 echo "${ECHO_T}$ac_ct_STRIP" >&6
6503 else
6504 echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6
6506 fi
6507
6508 STRIP=$ac_ct_STRIP
6509 else
6510 STRIP="$ac_cv_prog_STRIP"
6511 fi
6512
6513
6514 old_CC="$CC"
6515 old_CFLAGS="$CFLAGS"
6516
6517 # Set sane defaults for various variables
6518 test -z "$AR" && AR=ar
6519 test -z "$AR_FLAGS" && AR_FLAGS=cru
6520 test -z "$AS" && AS=as
6521 test -z "$CC" && CC=cc
6522 test -z "$LTCC" && LTCC=$CC
6523 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6524 test -z "$DLLTOOL" && DLLTOOL=dlltool
6525 test -z "$LD" && LD=ld
6526 test -z "$LN_S" && LN_S="ln -s"
6527 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6528 test -z "$NM" && NM=nm
6529 test -z "$SED" && SED=sed
6530 test -z "$OBJDUMP" && OBJDUMP=objdump
6531 test -z "$RANLIB" && RANLIB=:
6532 test -z "$STRIP" && STRIP=:
6533 test -z "$ac_objext" && ac_objext=o
6534
6535 # Determine commands to create old-style static archives.
6536 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6537 old_postinstall_cmds='chmod 644 $oldlib'
6538 old_postuninstall_cmds=
6539
6540 if test -n "$RANLIB"; then
6541 case $host_os in
6542 openbsd*)
6543 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6544 ;;
6545 *)
6546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6547 ;;
6548 esac
6549 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6550 fi
6551
6552 for cc_temp in $compiler""; do
6553 case $cc_temp in
6554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6556 \-*) ;;
6557 *) break;;
6558 esac
6559 done
6560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6561
6562
6563 # Only perform the check for file, if the check method requires it
6564 case $deplibs_check_method in
6565 file_magic*)
6566 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6567 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6568 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 case $MAGIC_CMD in
6573 [\\/*] | ?:[\\/]*)
6574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6575 ;;
6576 *)
6577 lt_save_MAGIC_CMD="$MAGIC_CMD"
6578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6580 for ac_dir in $ac_dummy; do
6581 IFS="$lt_save_ifs"
6582 test -z "$ac_dir" && ac_dir=.
6583 if test -f $ac_dir/${ac_tool_prefix}file; then
6584 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6585 if test -n "$file_magic_test_file"; then
6586 case $deplibs_check_method in
6587 "file_magic "*)
6588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6591 $EGREP "$file_magic_regex" > /dev/null; then
6592 :
6593 else
6594 cat <<EOF 1>&2
6595
6596 *** Warning: the command libtool uses to detect shared libraries,
6597 *** $file_magic_cmd, produces output that libtool cannot recognize.
6598 *** The result is that libtool may fail to recognize shared libraries
6599 *** as such. This will affect the creation of libtool libraries that
6600 *** depend on shared libraries, but programs linked with such libtool
6601 *** libraries will work regardless of this problem. Nevertheless, you
6602 *** may want to report the problem to your system manager and/or to
6603 *** bug-libtool@gnu.org
6604
6605 EOF
6606 fi ;;
6607 esac
6608 fi
6609 break
6610 fi
6611 done
6612 IFS="$lt_save_ifs"
6613 MAGIC_CMD="$lt_save_MAGIC_CMD"
6614 ;;
6615 esac
6616 fi
6617
6618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6619 if test -n "$MAGIC_CMD"; then
6620 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6621 echo "${ECHO_T}$MAGIC_CMD" >&6
6622 else
6623 echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6
6625 fi
6626
6627 if test -z "$lt_cv_path_MAGIC_CMD"; then
6628 if test -n "$ac_tool_prefix"; then
6629 echo "$as_me:$LINENO: checking for file" >&5
6630 echo $ECHO_N "checking for file... $ECHO_C" >&6
6631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 case $MAGIC_CMD in
6635 [\\/*] | ?:[\\/]*)
6636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6637 ;;
6638 *)
6639 lt_save_MAGIC_CMD="$MAGIC_CMD"
6640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6642 for ac_dir in $ac_dummy; do
6643 IFS="$lt_save_ifs"
6644 test -z "$ac_dir" && ac_dir=.
6645 if test -f $ac_dir/file; then
6646 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6647 if test -n "$file_magic_test_file"; then
6648 case $deplibs_check_method in
6649 "file_magic "*)
6650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6653 $EGREP "$file_magic_regex" > /dev/null; then
6654 :
6655 else
6656 cat <<EOF 1>&2
6657
6658 *** Warning: the command libtool uses to detect shared libraries,
6659 *** $file_magic_cmd, produces output that libtool cannot recognize.
6660 *** The result is that libtool may fail to recognize shared libraries
6661 *** as such. This will affect the creation of libtool libraries that
6662 *** depend on shared libraries, but programs linked with such libtool
6663 *** libraries will work regardless of this problem. Nevertheless, you
6664 *** may want to report the problem to your system manager and/or to
6665 *** bug-libtool@gnu.org
6666
6667 EOF
6668 fi ;;
6669 esac
6670 fi
6671 break
6672 fi
6673 done
6674 IFS="$lt_save_ifs"
6675 MAGIC_CMD="$lt_save_MAGIC_CMD"
6676 ;;
6677 esac
6678 fi
6679
6680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6681 if test -n "$MAGIC_CMD"; then
6682 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6683 echo "${ECHO_T}$MAGIC_CMD" >&6
6684 else
6685 echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6
6687 fi
6688
6689 else
6690 MAGIC_CMD=:
6691 fi
6692 fi
6693
6694 fi
6695 ;;
6696 esac
6697
6698 enable_dlopen=no
6699 enable_win32_dll=yes
6700
6701 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6702 if test "${enable_libtool_lock+set}" = set; then
6703 enableval="$enable_libtool_lock"
6704
6705 fi;
6706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6707
6708
6709 # Check whether --with-pic or --without-pic was given.
6710 if test "${with_pic+set}" = set; then
6711 withval="$with_pic"
6712 pic_mode="$withval"
6713 else
6714 pic_mode=default
6715 fi;
6716 test -z "$pic_mode" && pic_mode=default
6717
6718 # Use C for the default configuration in the libtool script
6719 tagname=
6720 lt_save_CC="$CC"
6721 ac_ext=c
6722 ac_cpp='$CPP $CPPFLAGS'
6723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726
6727
6728 # Source file extension for C test sources.
6729 ac_ext=c
6730
6731 # Object file extension for compiled C test sources.
6732 objext=o
6733 objext=$objext
6734
6735 # Code to be used in simple compile tests
6736 lt_simple_compile_test_code="int some_variable = 0;\n"
6737
6738 # Code to be used in simple link tests
6739 lt_simple_link_test_code='int main(){return(0);}\n'
6740
6741
6742 # If no C compiler was specified, use CC.
6743 LTCC=${LTCC-"$CC"}
6744
6745 # If no C compiler flags were specified, use CFLAGS.
6746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6747
6748 # Allow CC to be a program name with arguments.
6749 compiler=$CC
6750
6751
6752 # save warnings/boilerplate of simple test code
6753 ac_outfile=conftest.$ac_objext
6754 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6756 _lt_compiler_boilerplate=`cat conftest.err`
6757 $rm conftest*
6758
6759 ac_outfile=conftest.$ac_objext
6760 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6762 _lt_linker_boilerplate=`cat conftest.err`
6763 $rm conftest*
6764
6765
6766 ## CAVEAT EMPTOR:
6767 ## There is no encapsulation within the following macros, do not change
6768 ## the running order or otherwise move them around unless you know exactly
6769 ## what you are doing...
6770
6771 lt_prog_compiler_no_builtin_flag=
6772
6773 if test "$GCC" = yes; then
6774 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6775
6776
6777 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6778 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6779 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 lt_cv_prog_compiler_rtti_exceptions=no
6783 ac_outfile=conftest.$ac_objext
6784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6785 lt_compiler_flag="-fno-rtti -fno-exceptions"
6786 # Insert the option either (1) after the last *FLAGS variable, or
6787 # (2) before a word containing "conftest.", or (3) at the end.
6788 # Note that $ac_compile itself does not contain backslashes and begins
6789 # with a dollar sign (not a hyphen), so the echo should work correctly.
6790 # The option is referenced via a variable to avoid confusing sed.
6791 lt_compile=`echo "$ac_compile" | $SED \
6792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6794 -e 's:$: $lt_compiler_flag:'`
6795 (eval echo "\"\$as_me:6795: $lt_compile\"" >&5)
6796 (eval "$lt_compile" 2>conftest.err)
6797 ac_status=$?
6798 cat conftest.err >&5
6799 echo "$as_me:6799: \$? = $ac_status" >&5
6800 if (exit $ac_status) && test -s "$ac_outfile"; then
6801 # The compiler can only warn and ignore the option if not recognized
6802 # So say no if there are warnings other than the usual output.
6803 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6806 lt_cv_prog_compiler_rtti_exceptions=yes
6807 fi
6808 fi
6809 $rm conftest*
6810
6811 fi
6812 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6813 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6814
6815 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6816 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6817 else
6818 :
6819 fi
6820
6821 fi
6822
6823 lt_prog_compiler_wl=
6824 lt_prog_compiler_pic=
6825 lt_prog_compiler_static=
6826
6827 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6828 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6829
6830 if test "$GCC" = yes; then
6831 lt_prog_compiler_wl='-Wl,'
6832 lt_prog_compiler_static='-static'
6833
6834 case $host_os in
6835 aix*)
6836 # All AIX code is PIC.
6837 if test "$host_cpu" = ia64; then
6838 # AIX 5 now supports IA64 processor
6839 lt_prog_compiler_static='-Bstatic'
6840 fi
6841 ;;
6842
6843 amigaos*)
6844 # FIXME: we need at least 68020 code to build shared libraries, but
6845 # adding the `-m68020' flag to GCC prevents building anything better,
6846 # like `-m68040'.
6847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6848 ;;
6849
6850 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6851 # PIC is the default for these OSes.
6852 ;;
6853
6854 mingw* | pw32* | os2*)
6855 # This hack is so that the source file can tell whether it is being
6856 # built for inclusion in a dll (and should export symbols for example).
6857 lt_prog_compiler_pic='-DDLL_EXPORT'
6858 ;;
6859
6860 darwin* | rhapsody*)
6861 # PIC is the default on this platform
6862 # Common symbols not allowed in MH_DYLIB files
6863 lt_prog_compiler_pic='-fno-common'
6864 ;;
6865
6866 interix3*)
6867 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6868 # Instead, we relocate shared libraries at runtime.
6869 ;;
6870
6871 msdosdjgpp*)
6872 # Just because we use GCC doesn't mean we suddenly get shared libraries
6873 # on systems that don't support them.
6874 lt_prog_compiler_can_build_shared=no
6875 enable_shared=no
6876 ;;
6877
6878 sysv4*MP*)
6879 if test -d /usr/nec; then
6880 lt_prog_compiler_pic=-Kconform_pic
6881 fi
6882 ;;
6883
6884 hpux*)
6885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6886 # not for PA HP-UX.
6887 case $host_cpu in
6888 hppa*64*|ia64*)
6889 # +Z the default
6890 ;;
6891 *)
6892 lt_prog_compiler_pic='-fPIC'
6893 ;;
6894 esac
6895 ;;
6896
6897 *)
6898 lt_prog_compiler_pic='-fPIC'
6899 ;;
6900 esac
6901 else
6902 # PORTME Check for flag to pass linker flags through the system compiler.
6903 case $host_os in
6904 aix*)
6905 lt_prog_compiler_wl='-Wl,'
6906 if test "$host_cpu" = ia64; then
6907 # AIX 5 now supports IA64 processor
6908 lt_prog_compiler_static='-Bstatic'
6909 else
6910 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6911 fi
6912 ;;
6913 darwin*)
6914 # PIC is the default on this platform
6915 # Common symbols not allowed in MH_DYLIB files
6916 case $cc_basename in
6917 xlc*)
6918 lt_prog_compiler_pic='-qnocommon'
6919 lt_prog_compiler_wl='-Wl,'
6920 ;;
6921 esac
6922 ;;
6923
6924 mingw* | pw32* | os2*)
6925 # This hack is so that the source file can tell whether it is being
6926 # built for inclusion in a dll (and should export symbols for example).
6927 lt_prog_compiler_pic='-DDLL_EXPORT'
6928 ;;
6929
6930 hpux9* | hpux10* | hpux11*)
6931 lt_prog_compiler_wl='-Wl,'
6932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6933 # not for PA HP-UX.
6934 case $host_cpu in
6935 hppa*64*|ia64*)
6936 # +Z the default
6937 ;;
6938 *)
6939 lt_prog_compiler_pic='+Z'
6940 ;;
6941 esac
6942 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6943 lt_prog_compiler_static='${wl}-a ${wl}archive'
6944 ;;
6945
6946 irix5* | irix6* | nonstopux*)
6947 lt_prog_compiler_wl='-Wl,'
6948 # PIC (with -KPIC) is the default.
6949 lt_prog_compiler_static='-non_shared'
6950 ;;
6951
6952 newsos6)
6953 lt_prog_compiler_pic='-KPIC'
6954 lt_prog_compiler_static='-Bstatic'
6955 ;;
6956
6957 linux*)
6958 case $cc_basename in
6959 icc* | ecc*)
6960 lt_prog_compiler_wl='-Wl,'
6961 lt_prog_compiler_pic='-KPIC'
6962 lt_prog_compiler_static='-static'
6963 ;;
6964 pgcc* | pgf77* | pgf90* | pgf95*)
6965 # Portland Group compilers (*not* the Pentium gcc compiler,
6966 # which looks to be a dead project)
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_pic='-fpic'
6969 lt_prog_compiler_static='-Bstatic'
6970 ;;
6971 ccc*)
6972 lt_prog_compiler_wl='-Wl,'
6973 # All Alpha code is PIC.
6974 lt_prog_compiler_static='-non_shared'
6975 ;;
6976 esac
6977 ;;
6978
6979 osf3* | osf4* | osf5*)
6980 lt_prog_compiler_wl='-Wl,'
6981 # All OSF/1 code is PIC.
6982 lt_prog_compiler_static='-non_shared'
6983 ;;
6984
6985 solaris*)
6986 lt_prog_compiler_pic='-KPIC'
6987 lt_prog_compiler_static='-Bstatic'
6988 case $cc_basename in
6989 f77* | f90* | f95*)
6990 lt_prog_compiler_wl='-Qoption ld ';;
6991 *)
6992 lt_prog_compiler_wl='-Wl,';;
6993 esac
6994 ;;
6995
6996 sunos4*)
6997 lt_prog_compiler_wl='-Qoption ld '
6998 lt_prog_compiler_pic='-PIC'
6999 lt_prog_compiler_static='-Bstatic'
7000 ;;
7001
7002 sysv4 | sysv4.2uw2* | sysv4.3*)
7003 lt_prog_compiler_wl='-Wl,'
7004 lt_prog_compiler_pic='-KPIC'
7005 lt_prog_compiler_static='-Bstatic'
7006 ;;
7007
7008 sysv4*MP*)
7009 if test -d /usr/nec ;then
7010 lt_prog_compiler_pic='-Kconform_pic'
7011 lt_prog_compiler_static='-Bstatic'
7012 fi
7013 ;;
7014
7015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7016 lt_prog_compiler_wl='-Wl,'
7017 lt_prog_compiler_pic='-KPIC'
7018 lt_prog_compiler_static='-Bstatic'
7019 ;;
7020
7021 unicos*)
7022 lt_prog_compiler_wl='-Wl,'
7023 lt_prog_compiler_can_build_shared=no
7024 ;;
7025
7026 uts4*)
7027 lt_prog_compiler_pic='-pic'
7028 lt_prog_compiler_static='-Bstatic'
7029 ;;
7030
7031 *)
7032 lt_prog_compiler_can_build_shared=no
7033 ;;
7034 esac
7035 fi
7036
7037 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7038 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7039
7040 #
7041 # Check to make sure the PIC flag actually works.
7042 #
7043 if test -n "$lt_prog_compiler_pic"; then
7044
7045 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7046 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7047 if test "${lt_prog_compiler_pic_works+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 lt_prog_compiler_pic_works=no
7051 ac_outfile=conftest.$ac_objext
7052 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7053 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7054 # Insert the option either (1) after the last *FLAGS variable, or
7055 # (2) before a word containing "conftest.", or (3) at the end.
7056 # Note that $ac_compile itself does not contain backslashes and begins
7057 # with a dollar sign (not a hyphen), so the echo should work correctly.
7058 # The option is referenced via a variable to avoid confusing sed.
7059 lt_compile=`echo "$ac_compile" | $SED \
7060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7062 -e 's:$: $lt_compiler_flag:'`
7063 (eval echo "\"\$as_me:7063: $lt_compile\"" >&5)
7064 (eval "$lt_compile" 2>conftest.err)
7065 ac_status=$?
7066 cat conftest.err >&5
7067 echo "$as_me:7067: \$? = $ac_status" >&5
7068 if (exit $ac_status) && test -s "$ac_outfile"; then
7069 # The compiler can only warn and ignore the option if not recognized
7070 # So say no if there are warnings other than the usual output.
7071 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7074 lt_prog_compiler_pic_works=yes
7075 fi
7076 fi
7077 $rm conftest*
7078
7079 fi
7080 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7081 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7082
7083 if test x"$lt_prog_compiler_pic_works" = xyes; then
7084 case $lt_prog_compiler_pic in
7085 "" | " "*) ;;
7086 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7087 esac
7088 else
7089 lt_prog_compiler_pic=
7090 lt_prog_compiler_can_build_shared=no
7091 fi
7092
7093 fi
7094 case $host_os in
7095 # For platforms which do not support PIC, -DPIC is meaningless:
7096 *djgpp*)
7097 lt_prog_compiler_pic=
7098 ;;
7099 *)
7100 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7101 ;;
7102 esac
7103
7104 #
7105 # Check to make sure the static flag actually works.
7106 #
7107 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7108 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7109 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7110 if test "${lt_prog_compiler_static_works+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 lt_prog_compiler_static_works=no
7114 save_LDFLAGS="$LDFLAGS"
7115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7116 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7118 # The linker can only warn and ignore the option if not recognized
7119 # So say no if there are warnings
7120 if test -s conftest.err; then
7121 # Append any errors to the config.log.
7122 cat conftest.err 1>&5
7123 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7125 if diff conftest.exp conftest.er2 >/dev/null; then
7126 lt_prog_compiler_static_works=yes
7127 fi
7128 else
7129 lt_prog_compiler_static_works=yes
7130 fi
7131 fi
7132 $rm conftest*
7133 LDFLAGS="$save_LDFLAGS"
7134
7135 fi
7136 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7137 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7138
7139 if test x"$lt_prog_compiler_static_works" = xyes; then
7140 :
7141 else
7142 lt_prog_compiler_static=
7143 fi
7144
7145
7146 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7147 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7148 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 lt_cv_prog_compiler_c_o=no
7152 $rm -r conftest 2>/dev/null
7153 mkdir conftest
7154 cd conftest
7155 mkdir out
7156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7157
7158 lt_compiler_flag="-o out/conftest2.$ac_objext"
7159 # Insert the option either (1) after the last *FLAGS variable, or
7160 # (2) before a word containing "conftest.", or (3) at the end.
7161 # Note that $ac_compile itself does not contain backslashes and begins
7162 # with a dollar sign (not a hyphen), so the echo should work correctly.
7163 lt_compile=`echo "$ac_compile" | $SED \
7164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7166 -e 's:$: $lt_compiler_flag:'`
7167 (eval echo "\"\$as_me:7167: $lt_compile\"" >&5)
7168 (eval "$lt_compile" 2>out/conftest.err)
7169 ac_status=$?
7170 cat out/conftest.err >&5
7171 echo "$as_me:7171: \$? = $ac_status" >&5
7172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7173 then
7174 # The compiler can only warn and ignore the option if not recognized
7175 # So say no if there are warnings
7176 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7179 lt_cv_prog_compiler_c_o=yes
7180 fi
7181 fi
7182 chmod u+w . 2>&5
7183 $rm conftest*
7184 # SGI C++ compiler will create directory out/ii_files/ for
7185 # template instantiation
7186 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7187 $rm out/* && rmdir out
7188 cd ..
7189 rmdir conftest
7190 $rm conftest*
7191
7192 fi
7193 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7194 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7195
7196
7197 hard_links="nottested"
7198 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7199 # do not overwrite the value of need_locks provided by the user
7200 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7202 hard_links=yes
7203 $rm conftest*
7204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7205 touch conftest.a
7206 ln conftest.a conftest.b 2>&5 || hard_links=no
7207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7208 echo "$as_me:$LINENO: result: $hard_links" >&5
7209 echo "${ECHO_T}$hard_links" >&6
7210 if test "$hard_links" = no; then
7211 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7213 need_locks=warn
7214 fi
7215 else
7216 need_locks=no
7217 fi
7218
7219 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7221
7222 runpath_var=
7223 allow_undefined_flag=
7224 enable_shared_with_static_runtimes=no
7225 archive_cmds=
7226 archive_expsym_cmds=
7227 old_archive_From_new_cmds=
7228 old_archive_from_expsyms_cmds=
7229 export_dynamic_flag_spec=
7230 whole_archive_flag_spec=
7231 thread_safe_flag_spec=
7232 hardcode_libdir_flag_spec=
7233 hardcode_libdir_flag_spec_ld=
7234 hardcode_libdir_separator=
7235 hardcode_direct=no
7236 hardcode_minus_L=no
7237 hardcode_shlibpath_var=unsupported
7238 link_all_deplibs=unknown
7239 hardcode_automatic=no
7240 module_cmds=
7241 module_expsym_cmds=
7242 always_export_symbols=no
7243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7244 # include_expsyms should be a list of space-separated symbols to be *always*
7245 # included in the symbol list
7246 include_expsyms=
7247 # exclude_expsyms can be an extended regexp of symbols to exclude
7248 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7249 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7250 # as well as any symbol that contains `d'.
7251 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7252 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7253 # platforms (ab)use it in PIC code, but their linkers get confused if
7254 # the symbol is explicitly referenced. Since portable code cannot
7255 # rely on this symbol name, it's probably fine to never include it in
7256 # preloaded symbol tables.
7257 extract_expsyms_cmds=
7258 # Just being paranoid about ensuring that cc_basename is set.
7259 for cc_temp in $compiler""; do
7260 case $cc_temp in
7261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7263 \-*) ;;
7264 *) break;;
7265 esac
7266 done
7267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7268
7269 case $host_os in
7270 cygwin* | mingw* | pw32*)
7271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7272 # When not using gcc, we currently assume that we are using
7273 # Microsoft Visual C++.
7274 if test "$GCC" != yes; then
7275 with_gnu_ld=no
7276 fi
7277 ;;
7278 interix*)
7279 # we just hope/assume this is gcc and not c89 (= MSVC++)
7280 with_gnu_ld=yes
7281 ;;
7282 openbsd*)
7283 with_gnu_ld=no
7284 ;;
7285 esac
7286
7287 ld_shlibs=yes
7288 if test "$with_gnu_ld" = yes; then
7289 # If archive_cmds runs LD, not CC, wlarc should be empty
7290 wlarc='${wl}'
7291
7292 # Set some defaults for GNU ld with shared library support. These
7293 # are reset later if shared libraries are not supported. Putting them
7294 # here allows them to be overridden if necessary.
7295 runpath_var=LD_RUN_PATH
7296 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7297 export_dynamic_flag_spec='${wl}--export-dynamic'
7298 # ancient GNU ld didn't support --whole-archive et. al.
7299 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7300 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7301 else
7302 whole_archive_flag_spec=
7303 fi
7304 supports_anon_versioning=no
7305 case `$LD -v 2>/dev/null` in
7306 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7308 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7309 *\ 2.11.*) ;; # other 2.11 versions
7310 *) supports_anon_versioning=yes ;;
7311 esac
7312
7313 # See if GNU ld supports shared libraries.
7314 case $host_os in
7315 aix3* | aix4* | aix5*)
7316 # On AIX/PPC, the GNU linker is very broken
7317 if test "$host_cpu" != ia64; then
7318 ld_shlibs=no
7319 cat <<EOF 1>&2
7320
7321 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7322 *** to be unable to reliably create shared libraries on AIX.
7323 *** Therefore, libtool is disabling shared libraries support. If you
7324 *** really care for shared libraries, you may want to modify your PATH
7325 *** so that a non-GNU linker is found, and then restart.
7326
7327 EOF
7328 fi
7329 ;;
7330
7331 amigaos*)
7332 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)'
7333 hardcode_libdir_flag_spec='-L$libdir'
7334 hardcode_minus_L=yes
7335
7336 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7337 # that the semantics of dynamic libraries on AmigaOS, at least up
7338 # to version 4, is to share data among multiple programs linked
7339 # with the same dynamic library. Since this doesn't match the
7340 # behavior of shared libraries on other platforms, we can't use
7341 # them.
7342 ld_shlibs=no
7343 ;;
7344
7345 beos*)
7346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7347 allow_undefined_flag=unsupported
7348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7349 # support --undefined. This deserves some investigation. FIXME
7350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 else
7352 ld_shlibs=no
7353 fi
7354 ;;
7355
7356 cygwin* | mingw* | pw32*)
7357 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7358 # as there is no search path for DLLs.
7359 hardcode_libdir_flag_spec='-L$libdir'
7360 allow_undefined_flag=unsupported
7361 always_export_symbols=no
7362 enable_shared_with_static_runtimes=yes
7363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7364
7365 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7367 # If the export-symbols file already is a .def file (1st line
7368 # is EXPORTS), use it as is; otherwise, prepend...
7369 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7370 cp $export_symbols $output_objdir/$soname.def;
7371 else
7372 echo EXPORTS > $output_objdir/$soname.def;
7373 cat $export_symbols >> $output_objdir/$soname.def;
7374 fi~
7375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7376 else
7377 ld_shlibs=no
7378 fi
7379 ;;
7380
7381 interix3*)
7382 hardcode_direct=no
7383 hardcode_shlibpath_var=no
7384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7385 export_dynamic_flag_spec='${wl}-E'
7386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7387 # Instead, shared libraries are loaded at an image base (0x10000000 by
7388 # default) and relocated if they conflict, which is a slow very memory
7389 # consuming and fragmenting process. To avoid this, we pick a random,
7390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7393 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7394 ;;
7395
7396 linux*)
7397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7398 tmp_addflag=
7399 case $cc_basename,$host_cpu in
7400 pgcc*) # Portland Group C compiler
7401 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7402 tmp_addflag=' $pic_flag'
7403 ;;
7404 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7405 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7406 tmp_addflag=' $pic_flag -Mnomain' ;;
7407 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7408 tmp_addflag=' -i_dynamic' ;;
7409 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7410 tmp_addflag=' -i_dynamic -nofor_main' ;;
7411 ifc* | ifort*) # Intel Fortran compiler
7412 tmp_addflag=' -nofor_main' ;;
7413 esac
7414 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7415
7416 if test $supports_anon_versioning = yes; then
7417 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7419 $echo "local: *; };" >> $output_objdir/$libname.ver~
7420 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7421 fi
7422 else
7423 ld_shlibs=no
7424 fi
7425 ;;
7426
7427 netbsd*)
7428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7429 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7430 wlarc=
7431 else
7432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7434 fi
7435 ;;
7436
7437 solaris*)
7438 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7439 ld_shlibs=no
7440 cat <<EOF 1>&2
7441
7442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7443 *** create shared libraries on Solaris systems. Therefore, libtool
7444 *** is disabling shared libraries support. We urge you to upgrade GNU
7445 *** binutils to release 2.9.1 or newer. Another option is to modify
7446 *** your PATH or compiler configuration so that the native linker is
7447 *** used, and then restart.
7448
7449 EOF
7450 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7453 else
7454 ld_shlibs=no
7455 fi
7456 ;;
7457
7458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7459 case `$LD -v 2>&1` in
7460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7461 ld_shlibs=no
7462 cat <<_LT_EOF 1>&2
7463
7464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7465 *** reliably create shared libraries on SCO systems. Therefore, libtool
7466 *** is disabling shared libraries support. We urge you to upgrade GNU
7467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7468 *** your PATH or compiler configuration so that the native linker is
7469 *** used, and then restart.
7470
7471 _LT_EOF
7472 ;;
7473 *)
7474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7475 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7478 else
7479 ld_shlibs=no
7480 fi
7481 ;;
7482 esac
7483 ;;
7484
7485 sunos4*)
7486 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7487 wlarc=
7488 hardcode_direct=yes
7489 hardcode_shlibpath_var=no
7490 ;;
7491
7492 *)
7493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7496 else
7497 ld_shlibs=no
7498 fi
7499 ;;
7500 esac
7501
7502 if test "$ld_shlibs" = no; then
7503 runpath_var=
7504 hardcode_libdir_flag_spec=
7505 export_dynamic_flag_spec=
7506 whole_archive_flag_spec=
7507 fi
7508 else
7509 # PORTME fill in a description of your system's linker (not GNU ld)
7510 case $host_os in
7511 aix3*)
7512 allow_undefined_flag=unsupported
7513 always_export_symbols=yes
7514 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'
7515 # Note: this linker hardcodes the directories in LIBPATH if there
7516 # are no directories specified by -L.
7517 hardcode_minus_L=yes
7518 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7519 # Neither direct hardcoding nor static linking is supported with a
7520 # broken collect2.
7521 hardcode_direct=unsupported
7522 fi
7523 ;;
7524
7525 aix4* | aix5*)
7526 if test "$host_cpu" = ia64; then
7527 # On IA64, the linker does run time linking by default, so we don't
7528 # have to do anything special.
7529 aix_use_runtimelinking=no
7530 exp_sym_flag='-Bexport'
7531 no_entry_flag=""
7532 else
7533 # If we're using GNU nm, then we don't want the "-C" option.
7534 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7535 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7536 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'
7537 else
7538 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'
7539 fi
7540 aix_use_runtimelinking=no
7541
7542 # Test if we are trying to use run time linking or normal
7543 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7544 # need to do runtime linking.
7545 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7546 for ld_flag in $LDFLAGS; do
7547 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7548 aix_use_runtimelinking=yes
7549 break
7550 fi
7551 done
7552 ;;
7553 esac
7554
7555 exp_sym_flag='-bexport'
7556 no_entry_flag='-bnoentry'
7557 fi
7558
7559 # When large executables or shared objects are built, AIX ld can
7560 # have problems creating the table of contents. If linking a library
7561 # or program results in "error TOC overflow" add -mminimal-toc to
7562 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7563 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7564
7565 archive_cmds=''
7566 hardcode_direct=yes
7567 hardcode_libdir_separator=':'
7568 link_all_deplibs=yes
7569
7570 if test "$GCC" = yes; then
7571 case $host_os in aix4.[012]|aix4.[012].*)
7572 # We only want to do this on AIX 4.2 and lower, the check
7573 # below for broken collect2 doesn't work under 4.3+
7574 collect2name=`${CC} -print-prog-name=collect2`
7575 if test -f "$collect2name" && \
7576 strings "$collect2name" | grep resolve_lib_name >/dev/null
7577 then
7578 # We have reworked collect2
7579 hardcode_direct=yes
7580 else
7581 # We have old collect2
7582 hardcode_direct=unsupported
7583 # It fails to find uninstalled libraries when the uninstalled
7584 # path is not listed in the libpath. Setting hardcode_minus_L
7585 # to unsupported forces relinking
7586 hardcode_minus_L=yes
7587 hardcode_libdir_flag_spec='-L$libdir'
7588 hardcode_libdir_separator=
7589 fi
7590 ;;
7591 esac
7592 shared_flag='-shared'
7593 if test "$aix_use_runtimelinking" = yes; then
7594 shared_flag="$shared_flag "'${wl}-G'
7595 fi
7596 else
7597 # not using gcc
7598 if test "$host_cpu" = ia64; then
7599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7600 # chokes on -Wl,-G. The following line is correct:
7601 shared_flag='-G'
7602 else
7603 if test "$aix_use_runtimelinking" = yes; then
7604 shared_flag='${wl}-G'
7605 else
7606 shared_flag='${wl}-bM:SRE'
7607 fi
7608 fi
7609 fi
7610
7611 # It seems that -bexpall does not export symbols beginning with
7612 # underscore (_), so it is better to generate a list of symbols to export.
7613 always_export_symbols=yes
7614 if test "$aix_use_runtimelinking" = yes; then
7615 # Warning - without using the other runtime loading flags (-brtl),
7616 # -berok will link without error, but may produce a broken library.
7617 allow_undefined_flag='-berok'
7618 # Determine the default libpath from the value encoded in an empty executable.
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625
7626 int
7627 main ()
7628 {
7629
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636 (eval $ac_link) 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag"
7644 || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try='test -s conftest$ac_exeext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656
7657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7658 }'`
7659 # Check for a 64-bit object if we didn't find anything.
7660 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; }
7661 }'`; fi
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7665
7666 fi
7667 rm -f conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7670
7671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7672 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7673 else
7674 if test "$host_cpu" = ia64; then
7675 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7676 allow_undefined_flag="-z nodefs"
7677 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7678 else
7679 # Determine the default libpath from the value encoded in an empty executable.
7680 cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h. */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686
7687 int
7688 main ()
7689 {
7690
7691 ;
7692 return 0;
7693 }
7694 _ACEOF
7695 rm -f conftest.$ac_objext conftest$ac_exeext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag"
7705 || test ! -s conftest.err'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717
7718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7719 }'`
7720 # Check for a 64-bit object if we didn't find anything.
7721 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; }
7722 }'`; fi
7723 else
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 fi
7728 rm -f conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7731
7732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7733 # Warning - without using the other run time loading flags,
7734 # -berok will link without error, but may produce a broken library.
7735 no_undefined_flag=' ${wl}-bernotok'
7736 allow_undefined_flag=' ${wl}-berok'
7737 # Exported symbols can be pulled into shared objects from archives
7738 whole_archive_flag_spec='$convenience'
7739 archive_cmds_need_lc=yes
7740 # This is similar to how AIX traditionally builds its shared libraries.
7741 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7742 fi
7743 fi
7744 ;;
7745
7746 amigaos*)
7747 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)'
7748 hardcode_libdir_flag_spec='-L$libdir'
7749 hardcode_minus_L=yes
7750 # see comment about different semantics on the GNU ld section
7751 ld_shlibs=no
7752 ;;
7753
7754 bsdi[45]*)
7755 export_dynamic_flag_spec=-rdynamic
7756 ;;
7757
7758 cygwin* | mingw* | pw32*)
7759 # When not using gcc, we currently assume that we are using
7760 # Microsoft Visual C++.
7761 # hardcode_libdir_flag_spec is actually meaningless, as there is
7762 # no search path for DLLs.
7763 hardcode_libdir_flag_spec=' '
7764 allow_undefined_flag=unsupported
7765 # Tell ltmain to make .lib files, not .a files.
7766 libext=lib
7767 # Tell ltmain to make .dll files, not .so files.
7768 shrext_cmds=".dll"
7769 # FIXME: Setting linknames here is a bad hack.
7770 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7771 # The linker will automatically build a .lib file if we build a DLL.
7772 old_archive_From_new_cmds='true'
7773 # FIXME: Should let the user specify the lib program.
7774 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7775 fix_srcfile_path='`cygpath -w "$srcfile"`'
7776 enable_shared_with_static_runtimes=yes
7777 ;;
7778
7779 darwin* | rhapsody*)
7780 case $host_os in
7781 rhapsody* | darwin1.[012])
7782 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7783 ;;
7784 *) # Darwin 1.3 on
7785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7786 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7787 else
7788 case ${MACOSX_DEPLOYMENT_TARGET} in
7789 10.[012])
7790 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7791 ;;
7792 10.*)
7793 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7794 ;;
7795 esac
7796 fi
7797 ;;
7798 esac
7799 archive_cmds_need_lc=no
7800 hardcode_direct=no
7801 hardcode_automatic=yes
7802 hardcode_shlibpath_var=unsupported
7803 whole_archive_flag_spec=''
7804 link_all_deplibs=yes
7805 if test "$GCC" = yes ; then
7806 output_verbose_link_cmd='echo'
7807 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7808 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7810 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}'
7811 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}'
7812 else
7813 case $cc_basename in
7814 xlc*)
7815 output_verbose_link_cmd='echo'
7816 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7817 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7819 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7820 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}'
7821 ;;
7822 *)
7823 ld_shlibs=no
7824 ;;
7825 esac
7826 fi
7827 ;;
7828
7829 dgux*)
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_libdir_flag_spec='-L$libdir'
7832 hardcode_shlibpath_var=no
7833 ;;
7834
7835 freebsd1*)
7836 ld_shlibs=no
7837 ;;
7838
7839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7840 # support. Future versions do this automatically, but an explicit c++rt0.o
7841 # does not break anything, and helps significantly (at the cost of a little
7842 # extra space).
7843 freebsd2.2*)
7844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7845 hardcode_libdir_flag_spec='-R$libdir'
7846 hardcode_direct=yes
7847 hardcode_shlibpath_var=no
7848 ;;
7849
7850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7851 freebsd2*)
7852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7853 hardcode_direct=yes
7854 hardcode_minus_L=yes
7855 hardcode_shlibpath_var=no
7856 ;;
7857
7858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7859 freebsd* | kfreebsd*-gnu | dragonfly*)
7860 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7861 hardcode_libdir_flag_spec='-R$libdir'
7862 hardcode_direct=yes
7863 hardcode_shlibpath_var=no
7864 ;;
7865
7866 hpux9*)
7867 if test "$GCC" = yes; then
7868 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'
7869 else
7870 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'
7871 fi
7872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7873 hardcode_libdir_separator=:
7874 hardcode_direct=yes
7875
7876 # hardcode_minus_L: Not really in the search PATH,
7877 # but as the default location of the library.
7878 hardcode_minus_L=yes
7879 export_dynamic_flag_spec='${wl}-E'
7880 ;;
7881
7882 hpux10*)
7883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7884 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7885 else
7886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7887 fi
7888 if test "$with_gnu_ld" = no; then
7889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7890 hardcode_libdir_separator=:
7891
7892 hardcode_direct=yes
7893 export_dynamic_flag_spec='${wl}-E'
7894
7895 # hardcode_minus_L: Not really in the search PATH,
7896 # but as the default location of the library.
7897 hardcode_minus_L=yes
7898 fi
7899 ;;
7900
7901 hpux11*)
7902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7903 case $host_cpu in
7904 hppa*64*)
7905 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7906 ;;
7907 ia64*)
7908 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7909 ;;
7910 *)
7911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7912 ;;
7913 esac
7914 else
7915 case $host_cpu in
7916 hppa*64*)
7917 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7918 ;;
7919 ia64*)
7920 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7921 ;;
7922 *)
7923 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7924 ;;
7925 esac
7926 fi
7927 if test "$with_gnu_ld" = no; then
7928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7929 hardcode_libdir_separator=:
7930
7931 case $host_cpu in
7932 hppa*64*|ia64*)
7933 hardcode_libdir_flag_spec_ld='+b $libdir'
7934 hardcode_direct=no
7935 hardcode_shlibpath_var=no
7936 ;;
7937 *)
7938 hardcode_direct=yes
7939 export_dynamic_flag_spec='${wl}-E'
7940
7941 # hardcode_minus_L: Not really in the search PATH,
7942 # but as the default location of the library.
7943 hardcode_minus_L=yes
7944 ;;
7945 esac
7946 fi
7947 ;;
7948
7949 irix5* | irix6* | nonstopux*)
7950 if test "$GCC" = yes; then
7951 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'
7952 else
7953 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'
7954 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7955 fi
7956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957 hardcode_libdir_separator=:
7958 link_all_deplibs=yes
7959 ;;
7960
7961 netbsd*)
7962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7964 else
7965 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7966 fi
7967 hardcode_libdir_flag_spec='-R$libdir'
7968 hardcode_direct=yes
7969 hardcode_shlibpath_var=no
7970 ;;
7971
7972 newsos6)
7973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7974 hardcode_direct=yes
7975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976 hardcode_libdir_separator=:
7977 hardcode_shlibpath_var=no
7978 ;;
7979
7980 openbsd*)
7981 hardcode_direct=yes
7982 hardcode_shlibpath_var=no
7983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7985 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7987 export_dynamic_flag_spec='${wl}-E'
7988 else
7989 case $host_os in
7990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7992 hardcode_libdir_flag_spec='-R$libdir'
7993 ;;
7994 *)
7995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7997 ;;
7998 esac
7999 fi
8000 ;;
8001
8002 os2*)
8003 hardcode_libdir_flag_spec='-L$libdir'
8004 hardcode_minus_L=yes
8005 allow_undefined_flag=unsupported
8006 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'
8007 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8008 ;;
8009
8010 osf3*)
8011 if test "$GCC" = yes; then
8012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8013 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'
8014 else
8015 allow_undefined_flag=' -expect_unresolved \*'
8016 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'
8017 fi
8018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8019 hardcode_libdir_separator=:
8020 ;;
8021
8022 osf4* | osf5*) # as osf3* with the addition of -msym flag
8023 if test "$GCC" = yes; then
8024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8025 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'
8026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8027 else
8028 allow_undefined_flag=' -expect_unresolved \*'
8029 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'
8030 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8031 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8032
8033 # Both c and cxx compiler support -rpath directly
8034 hardcode_libdir_flag_spec='-rpath $libdir'
8035 fi
8036 hardcode_libdir_separator=:
8037 ;;
8038
8039 solaris*)
8040 no_undefined_flag=' -z text'
8041 if test "$GCC" = yes; then
8042 wlarc='${wl}'
8043 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8044 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8045 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8046 else
8047 wlarc=''
8048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8049 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8051 fi
8052 hardcode_libdir_flag_spec='-R$libdir'
8053 hardcode_shlibpath_var=no
8054 case $host_os in
8055 solaris2.[0-5] | solaris2.[0-5].*) ;;
8056 *)
8057 # The compiler driver will combine linker options so we
8058 # cannot just pass the convience library names through
8059 # without $wl, iff we do not link with $LD.
8060 # Luckily, gcc supports the same syntax we need for Sun Studio.
8061 # Supported since Solaris 2.6 (maybe 2.5.1?)
8062 case $wlarc in
8063 '')
8064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8065 *)
8066 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8067 esac ;;
8068 esac
8069 link_all_deplibs=yes
8070 ;;
8071
8072 sunos4*)
8073 if test "x$host_vendor" = xsequent; then
8074 # Use $CC to link under sequent, because it throws in some extra .o
8075 # files that make .init and .fini sections work.
8076 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8077 else
8078 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8079 fi
8080 hardcode_libdir_flag_spec='-L$libdir'
8081 hardcode_direct=yes
8082 hardcode_minus_L=yes
8083 hardcode_shlibpath_var=no
8084 ;;
8085
8086 sysv4)
8087 case $host_vendor in
8088 sni)
8089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8090 hardcode_direct=yes # is this really true???
8091 ;;
8092 siemens)
8093 ## LD is ld it makes a PLAMLIB
8094 ## CC just makes a GrossModule.
8095 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8096 reload_cmds='$CC -r -o $output$reload_objs'
8097 hardcode_direct=no
8098 ;;
8099 motorola)
8100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8101 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8102 ;;
8103 esac
8104 runpath_var='LD_RUN_PATH'
8105 hardcode_shlibpath_var=no
8106 ;;
8107
8108 sysv4.3*)
8109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8110 hardcode_shlibpath_var=no
8111 export_dynamic_flag_spec='-Bexport'
8112 ;;
8113
8114 sysv4*MP*)
8115 if test -d /usr/nec; then
8116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8117 hardcode_shlibpath_var=no
8118 runpath_var=LD_RUN_PATH
8119 hardcode_runpath_var=yes
8120 ld_shlibs=yes
8121 fi
8122 ;;
8123
8124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8125 no_undefined_flag='${wl}-z,text'
8126 archive_cmds_need_lc=no
8127 hardcode_shlibpath_var=no
8128 runpath_var='LD_RUN_PATH'
8129
8130 if test "$GCC" = yes; then
8131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8133 else
8134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8136 fi
8137 ;;
8138
8139 sysv5* | sco3.2v5* | sco5v6*)
8140 # Note: We can NOT use -z defs as we might desire, because we do not
8141 # link with -lc, and that would cause any symbols used from libc to
8142 # always be unresolved, which means just about no library would
8143 # ever link correctly. If we're not using GNU ld we use -z text
8144 # though, which does catch some bad symbols but isn't as heavy-handed
8145 # as -z defs.
8146 no_undefined_flag='${wl}-z,text'
8147 allow_undefined_flag='${wl}-z,nodefs'
8148 archive_cmds_need_lc=no
8149 hardcode_shlibpath_var=no
8150 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8151 hardcode_libdir_separator=':'
8152 link_all_deplibs=yes
8153 export_dynamic_flag_spec='${wl}-Bexport'
8154 runpath_var='LD_RUN_PATH'
8155
8156 if test "$GCC" = yes; then
8157 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 else
8160 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8162 fi
8163 ;;
8164
8165 uts4*)
8166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8167 hardcode_libdir_flag_spec='-L$libdir'
8168 hardcode_shlibpath_var=no
8169 ;;
8170
8171 *)
8172 ld_shlibs=no
8173 ;;
8174 esac
8175 fi
8176
8177 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8178 echo "${ECHO_T}$ld_shlibs" >&6
8179 test "$ld_shlibs" = no && can_build_shared=no
8180
8181 #
8182 # Do we need to explicitly link libc?
8183 #
8184 case "x$archive_cmds_need_lc" in
8185 x|xyes)
8186 # Assume -lc should be added
8187 archive_cmds_need_lc=yes
8188
8189 if test "$enable_shared" = yes && test "$GCC" = yes; then
8190 case $archive_cmds in
8191 *'~'*)
8192 # FIXME: we may have to deal with multi-command sequences.
8193 ;;
8194 '$CC '*)
8195 # Test whether the compiler implicitly links with -lc since on some
8196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8197 # to ld, don't add -lc before -lgcc.
8198 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8200 $rm conftest*
8201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8202
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } 2>conftest.err; then
8208 soname=conftest
8209 lib=conftest
8210 libobjs=conftest.$ac_objext
8211 deplibs=
8212 wl=$lt_prog_compiler_wl
8213 pic_flag=$lt_prog_compiler_pic
8214 compiler_flags=-v
8215 linker_flags=-v
8216 verstring=
8217 output_objdir=.
8218 libname=conftest
8219 lt_save_allow_undefined_flag=$allow_undefined_flag
8220 allow_undefined_flag=
8221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8222 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }
8226 then
8227 archive_cmds_need_lc=no
8228 else
8229 archive_cmds_need_lc=yes
8230 fi
8231 allow_undefined_flag=$lt_save_allow_undefined_flag
8232 else
8233 cat conftest.err 1>&5
8234 fi
8235 $rm conftest*
8236 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8237 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8238 ;;
8239 esac
8240 fi
8241 ;;
8242 esac
8243
8244 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8246 library_names_spec=
8247 libname_spec='lib$name'
8248 soname_spec=
8249 shrext_cmds=".so"
8250 postinstall_cmds=
8251 postuninstall_cmds=
8252 finish_cmds=
8253 finish_eval=
8254 shlibpath_var=
8255 shlibpath_overrides_runpath=unknown
8256 version_type=none
8257 dynamic_linker="$host_os ld.so"
8258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8259 if test "$GCC" = yes; then
8260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8262 # if the path contains ";" then we assume it to be the separator
8263 # otherwise default to the standard path separator (i.e. ":") - it is
8264 # assumed that no part of a normal pathname contains ";" but that should
8265 # okay in the real world where ";" in dirpaths is itself problematic.
8266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8267 else
8268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8269 fi
8270 else
8271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8272 fi
8273 need_lib_prefix=unknown
8274 hardcode_into_libs=no
8275
8276 # when you set need_version to no, make sure it does not cause -set_version
8277 # flags to be left without arguments
8278 need_version=unknown
8279
8280 case $host_os in
8281 aix3*)
8282 version_type=linux
8283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8284 shlibpath_var=LIBPATH
8285
8286 # AIX 3 has no versioning support, so we append a major version to the name.
8287 soname_spec='${libname}${release}${shared_ext}$major'
8288 ;;
8289
8290 aix4* | aix5*)
8291 version_type=linux
8292 need_lib_prefix=no
8293 need_version=no
8294 hardcode_into_libs=yes
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 supports IA64
8297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8298 shlibpath_var=LD_LIBRARY_PATH
8299 else
8300 # With GCC up to 2.95.x, collect2 would create an import file
8301 # for dependence libraries. The import file would start with
8302 # the line `#! .'. This would cause the generated library to
8303 # depend on `.', always an invalid library. This was fixed in
8304 # development snapshots of GCC prior to 3.0.
8305 case $host_os in
8306 aix4 | aix4.[01] | aix4.[01].*)
8307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8308 echo ' yes '
8309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8310 :
8311 else
8312 can_build_shared=no
8313 fi
8314 ;;
8315 esac
8316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8317 # soname into executable. Probably we can add versioning support to
8318 # collect2, so additional links can be useful in future.
8319 if test "$aix_use_runtimelinking" = yes; then
8320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8321 # instead of lib<name>.a to let people know that these are not
8322 # typical AIX shared libraries.
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 else
8325 # We preserve .a as extension for shared libraries through AIX4.2
8326 # and later when we are not doing run time linking.
8327 library_names_spec='${libname}${release}.a $libname.a'
8328 soname_spec='${libname}${release}${shared_ext}$major'
8329 fi
8330 shlibpath_var=LIBPATH
8331 fi
8332 ;;
8333
8334 amigaos*)
8335 library_names_spec='$libname.ixlibrary $libname.a'
8336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8337 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'
8338 ;;
8339
8340 beos*)
8341 library_names_spec='${libname}${shared_ext}'
8342 dynamic_linker="$host_os ld.so"
8343 shlibpath_var=LIBRARY_PATH
8344 ;;
8345
8346 bsdi[45]*)
8347 version_type=linux
8348 need_version=no
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8352 shlibpath_var=LD_LIBRARY_PATH
8353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8355 # the default ld.so.conf also contains /usr/contrib/lib and
8356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8357 # libtool to hard-code these into programs
8358 ;;
8359
8360 cygwin* | mingw* | pw32*)
8361 version_type=windows
8362 shrext_cmds=".dll"
8363 need_version=no
8364 need_lib_prefix=no
8365
8366 case $GCC,$host_os in
8367 yes,cygwin* | yes,mingw* | yes,pw32*)
8368 library_names_spec='$libname.dll.a'
8369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8370 postinstall_cmds='base_file=`basename \${file}`~
8371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8372 dldir=$destdir/`dirname \$dlpath`~
8373 test -d \$dldir || mkdir -p \$dldir~
8374 $install_prog $dir/$dlname \$dldir/$dlname~
8375 chmod a+x \$dldir/$dlname'
8376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8377 dlpath=$dir/\$dldll~
8378 $rm \$dlpath'
8379 shlibpath_overrides_runpath=yes
8380
8381 case $host_os in
8382 cygwin*)
8383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8386 ;;
8387 mingw*)
8388 # MinGW DLLs use traditional 'lib' prefix
8389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8392 # It is most probably a Windows format PATH printed by
8393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8394 # path with ; separators, and with drive letters. We can handle the
8395 # drive letters (cygwin fileutils understands them), so leave them,
8396 # especially as we might pass files found there to a mingw objdump,
8397 # which wouldn't understand a cygwinified path. Ahh.
8398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8399 else
8400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8401 fi
8402 ;;
8403 pw32*)
8404 # pw32 DLLs use 'pw' prefix rather than 'lib'
8405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8406 ;;
8407 esac
8408 ;;
8409
8410 *)
8411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8412 ;;
8413 esac
8414 dynamic_linker='Win32 ld.exe'
8415 # FIXME: first we should search . and the directory the executable is in
8416 shlibpath_var=PATH
8417 ;;
8418
8419 darwin* | rhapsody*)
8420 dynamic_linker="$host_os dyld"
8421 version_type=darwin
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8425 soname_spec='${libname}${release}${major}$shared_ext'
8426 shlibpath_overrides_runpath=yes
8427 shlibpath_var=DYLD_LIBRARY_PATH
8428 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8430 if test "$GCC" = yes; then
8431 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"`
8432 else
8433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8434 fi
8435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8436 ;;
8437
8438 dgux*)
8439 version_type=linux
8440 need_lib_prefix=no
8441 need_version=no
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 shlibpath_var=LD_LIBRARY_PATH
8445 ;;
8446
8447 freebsd1*)
8448 dynamic_linker=no
8449 ;;
8450
8451 kfreebsd*-gnu)
8452 version_type=linux
8453 need_lib_prefix=no
8454 need_version=no
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 shlibpath_var=LD_LIBRARY_PATH
8458 shlibpath_overrides_runpath=no
8459 hardcode_into_libs=yes
8460 dynamic_linker='GNU ld.so'
8461 ;;
8462
8463 freebsd* | dragonfly*)
8464 # DragonFly does not have aout. When/if they implement a new
8465 # versioning mechanism, adjust this.
8466 if test -x /usr/bin/objformat; then
8467 objformat=`/usr/bin/objformat`
8468 else
8469 case $host_os in
8470 freebsd[123]*) objformat=aout ;;
8471 *) objformat=elf ;;
8472 esac
8473 fi
8474 version_type=freebsd-$objformat
8475 case $version_type in
8476 freebsd-elf*)
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8478 need_version=no
8479 need_lib_prefix=no
8480 ;;
8481 freebsd-*)
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8483 need_version=yes
8484 ;;
8485 esac
8486 shlibpath_var=LD_LIBRARY_PATH
8487 case $host_os in
8488 freebsd2*)
8489 shlibpath_overrides_runpath=yes
8490 ;;
8491 freebsd3.[01]* | freebsdelf3.[01]*)
8492 shlibpath_overrides_runpath=yes
8493 hardcode_into_libs=yes
8494 ;;
8495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8497 shlibpath_overrides_runpath=no
8498 hardcode_into_libs=yes
8499 ;;
8500 freebsd*) # from 4.6 on
8501 shlibpath_overrides_runpath=yes
8502 hardcode_into_libs=yes
8503 ;;
8504 esac
8505 ;;
8506
8507 gnu*)
8508 version_type=linux
8509 need_lib_prefix=no
8510 need_version=no
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 shlibpath_var=LD_LIBRARY_PATH
8514 hardcode_into_libs=yes
8515 ;;
8516
8517 hpux9* | hpux10* | hpux11*)
8518 # Give a soname corresponding to the major version so that dld.sl refuses to
8519 # link against other versions.
8520 version_type=sunos
8521 need_lib_prefix=no
8522 need_version=no
8523 case $host_cpu in
8524 ia64*)
8525 shrext_cmds='.so'
8526 hardcode_into_libs=yes
8527 dynamic_linker="$host_os dld.so"
8528 shlibpath_var=LD_LIBRARY_PATH
8529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 if test "X$HPUX_IA64_MODE" = X32; then
8533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8534 else
8535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8536 fi
8537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8538 ;;
8539 hppa*64*)
8540 shrext_cmds='.sl'
8541 hardcode_into_libs=yes
8542 dynamic_linker="$host_os dld.sl"
8543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8546 soname_spec='${libname}${release}${shared_ext}$major'
8547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8549 ;;
8550 *)
8551 shrext_cmds='.sl'
8552 dynamic_linker="$host_os dld.sl"
8553 shlibpath_var=SHLIB_PATH
8554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556 soname_spec='${libname}${release}${shared_ext}$major'
8557 ;;
8558 esac
8559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8560 postinstall_cmds='chmod 555 $lib'
8561 ;;
8562
8563 interix3*)
8564 version_type=linux
8565 need_lib_prefix=no
8566 need_version=no
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8570 shlibpath_var=LD_LIBRARY_PATH
8571 shlibpath_overrides_runpath=no
8572 hardcode_into_libs=yes
8573 ;;
8574
8575 irix5* | irix6* | nonstopux*)
8576 case $host_os in
8577 nonstopux*) version_type=nonstopux ;;
8578 *)
8579 if test "$lt_cv_prog_gnu_ld" = yes; then
8580 version_type=linux
8581 else
8582 version_type=irix
8583 fi ;;
8584 esac
8585 need_lib_prefix=no
8586 need_version=no
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8589 case $host_os in
8590 irix5* | nonstopux*)
8591 libsuff= shlibsuff=
8592 ;;
8593 *)
8594 case $LD in # libtool.m4 will add one of these switches to LD
8595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8596 libsuff= shlibsuff= libmagic=32-bit;;
8597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8598 libsuff=32 shlibsuff=N32 libmagic=N32;;
8599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8601 *) libsuff= shlibsuff= libmagic=never-match;;
8602 esac
8603 ;;
8604 esac
8605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8606 shlibpath_overrides_runpath=no
8607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8609 hardcode_into_libs=yes
8610 ;;
8611
8612 # No shared lib support for Linux oldld, aout, or coff.
8613 linux*oldld* | linux*aout* | linux*coff*)
8614 dynamic_linker=no
8615 ;;
8616
8617 # This must be Linux ELF.
8618 linux*)
8619 version_type=linux
8620 need_lib_prefix=no
8621 need_version=no
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 shlibpath_overrides_runpath=no
8627 # This implies no fast_install, which is unacceptable.
8628 # Some rework will be needed to allow for fast_install
8629 # before this can be enabled.
8630 hardcode_into_libs=yes
8631
8632 # find out which ABI we are using
8633 libsuff=
8634 case "$host_cpu" in
8635 x86_64*|s390x*|powerpc64*)
8636 echo '#line 8636 "configure"' > conftest.$ac_ext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; then
8642 case `/usr/bin/file conftest.$ac_objext` in
8643 *64-bit*)
8644 libsuff=64
8645 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8646 ;;
8647 esac
8648 fi
8649 rm -rf conftest*
8650 ;;
8651 esac
8652
8653 # Append ld.so.conf contents to the search path
8654 if test -f /etc/ld.so.conf; then
8655 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8656 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8657 fi
8658
8659 # We used to test for /lib/ld.so.1 and disable shared libraries on
8660 # powerpc, because MkLinux only supported shared libraries with the
8661 # GNU dynamic linker. Since this was broken with cross compilers,
8662 # most powerpc-linux boxes support dynamic linking these days and
8663 # people can always --disable-shared, the test was removed, and we
8664 # assume the GNU/Linux dynamic linker is in use.
8665 dynamic_linker='GNU/Linux ld.so'
8666 ;;
8667
8668 knetbsd*-gnu)
8669 version_type=linux
8670 need_lib_prefix=no
8671 need_version=no
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8673 soname_spec='${libname}${release}${shared_ext}$major'
8674 shlibpath_var=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath=no
8676 hardcode_into_libs=yes
8677 dynamic_linker='GNU ld.so'
8678 ;;
8679
8680 netbsd*)
8681 version_type=sunos
8682 need_lib_prefix=no
8683 need_version=no
8684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8687 dynamic_linker='NetBSD (a.out) ld.so'
8688 else
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 dynamic_linker='NetBSD ld.elf_so'
8692 fi
8693 shlibpath_var=LD_LIBRARY_PATH
8694 shlibpath_overrides_runpath=yes
8695 hardcode_into_libs=yes
8696 ;;
8697
8698 newsos6)
8699 version_type=linux
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 shlibpath_overrides_runpath=yes
8703 ;;
8704
8705 nto-qnx*)
8706 version_type=linux
8707 need_lib_prefix=no
8708 need_version=no
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8711 shlibpath_var=LD_LIBRARY_PATH
8712 shlibpath_overrides_runpath=yes
8713 ;;
8714
8715 openbsd*)
8716 version_type=sunos
8717 sys_lib_dlsearch_path_spec="/usr/lib"
8718 need_lib_prefix=no
8719 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8720 case $host_os in
8721 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8722 *) need_version=no ;;
8723 esac
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8726 shlibpath_var=LD_LIBRARY_PATH
8727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8728 case $host_os in
8729 openbsd2.[89] | openbsd2.[89].*)
8730 shlibpath_overrides_runpath=no
8731 ;;
8732 *)
8733 shlibpath_overrides_runpath=yes
8734 ;;
8735 esac
8736 else
8737 shlibpath_overrides_runpath=yes
8738 fi
8739 ;;
8740
8741 os2*)
8742 libname_spec='$name'
8743 shrext_cmds=".dll"
8744 need_lib_prefix=no
8745 library_names_spec='$libname${shared_ext} $libname.a'
8746 dynamic_linker='OS/2 ld.exe'
8747 shlibpath_var=LIBPATH
8748 ;;
8749
8750 osf3* | osf4* | osf5*)
8751 version_type=osf
8752 need_lib_prefix=no
8753 need_version=no
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8758 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8759 ;;
8760
8761 solaris*)
8762 version_type=linux
8763 need_lib_prefix=no
8764 need_version=no
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 shlibpath_var=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath=yes
8769 hardcode_into_libs=yes
8770 # ldd complains unless libraries are executable
8771 postinstall_cmds='chmod +x $lib'
8772 ;;
8773
8774 sunos4*)
8775 version_type=sunos
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8778 shlibpath_var=LD_LIBRARY_PATH
8779 shlibpath_overrides_runpath=yes
8780 if test "$with_gnu_ld" = yes; then
8781 need_lib_prefix=no
8782 fi
8783 need_version=yes
8784 ;;
8785
8786 sysv4 | sysv4.3*)
8787 version_type=linux
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 shlibpath_var=LD_LIBRARY_PATH
8791 case $host_vendor in
8792 sni)
8793 shlibpath_overrides_runpath=no
8794 need_lib_prefix=no
8795 export_dynamic_flag_spec='${wl}-Blargedynsym'
8796 runpath_var=LD_RUN_PATH
8797 ;;
8798 siemens)
8799 need_lib_prefix=no
8800 ;;
8801 motorola)
8802 need_lib_prefix=no
8803 need_version=no
8804 shlibpath_overrides_runpath=no
8805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8806 ;;
8807 esac
8808 ;;
8809
8810 sysv4*MP*)
8811 if test -d /usr/nec ;then
8812 version_type=linux
8813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8814 soname_spec='$libname${shared_ext}.$major'
8815 shlibpath_var=LD_LIBRARY_PATH
8816 fi
8817 ;;
8818
8819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8820 version_type=freebsd-elf
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 hardcode_into_libs=yes
8827 if test "$with_gnu_ld" = yes; then
8828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8829 shlibpath_overrides_runpath=no
8830 else
8831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8832 shlibpath_overrides_runpath=yes
8833 case $host_os in
8834 sco3.2v5*)
8835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8836 ;;
8837 esac
8838 fi
8839 sys_lib_dlsearch_path_spec='/usr/lib'
8840 ;;
8841
8842 uts4*)
8843 version_type=linux
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 ;;
8848
8849 *)
8850 dynamic_linker=no
8851 ;;
8852 esac
8853 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8854 echo "${ECHO_T}$dynamic_linker" >&6
8855 test "$dynamic_linker" = no && can_build_shared=no
8856
8857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8858 if test "$GCC" = yes; then
8859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8860 fi
8861
8862 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8863 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8864 hardcode_action=
8865 if test -n "$hardcode_libdir_flag_spec" || \
8866 test -n "$runpath_var" || \
8867 test "X$hardcode_automatic" = "Xyes" ; then
8868
8869 # We can hardcode non-existant directories.
8870 if test "$hardcode_direct" != no &&
8871 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8872 # have to relink, otherwise we might link with an installed library
8873 # when we should be linking with a yet-to-be-installed one
8874 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8875 test "$hardcode_minus_L" != no; then
8876 # Linking always hardcodes the temporary library directory.
8877 hardcode_action=relink
8878 else
8879 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8880 hardcode_action=immediate
8881 fi
8882 else
8883 # We cannot hardcode anything, or else we can only hardcode existing
8884 # directories.
8885 hardcode_action=unsupported
8886 fi
8887 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8888 echo "${ECHO_T}$hardcode_action" >&6
8889
8890 if test "$hardcode_action" = relink; then
8891 # Fast installation is not supported
8892 enable_fast_install=no
8893 elif test "$shlibpath_overrides_runpath" = yes ||
8894 test "$enable_shared" = no; then
8895 # Fast installation is not necessary
8896 enable_fast_install=needless
8897 fi
8898
8899 striplib=
8900 old_striplib=
8901 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8902 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8903 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8904 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8905 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8906 echo "$as_me:$LINENO: result: yes" >&5
8907 echo "${ECHO_T}yes" >&6
8908 else
8909 # FIXME - insert some real tests, host_os isn't really good enough
8910 case $host_os in
8911 darwin*)
8912 if test -n "$STRIP" ; then
8913 striplib="$STRIP -x"
8914 echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8916 else
8917 echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6
8919 fi
8920 ;;
8921 *)
8922 echo "$as_me:$LINENO: result: no" >&5
8923 echo "${ECHO_T}no" >&6
8924 ;;
8925 esac
8926 fi
8927
8928 if test "x$enable_dlopen" != xyes; then
8929 enable_dlopen=unknown
8930 enable_dlopen_self=unknown
8931 enable_dlopen_self_static=unknown
8932 else
8933 lt_cv_dlopen=no
8934 lt_cv_dlopen_libs=
8935
8936 case $host_os in
8937 beos*)
8938 lt_cv_dlopen="load_add_on"
8939 lt_cv_dlopen_libs=
8940 lt_cv_dlopen_self=yes
8941 ;;
8942
8943 mingw* | pw32*)
8944 lt_cv_dlopen="LoadLibrary"
8945 lt_cv_dlopen_libs=
8946 ;;
8947
8948 cygwin*)
8949 lt_cv_dlopen="dlopen"
8950 lt_cv_dlopen_libs=
8951 ;;
8952
8953 darwin*)
8954 # if libdl is installed we need to link against it
8955 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8956 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 ac_check_lib_save_LIBS=$LIBS
8961 LIBS="-ldl $LIBS"
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975 char dlopen ();
8976 int
8977 main ()
8978 {
8979 dlopen ();
8980 ;
8981 return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_dl_dlopen=yes
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_lib_dl_dlopen=no
9012 fi
9013 rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015 LIBS=$ac_check_lib_save_LIBS
9016 fi
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9018 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9019 if test $ac_cv_lib_dl_dlopen = yes; then
9020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9021 else
9022
9023 lt_cv_dlopen="dyld"
9024 lt_cv_dlopen_libs=
9025 lt_cv_dlopen_self=yes
9026
9027 fi
9028
9029 ;;
9030
9031 *)
9032 echo "$as_me:$LINENO: checking for shl_load" >&5
9033 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9034 if test "${ac_cv_func_shl_load+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9045 #define shl_load innocuous_shl_load
9046
9047 /* System header to define __stub macros and hopefully few prototypes,
9048 which can conflict with char shl_load (); below.
9049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9050 <limits.h> exists even on freestanding compilers. */
9051
9052 #ifdef __STDC__
9053 # include <limits.h>
9054 #else
9055 # include <assert.h>
9056 #endif
9057
9058 #undef shl_load
9059
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 {
9064 #endif
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9067 char shl_load ();
9068 /* The GNU C library defines this for functions which it implements
9069 to always fail with ENOSYS. Some functions are actually named
9070 something starting with __ and the normal name is an alias. */
9071 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9072 choke me
9073 #else
9074 char (*f) () = shl_load;
9075 #endif
9076 #ifdef __cplusplus
9077 }
9078 #endif
9079
9080 int
9081 main ()
9082 {
9083 return f != shl_load;
9084 ;
9085 return 0;
9086 }
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_cv_func_shl_load=yes
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_cv_func_shl_load=no
9116 fi
9117 rm -f conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 fi
9120 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9121 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9122 if test $ac_cv_func_shl_load = yes; then
9123 lt_cv_dlopen="shl_load"
9124 else
9125 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9126 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9127 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130 ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-ldld $LIBS"
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h. */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9138
9139 /* Override any gcc2 internal prototype to avoid an error. */
9140 #ifdef __cplusplus
9141 extern "C"
9142 #endif
9143 /* We use char because int might match the return type of a gcc2
9144 builtin and then its argument prototype would still apply. */
9145 char shl_load ();
9146 int
9147 main ()
9148 {
9149 shl_load ();
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_lib_dld_shl_load=yes
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 ac_cv_lib_dld_shl_load=no
9182 fi
9183 rm -f conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 LIBS=$ac_check_lib_save_LIBS
9186 fi
9187 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9188 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9189 if test $ac_cv_lib_dld_shl_load = yes; then
9190 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9191 else
9192 echo "$as_me:$LINENO: checking for dlopen" >&5
9193 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9194 if test "${ac_cv_func_dlopen+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9205 #define dlopen innocuous_dlopen
9206
9207 /* System header to define __stub macros and hopefully few prototypes,
9208 which can conflict with char dlopen (); below.
9209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9210 <limits.h> exists even on freestanding compilers. */
9211
9212 #ifdef __STDC__
9213 # include <limits.h>
9214 #else
9215 # include <assert.h>
9216 #endif
9217
9218 #undef dlopen
9219
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 #ifdef __cplusplus
9222 extern "C"
9223 {
9224 #endif
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9227 char dlopen ();
9228 /* The GNU C library defines this for functions which it implements
9229 to always fail with ENOSYS. Some functions are actually named
9230 something starting with __ and the normal name is an alias. */
9231 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9232 choke me
9233 #else
9234 char (*f) () = dlopen;
9235 #endif
9236 #ifdef __cplusplus
9237 }
9238 #endif
9239
9240 int
9241 main ()
9242 {
9243 return f != dlopen;
9244 ;
9245 return 0;
9246 }
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_func_dlopen=yes
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 ac_cv_func_dlopen=no
9276 fi
9277 rm -f conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 fi
9280 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9281 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9282 if test $ac_cv_func_dlopen = yes; then
9283 lt_cv_dlopen="dlopen"
9284 else
9285 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9286 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9287 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290 ac_check_lib_save_LIBS=$LIBS
9291 LIBS="-ldl $LIBS"
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298
9299 /* Override any gcc2 internal prototype to avoid an error. */
9300 #ifdef __cplusplus
9301 extern "C"
9302 #endif
9303 /* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */
9305 char dlopen ();
9306 int
9307 main ()
9308 {
9309 dlopen ();
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_c_werror_flag"
9324 || test ! -s conftest.err'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest$ac_exeext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_cv_lib_dl_dlopen=yes
9337 else
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341 ac_cv_lib_dl_dlopen=no
9342 fi
9343 rm -f conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
9345 LIBS=$ac_check_lib_save_LIBS
9346 fi
9347 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9348 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9349 if test $ac_cv_lib_dl_dlopen = yes; then
9350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9351 else
9352 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9353 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9354 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357 ac_check_lib_save_LIBS=$LIBS
9358 LIBS="-lsvld $LIBS"
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 /* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9372 char dlopen ();
9373 int
9374 main ()
9375 {
9376 dlopen ();
9377 ;
9378 return 0;
9379 }
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_lib_svld_dlopen=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_lib_svld_dlopen=no
9409 fi
9410 rm -f conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9413 fi
9414 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9415 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9416 if test $ac_cv_lib_svld_dlopen = yes; then
9417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9418 else
9419 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9420 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9421 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-ldld $LIBS"
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432
9433 /* Override any gcc2 internal prototype to avoid an error. */
9434 #ifdef __cplusplus
9435 extern "C"
9436 #endif
9437 /* We use char because int might match the return type of a gcc2
9438 builtin and then its argument prototype would still apply. */
9439 char dld_link ();
9440 int
9441 main ()
9442 {
9443 dld_link ();
9444 ;
9445 return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9450 (eval $ac_link) 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -z "$ac_c_werror_flag"
9458 || test ! -s conftest.err'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest$ac_exeext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 ac_cv_lib_dld_dld_link=yes
9471 else
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9474
9475 ac_cv_lib_dld_dld_link=no
9476 fi
9477 rm -f conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 LIBS=$ac_check_lib_save_LIBS
9480 fi
9481 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9482 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9483 if test $ac_cv_lib_dld_dld_link = yes; then
9484 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9485 fi
9486
9487
9488 fi
9489
9490
9491 fi
9492
9493
9494 fi
9495
9496
9497 fi
9498
9499
9500 fi
9501
9502 ;;
9503 esac
9504
9505 if test "x$lt_cv_dlopen" != xno; then
9506 enable_dlopen=yes
9507 else
9508 enable_dlopen=no
9509 fi
9510
9511 case $lt_cv_dlopen in
9512 dlopen)
9513 save_CPPFLAGS="$CPPFLAGS"
9514 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9515
9516 save_LDFLAGS="$LDFLAGS"
9517 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9518
9519 save_LIBS="$LIBS"
9520 LIBS="$lt_cv_dlopen_libs $LIBS"
9521
9522 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9523 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9524 if test "${lt_cv_dlopen_self+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527 if test "$cross_compiling" = yes; then :
9528 lt_cv_dlopen_self=cross
9529 else
9530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9531 lt_status=$lt_dlunknown
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9533 "configure"
9534 #include "confdefs.h"
9535
9536 #if HAVE_DLFCN_H
9537 #include <dlfcn.h>
9538 #endif
9539
9540 #include <stdio.h>
9541
9542 #ifdef RTLD_GLOBAL
9543 # define LT_DLGLOBAL RTLD_GLOBAL
9544 #else
9545 # ifdef DL_GLOBAL
9546 # define LT_DLGLOBAL DL_GLOBAL
9547 # else
9548 # define LT_DLGLOBAL 0
9549 # endif
9550 #endif
9551
9552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9553 find out it does not work in some platform. */
9554 #ifndef LT_DLLAZY_OR_NOW
9555 # ifdef RTLD_LAZY
9556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9557 # else
9558 # ifdef DL_LAZY
9559 # define LT_DLLAZY_OR_NOW DL_LAZY
9560 # else
9561 # ifdef RTLD_NOW
9562 # define LT_DLLAZY_OR_NOW RTLD_NOW
9563 # else
9564 # ifdef DL_NOW
9565 # define LT_DLLAZY_OR_NOW DL_NOW
9566 # else
9567 # define LT_DLLAZY_OR_NOW 0
9568 # endif
9569 # endif
9570 # endif
9571 # endif
9572 #endif
9573
9574 #ifdef __cplusplus
9575 extern "C" void exit (int);
9576 #endif
9577
9578 void fnord() { int i=42;}
9579 int main ()
9580 {
9581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9582 int status = $lt_dlunknown;
9583
9584 if (self)
9585 {
9586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9587 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9588 /* dlclose (self); */
9589 }
9590 else
9591 puts (dlerror ());
9592
9593 exit (status);
9594 }
9595 EOF
9596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597 (eval $ac_link) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9601 (./conftest; exit; ) >&5 2>/dev/null
9602 lt_status=$?
9603 case x$lt_status in
9604 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9605 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9606 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9607 esac
9608 else :
9609 # compilation failed
9610 lt_cv_dlopen_self=no
9611 fi
9612 fi
9613 rm -fr conftest*
9614
9615
9616 fi
9617 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9618 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9619
9620 if test "x$lt_cv_dlopen_self" = xyes; then
9621 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9622 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9623 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9624 if test "${lt_cv_dlopen_self_static+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9627 if test "$cross_compiling" = yes; then :
9628 lt_cv_dlopen_self_static=cross
9629 else
9630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9631 lt_status=$lt_dlunknown
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9633 "configure"
9634 #include "confdefs.h"
9635
9636 #if HAVE_DLFCN_H
9637 #include <dlfcn.h>
9638 #endif
9639
9640 #include <stdio.h>
9641
9642 #ifdef RTLD_GLOBAL
9643 # define LT_DLGLOBAL RTLD_GLOBAL
9644 #else
9645 # ifdef DL_GLOBAL
9646 # define LT_DLGLOBAL DL_GLOBAL
9647 # else
9648 # define LT_DLGLOBAL 0
9649 # endif
9650 #endif
9651
9652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9653 find out it does not work in some platform. */
9654 #ifndef LT_DLLAZY_OR_NOW
9655 # ifdef RTLD_LAZY
9656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9657 # else
9658 # ifdef DL_LAZY
9659 # define LT_DLLAZY_OR_NOW DL_LAZY
9660 # else
9661 # ifdef RTLD_NOW
9662 # define LT_DLLAZY_OR_NOW RTLD_NOW
9663 # else
9664 # ifdef DL_NOW
9665 # define LT_DLLAZY_OR_NOW DL_NOW
9666 # else
9667 # define LT_DLLAZY_OR_NOW 0
9668 # endif
9669 # endif
9670 # endif
9671 # endif
9672 #endif
9673
9674 #ifdef __cplusplus
9675 extern "C" void exit (int);
9676 #endif
9677
9678 void fnord() { int i=42;}
9679 int main ()
9680 {
9681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9682 int status = $lt_dlunknown;
9683
9684 if (self)
9685 {
9686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9688 /* dlclose (self); */
9689 }
9690 else
9691 puts (dlerror ());
9692
9693 exit (status);
9694 }
9695 EOF
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9701 (./conftest; exit; ) >&5 2>/dev/null
9702 lt_status=$?
9703 case x$lt_status in
9704 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9705 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9706 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9707 esac
9708 else :
9709 # compilation failed
9710 lt_cv_dlopen_self_static=no
9711 fi
9712 fi
9713 rm -fr conftest*
9714
9715
9716 fi
9717 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9718 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9719 fi
9720
9721 CPPFLAGS="$save_CPPFLAGS"
9722 LDFLAGS="$save_LDFLAGS"
9723 LIBS="$save_LIBS"
9724 ;;
9725 esac
9726
9727 case $lt_cv_dlopen_self in
9728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9729 *) enable_dlopen_self=unknown ;;
9730 esac
9731
9732 case $lt_cv_dlopen_self_static in
9733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9734 *) enable_dlopen_self_static=unknown ;;
9735 esac
9736 fi
9737
9738
9739 # Report which library types will actually be built
9740 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9741 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9742 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9743 echo "${ECHO_T}$can_build_shared" >&6
9744
9745 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9746 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9747 test "$can_build_shared" = "no" && enable_shared=no
9748
9749 # On AIX, shared libraries and static libraries use the same namespace, and
9750 # are all built from PIC.
9751 case $host_os in
9752 aix3*)
9753 test "$enable_shared" = yes && enable_static=no
9754 if test -n "$RANLIB"; then
9755 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9756 postinstall_cmds='$RANLIB $lib'
9757 fi
9758 ;;
9759
9760 aix4* | aix5*)
9761 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9762 test "$enable_shared" = yes && enable_static=no
9763 fi
9764 ;;
9765 esac
9766 echo "$as_me:$LINENO: result: $enable_shared" >&5
9767 echo "${ECHO_T}$enable_shared" >&6
9768
9769 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9770 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9771 # Make sure either enable_shared or enable_static is yes.
9772 test "$enable_shared" = yes || enable_static=yes
9773 echo "$as_me:$LINENO: result: $enable_static" >&5
9774 echo "${ECHO_T}$enable_static" >&6
9775
9776 # The else clause should only fire when bootstrapping the
9777 # libtool distribution, otherwise you forgot to ship ltmain.sh
9778 # with your package, and you will get complaints that there are
9779 # no rules to generate ltmain.sh.
9780 if test -f "$ltmain"; then
9781 # See if we are running on zsh, and set the options which allow our commands through
9782 # without removal of \ escapes.
9783 if test -n "${ZSH_VERSION+set}" ; then
9784 setopt NO_GLOB_SUBST
9785 fi
9786 # Now quote all the things that may contain metacharacters while being
9787 # careful not to overquote the AC_SUBSTed values. We take copies of the
9788 # variables and quote the copies for generation of the libtool script.
9789 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9790 SED SHELL STRIP \
9791 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9792 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9793 deplibs_check_method reload_flag reload_cmds need_locks \
9794 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9795 lt_cv_sys_global_symbol_to_c_name_address \
9796 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9797 old_postinstall_cmds old_postuninstall_cmds \
9798 compiler \
9799 CC \
9800 LD \
9801 lt_prog_compiler_wl \
9802 lt_prog_compiler_pic \
9803 lt_prog_compiler_static \
9804 lt_prog_compiler_no_builtin_flag \
9805 export_dynamic_flag_spec \
9806 thread_safe_flag_spec \
9807 whole_archive_flag_spec \
9808 enable_shared_with_static_runtimes \
9809 old_archive_cmds \
9810 old_archive_from_new_cmds \
9811 predep_objects \
9812 postdep_objects \
9813 predeps \
9814 postdeps \
9815 compiler_lib_search_path \
9816 archive_cmds \
9817 archive_expsym_cmds \
9818 postinstall_cmds \
9819 postuninstall_cmds \
9820 old_archive_from_expsyms_cmds \
9821 allow_undefined_flag \
9822 no_undefined_flag \
9823 export_symbols_cmds \
9824 hardcode_libdir_flag_spec \
9825 hardcode_libdir_flag_spec_ld \
9826 hardcode_libdir_separator \
9827 hardcode_automatic \
9828 module_cmds \
9829 module_expsym_cmds \
9830 lt_cv_prog_compiler_c_o \
9831 exclude_expsyms \
9832 include_expsyms; do
9833
9834 case $var in
9835 old_archive_cmds | \
9836 old_archive_from_new_cmds | \
9837 archive_cmds | \
9838 archive_expsym_cmds | \
9839 module_cmds | \
9840 module_expsym_cmds | \
9841 old_archive_from_expsyms_cmds | \
9842 export_symbols_cmds | \
9843 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9844 postinstall_cmds | postuninstall_cmds | \
9845 old_postinstall_cmds | old_postuninstall_cmds | \
9846 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9847 # Double-quote double-evaled strings.
9848 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9849 ;;
9850 *)
9851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9852 ;;
9853 esac
9854 done
9855
9856 case $lt_echo in
9857 *'\$0 --fallback-echo"')
9858 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9859 ;;
9860 esac
9861
9862 cfgfile="${ofile}T"
9863 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9864 $rm -f "$cfgfile"
9865 { echo "$as_me:$LINENO: creating $ofile" >&5
9866 echo "$as_me: creating $ofile" >&6;}
9867
9868 cat <<__EOF__ >> "$cfgfile"
9869 #! $SHELL
9870
9871 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9872 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9873 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9874 #
9875 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9876 # Free Software Foundation, Inc.
9877 #
9878 # This file is part of GNU Libtool:
9879 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9880 #
9881 # This program is free software; you can redistribute it and/or modify
9882 # it under the terms of the GNU General Public License as published by
9883 # the Free Software Foundation; either version 2 of the License, or
9884 # (at your option) any later version.
9885 #
9886 # This program is distributed in the hope that it will be useful, but
9887 # WITHOUT ANY WARRANTY; without even the implied warranty of
9888 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9889 # General Public License for more details.
9890 #
9891 # You should have received a copy of the GNU General Public License
9892 # along with this program; if not, write to the Free Software
9893 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9894 #
9895 # As a special exception to the GNU General Public License, if you
9896 # distribute this file as part of a program that contains a
9897 # configuration script generated by Autoconf, you may include it under
9898 # the same distribution terms that you use for the rest of that program.
9899
9900 # A sed program that does not truncate output.
9901 SED=$lt_SED
9902
9903 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9904 Xsed="$SED -e 1s/^X//"
9905
9906 # The HP-UX ksh and POSIX shell print the target directory to stdout
9907 # if CDPATH is set.
9908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9909
9910 # The names of the tagged configurations supported by this script.
9911 available_tags=
9912
9913 # ### BEGIN LIBTOOL CONFIG
9914
9915 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9916
9917 # Shell to use when invoking shell scripts.
9918 SHELL=$lt_SHELL
9919
9920 # Whether or not to build shared libraries.
9921 build_libtool_libs=$enable_shared
9922
9923 # Whether or not to build static libraries.
9924 build_old_libs=$enable_static
9925
9926 # Whether or not to add -lc for building shared libraries.
9927 build_libtool_need_lc=$archive_cmds_need_lc
9928
9929 # Whether or not to disallow shared libs when runtime libs are static
9930 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9931
9932 # Whether or not to optimize for fast installation.
9933 fast_install=$enable_fast_install
9934
9935 # The host system.
9936 host_alias=$host_alias
9937 host=$host
9938 host_os=$host_os
9939
9940 # The build system.
9941 build_alias=$build_alias
9942 build=$build
9943 build_os=$build_os
9944
9945 # An echo program that does not interpret backslashes.
9946 echo=$lt_echo
9947
9948 # The archiver.
9949 AR=$lt_AR
9950 AR_FLAGS=$lt_AR_FLAGS
9951
9952 # A C compiler.
9953 LTCC=$lt_LTCC
9954
9955 # LTCC compiler flags.
9956 LTCFLAGS=$lt_LTCFLAGS
9957
9958 # A language-specific compiler.
9959 CC=$lt_compiler
9960
9961 # Is the compiler the GNU C compiler?
9962 with_gcc=$GCC
9963
9964 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9965 gcc_ver=\`gcc -dumpversion\`
9966
9967 # An ERE matcher.
9968 EGREP=$lt_EGREP
9969
9970 # The linker used to build libraries.
9971 LD=$lt_LD
9972
9973 # Whether we need hard or soft links.
9974 LN_S=$lt_LN_S
9975
9976 # A BSD-compatible nm program.
9977 NM=$lt_NM
9978
9979 # A symbol stripping program
9980 STRIP=$lt_STRIP
9981
9982 # Used to examine libraries when file_magic_cmd begins "file"
9983 MAGIC_CMD=$MAGIC_CMD
9984
9985 # Used on cygwin: DLL creation program.
9986 DLLTOOL="$DLLTOOL"
9987
9988 # Used on cygwin: object dumper.
9989 OBJDUMP="$OBJDUMP"
9990
9991 # Used on cygwin: assembler.
9992 AS="$AS"
9993
9994 # The name of the directory that contains temporary libtool files.
9995 objdir=$objdir
9996
9997 # How to create reloadable object files.
9998 reload_flag=$lt_reload_flag
9999 reload_cmds=$lt_reload_cmds
10000
10001 # How to pass a linker flag through the compiler.
10002 wl=$lt_lt_prog_compiler_wl
10003
10004 # Object file suffix (normally "o").
10005 objext="$ac_objext"
10006
10007 # Old archive suffix (normally "a").
10008 libext="$libext"
10009
10010 # Shared library suffix (normally ".so").
10011 shrext_cmds='$shrext_cmds'
10012
10013 # Executable file suffix (normally "").
10014 exeext="$exeext"
10015
10016 # Additional compiler flags for building library objects.
10017 pic_flag=$lt_lt_prog_compiler_pic
10018 pic_mode=$pic_mode
10019
10020 # What is the maximum length of a command?
10021 max_cmd_len=$lt_cv_sys_max_cmd_len
10022
10023 # Does compiler simultaneously support -c and -o options?
10024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10025
10026 # Must we lock files when doing compilation?
10027 need_locks=$lt_need_locks
10028
10029 # Do we need the lib prefix for modules?
10030 need_lib_prefix=$need_lib_prefix
10031
10032 # Do we need a version for libraries?
10033 need_version=$need_version
10034
10035 # Whether dlopen is supported.
10036 dlopen_support=$enable_dlopen
10037
10038 # Whether dlopen of programs is supported.
10039 dlopen_self=$enable_dlopen_self
10040
10041 # Whether dlopen of statically linked programs is supported.
10042 dlopen_self_static=$enable_dlopen_self_static
10043
10044 # Compiler flag to prevent dynamic linking.
10045 link_static_flag=$lt_lt_prog_compiler_static
10046
10047 # Compiler flag to turn off builtin functions.
10048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10049
10050 # Compiler flag to allow reflexive dlopens.
10051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10052
10053 # Compiler flag to generate shared objects directly from archives.
10054 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10055
10056 # Compiler flag to generate thread-safe objects.
10057 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10058
10059 # Library versioning type.
10060 version_type=$version_type
10061
10062 # Format of library name prefix.
10063 libname_spec=$lt_libname_spec
10064
10065 # List of archive names. First name is the real one, the rest are links.
10066 # The last name is the one that the linker finds with -lNAME.
10067 library_names_spec=$lt_library_names_spec
10068
10069 # The coded name of the library, if different from the real name.
10070 soname_spec=$lt_soname_spec
10071
10072 # Commands used to build and install an old-style archive.
10073 RANLIB=$lt_RANLIB
10074 old_archive_cmds=$lt_old_archive_cmds
10075 old_postinstall_cmds=$lt_old_postinstall_cmds
10076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10077
10078 # Create an old-style archive from a shared archive.
10079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10080
10081 # Create a temporary old-style archive to link instead of a shared archive.
10082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10083
10084 # Commands used to build and install a shared archive.
10085 archive_cmds=$lt_archive_cmds
10086 archive_expsym_cmds=$lt_archive_expsym_cmds
10087 postinstall_cmds=$lt_postinstall_cmds
10088 postuninstall_cmds=$lt_postuninstall_cmds
10089
10090 # Commands used to build a loadable module (assumed same as above if empty)
10091 module_cmds=$lt_module_cmds
10092 module_expsym_cmds=$lt_module_expsym_cmds
10093
10094 # Commands to strip libraries.
10095 old_striplib=$lt_old_striplib
10096 striplib=$lt_striplib
10097
10098 # Dependencies to place before the objects being linked to create a
10099 # shared library.
10100 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10101
10102 # Dependencies to place after the objects being linked to create a
10103 # shared library.
10104 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10105
10106 # Dependencies to place before the objects being linked to create a
10107 # shared library.
10108 predeps=$lt_predeps
10109
10110 # Dependencies to place after the objects being linked to create a
10111 # shared library.
10112 postdeps=$lt_postdeps
10113
10114 # The library search path used internally by the compiler when linking
10115 # a shared library.
10116 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10117
10118 # Method to check whether dependent libraries are shared objects.
10119 deplibs_check_method=$lt_deplibs_check_method
10120
10121 # Command to use when deplibs_check_method == file_magic.
10122 file_magic_cmd=$lt_file_magic_cmd
10123
10124 # Flag that allows shared libraries with undefined symbols to be built.
10125 allow_undefined_flag=$lt_allow_undefined_flag
10126
10127 # Flag that forces no undefined symbols.
10128 no_undefined_flag=$lt_no_undefined_flag
10129
10130 # Commands used to finish a libtool library installation in a directory.
10131 finish_cmds=$lt_finish_cmds
10132
10133 # Same as above, but a single script fragment to be evaled but not shown.
10134 finish_eval=$lt_finish_eval
10135
10136 # Take the output of nm and produce a listing of raw symbols and C names.
10137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10138
10139 # Transform the output of nm in a proper C declaration
10140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10141
10142 # Transform the output of nm in a C name address pair
10143 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10144
10145 # This is the shared library runtime path variable.
10146 runpath_var=$runpath_var
10147
10148 # This is the shared library path variable.
10149 shlibpath_var=$shlibpath_var
10150
10151 # Is shlibpath searched before the hard-coded library search path?
10152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10153
10154 # How to hardcode a shared library path into an executable.
10155 hardcode_action=$hardcode_action
10156
10157 # Whether we should hardcode library paths into libraries.
10158 hardcode_into_libs=$hardcode_into_libs
10159
10160 # Flag to hardcode \$libdir into a binary during linking.
10161 # This must work even if \$libdir does not exist.
10162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10163
10164 # If ld is used when linking, flag to hardcode \$libdir into
10165 # a binary during linking. This must work even if \$libdir does
10166 # not exist.
10167 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10168
10169 # Whether we need a single -rpath flag with a separated argument.
10170 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10171
10172 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10173 # resulting binary.
10174 hardcode_direct=$hardcode_direct
10175
10176 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10177 # resulting binary.
10178 hardcode_minus_L=$hardcode_minus_L
10179
10180 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10181 # the resulting binary.
10182 hardcode_shlibpath_var=$hardcode_shlibpath_var
10183
10184 # Set to yes if building a shared library automatically hardcodes DIR into the library
10185 # and all subsequent libraries and executables linked against it.
10186 hardcode_automatic=$hardcode_automatic
10187
10188 # Variables whose values should be saved in libtool wrapper scripts and
10189 # restored at relink time.
10190 variables_saved_for_relink="$variables_saved_for_relink"
10191
10192 # Whether libtool must link a program against all its dependency libraries.
10193 link_all_deplibs=$link_all_deplibs
10194
10195 # Compile-time system search path for libraries
10196 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10197
10198 # Run-time system search path for libraries
10199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10200
10201 # Fix the shell variable \$srcfile for the compiler.
10202 fix_srcfile_path="$fix_srcfile_path"
10203
10204 # Set to yes if exported symbols are required.
10205 always_export_symbols=$always_export_symbols
10206
10207 # The commands to list exported symbols.
10208 export_symbols_cmds=$lt_export_symbols_cmds
10209
10210 # The commands to extract the exported symbol list from a shared archive.
10211 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10212
10213 # Symbols that should not be listed in the preloaded symbols.
10214 exclude_expsyms=$lt_exclude_expsyms
10215
10216 # Symbols that must always be exported.
10217 include_expsyms=$lt_include_expsyms
10218
10219 # ### END LIBTOOL CONFIG
10220
10221 __EOF__
10222
10223
10224 case $host_os in
10225 aix3*)
10226 cat <<\EOF >> "$cfgfile"
10227
10228 # AIX sometimes has problems with the GCC collect2 program. For some
10229 # reason, if we set the COLLECT_NAMES environment variable, the problems
10230 # vanish in a puff of smoke.
10231 if test "X${COLLECT_NAMES+set}" != Xset; then
10232 COLLECT_NAMES=
10233 export COLLECT_NAMES
10234 fi
10235 EOF
10236 ;;
10237 esac
10238
10239 # We use sed instead of cat because bash on DJGPP gets confused if
10240 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10241 # text mode, it properly converts lines to CR/LF. This bash problem
10242 # is reportedly fixed, but why not run on old versions too?
10243 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10244
10245 mv -f "$cfgfile" "$ofile" || \
10246 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10247 chmod +x "$ofile"
10248
10249 else
10250 # If there is no Makefile yet, we rely on a make rule to execute
10251 # `config.status --recheck' to rerun these tests and create the
10252 # libtool script then.
10253 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10254 if test -f "$ltmain_in"; then
10255 test -f Makefile && make "$ltmain"
10256 fi
10257 fi
10258
10259
10260 ac_ext=c
10261 ac_cpp='$CPP $CPPFLAGS'
10262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10265
10266 CC="$lt_save_CC"
10267
10268
10269 # Check whether --with-tags or --without-tags was given.
10270 if test "${with_tags+set}" = set; then
10271 withval="$with_tags"
10272 tagnames="$withval"
10273 fi;
10274
10275 if test -f "$ltmain" && test -n "$tagnames"; then
10276 if test ! -f "${ofile}"; then
10277 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10278 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10279 fi
10280
10281 if test -z "$LTCC"; then
10282 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10283 if test -z "$LTCC"; then
10284 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10285 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10286 else
10287 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10288 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10289 fi
10290 fi
10291 if test -z "$LTCFLAGS"; then
10292 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10293 fi
10294
10295 # Extract list of available tagged configurations in $ofile.
10296 # Note that this assumes the entire list is on one line.
10297 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10298
10299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10300 for tagname in $tagnames; do
10301 IFS="$lt_save_ifs"
10302 # Check whether tagname contains only valid characters
10303 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10304 "") ;;
10305 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10306 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10307 { (exit 1); exit 1; }; }
10308 ;;
10309 esac
10310
10311 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10312 then
10313 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10314 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10315 { (exit 1); exit 1; }; }
10316 fi
10317
10318 # Update the list of available tags.
10319 if test -n "$tagname"; then
10320 echo appending configuration tag \"$tagname\" to $ofile
10321
10322 case $tagname in
10323 CXX)
10324 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10325 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10326 (test "X$CXX" != "Xg++"))) ; then
10327 ac_ext=cc
10328 ac_cpp='$CXXCPP $CPPFLAGS'
10329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10332
10333
10334
10335
10336 archive_cmds_need_lc_CXX=no
10337 allow_undefined_flag_CXX=
10338 always_export_symbols_CXX=no
10339 archive_expsym_cmds_CXX=
10340 export_dynamic_flag_spec_CXX=
10341 hardcode_direct_CXX=no
10342 hardcode_libdir_flag_spec_CXX=
10343 hardcode_libdir_flag_spec_ld_CXX=
10344 hardcode_libdir_separator_CXX=
10345 hardcode_minus_L_CXX=no
10346 hardcode_shlibpath_var_CXX=unsupported
10347 hardcode_automatic_CXX=no
10348 module_cmds_CXX=
10349 module_expsym_cmds_CXX=
10350 link_all_deplibs_CXX=unknown
10351 old_archive_cmds_CXX=$old_archive_cmds
10352 no_undefined_flag_CXX=
10353 whole_archive_flag_spec_CXX=
10354 enable_shared_with_static_runtimes_CXX=no
10355
10356 # Dependencies to place before and after the object being linked:
10357 predep_objects_CXX=
10358 postdep_objects_CXX=
10359 predeps_CXX=
10360 postdeps_CXX=
10361 compiler_lib_search_path_CXX=
10362
10363 # Source file extension for C++ test sources.
10364 ac_ext=cpp
10365
10366 # Object file extension for compiled C++ test sources.
10367 objext=o
10368 objext_CXX=$objext
10369
10370 # Code to be used in simple compile tests
10371 lt_simple_compile_test_code="int some_variable = 0;\n"
10372
10373 # Code to be used in simple link tests
10374 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10375
10376 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10377
10378 # If no C compiler was specified, use CC.
10379 LTCC=${LTCC-"$CC"}
10380
10381 # If no C compiler flags were specified, use CFLAGS.
10382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10383
10384 # Allow CC to be a program name with arguments.
10385 compiler=$CC
10386
10387
10388 # save warnings/boilerplate of simple test code
10389 ac_outfile=conftest.$ac_objext
10390 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10392 _lt_compiler_boilerplate=`cat conftest.err`
10393 $rm conftest*
10394
10395 ac_outfile=conftest.$ac_objext
10396 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10398 _lt_linker_boilerplate=`cat conftest.err`
10399 $rm conftest*
10400
10401
10402 # Allow CC to be a program name with arguments.
10403 lt_save_CC=$CC
10404 lt_save_LD=$LD
10405 lt_save_GCC=$GCC
10406 GCC=$GXX
10407 lt_save_with_gnu_ld=$with_gnu_ld
10408 lt_save_path_LD=$lt_cv_path_LD
10409 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10410 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10411 else
10412 $as_unset lt_cv_prog_gnu_ld
10413 fi
10414 if test -n "${lt_cv_path_LDCXX+set}"; then
10415 lt_cv_path_LD=$lt_cv_path_LDCXX
10416 else
10417 $as_unset lt_cv_path_LD
10418 fi
10419 test -z "${LDCXX+set}" || LD=$LDCXX
10420 CC=${CXX-"c++"}
10421 compiler=$CC
10422 compiler_CXX=$CC
10423 for cc_temp in $compiler""; do
10424 case $cc_temp in
10425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10427 \-*) ;;
10428 *) break;;
10429 esac
10430 done
10431 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10432
10433
10434 # We don't want -fno-exception wen compiling C++ code, so set the
10435 # no_builtin_flag separately
10436 if test "$GXX" = yes; then
10437 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10438 else
10439 lt_prog_compiler_no_builtin_flag_CXX=
10440 fi
10441
10442 if test "$GXX" = yes; then
10443 # Set up default GNU C++ configuration
10444
10445
10446 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10447 if test "${with_gnu_ld+set}" = set; then
10448 withval="$with_gnu_ld"
10449 test "$withval" = no || with_gnu_ld=yes
10450 else
10451 with_gnu_ld=no
10452 fi;
10453 ac_prog=ld
10454 if test "$GCC" = yes; then
10455 # Check if gcc -print-prog-name=ld gives a path.
10456 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10457 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10458 case $host in
10459 *-*-mingw*)
10460 # gcc leaves a trailing carriage return which upsets mingw
10461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10462 *)
10463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10464 esac
10465 case $ac_prog in
10466 # Accept absolute paths.
10467 [\\/]* | ?:[\\/]*)
10468 re_direlt='/[^/][^/]*/\.\./'
10469 # Canonicalize the pathname of ld
10470 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10471 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10472 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10473 done
10474 test -z "$LD" && LD="$ac_prog"
10475 ;;
10476 "")
10477 # If it fails, then pretend we aren't using GCC.
10478 ac_prog=ld
10479 ;;
10480 *)
10481 # If it is relative, then search for the first ld in PATH.
10482 with_gnu_ld=unknown
10483 ;;
10484 esac
10485 elif test "$with_gnu_ld" = yes; then
10486 echo "$as_me:$LINENO: checking for GNU ld" >&5
10487 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10488 else
10489 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10490 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10491 fi
10492 if test "${lt_cv_path_LD+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495 if test -z "$LD"; then
10496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10497 for ac_dir in $PATH; do
10498 IFS="$lt_save_ifs"
10499 test -z "$ac_dir" && ac_dir=.
10500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10501 lt_cv_path_LD="$ac_dir/$ac_prog"
10502 # Check to see if the program is GNU ld. I'd rather use --version,
10503 # but apparently some variants of GNU ld only accept -v.
10504 # Break only if it was the GNU/non-GNU ld that we prefer.
10505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10506 *GNU* | *'with BFD'*)
10507 test "$with_gnu_ld" != no && break
10508 ;;
10509 *)
10510 test "$with_gnu_ld" != yes && break
10511 ;;
10512 esac
10513 fi
10514 done
10515 IFS="$lt_save_ifs"
10516 else
10517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10518 fi
10519 fi
10520
10521 LD="$lt_cv_path_LD"
10522 if test -n "$LD"; then
10523 echo "$as_me:$LINENO: result: $LD" >&5
10524 echo "${ECHO_T}$LD" >&6
10525 else
10526 echo "$as_me:$LINENO: result: no" >&5
10527 echo "${ECHO_T}no" >&6
10528 fi
10529 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10530 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10531 { (exit 1); exit 1; }; }
10532 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10533 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10534 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10538 case `$LD -v 2>&1 </dev/null` in
10539 *GNU* | *'with BFD'*)
10540 lt_cv_prog_gnu_ld=yes
10541 ;;
10542 *)
10543 lt_cv_prog_gnu_ld=no
10544 ;;
10545 esac
10546 fi
10547 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10548 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10549 with_gnu_ld=$lt_cv_prog_gnu_ld
10550
10551
10552
10553 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10554 # archiving commands below assume that GNU ld is being used.
10555 if test "$with_gnu_ld" = yes; then
10556 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557 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'
10558
10559 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10561
10562 # If archive_cmds runs LD, not CC, wlarc should be empty
10563 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10564 # investigate it a little bit more. (MM)
10565 wlarc='${wl}'
10566
10567 # ancient GNU ld didn't support --whole-archive et. al.
10568 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10569 grep 'no-whole-archive' > /dev/null; then
10570 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10571 else
10572 whole_archive_flag_spec_CXX=
10573 fi
10574 else
10575 with_gnu_ld=no
10576 wlarc=
10577
10578 # A generic and very simple default shared library creation
10579 # command for GNU C++ for the case where it uses the native
10580 # linker, instead of GNU ld. If possible, this setting should
10581 # overridden to take advantage of the native linker features on
10582 # the platform it is being used on.
10583 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10584 fi
10585
10586 # Commands to make compiler produce verbose output that lists
10587 # what "hidden" libraries, object files and flags are used when
10588 # linking a shared library.
10589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10590
10591 else
10592 GXX=no
10593 with_gnu_ld=no
10594 wlarc=
10595 fi
10596
10597 # PORTME: fill in a description of your system's C++ link characteristics
10598 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10599 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10600 ld_shlibs_CXX=yes
10601 case $host_os in
10602 aix3*)
10603 # FIXME: insert proper C++ library support
10604 ld_shlibs_CXX=no
10605 ;;
10606 aix4* | aix5*)
10607 if test "$host_cpu" = ia64; then
10608 # On IA64, the linker does run time linking by default, so we don't
10609 # have to do anything special.
10610 aix_use_runtimelinking=no
10611 exp_sym_flag='-Bexport'
10612 no_entry_flag=""
10613 else
10614 aix_use_runtimelinking=no
10615
10616 # Test if we are trying to use run time linking or normal
10617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10618 # need to do runtime linking.
10619 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10620 for ld_flag in $LDFLAGS; do
10621 case $ld_flag in
10622 *-brtl*)
10623 aix_use_runtimelinking=yes
10624 break
10625 ;;
10626 esac
10627 done
10628 ;;
10629 esac
10630
10631 exp_sym_flag='-bexport'
10632 no_entry_flag='-bnoentry'
10633 fi
10634
10635 # When large executables or shared objects are built, AIX ld can
10636 # have problems creating the table of contents. If linking a library
10637 # or program results in "error TOC overflow" add -mminimal-toc to
10638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10640
10641 archive_cmds_CXX=''
10642 hardcode_direct_CXX=yes
10643 hardcode_libdir_separator_CXX=':'
10644 link_all_deplibs_CXX=yes
10645
10646 if test "$GXX" = yes; then
10647 case $host_os in aix4.[012]|aix4.[012].*)
10648 # We only want to do this on AIX 4.2 and lower, the check
10649 # below for broken collect2 doesn't work under 4.3+
10650 collect2name=`${CC} -print-prog-name=collect2`
10651 if test -f "$collect2name" && \
10652 strings "$collect2name" | grep resolve_lib_name >/dev/null
10653 then
10654 # We have reworked collect2
10655 hardcode_direct_CXX=yes
10656 else
10657 # We have old collect2
10658 hardcode_direct_CXX=unsupported
10659 # It fails to find uninstalled libraries when the uninstalled
10660 # path is not listed in the libpath. Setting hardcode_minus_L
10661 # to unsupported forces relinking
10662 hardcode_minus_L_CXX=yes
10663 hardcode_libdir_flag_spec_CXX='-L$libdir'
10664 hardcode_libdir_separator_CXX=
10665 fi
10666 ;;
10667 esac
10668 shared_flag='-shared'
10669 if test "$aix_use_runtimelinking" = yes; then
10670 shared_flag="$shared_flag "'${wl}-G'
10671 fi
10672 else
10673 # not using gcc
10674 if test "$host_cpu" = ia64; then
10675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10676 # chokes on -Wl,-G. The following line is correct:
10677 shared_flag='-G'
10678 else
10679 if test "$aix_use_runtimelinking" = yes; then
10680 shared_flag='${wl}-G'
10681 else
10682 shared_flag='${wl}-bM:SRE'
10683 fi
10684 fi
10685 fi
10686
10687 # It seems that -bexpall does not export symbols beginning with
10688 # underscore (_), so it is better to generate a list of symbols to export.
10689 always_export_symbols_CXX=yes
10690 if test "$aix_use_runtimelinking" = yes; then
10691 # Warning - without using the other runtime loading flags (-brtl),
10692 # -berok will link without error, but may produce a broken library.
10693 allow_undefined_flag_CXX='-berok'
10694 # Determine the default libpath from the value encoded in an empty executable.
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701
10702 int
10703 main ()
10704 {
10705
10706 ;
10707 return 0;
10708 }
10709 _ACEOF
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10712 (eval $ac_link) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_cxx_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest$ac_exeext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732
10733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10734 }'`
10735 # Check for a 64-bit object if we didn't find anything.
10736 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; }
10737 }'`; fi
10738 else
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 fi
10743 rm -f conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10746
10747 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10748
10749 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10750 else
10751 if test "$host_cpu" = ia64; then
10752 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10753 allow_undefined_flag_CXX="-z nodefs"
10754 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10755 else
10756 # Determine the default libpath from the value encoded in an empty executable.
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763
10764 int
10765 main ()
10766 {
10767
10768 ;
10769 return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>conftest.er1
10775 ac_status=$?
10776 grep -v '^ *+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -z "$ac_cxx_werror_flag"
10782 || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794
10795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10796 }'`
10797 # Check for a 64-bit object if we didn't find anything.
10798 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; }
10799 }'`; fi
10800 else
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 fi
10805 rm -f conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10808
10809 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10810 # Warning - without using the other run time loading flags,
10811 # -berok will link without error, but may produce a broken library.
10812 no_undefined_flag_CXX=' ${wl}-bernotok'
10813 allow_undefined_flag_CXX=' ${wl}-berok'
10814 # Exported symbols can be pulled into shared objects from archives
10815 whole_archive_flag_spec_CXX='$convenience'
10816 archive_cmds_need_lc_CXX=yes
10817 # This is similar to how AIX traditionally builds its shared libraries.
10818 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10819 fi
10820 fi
10821 ;;
10822
10823 beos*)
10824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10825 allow_undefined_flag_CXX=unsupported
10826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10827 # support --undefined. This deserves some investigation. FIXME
10828 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10829 else
10830 ld_shlibs_CXX=no
10831 fi
10832 ;;
10833
10834 chorus*)
10835 case $cc_basename in
10836 *)
10837 # FIXME: insert proper C++ library support
10838 ld_shlibs_CXX=no
10839 ;;
10840 esac
10841 ;;
10842
10843 cygwin* | mingw* | pw32*)
10844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10845 # as there is no search path for DLLs.
10846 hardcode_libdir_flag_spec_CXX='-L$libdir'
10847 allow_undefined_flag_CXX=unsupported
10848 always_export_symbols_CXX=no
10849 enable_shared_with_static_runtimes_CXX=yes
10850
10851 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10852 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10853 # If the export-symbols file already is a .def file (1st line
10854 # is EXPORTS), use it as is; otherwise, prepend...
10855 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10856 cp $export_symbols $output_objdir/$soname.def;
10857 else
10858 echo EXPORTS > $output_objdir/$soname.def;
10859 cat $export_symbols >> $output_objdir/$soname.def;
10860 fi~
10861 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10862 else
10863 ld_shlibs_CXX=no
10864 fi
10865 ;;
10866 darwin* | rhapsody*)
10867 case $host_os in
10868 rhapsody* | darwin1.[012])
10869 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10870 ;;
10871 *) # Darwin 1.3 on
10872 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10873 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10874 else
10875 case ${MACOSX_DEPLOYMENT_TARGET} in
10876 10.[012])
10877 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10878 ;;
10879 10.*)
10880 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10881 ;;
10882 esac
10883 fi
10884 ;;
10885 esac
10886 archive_cmds_need_lc_CXX=no
10887 hardcode_direct_CXX=no
10888 hardcode_automatic_CXX=yes
10889 hardcode_shlibpath_var_CXX=unsupported
10890 whole_archive_flag_spec_CXX=''
10891 link_all_deplibs_CXX=yes
10892
10893 if test "$GXX" = yes ; then
10894 lt_int_apple_cc_single_mod=no
10895 output_verbose_link_cmd='echo'
10896 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10897 lt_int_apple_cc_single_mod=yes
10898 fi
10899 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10900 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10901 else
10902 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10903 fi
10904 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10905 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10906 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10907 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}'
10908 else
10909 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10910 fi
10911 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}'
10912 else
10913 case $cc_basename in
10914 xlc*)
10915 output_verbose_link_cmd='echo'
10916 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10917 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10919 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10920 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}'
10921 ;;
10922 *)
10923 ld_shlibs_CXX=no
10924 ;;
10925 esac
10926 fi
10927 ;;
10928
10929 dgux*)
10930 case $cc_basename in
10931 ec++*)
10932 # FIXME: insert proper C++ library support
10933 ld_shlibs_CXX=no
10934 ;;
10935 ghcx*)
10936 # Green Hills C++ Compiler
10937 # FIXME: insert proper C++ library support
10938 ld_shlibs_CXX=no
10939 ;;
10940 *)
10941 # FIXME: insert proper C++ library support
10942 ld_shlibs_CXX=no
10943 ;;
10944 esac
10945 ;;
10946 freebsd[12]*)
10947 # C++ shared libraries reported to be fairly broken before switch to ELF
10948 ld_shlibs_CXX=no
10949 ;;
10950 freebsd-elf*)
10951 archive_cmds_need_lc_CXX=no
10952 ;;
10953 freebsd* | kfreebsd*-gnu | dragonfly*)
10954 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10955 # conventions
10956 ld_shlibs_CXX=yes
10957 ;;
10958 gnu*)
10959 ;;
10960 hpux9*)
10961 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10962 hardcode_libdir_separator_CXX=:
10963 export_dynamic_flag_spec_CXX='${wl}-E'
10964 hardcode_direct_CXX=yes
10965 hardcode_minus_L_CXX=yes # Not in the search PATH,
10966 # but as the default
10967 # location of the library.
10968
10969 case $cc_basename in
10970 CC*)
10971 # FIXME: insert proper C++ library support
10972 ld_shlibs_CXX=no
10973 ;;
10974 aCC*)
10975 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'
10976 # Commands to make compiler produce verbose output that lists
10977 # what "hidden" libraries, object files and flags are used when
10978 # linking a shared library.
10979 #
10980 # There doesn't appear to be a way to prevent this compiler from
10981 # explicitly linking system object files so we need to strip them
10982 # from the output so that they don't get included in the library
10983 # dependencies.
10984 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'
10985 ;;
10986 *)
10987 if test "$GXX" = yes; then
10988 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'
10989 else
10990 # FIXME: insert proper C++ library support
10991 ld_shlibs_CXX=no
10992 fi
10993 ;;
10994 esac
10995 ;;
10996 hpux10*|hpux11*)
10997 if test $with_gnu_ld = no; then
10998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10999 hardcode_libdir_separator_CXX=:
11000
11001 case $host_cpu in
11002 hppa*64*|ia64*)
11003 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11004 ;;
11005 *)
11006 export_dynamic_flag_spec_CXX='${wl}-E'
11007 ;;
11008 esac
11009 fi
11010 case $host_cpu in
11011 hppa*64*|ia64*)
11012 hardcode_direct_CXX=no
11013 hardcode_shlibpath_var_CXX=no
11014 ;;
11015 *)
11016 hardcode_direct_CXX=yes
11017 hardcode_minus_L_CXX=yes # Not in the search PATH,
11018 # but as the default
11019 # location of the library.
11020 ;;
11021 esac
11022
11023 case $cc_basename in
11024 CC*)
11025 # FIXME: insert proper C++ library support
11026 ld_shlibs_CXX=no
11027 ;;
11028 aCC*)
11029 case $host_cpu in
11030 hppa*64*)
11031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11032 ;;
11033 ia64*)
11034 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11035 ;;
11036 *)
11037 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11038 ;;
11039 esac
11040 # Commands to make compiler produce verbose output that lists
11041 # what "hidden" libraries, object files and flags are used when
11042 # linking a shared library.
11043 #
11044 # There doesn't appear to be a way to prevent this compiler from
11045 # explicitly linking system object files so we need to strip them
11046 # from the output so that they don't get included in the library
11047 # dependencies.
11048 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'
11049 ;;
11050 *)
11051 if test "$GXX" = yes; then
11052 if test $with_gnu_ld = no; then
11053 case $host_cpu in
11054 hppa*64*)
11055 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11056 ;;
11057 ia64*)
11058 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11059 ;;
11060 *)
11061 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'
11062 ;;
11063 esac
11064 fi
11065 else
11066 # FIXME: insert proper C++ library support
11067 ld_shlibs_CXX=no
11068 fi
11069 ;;
11070 esac
11071 ;;
11072 interix3*)
11073 hardcode_direct_CXX=no
11074 hardcode_shlibpath_var_CXX=no
11075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11076 export_dynamic_flag_spec_CXX='${wl}-E'
11077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11078 # Instead, shared libraries are loaded at an image base (0x10000000 by
11079 # default) and relocated if they conflict, which is a slow very memory
11080 # consuming and fragmenting process. To avoid this, we pick a random,
11081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11083 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11084 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11085 ;;
11086 irix5* | irix6*)
11087 case $cc_basename in
11088 CC*)
11089 # SGI C++
11090 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11091
11092 # Archives containing C++ object files must be created using
11093 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11094 # necessary to make sure instantiated templates are included
11095 # in the archive.
11096 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11097 ;;
11098 *)
11099 if test "$GXX" = yes; then
11100 if test "$with_gnu_ld" = no; then
11101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11102 else
11103 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'
11104 fi
11105 fi
11106 link_all_deplibs_CXX=yes
11107 ;;
11108 esac
11109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11110 hardcode_libdir_separator_CXX=:
11111 ;;
11112 linux*)
11113 case $cc_basename in
11114 KCC*)
11115 # Kuck and Associates, Inc. (KAI) C++ Compiler
11116
11117 # KCC will only create a shared library if the output file
11118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11119 # to its proper name (with version) after linking.
11120 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'
11121 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'
11122 # Commands to make compiler produce verbose output that lists
11123 # what "hidden" libraries, object files and flags are used when
11124 # linking a shared library.
11125 #
11126 # There doesn't appear to be a way to prevent this compiler from
11127 # explicitly linking system object files so we need to strip them
11128 # from the output so that they don't get included in the library
11129 # dependencies.
11130 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'
11131
11132 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11134
11135 # Archives containing C++ object files must be created using
11136 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11137 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11138 ;;
11139 icpc*)
11140 # Intel C++
11141 with_gnu_ld=yes
11142 # version 8.0 and above of icpc choke on multiply defined symbols
11143 # if we add $predep_objects and $postdep_objects, however 7.1 and
11144 # earlier do not add the objects themselves.
11145 case `$CC -V 2>&1` in
11146 *"Version 7."*)
11147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 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'
11149 ;;
11150 *) # Version 8.0 or newer
11151 tmp_idyn=
11152 case $host_cpu in
11153 ia64*) tmp_idyn=' -i_dynamic';;
11154 esac
11155 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11156 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11157 ;;
11158 esac
11159 archive_cmds_need_lc_CXX=no
11160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11161 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11162 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11163 ;;
11164 pgCC*)
11165 # Portland Group C++ compiler
11166 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11167 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11168
11169 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11170 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11171 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11172 ;;
11173 cxx*)
11174 # Compaq C++
11175 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11176 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'
11177
11178 runpath_var=LD_RUN_PATH
11179 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11180 hardcode_libdir_separator_CXX=:
11181
11182 # Commands to make compiler produce verbose output that lists
11183 # what "hidden" libraries, object files and flags are used when
11184 # linking a shared library.
11185 #
11186 # There doesn't appear to be a way to prevent this compiler from
11187 # explicitly linking system object files so we need to strip them
11188 # from the output so that they don't get included in the library
11189 # dependencies.
11190 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'
11191 ;;
11192 esac
11193 ;;
11194 lynxos*)
11195 # FIXME: insert proper C++ library support
11196 ld_shlibs_CXX=no
11197 ;;
11198 m88k*)
11199 # FIXME: insert proper C++ library support
11200 ld_shlibs_CXX=no
11201 ;;
11202 mvs*)
11203 case $cc_basename in
11204 cxx*)
11205 # FIXME: insert proper C++ library support
11206 ld_shlibs_CXX=no
11207 ;;
11208 *)
11209 # FIXME: insert proper C++ library support
11210 ld_shlibs_CXX=no
11211 ;;
11212 esac
11213 ;;
11214 netbsd*)
11215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11216 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11217 wlarc=
11218 hardcode_libdir_flag_spec_CXX='-R$libdir'
11219 hardcode_direct_CXX=yes
11220 hardcode_shlibpath_var_CXX=no
11221 fi
11222 # Workaround some broken pre-1.5 toolchains
11223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11224 ;;
11225 openbsd2*)
11226 # C++ shared libraries are fairly broken
11227 ld_shlibs_CXX=no
11228 ;;
11229 openbsd*)
11230 hardcode_direct_CXX=yes
11231 hardcode_shlibpath_var_CXX=no
11232 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11235 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11236 export_dynamic_flag_spec_CXX='${wl}-E'
11237 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11238 fi
11239 output_verbose_link_cmd='echo'
11240 ;;
11241 osf3*)
11242 case $cc_basename in
11243 KCC*)
11244 # Kuck and Associates, Inc. (KAI) C++ Compiler
11245
11246 # KCC will only create a shared library if the output file
11247 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11248 # to its proper name (with version) after linking.
11249 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'
11250
11251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11252 hardcode_libdir_separator_CXX=:
11253
11254 # Archives containing C++ object files must be created using
11255 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11256 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11257
11258 ;;
11259 RCC*)
11260 # Rational C++ 2.4.1
11261 # FIXME: insert proper C++ library support
11262 ld_shlibs_CXX=no
11263 ;;
11264 cxx*)
11265 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11266 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11267
11268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11269 hardcode_libdir_separator_CXX=:
11270
11271 # Commands to make compiler produce verbose output that lists
11272 # what "hidden" libraries, object files and flags are used when
11273 # linking a shared library.
11274 #
11275 # There doesn't appear to be a way to prevent this compiler from
11276 # explicitly linking system object files so we need to strip them
11277 # from the output so that they don't get included in the library
11278 # dependencies.
11279 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'
11280 ;;
11281 *)
11282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11283 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11284 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11285
11286 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11287 hardcode_libdir_separator_CXX=:
11288
11289 # Commands to make compiler produce verbose output that lists
11290 # what "hidden" libraries, object files and flags are used when
11291 # linking a shared library.
11292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11293
11294 else
11295 # FIXME: insert proper C++ library support
11296 ld_shlibs_CXX=no
11297 fi
11298 ;;
11299 esac
11300 ;;
11301 osf4* | osf5*)
11302 case $cc_basename in
11303 KCC*)
11304 # Kuck and Associates, Inc. (KAI) C++ Compiler
11305
11306 # KCC will only create a shared library if the output file
11307 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11308 # to its proper name (with version) after linking.
11309 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'
11310
11311 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11312 hardcode_libdir_separator_CXX=:
11313
11314 # Archives containing C++ object files must be created using
11315 # the KAI C++ compiler.
11316 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11317 ;;
11318 RCC*)
11319 # Rational C++ 2.4.1
11320 # FIXME: insert proper C++ library support
11321 ld_shlibs_CXX=no
11322 ;;
11323 cxx*)
11324 allow_undefined_flag_CXX=' -expect_unresolved \*'
11325 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11326 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11327 echo "-hidden">> $lib.exp~
11328 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11329 $rm $lib.exp'
11330
11331 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11332 hardcode_libdir_separator_CXX=:
11333
11334 # Commands to make compiler produce verbose output that lists
11335 # what "hidden" libraries, object files and flags are used when
11336 # linking a shared library.
11337 #
11338 # There doesn't appear to be a way to prevent this compiler from
11339 # explicitly linking system object files so we need to strip them
11340 # from the output so that they don't get included in the library
11341 # dependencies.
11342 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'
11343 ;;
11344 *)
11345 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11346 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11347 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11348
11349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11350 hardcode_libdir_separator_CXX=:
11351
11352 # Commands to make compiler produce verbose output that lists
11353 # what "hidden" libraries, object files and flags are used when
11354 # linking a shared library.
11355 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11356
11357 else
11358 # FIXME: insert proper C++ library support
11359 ld_shlibs_CXX=no
11360 fi
11361 ;;
11362 esac
11363 ;;
11364 psos*)
11365 # FIXME: insert proper C++ library support
11366 ld_shlibs_CXX=no
11367 ;;
11368 sunos4*)
11369 case $cc_basename in
11370 CC*)
11371 # Sun C++ 4.x
11372 # FIXME: insert proper C++ library support
11373 ld_shlibs_CXX=no
11374 ;;
11375 lcc*)
11376 # Lucid
11377 # FIXME: insert proper C++ library support
11378 ld_shlibs_CXX=no
11379 ;;
11380 *)
11381 # FIXME: insert proper C++ library support
11382 ld_shlibs_CXX=no
11383 ;;
11384 esac
11385 ;;
11386 solaris*)
11387 case $cc_basename in
11388 CC*)
11389 # Sun C++ 4.2, 5.x and Centerline C++
11390 archive_cmds_need_lc_CXX=yes
11391 no_undefined_flag_CXX=' -zdefs'
11392 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11393 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11394 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11395
11396 hardcode_libdir_flag_spec_CXX='-R$libdir'
11397 hardcode_shlibpath_var_CXX=no
11398 case $host_os in
11399 solaris2.[0-5] | solaris2.[0-5].*) ;;
11400 *)
11401 # The C++ compiler is used as linker so we must use $wl
11402 # flag to pass the commands to the underlying system
11403 # linker. We must also pass each convience library through
11404 # to the system linker between allextract/defaultextract.
11405 # The C++ compiler will combine linker options so we
11406 # cannot just pass the convience library names through
11407 # without $wl.
11408 # Supported since Solaris 2.6 (maybe 2.5.1?)
11409 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11410 ;;
11411 esac
11412 link_all_deplibs_CXX=yes
11413
11414 output_verbose_link_cmd='echo'
11415
11416 # Archives containing C++ object files must be created using
11417 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11418 # necessary to make sure instantiated templates are included
11419 # in the archive.
11420 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11421 ;;
11422 gcx*)
11423 # Green Hills C++ Compiler
11424 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11425
11426 # The C++ compiler must be used to create the archive.
11427 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11428 ;;
11429 *)
11430 # GNU C++ compiler with Solaris linker
11431 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11432 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11433 if $CC --version | grep -v '^2\.7' > /dev/null; then
11434 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11435 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11436 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11437
11438 # Commands to make compiler produce verbose output that lists
11439 # what "hidden" libraries, object files and flags are used when
11440 # linking a shared library.
11441 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11442 else
11443 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11444 # platform.
11445 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11446 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11447 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11448
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11452 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11453 fi
11454
11455 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11456 fi
11457 ;;
11458 esac
11459 ;;
11460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11461 no_undefined_flag_CXX='${wl}-z,text'
11462 archive_cmds_need_lc_CXX=no
11463 hardcode_shlibpath_var_CXX=no
11464 runpath_var='LD_RUN_PATH'
11465
11466 case $cc_basename in
11467 CC*)
11468 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11469 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11470 ;;
11471 *)
11472 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11474 ;;
11475 esac
11476 ;;
11477 sysv5* | sco3.2v5* | sco5v6*)
11478 # Note: We can NOT use -z defs as we might desire, because we do not
11479 # link with -lc, and that would cause any symbols used from libc to
11480 # always be unresolved, which means just about no library would
11481 # ever link correctly. If we're not using GNU ld we use -z text
11482 # though, which does catch some bad symbols but isn't as heavy-handed
11483 # as -z defs.
11484 # For security reasons, it is highly recommended that you always
11485 # use absolute paths for naming shared libraries, and exclude the
11486 # DT_RUNPATH tag from executables and libraries. But doing so
11487 # requires that you compile everything twice, which is a pain.
11488 # So that behaviour is only enabled if SCOABSPATH is set to a
11489 # non-empty value in the environment. Most likely only useful for
11490 # creating official distributions of packages.
11491 # This is a hack until libtool officially supports absolute path
11492 # names for shared libraries.
11493 no_undefined_flag_CXX='${wl}-z,text'
11494 allow_undefined_flag_CXX='${wl}-z,nodefs'
11495 archive_cmds_need_lc_CXX=no
11496 hardcode_shlibpath_var_CXX=no
11497 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11498 hardcode_libdir_separator_CXX=':'
11499 link_all_deplibs_CXX=yes
11500 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11501 runpath_var='LD_RUN_PATH'
11502
11503 case $cc_basename in
11504 CC*)
11505 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11506 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11507 ;;
11508 *)
11509 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11510 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11511 ;;
11512 esac
11513 ;;
11514 tandem*)
11515 case $cc_basename in
11516 NCC*)
11517 # NonStop-UX NCC 3.20
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11520 ;;
11521 *)
11522 # FIXME: insert proper C++ library support
11523 ld_shlibs_CXX=no
11524 ;;
11525 esac
11526 ;;
11527 vxworks*)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
11531 *)
11532 # FIXME: insert proper C++ library support
11533 ld_shlibs_CXX=no
11534 ;;
11535 esac
11536 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11537 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11538 test "$ld_shlibs_CXX" = no && can_build_shared=no
11539
11540 GCC_CXX="$GXX"
11541 LD_CXX="$LD"
11542
11543 ## CAVEAT EMPTOR:
11544 ## There is no encapsulation within the following macros, do not change
11545 ## the running order or otherwise move them around unless you know exactly
11546 ## what you are doing...
11547
11548 cat > conftest.$ac_ext <<EOF
11549 class Foo
11550 {
11551 public:
11552 Foo (void) { a = 0; }
11553 private:
11554 int a;
11555 };
11556 EOF
11557
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; then
11563 # Parse the compiler output and extract the necessary
11564 # objects, libraries and library flags.
11565
11566 # Sentinel used to keep track of whether or not we are before
11567 # the conftest object file.
11568 pre_test_object_deps_done=no
11569
11570 # The `*' in the case matches for architectures that use `case' in
11571 # $output_verbose_cmd can trigger glob expansion during the loop
11572 # eval without this substitution.
11573 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11574
11575 for p in `eval $output_verbose_link_cmd`; do
11576 case $p in
11577
11578 -L* | -R* | -l*)
11579 # Some compilers place space between "-{L,R}" and the path.
11580 # Remove the space.
11581 if test $p = "-L" \
11582 || test $p = "-R"; then
11583 prev=$p
11584 continue
11585 else
11586 prev=
11587 fi
11588
11589 if test "$pre_test_object_deps_done" = no; then
11590 case $p in
11591 -L* | -R*)
11592 # Internal compiler library paths should come after those
11593 # provided the user. The postdeps already come after the
11594 # user supplied libs so there is no need to process them.
11595 if test -z "$compiler_lib_search_path_CXX"; then
11596 compiler_lib_search_path_CXX="${prev}${p}"
11597 else
11598 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11599 fi
11600 ;;
11601 # The "-l" case would never come before the object being
11602 # linked, so don't bother handling this case.
11603 esac
11604 else
11605 if test -z "$postdeps_CXX"; then
11606 postdeps_CXX="${prev}${p}"
11607 else
11608 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11609 fi
11610 fi
11611 ;;
11612
11613 *.$objext)
11614 # This assumes that the test object file only shows up
11615 # once in the compiler output.
11616 if test "$p" = "conftest.$objext"; then
11617 pre_test_object_deps_done=yes
11618 continue
11619 fi
11620
11621 if test "$pre_test_object_deps_done" = no; then
11622 if test -z "$predep_objects_CXX"; then
11623 predep_objects_CXX="$p"
11624 else
11625 predep_objects_CXX="$predep_objects_CXX $p"
11626 fi
11627 else
11628 if test -z "$postdep_objects_CXX"; then
11629 postdep_objects_CXX="$p"
11630 else
11631 postdep_objects_CXX="$postdep_objects_CXX $p"
11632 fi
11633 fi
11634 ;;
11635
11636 *) ;; # Ignore the rest.
11637
11638 esac
11639 done
11640
11641 # Clean up.
11642 rm -f a.out a.exe
11643 else
11644 echo "libtool.m4: error: problem compiling CXX test program"
11645 fi
11646
11647 $rm -f confest.$objext
11648
11649 # PORTME: override above test on systems where it is broken
11650 case $host_os in
11651 interix3*)
11652 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11653 # hack all around it, let's just trust "g++" to DTRT.
11654 predep_objects_CXX=
11655 postdep_objects_CXX=
11656 postdeps_CXX=
11657 ;;
11658
11659 solaris*)
11660 case $cc_basename in
11661 CC*)
11662 # Adding this requires a known-good setup of shared libraries for
11663 # Sun compiler versions before 5.6, else PIC objects from an old
11664 # archive will be linked into the output, leading to subtle bugs.
11665 postdeps_CXX='-lCstd -lCrun'
11666 ;;
11667 esac
11668 ;;
11669 esac
11670
11671
11672 case " $postdeps_CXX " in
11673 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11674 esac
11675
11676 lt_prog_compiler_wl_CXX=
11677 lt_prog_compiler_pic_CXX=
11678 lt_prog_compiler_static_CXX=
11679
11680 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11681 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11682
11683 # C++ specific cases for pic, static, wl, etc.
11684 if test "$GXX" = yes; then
11685 lt_prog_compiler_wl_CXX='-Wl,'
11686 lt_prog_compiler_static_CXX='-static'
11687
11688 case $host_os in
11689 aix*)
11690 # All AIX code is PIC.
11691 if test "$host_cpu" = ia64; then
11692 # AIX 5 now supports IA64 processor
11693 lt_prog_compiler_static_CXX='-Bstatic'
11694 fi
11695 ;;
11696 amigaos*)
11697 # FIXME: we need at least 68020 code to build shared libraries, but
11698 # adding the `-m68020' flag to GCC prevents building anything better,
11699 # like `-m68040'.
11700 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11701 ;;
11702 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11703 # PIC is the default for these OSes.
11704 ;;
11705 mingw* | os2* | pw32*)
11706 # This hack is so that the source file can tell whether it is being
11707 # built for inclusion in a dll (and should export symbols for example).
11708 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11709 ;;
11710 darwin* | rhapsody*)
11711 # PIC is the default on this platform
11712 # Common symbols not allowed in MH_DYLIB files
11713 lt_prog_compiler_pic_CXX='-fno-common'
11714 ;;
11715 *djgpp*)
11716 # DJGPP does not support shared libraries at all
11717 lt_prog_compiler_pic_CXX=
11718 ;;
11719 interix3*)
11720 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11721 # Instead, we relocate shared libraries at runtime.
11722 ;;
11723 sysv4*MP*)
11724 if test -d /usr/nec; then
11725 lt_prog_compiler_pic_CXX=-Kconform_pic
11726 fi
11727 ;;
11728 hpux*)
11729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11730 # not for PA HP-UX.
11731 case $host_cpu in
11732 hppa*64*|ia64*)
11733 ;;
11734 *)
11735 lt_prog_compiler_pic_CXX='-fPIC'
11736 ;;
11737 esac
11738 ;;
11739 *)
11740 lt_prog_compiler_pic_CXX='-fPIC'
11741 ;;
11742 esac
11743 else
11744 case $host_os in
11745 aix4* | aix5*)
11746 # All AIX code is PIC.
11747 if test "$host_cpu" = ia64; then
11748 # AIX 5 now supports IA64 processor
11749 lt_prog_compiler_static_CXX='-Bstatic'
11750 else
11751 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11752 fi
11753 ;;
11754 chorus*)
11755 case $cc_basename in
11756 cxch68*)
11757 # Green Hills C++ Compiler
11758 # _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"
11759 ;;
11760 esac
11761 ;;
11762 darwin*)
11763 # PIC is the default on this platform
11764 # Common symbols not allowed in MH_DYLIB files
11765 case $cc_basename in
11766 xlc*)
11767 lt_prog_compiler_pic_CXX='-qnocommon'
11768 lt_prog_compiler_wl_CXX='-Wl,'
11769 ;;
11770 esac
11771 ;;
11772 dgux*)
11773 case $cc_basename in
11774 ec++*)
11775 lt_prog_compiler_pic_CXX='-KPIC'
11776 ;;
11777 ghcx*)
11778 # Green Hills C++ Compiler
11779 lt_prog_compiler_pic_CXX='-pic'
11780 ;;
11781 *)
11782 ;;
11783 esac
11784 ;;
11785 freebsd* | kfreebsd*-gnu | dragonfly*)
11786 # FreeBSD uses GNU C++
11787 ;;
11788 hpux9* | hpux10* | hpux11*)
11789 case $cc_basename in
11790 CC*)
11791 lt_prog_compiler_wl_CXX='-Wl,'
11792 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11793 if test "$host_cpu" != ia64; then
11794 lt_prog_compiler_pic_CXX='+Z'
11795 fi
11796 ;;
11797 aCC*)
11798 lt_prog_compiler_wl_CXX='-Wl,'
11799 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11800 case $host_cpu in
11801 hppa*64*|ia64*)
11802 # +Z the default
11803 ;;
11804 *)
11805 lt_prog_compiler_pic_CXX='+Z'
11806 ;;
11807 esac
11808 ;;
11809 *)
11810 ;;
11811 esac
11812 ;;
11813 interix*)
11814 # This is c89, which is MS Visual C++ (no shared libs)
11815 # Anyone wants to do a port?
11816 ;;
11817 irix5* | irix6* | nonstopux*)
11818 case $cc_basename in
11819 CC*)
11820 lt_prog_compiler_wl_CXX='-Wl,'
11821 lt_prog_compiler_static_CXX='-non_shared'
11822 # CC pic flag -KPIC is the default.
11823 ;;
11824 *)
11825 ;;
11826 esac
11827 ;;
11828 linux*)
11829 case $cc_basename in
11830 KCC*)
11831 # KAI C++ Compiler
11832 lt_prog_compiler_wl_CXX='--backend -Wl,'
11833 lt_prog_compiler_pic_CXX='-fPIC'
11834 ;;
11835 icpc* | ecpc*)
11836 # Intel C++
11837 lt_prog_compiler_wl_CXX='-Wl,'
11838 lt_prog_compiler_pic_CXX='-KPIC'
11839 lt_prog_compiler_static_CXX='-static'
11840 ;;
11841 pgCC*)
11842 # Portland Group C++ compiler.
11843 lt_prog_compiler_wl_CXX='-Wl,'
11844 lt_prog_compiler_pic_CXX='-fpic'
11845 lt_prog_compiler_static_CXX='-Bstatic'
11846 ;;
11847 cxx*)
11848 # Compaq C++
11849 # Make sure the PIC flag is empty. It appears that all Alpha
11850 # Linux and Compaq Tru64 Unix objects are PIC.
11851 lt_prog_compiler_pic_CXX=
11852 lt_prog_compiler_static_CXX='-non_shared'
11853 ;;
11854 *)
11855 ;;
11856 esac
11857 ;;
11858 lynxos*)
11859 ;;
11860 m88k*)
11861 ;;
11862 mvs*)
11863 case $cc_basename in
11864 cxx*)
11865 lt_prog_compiler_pic_CXX='-W c,exportall'
11866 ;;
11867 *)
11868 ;;
11869 esac
11870 ;;
11871 netbsd*)
11872 ;;
11873 osf3* | osf4* | osf5*)
11874 case $cc_basename in
11875 KCC*)
11876 lt_prog_compiler_wl_CXX='--backend -Wl,'
11877 ;;
11878 RCC*)
11879 # Rational C++ 2.4.1
11880 lt_prog_compiler_pic_CXX='-pic'
11881 ;;
11882 cxx*)
11883 # Digital/Compaq C++
11884 lt_prog_compiler_wl_CXX='-Wl,'
11885 # Make sure the PIC flag is empty. It appears that all Alpha
11886 # Linux and Compaq Tru64 Unix objects are PIC.
11887 lt_prog_compiler_pic_CXX=
11888 lt_prog_compiler_static_CXX='-non_shared'
11889 ;;
11890 *)
11891 ;;
11892 esac
11893 ;;
11894 psos*)
11895 ;;
11896 solaris*)
11897 case $cc_basename in
11898 CC*)
11899 # Sun C++ 4.2, 5.x and Centerline C++
11900 lt_prog_compiler_pic_CXX='-KPIC'
11901 lt_prog_compiler_static_CXX='-Bstatic'
11902 lt_prog_compiler_wl_CXX='-Qoption ld '
11903 ;;
11904 gcx*)
11905 # Green Hills C++ Compiler
11906 lt_prog_compiler_pic_CXX='-PIC'
11907 ;;
11908 *)
11909 ;;
11910 esac
11911 ;;
11912 sunos4*)
11913 case $cc_basename in
11914 CC*)
11915 # Sun C++ 4.x
11916 lt_prog_compiler_pic_CXX='-pic'
11917 lt_prog_compiler_static_CXX='-Bstatic'
11918 ;;
11919 lcc*)
11920 # Lucid
11921 lt_prog_compiler_pic_CXX='-pic'
11922 ;;
11923 *)
11924 ;;
11925 esac
11926 ;;
11927 tandem*)
11928 case $cc_basename in
11929 NCC*)
11930 # NonStop-UX NCC 3.20
11931 lt_prog_compiler_pic_CXX='-KPIC'
11932 ;;
11933 *)
11934 ;;
11935 esac
11936 ;;
11937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11938 case $cc_basename in
11939 CC*)
11940 lt_prog_compiler_wl_CXX='-Wl,'
11941 lt_prog_compiler_pic_CXX='-KPIC'
11942 lt_prog_compiler_static_CXX='-Bstatic'
11943 ;;
11944 esac
11945 ;;
11946 vxworks*)
11947 ;;
11948 *)
11949 lt_prog_compiler_can_build_shared_CXX=no
11950 ;;
11951 esac
11952 fi
11953
11954 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11955 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11956
11957 #
11958 # Check to make sure the PIC flag actually works.
11959 #
11960 if test -n "$lt_prog_compiler_pic_CXX"; then
11961
11962 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11963 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11964 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 lt_prog_compiler_pic_works_CXX=no
11968 ac_outfile=conftest.$ac_objext
11969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11970 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11971 # Insert the option either (1) after the last *FLAGS variable, or
11972 # (2) before a word containing "conftest.", or (3) at the end.
11973 # Note that $ac_compile itself does not contain backslashes and begins
11974 # with a dollar sign (not a hyphen), so the echo should work correctly.
11975 # The option is referenced via a variable to avoid confusing sed.
11976 lt_compile=`echo "$ac_compile" | $SED \
11977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11979 -e 's:$: $lt_compiler_flag:'`
11980 (eval echo "\"\$as_me:11980: $lt_compile\"" >&5)
11981 (eval "$lt_compile" 2>conftest.err)
11982 ac_status=$?
11983 cat conftest.err >&5
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 if (exit $ac_status) && test -s "$ac_outfile"; then
11986 # The compiler can only warn and ignore the option if not recognized
11987 # So say no if there are warnings other than the usual output.
11988 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11991 lt_prog_compiler_pic_works_CXX=yes
11992 fi
11993 fi
11994 $rm conftest*
11995
11996 fi
11997 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11998 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11999
12000 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12001 case $lt_prog_compiler_pic_CXX in
12002 "" | " "*) ;;
12003 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12004 esac
12005 else
12006 lt_prog_compiler_pic_CXX=
12007 lt_prog_compiler_can_build_shared_CXX=no
12008 fi
12009
12010 fi
12011 case $host_os in
12012 # For platforms which do not support PIC, -DPIC is meaningless:
12013 *djgpp*)
12014 lt_prog_compiler_pic_CXX=
12015 ;;
12016 *)
12017 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12018 ;;
12019 esac
12020
12021 #
12022 # Check to make sure the static flag actually works.
12023 #
12024 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12025 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12026 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12027 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 lt_prog_compiler_static_works_CXX=no
12031 save_LDFLAGS="$LDFLAGS"
12032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12033 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12035 # The linker can only warn and ignore the option if not recognized
12036 # So say no if there are warnings
12037 if test -s conftest.err; then
12038 # Append any errors to the config.log.
12039 cat conftest.err 1>&5
12040 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12042 if diff conftest.exp conftest.er2 >/dev/null; then
12043 lt_prog_compiler_static_works_CXX=yes
12044 fi
12045 else
12046 lt_prog_compiler_static_works_CXX=yes
12047 fi
12048 fi
12049 $rm conftest*
12050 LDFLAGS="$save_LDFLAGS"
12051
12052 fi
12053 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12054 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12055
12056 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12057 :
12058 else
12059 lt_prog_compiler_static_CXX=
12060 fi
12061
12062
12063 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12064 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12065 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068 lt_cv_prog_compiler_c_o_CXX=no
12069 $rm -r conftest 2>/dev/null
12070 mkdir conftest
12071 cd conftest
12072 mkdir out
12073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12074
12075 lt_compiler_flag="-o out/conftest2.$ac_objext"
12076 # Insert the option either (1) after the last *FLAGS variable, or
12077 # (2) before a word containing "conftest.", or (3) at the end.
12078 # Note that $ac_compile itself does not contain backslashes and begins
12079 # with a dollar sign (not a hyphen), so the echo should work correctly.
12080 lt_compile=`echo "$ac_compile" | $SED \
12081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12083 -e 's:$: $lt_compiler_flag:'`
12084 (eval echo "\"\$as_me:12084: $lt_compile\"" >&5)
12085 (eval "$lt_compile" 2>out/conftest.err)
12086 ac_status=$?
12087 cat out/conftest.err >&5
12088 echo "$as_me:12088: \$? = $ac_status" >&5
12089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12090 then
12091 # The compiler can only warn and ignore the option if not recognized
12092 # So say no if there are warnings
12093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12096 lt_cv_prog_compiler_c_o_CXX=yes
12097 fi
12098 fi
12099 chmod u+w . 2>&5
12100 $rm conftest*
12101 # SGI C++ compiler will create directory out/ii_files/ for
12102 # template instantiation
12103 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12104 $rm out/* && rmdir out
12105 cd ..
12106 rmdir conftest
12107 $rm conftest*
12108
12109 fi
12110 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12111 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12112
12113
12114 hard_links="nottested"
12115 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12116 # do not overwrite the value of need_locks provided by the user
12117 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12118 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12119 hard_links=yes
12120 $rm conftest*
12121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12122 touch conftest.a
12123 ln conftest.a conftest.b 2>&5 || hard_links=no
12124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12125 echo "$as_me:$LINENO: result: $hard_links" >&5
12126 echo "${ECHO_T}$hard_links" >&6
12127 if test "$hard_links" = no; then
12128 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12129 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12130 need_locks=warn
12131 fi
12132 else
12133 need_locks=no
12134 fi
12135
12136 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12137 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12138
12139 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12140 case $host_os in
12141 aix4* | aix5*)
12142 # If we're using GNU nm, then we don't want the "-C" option.
12143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12144 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12145 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'
12146 else
12147 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'
12148 fi
12149 ;;
12150 pw32*)
12151 export_symbols_cmds_CXX="$ltdll_cmds"
12152 ;;
12153 cygwin* | mingw*)
12154 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12155 ;;
12156 *)
12157 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12158 ;;
12159 esac
12160
12161 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12162 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12163 test "$ld_shlibs_CXX" = no && can_build_shared=no
12164
12165 #
12166 # Do we need to explicitly link libc?
12167 #
12168 case "x$archive_cmds_need_lc_CXX" in
12169 x|xyes)
12170 # Assume -lc should be added
12171 archive_cmds_need_lc_CXX=yes
12172
12173 if test "$enable_shared" = yes && test "$GCC" = yes; then
12174 case $archive_cmds_CXX in
12175 *'~'*)
12176 # FIXME: we may have to deal with multi-command sequences.
12177 ;;
12178 '$CC '*)
12179 # Test whether the compiler implicitly links with -lc since on some
12180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12181 # to ld, don't add -lc before -lgcc.
12182 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12184 $rm conftest*
12185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12186
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188 (eval $ac_compile) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } 2>conftest.err; then
12192 soname=conftest
12193 lib=conftest
12194 libobjs=conftest.$ac_objext
12195 deplibs=
12196 wl=$lt_prog_compiler_wl_CXX
12197 pic_flag=$lt_prog_compiler_pic_CXX
12198 compiler_flags=-v
12199 linker_flags=-v
12200 verstring=
12201 output_objdir=.
12202 libname=conftest
12203 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12204 allow_undefined_flag_CXX=
12205 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12206 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }
12210 then
12211 archive_cmds_need_lc_CXX=no
12212 else
12213 archive_cmds_need_lc_CXX=yes
12214 fi
12215 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12216 else
12217 cat conftest.err 1>&5
12218 fi
12219 $rm conftest*
12220 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12221 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12222 ;;
12223 esac
12224 fi
12225 ;;
12226 esac
12227
12228 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12230 library_names_spec=
12231 libname_spec='lib$name'
12232 soname_spec=
12233 shrext_cmds=".so"
12234 postinstall_cmds=
12235 postuninstall_cmds=
12236 finish_cmds=
12237 finish_eval=
12238 shlibpath_var=
12239 shlibpath_overrides_runpath=unknown
12240 version_type=none
12241 dynamic_linker="$host_os ld.so"
12242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12243 if test "$GCC" = yes; then
12244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12245 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12246 # if the path contains ";" then we assume it to be the separator
12247 # otherwise default to the standard path separator (i.e. ":") - it is
12248 # assumed that no part of a normal pathname contains ";" but that should
12249 # okay in the real world where ";" in dirpaths is itself problematic.
12250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12251 else
12252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12253 fi
12254 else
12255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12256 fi
12257 need_lib_prefix=unknown
12258 hardcode_into_libs=no
12259
12260 # when you set need_version to no, make sure it does not cause -set_version
12261 # flags to be left without arguments
12262 need_version=unknown
12263
12264 case $host_os in
12265 aix3*)
12266 version_type=linux
12267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12268 shlibpath_var=LIBPATH
12269
12270 # AIX 3 has no versioning support, so we append a major version to the name.
12271 soname_spec='${libname}${release}${shared_ext}$major'
12272 ;;
12273
12274 aix4* | aix5*)
12275 version_type=linux
12276 need_lib_prefix=no
12277 need_version=no
12278 hardcode_into_libs=yes
12279 if test "$host_cpu" = ia64; then
12280 # AIX 5 supports IA64
12281 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12282 shlibpath_var=LD_LIBRARY_PATH
12283 else
12284 # With GCC up to 2.95.x, collect2 would create an import file
12285 # for dependence libraries. The import file would start with
12286 # the line `#! .'. This would cause the generated library to
12287 # depend on `.', always an invalid library. This was fixed in
12288 # development snapshots of GCC prior to 3.0.
12289 case $host_os in
12290 aix4 | aix4.[01] | aix4.[01].*)
12291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12292 echo ' yes '
12293 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12294 :
12295 else
12296 can_build_shared=no
12297 fi
12298 ;;
12299 esac
12300 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12301 # soname into executable. Probably we can add versioning support to
12302 # collect2, so additional links can be useful in future.
12303 if test "$aix_use_runtimelinking" = yes; then
12304 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12305 # instead of lib<name>.a to let people know that these are not
12306 # typical AIX shared libraries.
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308 else
12309 # We preserve .a as extension for shared libraries through AIX4.2
12310 # and later when we are not doing run time linking.
12311 library_names_spec='${libname}${release}.a $libname.a'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 fi
12314 shlibpath_var=LIBPATH
12315 fi
12316 ;;
12317
12318 amigaos*)
12319 library_names_spec='$libname.ixlibrary $libname.a'
12320 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12321 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'
12322 ;;
12323
12324 beos*)
12325 library_names_spec='${libname}${shared_ext}'
12326 dynamic_linker="$host_os ld.so"
12327 shlibpath_var=LIBRARY_PATH
12328 ;;
12329
12330 bsdi[45]*)
12331 version_type=linux
12332 need_version=no
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12334 soname_spec='${libname}${release}${shared_ext}$major'
12335 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12338 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12339 # the default ld.so.conf also contains /usr/contrib/lib and
12340 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12341 # libtool to hard-code these into programs
12342 ;;
12343
12344 cygwin* | mingw* | pw32*)
12345 version_type=windows
12346 shrext_cmds=".dll"
12347 need_version=no
12348 need_lib_prefix=no
12349
12350 case $GCC,$host_os in
12351 yes,cygwin* | yes,mingw* | yes,pw32*)
12352 library_names_spec='$libname.dll.a'
12353 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12354 postinstall_cmds='base_file=`basename \${file}`~
12355 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12356 dldir=$destdir/`dirname \$dlpath`~
12357 test -d \$dldir || mkdir -p \$dldir~
12358 $install_prog $dir/$dlname \$dldir/$dlname~
12359 chmod a+x \$dldir/$dlname'
12360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12361 dlpath=$dir/\$dldll~
12362 $rm \$dlpath'
12363 shlibpath_overrides_runpath=yes
12364
12365 case $host_os in
12366 cygwin*)
12367 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12368 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12369 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12370 ;;
12371 mingw*)
12372 # MinGW DLLs use traditional 'lib' prefix
12373 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12374 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12375 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12376 # It is most probably a Windows format PATH printed by
12377 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12378 # path with ; separators, and with drive letters. We can handle the
12379 # drive letters (cygwin fileutils understands them), so leave them,
12380 # especially as we might pass files found there to a mingw objdump,
12381 # which wouldn't understand a cygwinified path. Ahh.
12382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12383 else
12384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12385 fi
12386 ;;
12387 pw32*)
12388 # pw32 DLLs use 'pw' prefix rather than 'lib'
12389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12390 ;;
12391 esac
12392 ;;
12393
12394 *)
12395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12396 ;;
12397 esac
12398 dynamic_linker='Win32 ld.exe'
12399 # FIXME: first we should search . and the directory the executable is in
12400 shlibpath_var=PATH
12401 ;;
12402
12403 darwin* | rhapsody*)
12404 dynamic_linker="$host_os dyld"
12405 version_type=darwin
12406 need_lib_prefix=no
12407 need_version=no
12408 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12409 soname_spec='${libname}${release}${major}$shared_ext'
12410 shlibpath_overrides_runpath=yes
12411 shlibpath_var=DYLD_LIBRARY_PATH
12412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12413 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12414 if test "$GCC" = yes; then
12415 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"`
12416 else
12417 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12418 fi
12419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12420 ;;
12421
12422 dgux*)
12423 version_type=linux
12424 need_lib_prefix=no
12425 need_version=no
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12427 soname_spec='${libname}${release}${shared_ext}$major'
12428 shlibpath_var=LD_LIBRARY_PATH
12429 ;;
12430
12431 freebsd1*)
12432 dynamic_linker=no
12433 ;;
12434
12435 kfreebsd*-gnu)
12436 version_type=linux
12437 need_lib_prefix=no
12438 need_version=no
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 shlibpath_overrides_runpath=no
12443 hardcode_into_libs=yes
12444 dynamic_linker='GNU ld.so'
12445 ;;
12446
12447 freebsd* | dragonfly*)
12448 # DragonFly does not have aout. When/if they implement a new
12449 # versioning mechanism, adjust this.
12450 if test -x /usr/bin/objformat; then
12451 objformat=`/usr/bin/objformat`
12452 else
12453 case $host_os in
12454 freebsd[123]*) objformat=aout ;;
12455 *) objformat=elf ;;
12456 esac
12457 fi
12458 version_type=freebsd-$objformat
12459 case $version_type in
12460 freebsd-elf*)
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12462 need_version=no
12463 need_lib_prefix=no
12464 ;;
12465 freebsd-*)
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12467 need_version=yes
12468 ;;
12469 esac
12470 shlibpath_var=LD_LIBRARY_PATH
12471 case $host_os in
12472 freebsd2*)
12473 shlibpath_overrides_runpath=yes
12474 ;;
12475 freebsd3.[01]* | freebsdelf3.[01]*)
12476 shlibpath_overrides_runpath=yes
12477 hardcode_into_libs=yes
12478 ;;
12479 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12480 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12481 shlibpath_overrides_runpath=no
12482 hardcode_into_libs=yes
12483 ;;
12484 freebsd*) # from 4.6 on
12485 shlibpath_overrides_runpath=yes
12486 hardcode_into_libs=yes
12487 ;;
12488 esac
12489 ;;
12490
12491 gnu*)
12492 version_type=linux
12493 need_lib_prefix=no
12494 need_version=no
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12496 soname_spec='${libname}${release}${shared_ext}$major'
12497 shlibpath_var=LD_LIBRARY_PATH
12498 hardcode_into_libs=yes
12499 ;;
12500
12501 hpux9* | hpux10* | hpux11*)
12502 # Give a soname corresponding to the major version so that dld.sl refuses to
12503 # link against other versions.
12504 version_type=sunos
12505 need_lib_prefix=no
12506 need_version=no
12507 case $host_cpu in
12508 ia64*)
12509 shrext_cmds='.so'
12510 hardcode_into_libs=yes
12511 dynamic_linker="$host_os dld.so"
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515 soname_spec='${libname}${release}${shared_ext}$major'
12516 if test "X$HPUX_IA64_MODE" = X32; then
12517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12518 else
12519 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12520 fi
12521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12522 ;;
12523 hppa*64*)
12524 shrext_cmds='.sl'
12525 hardcode_into_libs=yes
12526 dynamic_linker="$host_os dld.sl"
12527 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530 soname_spec='${libname}${release}${shared_ext}$major'
12531 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12533 ;;
12534 *)
12535 shrext_cmds='.sl'
12536 dynamic_linker="$host_os dld.sl"
12537 shlibpath_var=SHLIB_PATH
12538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540 soname_spec='${libname}${release}${shared_ext}$major'
12541 ;;
12542 esac
12543 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12544 postinstall_cmds='chmod 555 $lib'
12545 ;;
12546
12547 interix3*)
12548 version_type=linux
12549 need_lib_prefix=no
12550 need_version=no
12551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12552 soname_spec='${libname}${release}${shared_ext}$major'
12553 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=no
12556 hardcode_into_libs=yes
12557 ;;
12558
12559 irix5* | irix6* | nonstopux*)
12560 case $host_os in
12561 nonstopux*) version_type=nonstopux ;;
12562 *)
12563 if test "$lt_cv_prog_gnu_ld" = yes; then
12564 version_type=linux
12565 else
12566 version_type=irix
12567 fi ;;
12568 esac
12569 need_lib_prefix=no
12570 need_version=no
12571 soname_spec='${libname}${release}${shared_ext}$major'
12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12573 case $host_os in
12574 irix5* | nonstopux*)
12575 libsuff= shlibsuff=
12576 ;;
12577 *)
12578 case $LD in # libtool.m4 will add one of these switches to LD
12579 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12580 libsuff= shlibsuff= libmagic=32-bit;;
12581 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12582 libsuff=32 shlibsuff=N32 libmagic=N32;;
12583 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12584 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12585 *) libsuff= shlibsuff= libmagic=never-match;;
12586 esac
12587 ;;
12588 esac
12589 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12590 shlibpath_overrides_runpath=no
12591 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12592 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12593 hardcode_into_libs=yes
12594 ;;
12595
12596 # No shared lib support for Linux oldld, aout, or coff.
12597 linux*oldld* | linux*aout* | linux*coff*)
12598 dynamic_linker=no
12599 ;;
12600
12601 # This must be Linux ELF.
12602 linux*)
12603 version_type=linux
12604 need_lib_prefix=no
12605 need_version=no
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath=no
12611 # This implies no fast_install, which is unacceptable.
12612 # Some rework will be needed to allow for fast_install
12613 # before this can be enabled.
12614 hardcode_into_libs=yes
12615
12616 # find out which ABI we are using
12617 libsuff=
12618 case "$host_cpu" in
12619 x86_64*|s390x*|powerpc64*)
12620 echo '#line 12620 "configure"' > conftest.$ac_ext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622 (eval $ac_compile) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; then
12626 case `/usr/bin/file conftest.$ac_objext` in
12627 *64-bit*)
12628 libsuff=64
12629 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12630 ;;
12631 esac
12632 fi
12633 rm -rf conftest*
12634 ;;
12635 esac
12636
12637 # Append ld.so.conf contents to the search path
12638 if test -f /etc/ld.so.conf; then
12639 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12640 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12641 fi
12642
12643 # We used to test for /lib/ld.so.1 and disable shared libraries on
12644 # powerpc, because MkLinux only supported shared libraries with the
12645 # GNU dynamic linker. Since this was broken with cross compilers,
12646 # most powerpc-linux boxes support dynamic linking these days and
12647 # people can always --disable-shared, the test was removed, and we
12648 # assume the GNU/Linux dynamic linker is in use.
12649 dynamic_linker='GNU/Linux ld.so'
12650 ;;
12651
12652 knetbsd*-gnu)
12653 version_type=linux
12654 need_lib_prefix=no
12655 need_version=no
12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12657 soname_spec='${libname}${release}${shared_ext}$major'
12658 shlibpath_var=LD_LIBRARY_PATH
12659 shlibpath_overrides_runpath=no
12660 hardcode_into_libs=yes
12661 dynamic_linker='GNU ld.so'
12662 ;;
12663
12664 netbsd*)
12665 version_type=sunos
12666 need_lib_prefix=no
12667 need_version=no
12668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12671 dynamic_linker='NetBSD (a.out) ld.so'
12672 else
12673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12674 soname_spec='${libname}${release}${shared_ext}$major'
12675 dynamic_linker='NetBSD ld.elf_so'
12676 fi
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=yes
12679 hardcode_into_libs=yes
12680 ;;
12681
12682 newsos6)
12683 version_type=linux
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=yes
12687 ;;
12688
12689 nto-qnx*)
12690 version_type=linux
12691 need_lib_prefix=no
12692 need_version=no
12693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12694 soname_spec='${libname}${release}${shared_ext}$major'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=yes
12697 ;;
12698
12699 openbsd*)
12700 version_type=sunos
12701 sys_lib_dlsearch_path_spec="/usr/lib"
12702 need_lib_prefix=no
12703 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12704 case $host_os in
12705 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12706 *) need_version=no ;;
12707 esac
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12712 case $host_os in
12713 openbsd2.[89] | openbsd2.[89].*)
12714 shlibpath_overrides_runpath=no
12715 ;;
12716 *)
12717 shlibpath_overrides_runpath=yes
12718 ;;
12719 esac
12720 else
12721 shlibpath_overrides_runpath=yes
12722 fi
12723 ;;
12724
12725 os2*)
12726 libname_spec='$name'
12727 shrext_cmds=".dll"
12728 need_lib_prefix=no
12729 library_names_spec='$libname${shared_ext} $libname.a'
12730 dynamic_linker='OS/2 ld.exe'
12731 shlibpath_var=LIBPATH
12732 ;;
12733
12734 osf3* | osf4* | osf5*)
12735 version_type=osf
12736 need_lib_prefix=no
12737 need_version=no
12738 soname_spec='${libname}${release}${shared_ext}$major'
12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740 shlibpath_var=LD_LIBRARY_PATH
12741 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12742 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12743 ;;
12744
12745 solaris*)
12746 version_type=linux
12747 need_lib_prefix=no
12748 need_version=no
12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12750 soname_spec='${libname}${release}${shared_ext}$major'
12751 shlibpath_var=LD_LIBRARY_PATH
12752 shlibpath_overrides_runpath=yes
12753 hardcode_into_libs=yes
12754 # ldd complains unless libraries are executable
12755 postinstall_cmds='chmod +x $lib'
12756 ;;
12757
12758 sunos4*)
12759 version_type=sunos
12760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 shlibpath_overrides_runpath=yes
12764 if test "$with_gnu_ld" = yes; then
12765 need_lib_prefix=no
12766 fi
12767 need_version=yes
12768 ;;
12769
12770 sysv4 | sysv4.3*)
12771 version_type=linux
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 shlibpath_var=LD_LIBRARY_PATH
12775 case $host_vendor in
12776 sni)
12777 shlibpath_overrides_runpath=no
12778 need_lib_prefix=no
12779 export_dynamic_flag_spec='${wl}-Blargedynsym'
12780 runpath_var=LD_RUN_PATH
12781 ;;
12782 siemens)
12783 need_lib_prefix=no
12784 ;;
12785 motorola)
12786 need_lib_prefix=no
12787 need_version=no
12788 shlibpath_overrides_runpath=no
12789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12790 ;;
12791 esac
12792 ;;
12793
12794 sysv4*MP*)
12795 if test -d /usr/nec ;then
12796 version_type=linux
12797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12798 soname_spec='$libname${shared_ext}.$major'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 fi
12801 ;;
12802
12803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12804 version_type=freebsd-elf
12805 need_lib_prefix=no
12806 need_version=no
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 hardcode_into_libs=yes
12811 if test "$with_gnu_ld" = yes; then
12812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12813 shlibpath_overrides_runpath=no
12814 else
12815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12816 shlibpath_overrides_runpath=yes
12817 case $host_os in
12818 sco3.2v5*)
12819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12820 ;;
12821 esac
12822 fi
12823 sys_lib_dlsearch_path_spec='/usr/lib'
12824 ;;
12825
12826 uts4*)
12827 version_type=linux
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829 soname_spec='${libname}${release}${shared_ext}$major'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 ;;
12832
12833 *)
12834 dynamic_linker=no
12835 ;;
12836 esac
12837 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12838 echo "${ECHO_T}$dynamic_linker" >&6
12839 test "$dynamic_linker" = no && can_build_shared=no
12840
12841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12842 if test "$GCC" = yes; then
12843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12844 fi
12845
12846 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12847 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12848 hardcode_action_CXX=
12849 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12850 test -n "$runpath_var_CXX" || \
12851 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12852
12853 # We can hardcode non-existant directories.
12854 if test "$hardcode_direct_CXX" != no &&
12855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12856 # have to relink, otherwise we might link with an installed library
12857 # when we should be linking with a yet-to-be-installed one
12858 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12859 test "$hardcode_minus_L_CXX" != no; then
12860 # Linking always hardcodes the temporary library directory.
12861 hardcode_action_CXX=relink
12862 else
12863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12864 hardcode_action_CXX=immediate
12865 fi
12866 else
12867 # We cannot hardcode anything, or else we can only hardcode existing
12868 # directories.
12869 hardcode_action_CXX=unsupported
12870 fi
12871 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12872 echo "${ECHO_T}$hardcode_action_CXX" >&6
12873
12874 if test "$hardcode_action_CXX" = relink; then
12875 # Fast installation is not supported
12876 enable_fast_install=no
12877 elif test "$shlibpath_overrides_runpath" = yes ||
12878 test "$enable_shared" = no; then
12879 # Fast installation is not necessary
12880 enable_fast_install=needless
12881 fi
12882
12883
12884 # The else clause should only fire when bootstrapping the
12885 # libtool distribution, otherwise you forgot to ship ltmain.sh
12886 # with your package, and you will get complaints that there are
12887 # no rules to generate ltmain.sh.
12888 if test -f "$ltmain"; then
12889 # See if we are running on zsh, and set the options which allow our commands through
12890 # without removal of \ escapes.
12891 if test -n "${ZSH_VERSION+set}" ; then
12892 setopt NO_GLOB_SUBST
12893 fi
12894 # Now quote all the things that may contain metacharacters while being
12895 # careful not to overquote the AC_SUBSTed values. We take copies of the
12896 # variables and quote the copies for generation of the libtool script.
12897 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12898 SED SHELL STRIP \
12899 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12900 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12901 deplibs_check_method reload_flag reload_cmds need_locks \
12902 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12903 lt_cv_sys_global_symbol_to_c_name_address \
12904 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12905 old_postinstall_cmds old_postuninstall_cmds \
12906 compiler_CXX \
12907 CC_CXX \
12908 LD_CXX \
12909 lt_prog_compiler_wl_CXX \
12910 lt_prog_compiler_pic_CXX \
12911 lt_prog_compiler_static_CXX \
12912 lt_prog_compiler_no_builtin_flag_CXX \
12913 export_dynamic_flag_spec_CXX \
12914 thread_safe_flag_spec_CXX \
12915 whole_archive_flag_spec_CXX \
12916 enable_shared_with_static_runtimes_CXX \
12917 old_archive_cmds_CXX \
12918 old_archive_from_new_cmds_CXX \
12919 predep_objects_CXX \
12920 postdep_objects_CXX \
12921 predeps_CXX \
12922 postdeps_CXX \
12923 compiler_lib_search_path_CXX \
12924 archive_cmds_CXX \
12925 archive_expsym_cmds_CXX \
12926 postinstall_cmds_CXX \
12927 postuninstall_cmds_CXX \
12928 old_archive_from_expsyms_cmds_CXX \
12929 allow_undefined_flag_CXX \
12930 no_undefined_flag_CXX \
12931 export_symbols_cmds_CXX \
12932 hardcode_libdir_flag_spec_CXX \
12933 hardcode_libdir_flag_spec_ld_CXX \
12934 hardcode_libdir_separator_CXX \
12935 hardcode_automatic_CXX \
12936 module_cmds_CXX \
12937 module_expsym_cmds_CXX \
12938 lt_cv_prog_compiler_c_o_CXX \
12939 exclude_expsyms_CXX \
12940 include_expsyms_CXX; do
12941
12942 case $var in
12943 old_archive_cmds_CXX | \
12944 old_archive_from_new_cmds_CXX | \
12945 archive_cmds_CXX | \
12946 archive_expsym_cmds_CXX | \
12947 module_cmds_CXX | \
12948 module_expsym_cmds_CXX | \
12949 old_archive_from_expsyms_cmds_CXX | \
12950 export_symbols_cmds_CXX | \
12951 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12952 postinstall_cmds | postuninstall_cmds | \
12953 old_postinstall_cmds | old_postuninstall_cmds | \
12954 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12955 # Double-quote double-evaled strings.
12956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12957 ;;
12958 *)
12959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12960 ;;
12961 esac
12962 done
12963
12964 case $lt_echo in
12965 *'\$0 --fallback-echo"')
12966 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12967 ;;
12968 esac
12969
12970 cfgfile="$ofile"
12971
12972 cat <<__EOF__ >> "$cfgfile"
12973 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12974
12975 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12976
12977 # Shell to use when invoking shell scripts.
12978 SHELL=$lt_SHELL
12979
12980 # Whether or not to build shared libraries.
12981 build_libtool_libs=$enable_shared
12982
12983 # Whether or not to build static libraries.
12984 build_old_libs=$enable_static
12985
12986 # Whether or not to add -lc for building shared libraries.
12987 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12988
12989 # Whether or not to disallow shared libs when runtime libs are static
12990 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12991
12992 # Whether or not to optimize for fast installation.
12993 fast_install=$enable_fast_install
12994
12995 # The host system.
12996 host_alias=$host_alias
12997 host=$host
12998 host_os=$host_os
12999
13000 # The build system.
13001 build_alias=$build_alias
13002 build=$build
13003 build_os=$build_os
13004
13005 # An echo program that does not interpret backslashes.
13006 echo=$lt_echo
13007
13008 # The archiver.
13009 AR=$lt_AR
13010 AR_FLAGS=$lt_AR_FLAGS
13011
13012 # A C compiler.
13013 LTCC=$lt_LTCC
13014
13015 # LTCC compiler flags.
13016 LTCFLAGS=$lt_LTCFLAGS
13017
13018 # A language-specific compiler.
13019 CC=$lt_compiler_CXX
13020
13021 # Is the compiler the GNU C compiler?
13022 with_gcc=$GCC_CXX
13023
13024 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13025 gcc_ver=\`gcc -dumpversion\`
13026
13027 # An ERE matcher.
13028 EGREP=$lt_EGREP
13029
13030 # The linker used to build libraries.
13031 LD=$lt_LD_CXX
13032
13033 # Whether we need hard or soft links.
13034 LN_S=$lt_LN_S
13035
13036 # A BSD-compatible nm program.
13037 NM=$lt_NM
13038
13039 # A symbol stripping program
13040 STRIP=$lt_STRIP
13041
13042 # Used to examine libraries when file_magic_cmd begins "file"
13043 MAGIC_CMD=$MAGIC_CMD
13044
13045 # Used on cygwin: DLL creation program.
13046 DLLTOOL="$DLLTOOL"
13047
13048 # Used on cygwin: object dumper.
13049 OBJDUMP="$OBJDUMP"
13050
13051 # Used on cygwin: assembler.
13052 AS="$AS"
13053
13054 # The name of the directory that contains temporary libtool files.
13055 objdir=$objdir
13056
13057 # How to create reloadable object files.
13058 reload_flag=$lt_reload_flag
13059 reload_cmds=$lt_reload_cmds
13060
13061 # How to pass a linker flag through the compiler.
13062 wl=$lt_lt_prog_compiler_wl_CXX
13063
13064 # Object file suffix (normally "o").
13065 objext="$ac_objext"
13066
13067 # Old archive suffix (normally "a").
13068 libext="$libext"
13069
13070 # Shared library suffix (normally ".so").
13071 shrext_cmds='$shrext_cmds'
13072
13073 # Executable file suffix (normally "").
13074 exeext="$exeext"
13075
13076 # Additional compiler flags for building library objects.
13077 pic_flag=$lt_lt_prog_compiler_pic_CXX
13078 pic_mode=$pic_mode
13079
13080 # What is the maximum length of a command?
13081 max_cmd_len=$lt_cv_sys_max_cmd_len
13082
13083 # Does compiler simultaneously support -c and -o options?
13084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13085
13086 # Must we lock files when doing compilation?
13087 need_locks=$lt_need_locks
13088
13089 # Do we need the lib prefix for modules?
13090 need_lib_prefix=$need_lib_prefix
13091
13092 # Do we need a version for libraries?
13093 need_version=$need_version
13094
13095 # Whether dlopen is supported.
13096 dlopen_support=$enable_dlopen
13097
13098 # Whether dlopen of programs is supported.
13099 dlopen_self=$enable_dlopen_self
13100
13101 # Whether dlopen of statically linked programs is supported.
13102 dlopen_self_static=$enable_dlopen_self_static
13103
13104 # Compiler flag to prevent dynamic linking.
13105 link_static_flag=$lt_lt_prog_compiler_static_CXX
13106
13107 # Compiler flag to turn off builtin functions.
13108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13109
13110 # Compiler flag to allow reflexive dlopens.
13111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13112
13113 # Compiler flag to generate shared objects directly from archives.
13114 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13115
13116 # Compiler flag to generate thread-safe objects.
13117 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13118
13119 # Library versioning type.
13120 version_type=$version_type
13121
13122 # Format of library name prefix.
13123 libname_spec=$lt_libname_spec
13124
13125 # List of archive names. First name is the real one, the rest are links.
13126 # The last name is the one that the linker finds with -lNAME.
13127 library_names_spec=$lt_library_names_spec
13128
13129 # The coded name of the library, if different from the real name.
13130 soname_spec=$lt_soname_spec
13131
13132 # Commands used to build and install an old-style archive.
13133 RANLIB=$lt_RANLIB
13134 old_archive_cmds=$lt_old_archive_cmds_CXX
13135 old_postinstall_cmds=$lt_old_postinstall_cmds
13136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13137
13138 # Create an old-style archive from a shared archive.
13139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13140
13141 # Create a temporary old-style archive to link instead of a shared archive.
13142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13143
13144 # Commands used to build and install a shared archive.
13145 archive_cmds=$lt_archive_cmds_CXX
13146 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13147 postinstall_cmds=$lt_postinstall_cmds
13148 postuninstall_cmds=$lt_postuninstall_cmds
13149
13150 # Commands used to build a loadable module (assumed same as above if empty)
13151 module_cmds=$lt_module_cmds_CXX
13152 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13153
13154 # Commands to strip libraries.
13155 old_striplib=$lt_old_striplib
13156 striplib=$lt_striplib
13157
13158 # Dependencies to place before the objects being linked to create a
13159 # shared library.
13160 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13161
13162 # Dependencies to place after the objects being linked to create a
13163 # shared library.
13164 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13165
13166 # Dependencies to place before the objects being linked to create a
13167 # shared library.
13168 predeps=$lt_predeps_CXX
13169
13170 # Dependencies to place after the objects being linked to create a
13171 # shared library.
13172 postdeps=$lt_postdeps_CXX
13173
13174 # The library search path used internally by the compiler when linking
13175 # a shared library.
13176 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13177
13178 # Method to check whether dependent libraries are shared objects.
13179 deplibs_check_method=$lt_deplibs_check_method
13180
13181 # Command to use when deplibs_check_method == file_magic.
13182 file_magic_cmd=$lt_file_magic_cmd
13183
13184 # Flag that allows shared libraries with undefined symbols to be built.
13185 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13186
13187 # Flag that forces no undefined symbols.
13188 no_undefined_flag=$lt_no_undefined_flag_CXX
13189
13190 # Commands used to finish a libtool library installation in a directory.
13191 finish_cmds=$lt_finish_cmds
13192
13193 # Same as above, but a single script fragment to be evaled but not shown.
13194 finish_eval=$lt_finish_eval
13195
13196 # Take the output of nm and produce a listing of raw symbols and C names.
13197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13198
13199 # Transform the output of nm in a proper C declaration
13200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13201
13202 # Transform the output of nm in a C name address pair
13203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13204
13205 # This is the shared library runtime path variable.
13206 runpath_var=$runpath_var
13207
13208 # This is the shared library path variable.
13209 shlibpath_var=$shlibpath_var
13210
13211 # Is shlibpath searched before the hard-coded library search path?
13212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13213
13214 # How to hardcode a shared library path into an executable.
13215 hardcode_action=$hardcode_action_CXX
13216
13217 # Whether we should hardcode library paths into libraries.
13218 hardcode_into_libs=$hardcode_into_libs
13219
13220 # Flag to hardcode \$libdir into a binary during linking.
13221 # This must work even if \$libdir does not exist.
13222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13223
13224 # If ld is used when linking, flag to hardcode \$libdir into
13225 # a binary during linking. This must work even if \$libdir does
13226 # not exist.
13227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13228
13229 # Whether we need a single -rpath flag with a separated argument.
13230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13231
13232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13233 # resulting binary.
13234 hardcode_direct=$hardcode_direct_CXX
13235
13236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13237 # resulting binary.
13238 hardcode_minus_L=$hardcode_minus_L_CXX
13239
13240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13241 # the resulting binary.
13242 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13243
13244 # Set to yes if building a shared library automatically hardcodes DIR into the library
13245 # and all subsequent libraries and executables linked against it.
13246 hardcode_automatic=$hardcode_automatic_CXX
13247
13248 # Variables whose values should be saved in libtool wrapper scripts and
13249 # restored at relink time.
13250 variables_saved_for_relink="$variables_saved_for_relink"
13251
13252 # Whether libtool must link a program against all its dependency libraries.
13253 link_all_deplibs=$link_all_deplibs_CXX
13254
13255 # Compile-time system search path for libraries
13256 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13257
13258 # Run-time system search path for libraries
13259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13260
13261 # Fix the shell variable \$srcfile for the compiler.
13262 fix_srcfile_path="$fix_srcfile_path_CXX"
13263
13264 # Set to yes if exported symbols are required.
13265 always_export_symbols=$always_export_symbols_CXX
13266
13267 # The commands to list exported symbols.
13268 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13269
13270 # The commands to extract the exported symbol list from a shared archive.
13271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13272
13273 # Symbols that should not be listed in the preloaded symbols.
13274 exclude_expsyms=$lt_exclude_expsyms_CXX
13275
13276 # Symbols that must always be exported.
13277 include_expsyms=$lt_include_expsyms_CXX
13278
13279 # ### END LIBTOOL TAG CONFIG: $tagname
13280
13281 __EOF__
13282
13283
13284 else
13285 # If there is no Makefile yet, we rely on a make rule to execute
13286 # `config.status --recheck' to rerun these tests and create the
13287 # libtool script then.
13288 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13289 if test -f "$ltmain_in"; then
13290 test -f Makefile && make "$ltmain"
13291 fi
13292 fi
13293
13294
13295 ac_ext=c
13296 ac_cpp='$CPP $CPPFLAGS'
13297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13300
13301 CC=$lt_save_CC
13302 LDCXX=$LD
13303 LD=$lt_save_LD
13304 GCC=$lt_save_GCC
13305 with_gnu_ldcxx=$with_gnu_ld
13306 with_gnu_ld=$lt_save_with_gnu_ld
13307 lt_cv_path_LDCXX=$lt_cv_path_LD
13308 lt_cv_path_LD=$lt_save_path_LD
13309 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13310 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13311
13312 else
13313 tagname=""
13314 fi
13315 ;;
13316
13317 F77)
13318 if test -n "$F77" && test "X$F77" != "Xno"; then
13319
13320 ac_ext=f
13321 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13322 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13324
13325
13326 archive_cmds_need_lc_F77=no
13327 allow_undefined_flag_F77=
13328 always_export_symbols_F77=no
13329 archive_expsym_cmds_F77=
13330 export_dynamic_flag_spec_F77=
13331 hardcode_direct_F77=no
13332 hardcode_libdir_flag_spec_F77=
13333 hardcode_libdir_flag_spec_ld_F77=
13334 hardcode_libdir_separator_F77=
13335 hardcode_minus_L_F77=no
13336 hardcode_automatic_F77=no
13337 module_cmds_F77=
13338 module_expsym_cmds_F77=
13339 link_all_deplibs_F77=unknown
13340 old_archive_cmds_F77=$old_archive_cmds
13341 no_undefined_flag_F77=
13342 whole_archive_flag_spec_F77=
13343 enable_shared_with_static_runtimes_F77=no
13344
13345 # Source file extension for f77 test sources.
13346 ac_ext=f
13347
13348 # Object file extension for compiled f77 test sources.
13349 objext=o
13350 objext_F77=$objext
13351
13352 # Code to be used in simple compile tests
13353 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13354
13355 # Code to be used in simple link tests
13356 lt_simple_link_test_code=" program t\n end\n"
13357
13358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13359
13360 # If no C compiler was specified, use CC.
13361 LTCC=${LTCC-"$CC"}
13362
13363 # If no C compiler flags were specified, use CFLAGS.
13364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13365
13366 # Allow CC to be a program name with arguments.
13367 compiler=$CC
13368
13369
13370 # save warnings/boilerplate of simple test code
13371 ac_outfile=conftest.$ac_objext
13372 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13374 _lt_compiler_boilerplate=`cat conftest.err`
13375 $rm conftest*
13376
13377 ac_outfile=conftest.$ac_objext
13378 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13380 _lt_linker_boilerplate=`cat conftest.err`
13381 $rm conftest*
13382
13383
13384 # Allow CC to be a program name with arguments.
13385 lt_save_CC="$CC"
13386 CC=${F77-"f77"}
13387 compiler=$CC
13388 compiler_F77=$CC
13389 for cc_temp in $compiler""; do
13390 case $cc_temp in
13391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13393 \-*) ;;
13394 *) break;;
13395 esac
13396 done
13397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13398
13399
13400 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13401 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13402 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13403 echo "${ECHO_T}$can_build_shared" >&6
13404
13405 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13406 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13407 test "$can_build_shared" = "no" && enable_shared=no
13408
13409 # On AIX, shared libraries and static libraries use the same namespace, and
13410 # are all built from PIC.
13411 case $host_os in
13412 aix3*)
13413 test "$enable_shared" = yes && enable_static=no
13414 if test -n "$RANLIB"; then
13415 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13416 postinstall_cmds='$RANLIB $lib'
13417 fi
13418 ;;
13419 aix4* | aix5*)
13420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13421 test "$enable_shared" = yes && enable_static=no
13422 fi
13423 ;;
13424 esac
13425 echo "$as_me:$LINENO: result: $enable_shared" >&5
13426 echo "${ECHO_T}$enable_shared" >&6
13427
13428 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13429 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13430 # Make sure either enable_shared or enable_static is yes.
13431 test "$enable_shared" = yes || enable_static=yes
13432 echo "$as_me:$LINENO: result: $enable_static" >&5
13433 echo "${ECHO_T}$enable_static" >&6
13434
13435 GCC_F77="$G77"
13436 LD_F77="$LD"
13437
13438 lt_prog_compiler_wl_F77=
13439 lt_prog_compiler_pic_F77=
13440 lt_prog_compiler_static_F77=
13441
13442 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13443 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13444
13445 if test "$GCC" = yes; then
13446 lt_prog_compiler_wl_F77='-Wl,'
13447 lt_prog_compiler_static_F77='-static'
13448
13449 case $host_os in
13450 aix*)
13451 # All AIX code is PIC.
13452 if test "$host_cpu" = ia64; then
13453 # AIX 5 now supports IA64 processor
13454 lt_prog_compiler_static_F77='-Bstatic'
13455 fi
13456 ;;
13457
13458 amigaos*)
13459 # FIXME: we need at least 68020 code to build shared libraries, but
13460 # adding the `-m68020' flag to GCC prevents building anything better,
13461 # like `-m68040'.
13462 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13463 ;;
13464
13465 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13466 # PIC is the default for these OSes.
13467 ;;
13468
13469 mingw* | pw32* | os2*)
13470 # This hack is so that the source file can tell whether it is being
13471 # built for inclusion in a dll (and should export symbols for example).
13472 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13473 ;;
13474
13475 darwin* | rhapsody*)
13476 # PIC is the default on this platform
13477 # Common symbols not allowed in MH_DYLIB files
13478 lt_prog_compiler_pic_F77='-fno-common'
13479 ;;
13480
13481 interix3*)
13482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13483 # Instead, we relocate shared libraries at runtime.
13484 ;;
13485
13486 msdosdjgpp*)
13487 # Just because we use GCC doesn't mean we suddenly get shared libraries
13488 # on systems that don't support them.
13489 lt_prog_compiler_can_build_shared_F77=no
13490 enable_shared=no
13491 ;;
13492
13493 sysv4*MP*)
13494 if test -d /usr/nec; then
13495 lt_prog_compiler_pic_F77=-Kconform_pic
13496 fi
13497 ;;
13498
13499 hpux*)
13500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13501 # not for PA HP-UX.
13502 case $host_cpu in
13503 hppa*64*|ia64*)
13504 # +Z the default
13505 ;;
13506 *)
13507 lt_prog_compiler_pic_F77='-fPIC'
13508 ;;
13509 esac
13510 ;;
13511
13512 *)
13513 lt_prog_compiler_pic_F77='-fPIC'
13514 ;;
13515 esac
13516 else
13517 # PORTME Check for flag to pass linker flags through the system compiler.
13518 case $host_os in
13519 aix*)
13520 lt_prog_compiler_wl_F77='-Wl,'
13521 if test "$host_cpu" = ia64; then
13522 # AIX 5 now supports IA64 processor
13523 lt_prog_compiler_static_F77='-Bstatic'
13524 else
13525 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13526 fi
13527 ;;
13528 darwin*)
13529 # PIC is the default on this platform
13530 # Common symbols not allowed in MH_DYLIB files
13531 case $cc_basename in
13532 xlc*)
13533 lt_prog_compiler_pic_F77='-qnocommon'
13534 lt_prog_compiler_wl_F77='-Wl,'
13535 ;;
13536 esac
13537 ;;
13538
13539 mingw* | pw32* | os2*)
13540 # This hack is so that the source file can tell whether it is being
13541 # built for inclusion in a dll (and should export symbols for example).
13542 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13543 ;;
13544
13545 hpux9* | hpux10* | hpux11*)
13546 lt_prog_compiler_wl_F77='-Wl,'
13547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13548 # not for PA HP-UX.
13549 case $host_cpu in
13550 hppa*64*|ia64*)
13551 # +Z the default
13552 ;;
13553 *)
13554 lt_prog_compiler_pic_F77='+Z'
13555 ;;
13556 esac
13557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13558 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13559 ;;
13560
13561 irix5* | irix6* | nonstopux*)
13562 lt_prog_compiler_wl_F77='-Wl,'
13563 # PIC (with -KPIC) is the default.
13564 lt_prog_compiler_static_F77='-non_shared'
13565 ;;
13566
13567 newsos6)
13568 lt_prog_compiler_pic_F77='-KPIC'
13569 lt_prog_compiler_static_F77='-Bstatic'
13570 ;;
13571
13572 linux*)
13573 case $cc_basename in
13574 icc* | ecc*)
13575 lt_prog_compiler_wl_F77='-Wl,'
13576 lt_prog_compiler_pic_F77='-KPIC'
13577 lt_prog_compiler_static_F77='-static'
13578 ;;
13579 pgcc* | pgf77* | pgf90* | pgf95*)
13580 # Portland Group compilers (*not* the Pentium gcc compiler,
13581 # which looks to be a dead project)
13582 lt_prog_compiler_wl_F77='-Wl,'
13583 lt_prog_compiler_pic_F77='-fpic'
13584 lt_prog_compiler_static_F77='-Bstatic'
13585 ;;
13586 ccc*)
13587 lt_prog_compiler_wl_F77='-Wl,'
13588 # All Alpha code is PIC.
13589 lt_prog_compiler_static_F77='-non_shared'
13590 ;;
13591 esac
13592 ;;
13593
13594 osf3* | osf4* | osf5*)
13595 lt_prog_compiler_wl_F77='-Wl,'
13596 # All OSF/1 code is PIC.
13597 lt_prog_compiler_static_F77='-non_shared'
13598 ;;
13599
13600 solaris*)
13601 lt_prog_compiler_pic_F77='-KPIC'
13602 lt_prog_compiler_static_F77='-Bstatic'
13603 case $cc_basename in
13604 f77* | f90* | f95*)
13605 lt_prog_compiler_wl_F77='-Qoption ld ';;
13606 *)
13607 lt_prog_compiler_wl_F77='-Wl,';;
13608 esac
13609 ;;
13610
13611 sunos4*)
13612 lt_prog_compiler_wl_F77='-Qoption ld '
13613 lt_prog_compiler_pic_F77='-PIC'
13614 lt_prog_compiler_static_F77='-Bstatic'
13615 ;;
13616
13617 sysv4 | sysv4.2uw2* | sysv4.3*)
13618 lt_prog_compiler_wl_F77='-Wl,'
13619 lt_prog_compiler_pic_F77='-KPIC'
13620 lt_prog_compiler_static_F77='-Bstatic'
13621 ;;
13622
13623 sysv4*MP*)
13624 if test -d /usr/nec ;then
13625 lt_prog_compiler_pic_F77='-Kconform_pic'
13626 lt_prog_compiler_static_F77='-Bstatic'
13627 fi
13628 ;;
13629
13630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13631 lt_prog_compiler_wl_F77='-Wl,'
13632 lt_prog_compiler_pic_F77='-KPIC'
13633 lt_prog_compiler_static_F77='-Bstatic'
13634 ;;
13635
13636 unicos*)
13637 lt_prog_compiler_wl_F77='-Wl,'
13638 lt_prog_compiler_can_build_shared_F77=no
13639 ;;
13640
13641 uts4*)
13642 lt_prog_compiler_pic_F77='-pic'
13643 lt_prog_compiler_static_F77='-Bstatic'
13644 ;;
13645
13646 *)
13647 lt_prog_compiler_can_build_shared_F77=no
13648 ;;
13649 esac
13650 fi
13651
13652 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13653 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13654
13655 #
13656 # Check to make sure the PIC flag actually works.
13657 #
13658 if test -n "$lt_prog_compiler_pic_F77"; then
13659
13660 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13661 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13662 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 lt_prog_compiler_pic_works_F77=no
13666 ac_outfile=conftest.$ac_objext
13667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13668 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13669 # Insert the option either (1) after the last *FLAGS variable, or
13670 # (2) before a word containing "conftest.", or (3) at the end.
13671 # Note that $ac_compile itself does not contain backslashes and begins
13672 # with a dollar sign (not a hyphen), so the echo should work correctly.
13673 # The option is referenced via a variable to avoid confusing sed.
13674 lt_compile=`echo "$ac_compile" | $SED \
13675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13677 -e 's:$: $lt_compiler_flag:'`
13678 (eval echo "\"\$as_me:13678: $lt_compile\"" >&5)
13679 (eval "$lt_compile" 2>conftest.err)
13680 ac_status=$?
13681 cat conftest.err >&5
13682 echo "$as_me:13682: \$? = $ac_status" >&5
13683 if (exit $ac_status) && test -s "$ac_outfile"; then
13684 # The compiler can only warn and ignore the option if not recognized
13685 # So say no if there are warnings other than the usual output.
13686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13689 lt_prog_compiler_pic_works_F77=yes
13690 fi
13691 fi
13692 $rm conftest*
13693
13694 fi
13695 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13696 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13697
13698 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13699 case $lt_prog_compiler_pic_F77 in
13700 "" | " "*) ;;
13701 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13702 esac
13703 else
13704 lt_prog_compiler_pic_F77=
13705 lt_prog_compiler_can_build_shared_F77=no
13706 fi
13707
13708 fi
13709 case $host_os in
13710 # For platforms which do not support PIC, -DPIC is meaningless:
13711 *djgpp*)
13712 lt_prog_compiler_pic_F77=
13713 ;;
13714 *)
13715 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13716 ;;
13717 esac
13718
13719 #
13720 # Check to make sure the static flag actually works.
13721 #
13722 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13723 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13724 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13725 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728 lt_prog_compiler_static_works_F77=no
13729 save_LDFLAGS="$LDFLAGS"
13730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13731 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13733 # The linker can only warn and ignore the option if not recognized
13734 # So say no if there are warnings
13735 if test -s conftest.err; then
13736 # Append any errors to the config.log.
13737 cat conftest.err 1>&5
13738 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13740 if diff conftest.exp conftest.er2 >/dev/null; then
13741 lt_prog_compiler_static_works_F77=yes
13742 fi
13743 else
13744 lt_prog_compiler_static_works_F77=yes
13745 fi
13746 fi
13747 $rm conftest*
13748 LDFLAGS="$save_LDFLAGS"
13749
13750 fi
13751 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13752 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13753
13754 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13755 :
13756 else
13757 lt_prog_compiler_static_F77=
13758 fi
13759
13760
13761 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13762 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13763 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766 lt_cv_prog_compiler_c_o_F77=no
13767 $rm -r conftest 2>/dev/null
13768 mkdir conftest
13769 cd conftest
13770 mkdir out
13771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13772
13773 lt_compiler_flag="-o out/conftest2.$ac_objext"
13774 # Insert the option either (1) after the last *FLAGS variable, or
13775 # (2) before a word containing "conftest.", or (3) at the end.
13776 # Note that $ac_compile itself does not contain backslashes and begins
13777 # with a dollar sign (not a hyphen), so the echo should work correctly.
13778 lt_compile=`echo "$ac_compile" | $SED \
13779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13781 -e 's:$: $lt_compiler_flag:'`
13782 (eval echo "\"\$as_me:13782: $lt_compile\"" >&5)
13783 (eval "$lt_compile" 2>out/conftest.err)
13784 ac_status=$?
13785 cat out/conftest.err >&5
13786 echo "$as_me:13786: \$? = $ac_status" >&5
13787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13788 then
13789 # The compiler can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13794 lt_cv_prog_compiler_c_o_F77=yes
13795 fi
13796 fi
13797 chmod u+w . 2>&5
13798 $rm conftest*
13799 # SGI C++ compiler will create directory out/ii_files/ for
13800 # template instantiation
13801 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13802 $rm out/* && rmdir out
13803 cd ..
13804 rmdir conftest
13805 $rm conftest*
13806
13807 fi
13808 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13809 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13810
13811
13812 hard_links="nottested"
13813 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13814 # do not overwrite the value of need_locks provided by the user
13815 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13816 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13817 hard_links=yes
13818 $rm conftest*
13819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13820 touch conftest.a
13821 ln conftest.a conftest.b 2>&5 || hard_links=no
13822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13823 echo "$as_me:$LINENO: result: $hard_links" >&5
13824 echo "${ECHO_T}$hard_links" >&6
13825 if test "$hard_links" = no; then
13826 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13827 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13828 need_locks=warn
13829 fi
13830 else
13831 need_locks=no
13832 fi
13833
13834 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13836
13837 runpath_var=
13838 allow_undefined_flag_F77=
13839 enable_shared_with_static_runtimes_F77=no
13840 archive_cmds_F77=
13841 archive_expsym_cmds_F77=
13842 old_archive_From_new_cmds_F77=
13843 old_archive_from_expsyms_cmds_F77=
13844 export_dynamic_flag_spec_F77=
13845 whole_archive_flag_spec_F77=
13846 thread_safe_flag_spec_F77=
13847 hardcode_libdir_flag_spec_F77=
13848 hardcode_libdir_flag_spec_ld_F77=
13849 hardcode_libdir_separator_F77=
13850 hardcode_direct_F77=no
13851 hardcode_minus_L_F77=no
13852 hardcode_shlibpath_var_F77=unsupported
13853 link_all_deplibs_F77=unknown
13854 hardcode_automatic_F77=no
13855 module_cmds_F77=
13856 module_expsym_cmds_F77=
13857 always_export_symbols_F77=no
13858 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13859 # include_expsyms should be a list of space-separated symbols to be *always*
13860 # included in the symbol list
13861 include_expsyms_F77=
13862 # exclude_expsyms can be an extended regexp of symbols to exclude
13863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13865 # as well as any symbol that contains `d'.
13866 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13868 # platforms (ab)use it in PIC code, but their linkers get confused if
13869 # the symbol is explicitly referenced. Since portable code cannot
13870 # rely on this symbol name, it's probably fine to never include it in
13871 # preloaded symbol tables.
13872 extract_expsyms_cmds=
13873 # Just being paranoid about ensuring that cc_basename is set.
13874 for cc_temp in $compiler""; do
13875 case $cc_temp in
13876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13878 \-*) ;;
13879 *) break;;
13880 esac
13881 done
13882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13883
13884 case $host_os in
13885 cygwin* | mingw* | pw32*)
13886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13887 # When not using gcc, we currently assume that we are using
13888 # Microsoft Visual C++.
13889 if test "$GCC" != yes; then
13890 with_gnu_ld=no
13891 fi
13892 ;;
13893 interix*)
13894 # we just hope/assume this is gcc and not c89 (= MSVC++)
13895 with_gnu_ld=yes
13896 ;;
13897 openbsd*)
13898 with_gnu_ld=no
13899 ;;
13900 esac
13901
13902 ld_shlibs_F77=yes
13903 if test "$with_gnu_ld" = yes; then
13904 # If archive_cmds runs LD, not CC, wlarc should be empty
13905 wlarc='${wl}'
13906
13907 # Set some defaults for GNU ld with shared library support. These
13908 # are reset later if shared libraries are not supported. Putting them
13909 # here allows them to be overridden if necessary.
13910 runpath_var=LD_RUN_PATH
13911 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13912 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13913 # ancient GNU ld didn't support --whole-archive et. al.
13914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13915 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13916 else
13917 whole_archive_flag_spec_F77=
13918 fi
13919 supports_anon_versioning=no
13920 case `$LD -v 2>/dev/null` in
13921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13924 *\ 2.11.*) ;; # other 2.11 versions
13925 *) supports_anon_versioning=yes ;;
13926 esac
13927
13928 # See if GNU ld supports shared libraries.
13929 case $host_os in
13930 aix3* | aix4* | aix5*)
13931 # On AIX/PPC, the GNU linker is very broken
13932 if test "$host_cpu" != ia64; then
13933 ld_shlibs_F77=no
13934 cat <<EOF 1>&2
13935
13936 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13937 *** to be unable to reliably create shared libraries on AIX.
13938 *** Therefore, libtool is disabling shared libraries support. If you
13939 *** really care for shared libraries, you may want to modify your PATH
13940 *** so that a non-GNU linker is found, and then restart.
13941
13942 EOF
13943 fi
13944 ;;
13945
13946 amigaos*)
13947 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)'
13948 hardcode_libdir_flag_spec_F77='-L$libdir'
13949 hardcode_minus_L_F77=yes
13950
13951 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13952 # that the semantics of dynamic libraries on AmigaOS, at least up
13953 # to version 4, is to share data among multiple programs linked
13954 # with the same dynamic library. Since this doesn't match the
13955 # behavior of shared libraries on other platforms, we can't use
13956 # them.
13957 ld_shlibs_F77=no
13958 ;;
13959
13960 beos*)
13961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13962 allow_undefined_flag_F77=unsupported
13963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13964 # support --undefined. This deserves some investigation. FIXME
13965 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966 else
13967 ld_shlibs_F77=no
13968 fi
13969 ;;
13970
13971 cygwin* | mingw* | pw32*)
13972 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13973 # as there is no search path for DLLs.
13974 hardcode_libdir_flag_spec_F77='-L$libdir'
13975 allow_undefined_flag_F77=unsupported
13976 always_export_symbols_F77=no
13977 enable_shared_with_static_runtimes_F77=yes
13978 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13979
13980 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13981 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13982 # If the export-symbols file already is a .def file (1st line
13983 # is EXPORTS), use it as is; otherwise, prepend...
13984 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13985 cp $export_symbols $output_objdir/$soname.def;
13986 else
13987 echo EXPORTS > $output_objdir/$soname.def;
13988 cat $export_symbols >> $output_objdir/$soname.def;
13989 fi~
13990 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13991 else
13992 ld_shlibs_F77=no
13993 fi
13994 ;;
13995
13996 interix3*)
13997 hardcode_direct_F77=no
13998 hardcode_shlibpath_var_F77=no
13999 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14000 export_dynamic_flag_spec_F77='${wl}-E'
14001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14002 # Instead, shared libraries are loaded at an image base (0x10000000 by
14003 # default) and relocated if they conflict, which is a slow very memory
14004 # consuming and fragmenting process. To avoid this, we pick a random,
14005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14007 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14008 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14009 ;;
14010
14011 linux*)
14012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14013 tmp_addflag=
14014 case $cc_basename,$host_cpu in
14015 pgcc*) # Portland Group C compiler
14016 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14017 tmp_addflag=' $pic_flag'
14018 ;;
14019 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14020 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14021 tmp_addflag=' $pic_flag -Mnomain' ;;
14022 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14023 tmp_addflag=' -i_dynamic' ;;
14024 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14025 tmp_addflag=' -i_dynamic -nofor_main' ;;
14026 ifc* | ifort*) # Intel Fortran compiler
14027 tmp_addflag=' -nofor_main' ;;
14028 esac
14029 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14030
14031 if test $supports_anon_versioning = yes; then
14032 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14034 $echo "local: *; };" >> $output_objdir/$libname.ver~
14035 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14036 fi
14037 else
14038 ld_shlibs_F77=no
14039 fi
14040 ;;
14041
14042 netbsd*)
14043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14044 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14045 wlarc=
14046 else
14047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049 fi
14050 ;;
14051
14052 solaris*)
14053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14054 ld_shlibs_F77=no
14055 cat <<EOF 1>&2
14056
14057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14058 *** create shared libraries on Solaris systems. Therefore, libtool
14059 *** is disabling shared libraries support. We urge you to upgrade GNU
14060 *** binutils to release 2.9.1 or newer. Another option is to modify
14061 *** your PATH or compiler configuration so that the native linker is
14062 *** used, and then restart.
14063
14064 EOF
14065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14068 else
14069 ld_shlibs_F77=no
14070 fi
14071 ;;
14072
14073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14074 case `$LD -v 2>&1` in
14075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14076 ld_shlibs_F77=no
14077 cat <<_LT_EOF 1>&2
14078
14079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14080 *** reliably create shared libraries on SCO systems. Therefore, libtool
14081 *** is disabling shared libraries support. We urge you to upgrade GNU
14082 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14083 *** your PATH or compiler configuration so that the native linker is
14084 *** used, and then restart.
14085
14086 _LT_EOF
14087 ;;
14088 *)
14089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14090 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14092 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14093 else
14094 ld_shlibs_F77=no
14095 fi
14096 ;;
14097 esac
14098 ;;
14099
14100 sunos4*)
14101 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14102 wlarc=
14103 hardcode_direct_F77=yes
14104 hardcode_shlibpath_var_F77=no
14105 ;;
14106
14107 *)
14108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14110 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14111 else
14112 ld_shlibs_F77=no
14113 fi
14114 ;;
14115 esac
14116
14117 if test "$ld_shlibs_F77" = no; then
14118 runpath_var=
14119 hardcode_libdir_flag_spec_F77=
14120 export_dynamic_flag_spec_F77=
14121 whole_archive_flag_spec_F77=
14122 fi
14123 else
14124 # PORTME fill in a description of your system's linker (not GNU ld)
14125 case $host_os in
14126 aix3*)
14127 allow_undefined_flag_F77=unsupported
14128 always_export_symbols_F77=yes
14129 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'
14130 # Note: this linker hardcodes the directories in LIBPATH if there
14131 # are no directories specified by -L.
14132 hardcode_minus_L_F77=yes
14133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14134 # Neither direct hardcoding nor static linking is supported with a
14135 # broken collect2.
14136 hardcode_direct_F77=unsupported
14137 fi
14138 ;;
14139
14140 aix4* | aix5*)
14141 if test "$host_cpu" = ia64; then
14142 # On IA64, the linker does run time linking by default, so we don't
14143 # have to do anything special.
14144 aix_use_runtimelinking=no
14145 exp_sym_flag='-Bexport'
14146 no_entry_flag=""
14147 else
14148 # If we're using GNU nm, then we don't want the "-C" option.
14149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14151 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'
14152 else
14153 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'
14154 fi
14155 aix_use_runtimelinking=no
14156
14157 # Test if we are trying to use run time linking or normal
14158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14159 # need to do runtime linking.
14160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14161 for ld_flag in $LDFLAGS; do
14162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14163 aix_use_runtimelinking=yes
14164 break
14165 fi
14166 done
14167 ;;
14168 esac
14169
14170 exp_sym_flag='-bexport'
14171 no_entry_flag='-bnoentry'
14172 fi
14173
14174 # When large executables or shared objects are built, AIX ld can
14175 # have problems creating the table of contents. If linking a library
14176 # or program results in "error TOC overflow" add -mminimal-toc to
14177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14179
14180 archive_cmds_F77=''
14181 hardcode_direct_F77=yes
14182 hardcode_libdir_separator_F77=':'
14183 link_all_deplibs_F77=yes
14184
14185 if test "$GCC" = yes; then
14186 case $host_os in aix4.[012]|aix4.[012].*)
14187 # We only want to do this on AIX 4.2 and lower, the check
14188 # below for broken collect2 doesn't work under 4.3+
14189 collect2name=`${CC} -print-prog-name=collect2`
14190 if test -f "$collect2name" && \
14191 strings "$collect2name" | grep resolve_lib_name >/dev/null
14192 then
14193 # We have reworked collect2
14194 hardcode_direct_F77=yes
14195 else
14196 # We have old collect2
14197 hardcode_direct_F77=unsupported
14198 # It fails to find uninstalled libraries when the uninstalled
14199 # path is not listed in the libpath. Setting hardcode_minus_L
14200 # to unsupported forces relinking
14201 hardcode_minus_L_F77=yes
14202 hardcode_libdir_flag_spec_F77='-L$libdir'
14203 hardcode_libdir_separator_F77=
14204 fi
14205 ;;
14206 esac
14207 shared_flag='-shared'
14208 if test "$aix_use_runtimelinking" = yes; then
14209 shared_flag="$shared_flag "'${wl}-G'
14210 fi
14211 else
14212 # not using gcc
14213 if test "$host_cpu" = ia64; then
14214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14215 # chokes on -Wl,-G. The following line is correct:
14216 shared_flag='-G'
14217 else
14218 if test "$aix_use_runtimelinking" = yes; then
14219 shared_flag='${wl}-G'
14220 else
14221 shared_flag='${wl}-bM:SRE'
14222 fi
14223 fi
14224 fi
14225
14226 # It seems that -bexpall does not export symbols beginning with
14227 # underscore (_), so it is better to generate a list of symbols to export.
14228 always_export_symbols_F77=yes
14229 if test "$aix_use_runtimelinking" = yes; then
14230 # Warning - without using the other runtime loading flags (-brtl),
14231 # -berok will link without error, but may produce a broken library.
14232 allow_undefined_flag_F77='-berok'
14233 # Determine the default libpath from the value encoded in an empty executable.
14234 cat >conftest.$ac_ext <<_ACEOF
14235 program main
14236
14237 end
14238 _ACEOF
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14241 (eval $ac_link) 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_f77_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest$ac_exeext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261
14262 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14263 }'`
14264 # Check for a 64-bit object if we didn't find anything.
14265 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; }
14266 }'`; fi
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 fi
14272 rm -f conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14275
14276 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14277 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14278 else
14279 if test "$host_cpu" = ia64; then
14280 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14281 allow_undefined_flag_F77="-z nodefs"
14282 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14283 else
14284 # Determine the default libpath from the value encoded in an empty executable.
14285 cat >conftest.$ac_ext <<_ACEOF
14286 program main
14287
14288 end
14289 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14292 (eval $ac_link) 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -z "$ac_f77_werror_flag"
14300 || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312
14313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14314 }'`
14315 # Check for a 64-bit object if we didn't find anything.
14316 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; }
14317 }'`; fi
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 fi
14323 rm -f conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14326
14327 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14328 # Warning - without using the other run time loading flags,
14329 # -berok will link without error, but may produce a broken library.
14330 no_undefined_flag_F77=' ${wl}-bernotok'
14331 allow_undefined_flag_F77=' ${wl}-berok'
14332 # Exported symbols can be pulled into shared objects from archives
14333 whole_archive_flag_spec_F77='$convenience'
14334 archive_cmds_need_lc_F77=yes
14335 # This is similar to how AIX traditionally builds its shared libraries.
14336 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14337 fi
14338 fi
14339 ;;
14340
14341 amigaos*)
14342 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)'
14343 hardcode_libdir_flag_spec_F77='-L$libdir'
14344 hardcode_minus_L_F77=yes
14345 # see comment about different semantics on the GNU ld section
14346 ld_shlibs_F77=no
14347 ;;
14348
14349 bsdi[45]*)
14350 export_dynamic_flag_spec_F77=-rdynamic
14351 ;;
14352
14353 cygwin* | mingw* | pw32*)
14354 # When not using gcc, we currently assume that we are using
14355 # Microsoft Visual C++.
14356 # hardcode_libdir_flag_spec is actually meaningless, as there is
14357 # no search path for DLLs.
14358 hardcode_libdir_flag_spec_F77=' '
14359 allow_undefined_flag_F77=unsupported
14360 # Tell ltmain to make .lib files, not .a files.
14361 libext=lib
14362 # Tell ltmain to make .dll files, not .so files.
14363 shrext_cmds=".dll"
14364 # FIXME: Setting linknames here is a bad hack.
14365 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14366 # The linker will automatically build a .lib file if we build a DLL.
14367 old_archive_From_new_cmds_F77='true'
14368 # FIXME: Should let the user specify the lib program.
14369 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14370 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14371 enable_shared_with_static_runtimes_F77=yes
14372 ;;
14373
14374 darwin* | rhapsody*)
14375 case $host_os in
14376 rhapsody* | darwin1.[012])
14377 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14378 ;;
14379 *) # Darwin 1.3 on
14380 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14381 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14382 else
14383 case ${MACOSX_DEPLOYMENT_TARGET} in
14384 10.[012])
14385 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14386 ;;
14387 10.*)
14388 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14389 ;;
14390 esac
14391 fi
14392 ;;
14393 esac
14394 archive_cmds_need_lc_F77=no
14395 hardcode_direct_F77=no
14396 hardcode_automatic_F77=yes
14397 hardcode_shlibpath_var_F77=unsupported
14398 whole_archive_flag_spec_F77=''
14399 link_all_deplibs_F77=yes
14400 if test "$GCC" = yes ; then
14401 output_verbose_link_cmd='echo'
14402 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14403 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14405 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14406 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}'
14407 else
14408 case $cc_basename in
14409 xlc*)
14410 output_verbose_link_cmd='echo'
14411 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14412 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14414 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14415 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}'
14416 ;;
14417 *)
14418 ld_shlibs_F77=no
14419 ;;
14420 esac
14421 fi
14422 ;;
14423
14424 dgux*)
14425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14426 hardcode_libdir_flag_spec_F77='-L$libdir'
14427 hardcode_shlibpath_var_F77=no
14428 ;;
14429
14430 freebsd1*)
14431 ld_shlibs_F77=no
14432 ;;
14433
14434 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14435 # support. Future versions do this automatically, but an explicit c++rt0.o
14436 # does not break anything, and helps significantly (at the cost of a little
14437 # extra space).
14438 freebsd2.2*)
14439 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14440 hardcode_libdir_flag_spec_F77='-R$libdir'
14441 hardcode_direct_F77=yes
14442 hardcode_shlibpath_var_F77=no
14443 ;;
14444
14445 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14446 freebsd2*)
14447 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14448 hardcode_direct_F77=yes
14449 hardcode_minus_L_F77=yes
14450 hardcode_shlibpath_var_F77=no
14451 ;;
14452
14453 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14454 freebsd* | kfreebsd*-gnu | dragonfly*)
14455 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14456 hardcode_libdir_flag_spec_F77='-R$libdir'
14457 hardcode_direct_F77=yes
14458 hardcode_shlibpath_var_F77=no
14459 ;;
14460
14461 hpux9*)
14462 if test "$GCC" = yes; then
14463 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'
14464 else
14465 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'
14466 fi
14467 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14468 hardcode_libdir_separator_F77=:
14469 hardcode_direct_F77=yes
14470
14471 # hardcode_minus_L: Not really in the search PATH,
14472 # but as the default location of the library.
14473 hardcode_minus_L_F77=yes
14474 export_dynamic_flag_spec_F77='${wl}-E'
14475 ;;
14476
14477 hpux10*)
14478 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14479 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14480 else
14481 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14482 fi
14483 if test "$with_gnu_ld" = no; then
14484 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14485 hardcode_libdir_separator_F77=:
14486
14487 hardcode_direct_F77=yes
14488 export_dynamic_flag_spec_F77='${wl}-E'
14489
14490 # hardcode_minus_L: Not really in the search PATH,
14491 # but as the default location of the library.
14492 hardcode_minus_L_F77=yes
14493 fi
14494 ;;
14495
14496 hpux11*)
14497 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14498 case $host_cpu in
14499 hppa*64*)
14500 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 ;;
14502 ia64*)
14503 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14504 ;;
14505 *)
14506 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14507 ;;
14508 esac
14509 else
14510 case $host_cpu in
14511 hppa*64*)
14512 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14513 ;;
14514 ia64*)
14515 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14516 ;;
14517 *)
14518 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14519 ;;
14520 esac
14521 fi
14522 if test "$with_gnu_ld" = no; then
14523 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14524 hardcode_libdir_separator_F77=:
14525
14526 case $host_cpu in
14527 hppa*64*|ia64*)
14528 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14529 hardcode_direct_F77=no
14530 hardcode_shlibpath_var_F77=no
14531 ;;
14532 *)
14533 hardcode_direct_F77=yes
14534 export_dynamic_flag_spec_F77='${wl}-E'
14535
14536 # hardcode_minus_L: Not really in the search PATH,
14537 # but as the default location of the library.
14538 hardcode_minus_L_F77=yes
14539 ;;
14540 esac
14541 fi
14542 ;;
14543
14544 irix5* | irix6* | nonstopux*)
14545 if test "$GCC" = yes; then
14546 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'
14547 else
14548 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'
14549 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14550 fi
14551 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14552 hardcode_libdir_separator_F77=:
14553 link_all_deplibs_F77=yes
14554 ;;
14555
14556 netbsd*)
14557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14558 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14559 else
14560 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14561 fi
14562 hardcode_libdir_flag_spec_F77='-R$libdir'
14563 hardcode_direct_F77=yes
14564 hardcode_shlibpath_var_F77=no
14565 ;;
14566
14567 newsos6)
14568 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14569 hardcode_direct_F77=yes
14570 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14571 hardcode_libdir_separator_F77=:
14572 hardcode_shlibpath_var_F77=no
14573 ;;
14574
14575 openbsd*)
14576 hardcode_direct_F77=yes
14577 hardcode_shlibpath_var_F77=no
14578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14579 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14580 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14581 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14582 export_dynamic_flag_spec_F77='${wl}-E'
14583 else
14584 case $host_os in
14585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14587 hardcode_libdir_flag_spec_F77='-R$libdir'
14588 ;;
14589 *)
14590 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14591 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14592 ;;
14593 esac
14594 fi
14595 ;;
14596
14597 os2*)
14598 hardcode_libdir_flag_spec_F77='-L$libdir'
14599 hardcode_minus_L_F77=yes
14600 allow_undefined_flag_F77=unsupported
14601 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'
14602 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14603 ;;
14604
14605 osf3*)
14606 if test "$GCC" = yes; then
14607 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14608 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'
14609 else
14610 allow_undefined_flag_F77=' -expect_unresolved \*'
14611 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'
14612 fi
14613 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14614 hardcode_libdir_separator_F77=:
14615 ;;
14616
14617 osf4* | osf5*) # as osf3* with the addition of -msym flag
14618 if test "$GCC" = yes; then
14619 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14620 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'
14621 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14622 else
14623 allow_undefined_flag_F77=' -expect_unresolved \*'
14624 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'
14625 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~
14626 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14627
14628 # Both c and cxx compiler support -rpath directly
14629 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14630 fi
14631 hardcode_libdir_separator_F77=:
14632 ;;
14633
14634 solaris*)
14635 no_undefined_flag_F77=' -z text'
14636 if test "$GCC" = yes; then
14637 wlarc='${wl}'
14638 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14639 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14640 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14641 else
14642 wlarc=''
14643 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14646 fi
14647 hardcode_libdir_flag_spec_F77='-R$libdir'
14648 hardcode_shlibpath_var_F77=no
14649 case $host_os in
14650 solaris2.[0-5] | solaris2.[0-5].*) ;;
14651 *)
14652 # The compiler driver will combine linker options so we
14653 # cannot just pass the convience library names through
14654 # without $wl, iff we do not link with $LD.
14655 # Luckily, gcc supports the same syntax we need for Sun Studio.
14656 # Supported since Solaris 2.6 (maybe 2.5.1?)
14657 case $wlarc in
14658 '')
14659 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14660 *)
14661 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14662 esac ;;
14663 esac
14664 link_all_deplibs_F77=yes
14665 ;;
14666
14667 sunos4*)
14668 if test "x$host_vendor" = xsequent; then
14669 # Use $CC to link under sequent, because it throws in some extra .o
14670 # files that make .init and .fini sections work.
14671 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14672 else
14673 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14674 fi
14675 hardcode_libdir_flag_spec_F77='-L$libdir'
14676 hardcode_direct_F77=yes
14677 hardcode_minus_L_F77=yes
14678 hardcode_shlibpath_var_F77=no
14679 ;;
14680
14681 sysv4)
14682 case $host_vendor in
14683 sni)
14684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14685 hardcode_direct_F77=yes # is this really true???
14686 ;;
14687 siemens)
14688 ## LD is ld it makes a PLAMLIB
14689 ## CC just makes a GrossModule.
14690 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14691 reload_cmds_F77='$CC -r -o $output$reload_objs'
14692 hardcode_direct_F77=no
14693 ;;
14694 motorola)
14695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14696 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14697 ;;
14698 esac
14699 runpath_var='LD_RUN_PATH'
14700 hardcode_shlibpath_var_F77=no
14701 ;;
14702
14703 sysv4.3*)
14704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14705 hardcode_shlibpath_var_F77=no
14706 export_dynamic_flag_spec_F77='-Bexport'
14707 ;;
14708
14709 sysv4*MP*)
14710 if test -d /usr/nec; then
14711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14712 hardcode_shlibpath_var_F77=no
14713 runpath_var=LD_RUN_PATH
14714 hardcode_runpath_var=yes
14715 ld_shlibs_F77=yes
14716 fi
14717 ;;
14718
14719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14720 no_undefined_flag_F77='${wl}-z,text'
14721 archive_cmds_need_lc_F77=no
14722 hardcode_shlibpath_var_F77=no
14723 runpath_var='LD_RUN_PATH'
14724
14725 if test "$GCC" = yes; then
14726 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14727 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14728 else
14729 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14730 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14731 fi
14732 ;;
14733
14734 sysv5* | sco3.2v5* | sco5v6*)
14735 # Note: We can NOT use -z defs as we might desire, because we do not
14736 # link with -lc, and that would cause any symbols used from libc to
14737 # always be unresolved, which means just about no library would
14738 # ever link correctly. If we're not using GNU ld we use -z text
14739 # though, which does catch some bad symbols but isn't as heavy-handed
14740 # as -z defs.
14741 no_undefined_flag_F77='${wl}-z,text'
14742 allow_undefined_flag_F77='${wl}-z,nodefs'
14743 archive_cmds_need_lc_F77=no
14744 hardcode_shlibpath_var_F77=no
14745 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14746 hardcode_libdir_separator_F77=':'
14747 link_all_deplibs_F77=yes
14748 export_dynamic_flag_spec_F77='${wl}-Bexport'
14749 runpath_var='LD_RUN_PATH'
14750
14751 if test "$GCC" = yes; then
14752 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14753 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14754 else
14755 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14756 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14757 fi
14758 ;;
14759
14760 uts4*)
14761 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14762 hardcode_libdir_flag_spec_F77='-L$libdir'
14763 hardcode_shlibpath_var_F77=no
14764 ;;
14765
14766 *)
14767 ld_shlibs_F77=no
14768 ;;
14769 esac
14770 fi
14771
14772 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14773 echo "${ECHO_T}$ld_shlibs_F77" >&6
14774 test "$ld_shlibs_F77" = no && can_build_shared=no
14775
14776 #
14777 # Do we need to explicitly link libc?
14778 #
14779 case "x$archive_cmds_need_lc_F77" in
14780 x|xyes)
14781 # Assume -lc should be added
14782 archive_cmds_need_lc_F77=yes
14783
14784 if test "$enable_shared" = yes && test "$GCC" = yes; then
14785 case $archive_cmds_F77 in
14786 *'~'*)
14787 # FIXME: we may have to deal with multi-command sequences.
14788 ;;
14789 '$CC '*)
14790 # Test whether the compiler implicitly links with -lc since on some
14791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14792 # to ld, don't add -lc before -lgcc.
14793 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14795 $rm conftest*
14796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14797
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799 (eval $ac_compile) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } 2>conftest.err; then
14803 soname=conftest
14804 lib=conftest
14805 libobjs=conftest.$ac_objext
14806 deplibs=
14807 wl=$lt_prog_compiler_wl_F77
14808 pic_flag=$lt_prog_compiler_pic_F77
14809 compiler_flags=-v
14810 linker_flags=-v
14811 verstring=
14812 output_objdir=.
14813 libname=conftest
14814 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14815 allow_undefined_flag_F77=
14816 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14817 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }
14821 then
14822 archive_cmds_need_lc_F77=no
14823 else
14824 archive_cmds_need_lc_F77=yes
14825 fi
14826 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14827 else
14828 cat conftest.err 1>&5
14829 fi
14830 $rm conftest*
14831 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14832 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14833 ;;
14834 esac
14835 fi
14836 ;;
14837 esac
14838
14839 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14840 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14841 library_names_spec=
14842 libname_spec='lib$name'
14843 soname_spec=
14844 shrext_cmds=".so"
14845 postinstall_cmds=
14846 postuninstall_cmds=
14847 finish_cmds=
14848 finish_eval=
14849 shlibpath_var=
14850 shlibpath_overrides_runpath=unknown
14851 version_type=none
14852 dynamic_linker="$host_os ld.so"
14853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14854 if test "$GCC" = yes; then
14855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14856 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14857 # if the path contains ";" then we assume it to be the separator
14858 # otherwise default to the standard path separator (i.e. ":") - it is
14859 # assumed that no part of a normal pathname contains ";" but that should
14860 # okay in the real world where ";" in dirpaths is itself problematic.
14861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14862 else
14863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14864 fi
14865 else
14866 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14867 fi
14868 need_lib_prefix=unknown
14869 hardcode_into_libs=no
14870
14871 # when you set need_version to no, make sure it does not cause -set_version
14872 # flags to be left without arguments
14873 need_version=unknown
14874
14875 case $host_os in
14876 aix3*)
14877 version_type=linux
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14879 shlibpath_var=LIBPATH
14880
14881 # AIX 3 has no versioning support, so we append a major version to the name.
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 ;;
14884
14885 aix4* | aix5*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 hardcode_into_libs=yes
14890 if test "$host_cpu" = ia64; then
14891 # AIX 5 supports IA64
14892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 else
14895 # With GCC up to 2.95.x, collect2 would create an import file
14896 # for dependence libraries. The import file would start with
14897 # the line `#! .'. This would cause the generated library to
14898 # depend on `.', always an invalid library. This was fixed in
14899 # development snapshots of GCC prior to 3.0.
14900 case $host_os in
14901 aix4 | aix4.[01] | aix4.[01].*)
14902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14903 echo ' yes '
14904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14905 :
14906 else
14907 can_build_shared=no
14908 fi
14909 ;;
14910 esac
14911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14912 # soname into executable. Probably we can add versioning support to
14913 # collect2, so additional links can be useful in future.
14914 if test "$aix_use_runtimelinking" = yes; then
14915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14916 # instead of lib<name>.a to let people know that these are not
14917 # typical AIX shared libraries.
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919 else
14920 # We preserve .a as extension for shared libraries through AIX4.2
14921 # and later when we are not doing run time linking.
14922 library_names_spec='${libname}${release}.a $libname.a'
14923 soname_spec='${libname}${release}${shared_ext}$major'
14924 fi
14925 shlibpath_var=LIBPATH
14926 fi
14927 ;;
14928
14929 amigaos*)
14930 library_names_spec='$libname.ixlibrary $libname.a'
14931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14932 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'
14933 ;;
14934
14935 beos*)
14936 library_names_spec='${libname}${shared_ext}'
14937 dynamic_linker="$host_os ld.so"
14938 shlibpath_var=LIBRARY_PATH
14939 ;;
14940
14941 bsdi[45]*)
14942 version_type=linux
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14950 # the default ld.so.conf also contains /usr/contrib/lib and
14951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14952 # libtool to hard-code these into programs
14953 ;;
14954
14955 cygwin* | mingw* | pw32*)
14956 version_type=windows
14957 shrext_cmds=".dll"
14958 need_version=no
14959 need_lib_prefix=no
14960
14961 case $GCC,$host_os in
14962 yes,cygwin* | yes,mingw* | yes,pw32*)
14963 library_names_spec='$libname.dll.a'
14964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14965 postinstall_cmds='base_file=`basename \${file}`~
14966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14967 dldir=$destdir/`dirname \$dlpath`~
14968 test -d \$dldir || mkdir -p \$dldir~
14969 $install_prog $dir/$dlname \$dldir/$dlname~
14970 chmod a+x \$dldir/$dlname'
14971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14972 dlpath=$dir/\$dldll~
14973 $rm \$dlpath'
14974 shlibpath_overrides_runpath=yes
14975
14976 case $host_os in
14977 cygwin*)
14978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14981 ;;
14982 mingw*)
14983 # MinGW DLLs use traditional 'lib' prefix
14984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14987 # It is most probably a Windows format PATH printed by
14988 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14989 # path with ; separators, and with drive letters. We can handle the
14990 # drive letters (cygwin fileutils understands them), so leave them,
14991 # especially as we might pass files found there to a mingw objdump,
14992 # which wouldn't understand a cygwinified path. Ahh.
14993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14994 else
14995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14996 fi
14997 ;;
14998 pw32*)
14999 # pw32 DLLs use 'pw' prefix rather than 'lib'
15000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15001 ;;
15002 esac
15003 ;;
15004
15005 *)
15006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15007 ;;
15008 esac
15009 dynamic_linker='Win32 ld.exe'
15010 # FIXME: first we should search . and the directory the executable is in
15011 shlibpath_var=PATH
15012 ;;
15013
15014 darwin* | rhapsody*)
15015 dynamic_linker="$host_os dyld"
15016 version_type=darwin
15017 need_lib_prefix=no
15018 need_version=no
15019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15020 soname_spec='${libname}${release}${major}$shared_ext'
15021 shlibpath_overrides_runpath=yes
15022 shlibpath_var=DYLD_LIBRARY_PATH
15023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15024 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15025 if test "$GCC" = yes; then
15026 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"`
15027 else
15028 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15029 fi
15030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15031 ;;
15032
15033 dgux*)
15034 version_type=linux
15035 need_lib_prefix=no
15036 need_version=no
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 shlibpath_var=LD_LIBRARY_PATH
15040 ;;
15041
15042 freebsd1*)
15043 dynamic_linker=no
15044 ;;
15045
15046 kfreebsd*-gnu)
15047 version_type=linux
15048 need_lib_prefix=no
15049 need_version=no
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath=no
15054 hardcode_into_libs=yes
15055 dynamic_linker='GNU ld.so'
15056 ;;
15057
15058 freebsd* | dragonfly*)
15059 # DragonFly does not have aout. When/if they implement a new
15060 # versioning mechanism, adjust this.
15061 if test -x /usr/bin/objformat; then
15062 objformat=`/usr/bin/objformat`
15063 else
15064 case $host_os in
15065 freebsd[123]*) objformat=aout ;;
15066 *) objformat=elf ;;
15067 esac
15068 fi
15069 version_type=freebsd-$objformat
15070 case $version_type in
15071 freebsd-elf*)
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15073 need_version=no
15074 need_lib_prefix=no
15075 ;;
15076 freebsd-*)
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15078 need_version=yes
15079 ;;
15080 esac
15081 shlibpath_var=LD_LIBRARY_PATH
15082 case $host_os in
15083 freebsd2*)
15084 shlibpath_overrides_runpath=yes
15085 ;;
15086 freebsd3.[01]* | freebsdelf3.[01]*)
15087 shlibpath_overrides_runpath=yes
15088 hardcode_into_libs=yes
15089 ;;
15090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15092 shlibpath_overrides_runpath=no
15093 hardcode_into_libs=yes
15094 ;;
15095 freebsd*) # from 4.6 on
15096 shlibpath_overrides_runpath=yes
15097 hardcode_into_libs=yes
15098 ;;
15099 esac
15100 ;;
15101
15102 gnu*)
15103 version_type=linux
15104 need_lib_prefix=no
15105 need_version=no
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 hardcode_into_libs=yes
15110 ;;
15111
15112 hpux9* | hpux10* | hpux11*)
15113 # Give a soname corresponding to the major version so that dld.sl refuses to
15114 # link against other versions.
15115 version_type=sunos
15116 need_lib_prefix=no
15117 need_version=no
15118 case $host_cpu in
15119 ia64*)
15120 shrext_cmds='.so'
15121 hardcode_into_libs=yes
15122 dynamic_linker="$host_os dld.so"
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 if test "X$HPUX_IA64_MODE" = X32; then
15128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15129 else
15130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15131 fi
15132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15133 ;;
15134 hppa*64*)
15135 shrext_cmds='.sl'
15136 hardcode_into_libs=yes
15137 dynamic_linker="$host_os dld.sl"
15138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15144 ;;
15145 *)
15146 shrext_cmds='.sl'
15147 dynamic_linker="$host_os dld.sl"
15148 shlibpath_var=SHLIB_PATH
15149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 ;;
15153 esac
15154 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15155 postinstall_cmds='chmod 555 $lib'
15156 ;;
15157
15158 interix3*)
15159 version_type=linux
15160 need_lib_prefix=no
15161 need_version=no
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=no
15167 hardcode_into_libs=yes
15168 ;;
15169
15170 irix5* | irix6* | nonstopux*)
15171 case $host_os in
15172 nonstopux*) version_type=nonstopux ;;
15173 *)
15174 if test "$lt_cv_prog_gnu_ld" = yes; then
15175 version_type=linux
15176 else
15177 version_type=irix
15178 fi ;;
15179 esac
15180 need_lib_prefix=no
15181 need_version=no
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15184 case $host_os in
15185 irix5* | nonstopux*)
15186 libsuff= shlibsuff=
15187 ;;
15188 *)
15189 case $LD in # libtool.m4 will add one of these switches to LD
15190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15191 libsuff= shlibsuff= libmagic=32-bit;;
15192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15193 libsuff=32 shlibsuff=N32 libmagic=N32;;
15194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15195 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15196 *) libsuff= shlibsuff= libmagic=never-match;;
15197 esac
15198 ;;
15199 esac
15200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15201 shlibpath_overrides_runpath=no
15202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15204 hardcode_into_libs=yes
15205 ;;
15206
15207 # No shared lib support for Linux oldld, aout, or coff.
15208 linux*oldld* | linux*aout* | linux*coff*)
15209 dynamic_linker=no
15210 ;;
15211
15212 # This must be Linux ELF.
15213 linux*)
15214 version_type=linux
15215 need_lib_prefix=no
15216 need_version=no
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=no
15222 # This implies no fast_install, which is unacceptable.
15223 # Some rework will be needed to allow for fast_install
15224 # before this can be enabled.
15225 hardcode_into_libs=yes
15226
15227 # find out which ABI we are using
15228 libsuff=
15229 case "$host_cpu" in
15230 x86_64*|s390x*|powerpc64*)
15231 echo '#line 15231 "configure"' > conftest.$ac_ext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15233 (eval $ac_compile) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; then
15237 case `/usr/bin/file conftest.$ac_objext` in
15238 *64-bit*)
15239 libsuff=64
15240 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15241 ;;
15242 esac
15243 fi
15244 rm -rf conftest*
15245 ;;
15246 esac
15247
15248 # Append ld.so.conf contents to the search path
15249 if test -f /etc/ld.so.conf; then
15250 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15251 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15252 fi
15253
15254 # We used to test for /lib/ld.so.1 and disable shared libraries on
15255 # powerpc, because MkLinux only supported shared libraries with the
15256 # GNU dynamic linker. Since this was broken with cross compilers,
15257 # most powerpc-linux boxes support dynamic linking these days and
15258 # people can always --disable-shared, the test was removed, and we
15259 # assume the GNU/Linux dynamic linker is in use.
15260 dynamic_linker='GNU/Linux ld.so'
15261 ;;
15262
15263 knetbsd*-gnu)
15264 version_type=linux
15265 need_lib_prefix=no
15266 need_version=no
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 shlibpath_overrides_runpath=no
15271 hardcode_into_libs=yes
15272 dynamic_linker='GNU ld.so'
15273 ;;
15274
15275 netbsd*)
15276 version_type=sunos
15277 need_lib_prefix=no
15278 need_version=no
15279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15282 dynamic_linker='NetBSD (a.out) ld.so'
15283 else
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 dynamic_linker='NetBSD ld.elf_so'
15287 fi
15288 shlibpath_var=LD_LIBRARY_PATH
15289 shlibpath_overrides_runpath=yes
15290 hardcode_into_libs=yes
15291 ;;
15292
15293 newsos6)
15294 version_type=linux
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 shlibpath_overrides_runpath=yes
15298 ;;
15299
15300 nto-qnx*)
15301 version_type=linux
15302 need_lib_prefix=no
15303 need_version=no
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=yes
15308 ;;
15309
15310 openbsd*)
15311 version_type=sunos
15312 sys_lib_dlsearch_path_spec="/usr/lib"
15313 need_lib_prefix=no
15314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15315 case $host_os in
15316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15317 *) need_version=no ;;
15318 esac
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15323 case $host_os in
15324 openbsd2.[89] | openbsd2.[89].*)
15325 shlibpath_overrides_runpath=no
15326 ;;
15327 *)
15328 shlibpath_overrides_runpath=yes
15329 ;;
15330 esac
15331 else
15332 shlibpath_overrides_runpath=yes
15333 fi
15334 ;;
15335
15336 os2*)
15337 libname_spec='$name'
15338 shrext_cmds=".dll"
15339 need_lib_prefix=no
15340 library_names_spec='$libname${shared_ext} $libname.a'
15341 dynamic_linker='OS/2 ld.exe'
15342 shlibpath_var=LIBPATH
15343 ;;
15344
15345 osf3* | osf4* | osf5*)
15346 version_type=osf
15347 need_lib_prefix=no
15348 need_version=no
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15354 ;;
15355
15356 solaris*)
15357 version_type=linux
15358 need_lib_prefix=no
15359 need_version=no
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15365 # ldd complains unless libraries are executable
15366 postinstall_cmds='chmod +x $lib'
15367 ;;
15368
15369 sunos4*)
15370 version_type=sunos
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 shlibpath_overrides_runpath=yes
15375 if test "$with_gnu_ld" = yes; then
15376 need_lib_prefix=no
15377 fi
15378 need_version=yes
15379 ;;
15380
15381 sysv4 | sysv4.3*)
15382 version_type=linux
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 case $host_vendor in
15387 sni)
15388 shlibpath_overrides_runpath=no
15389 need_lib_prefix=no
15390 export_dynamic_flag_spec='${wl}-Blargedynsym'
15391 runpath_var=LD_RUN_PATH
15392 ;;
15393 siemens)
15394 need_lib_prefix=no
15395 ;;
15396 motorola)
15397 need_lib_prefix=no
15398 need_version=no
15399 shlibpath_overrides_runpath=no
15400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15401 ;;
15402 esac
15403 ;;
15404
15405 sysv4*MP*)
15406 if test -d /usr/nec ;then
15407 version_type=linux
15408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15409 soname_spec='$libname${shared_ext}.$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 fi
15412 ;;
15413
15414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15415 version_type=freebsd-elf
15416 need_lib_prefix=no
15417 need_version=no
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 hardcode_into_libs=yes
15422 if test "$with_gnu_ld" = yes; then
15423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15424 shlibpath_overrides_runpath=no
15425 else
15426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15427 shlibpath_overrides_runpath=yes
15428 case $host_os in
15429 sco3.2v5*)
15430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15431 ;;
15432 esac
15433 fi
15434 sys_lib_dlsearch_path_spec='/usr/lib'
15435 ;;
15436
15437 uts4*)
15438 version_type=linux
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 ;;
15443
15444 *)
15445 dynamic_linker=no
15446 ;;
15447 esac
15448 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15449 echo "${ECHO_T}$dynamic_linker" >&6
15450 test "$dynamic_linker" = no && can_build_shared=no
15451
15452 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15453 if test "$GCC" = yes; then
15454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15455 fi
15456
15457 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15458 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15459 hardcode_action_F77=
15460 if test -n "$hardcode_libdir_flag_spec_F77" || \
15461 test -n "$runpath_var_F77" || \
15462 test "X$hardcode_automatic_F77" = "Xyes" ; then
15463
15464 # We can hardcode non-existant directories.
15465 if test "$hardcode_direct_F77" != no &&
15466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15467 # have to relink, otherwise we might link with an installed library
15468 # when we should be linking with a yet-to-be-installed one
15469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15470 test "$hardcode_minus_L_F77" != no; then
15471 # Linking always hardcodes the temporary library directory.
15472 hardcode_action_F77=relink
15473 else
15474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15475 hardcode_action_F77=immediate
15476 fi
15477 else
15478 # We cannot hardcode anything, or else we can only hardcode existing
15479 # directories.
15480 hardcode_action_F77=unsupported
15481 fi
15482 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15483 echo "${ECHO_T}$hardcode_action_F77" >&6
15484
15485 if test "$hardcode_action_F77" = relink; then
15486 # Fast installation is not supported
15487 enable_fast_install=no
15488 elif test "$shlibpath_overrides_runpath" = yes ||
15489 test "$enable_shared" = no; then
15490 # Fast installation is not necessary
15491 enable_fast_install=needless
15492 fi
15493
15494
15495 # The else clause should only fire when bootstrapping the
15496 # libtool distribution, otherwise you forgot to ship ltmain.sh
15497 # with your package, and you will get complaints that there are
15498 # no rules to generate ltmain.sh.
15499 if test -f "$ltmain"; then
15500 # See if we are running on zsh, and set the options which allow our commands through
15501 # without removal of \ escapes.
15502 if test -n "${ZSH_VERSION+set}" ; then
15503 setopt NO_GLOB_SUBST
15504 fi
15505 # Now quote all the things that may contain metacharacters while being
15506 # careful not to overquote the AC_SUBSTed values. We take copies of the
15507 # variables and quote the copies for generation of the libtool script.
15508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15509 SED SHELL STRIP \
15510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15512 deplibs_check_method reload_flag reload_cmds need_locks \
15513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15514 lt_cv_sys_global_symbol_to_c_name_address \
15515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15516 old_postinstall_cmds old_postuninstall_cmds \
15517 compiler_F77 \
15518 CC_F77 \
15519 LD_F77 \
15520 lt_prog_compiler_wl_F77 \
15521 lt_prog_compiler_pic_F77 \
15522 lt_prog_compiler_static_F77 \
15523 lt_prog_compiler_no_builtin_flag_F77 \
15524 export_dynamic_flag_spec_F77 \
15525 thread_safe_flag_spec_F77 \
15526 whole_archive_flag_spec_F77 \
15527 enable_shared_with_static_runtimes_F77 \
15528 old_archive_cmds_F77 \
15529 old_archive_from_new_cmds_F77 \
15530 predep_objects_F77 \
15531 postdep_objects_F77 \
15532 predeps_F77 \
15533 postdeps_F77 \
15534 compiler_lib_search_path_F77 \
15535 archive_cmds_F77 \
15536 archive_expsym_cmds_F77 \
15537 postinstall_cmds_F77 \
15538 postuninstall_cmds_F77 \
15539 old_archive_from_expsyms_cmds_F77 \
15540 allow_undefined_flag_F77 \
15541 no_undefined_flag_F77 \
15542 export_symbols_cmds_F77 \
15543 hardcode_libdir_flag_spec_F77 \
15544 hardcode_libdir_flag_spec_ld_F77 \
15545 hardcode_libdir_separator_F77 \
15546 hardcode_automatic_F77 \
15547 module_cmds_F77 \
15548 module_expsym_cmds_F77 \
15549 lt_cv_prog_compiler_c_o_F77 \
15550 exclude_expsyms_F77 \
15551 include_expsyms_F77; do
15552
15553 case $var in
15554 old_archive_cmds_F77 | \
15555 old_archive_from_new_cmds_F77 | \
15556 archive_cmds_F77 | \
15557 archive_expsym_cmds_F77 | \
15558 module_cmds_F77 | \
15559 module_expsym_cmds_F77 | \
15560 old_archive_from_expsyms_cmds_F77 | \
15561 export_symbols_cmds_F77 | \
15562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15563 postinstall_cmds | postuninstall_cmds | \
15564 old_postinstall_cmds | old_postuninstall_cmds | \
15565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15566 # Double-quote double-evaled strings.
15567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15568 ;;
15569 *)
15570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15571 ;;
15572 esac
15573 done
15574
15575 case $lt_echo in
15576 *'\$0 --fallback-echo"')
15577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15578 ;;
15579 esac
15580
15581 cfgfile="$ofile"
15582
15583 cat <<__EOF__ >> "$cfgfile"
15584 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15585
15586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15587
15588 # Shell to use when invoking shell scripts.
15589 SHELL=$lt_SHELL
15590
15591 # Whether or not to build shared libraries.
15592 build_libtool_libs=$enable_shared
15593
15594 # Whether or not to build static libraries.
15595 build_old_libs=$enable_static
15596
15597 # Whether or not to add -lc for building shared libraries.
15598 build_libtool_need_lc=$archive_cmds_need_lc_F77
15599
15600 # Whether or not to disallow shared libs when runtime libs are static
15601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15602
15603 # Whether or not to optimize for fast installation.
15604 fast_install=$enable_fast_install
15605
15606 # The host system.
15607 host_alias=$host_alias
15608 host=$host
15609 host_os=$host_os
15610
15611 # The build system.
15612 build_alias=$build_alias
15613 build=$build
15614 build_os=$build_os
15615
15616 # An echo program that does not interpret backslashes.
15617 echo=$lt_echo
15618
15619 # The archiver.
15620 AR=$lt_AR
15621 AR_FLAGS=$lt_AR_FLAGS
15622
15623 # A C compiler.
15624 LTCC=$lt_LTCC
15625
15626 # LTCC compiler flags.
15627 LTCFLAGS=$lt_LTCFLAGS
15628
15629 # A language-specific compiler.
15630 CC=$lt_compiler_F77
15631
15632 # Is the compiler the GNU C compiler?
15633 with_gcc=$GCC_F77
15634
15635 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15636 gcc_ver=\`gcc -dumpversion\`
15637
15638 # An ERE matcher.
15639 EGREP=$lt_EGREP
15640
15641 # The linker used to build libraries.
15642 LD=$lt_LD_F77
15643
15644 # Whether we need hard or soft links.
15645 LN_S=$lt_LN_S
15646
15647 # A BSD-compatible nm program.
15648 NM=$lt_NM
15649
15650 # A symbol stripping program
15651 STRIP=$lt_STRIP
15652
15653 # Used to examine libraries when file_magic_cmd begins "file"
15654 MAGIC_CMD=$MAGIC_CMD
15655
15656 # Used on cygwin: DLL creation program.
15657 DLLTOOL="$DLLTOOL"
15658
15659 # Used on cygwin: object dumper.
15660 OBJDUMP="$OBJDUMP"
15661
15662 # Used on cygwin: assembler.
15663 AS="$AS"
15664
15665 # The name of the directory that contains temporary libtool files.
15666 objdir=$objdir
15667
15668 # How to create reloadable object files.
15669 reload_flag=$lt_reload_flag
15670 reload_cmds=$lt_reload_cmds
15671
15672 # How to pass a linker flag through the compiler.
15673 wl=$lt_lt_prog_compiler_wl_F77
15674
15675 # Object file suffix (normally "o").
15676 objext="$ac_objext"
15677
15678 # Old archive suffix (normally "a").
15679 libext="$libext"
15680
15681 # Shared library suffix (normally ".so").
15682 shrext_cmds='$shrext_cmds'
15683
15684 # Executable file suffix (normally "").
15685 exeext="$exeext"
15686
15687 # Additional compiler flags for building library objects.
15688 pic_flag=$lt_lt_prog_compiler_pic_F77
15689 pic_mode=$pic_mode
15690
15691 # What is the maximum length of a command?
15692 max_cmd_len=$lt_cv_sys_max_cmd_len
15693
15694 # Does compiler simultaneously support -c and -o options?
15695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15696
15697 # Must we lock files when doing compilation?
15698 need_locks=$lt_need_locks
15699
15700 # Do we need the lib prefix for modules?
15701 need_lib_prefix=$need_lib_prefix
15702
15703 # Do we need a version for libraries?
15704 need_version=$need_version
15705
15706 # Whether dlopen is supported.
15707 dlopen_support=$enable_dlopen
15708
15709 # Whether dlopen of programs is supported.
15710 dlopen_self=$enable_dlopen_self
15711
15712 # Whether dlopen of statically linked programs is supported.
15713 dlopen_self_static=$enable_dlopen_self_static
15714
15715 # Compiler flag to prevent dynamic linking.
15716 link_static_flag=$lt_lt_prog_compiler_static_F77
15717
15718 # Compiler flag to turn off builtin functions.
15719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15720
15721 # Compiler flag to allow reflexive dlopens.
15722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15723
15724 # Compiler flag to generate shared objects directly from archives.
15725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15726
15727 # Compiler flag to generate thread-safe objects.
15728 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15729
15730 # Library versioning type.
15731 version_type=$version_type
15732
15733 # Format of library name prefix.
15734 libname_spec=$lt_libname_spec
15735
15736 # List of archive names. First name is the real one, the rest are links.
15737 # The last name is the one that the linker finds with -lNAME.
15738 library_names_spec=$lt_library_names_spec
15739
15740 # The coded name of the library, if different from the real name.
15741 soname_spec=$lt_soname_spec
15742
15743 # Commands used to build and install an old-style archive.
15744 RANLIB=$lt_RANLIB
15745 old_archive_cmds=$lt_old_archive_cmds_F77
15746 old_postinstall_cmds=$lt_old_postinstall_cmds
15747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15748
15749 # Create an old-style archive from a shared archive.
15750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15751
15752 # Create a temporary old-style archive to link instead of a shared archive.
15753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15754
15755 # Commands used to build and install a shared archive.
15756 archive_cmds=$lt_archive_cmds_F77
15757 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15758 postinstall_cmds=$lt_postinstall_cmds
15759 postuninstall_cmds=$lt_postuninstall_cmds
15760
15761 # Commands used to build a loadable module (assumed same as above if empty)
15762 module_cmds=$lt_module_cmds_F77
15763 module_expsym_cmds=$lt_module_expsym_cmds_F77
15764
15765 # Commands to strip libraries.
15766 old_striplib=$lt_old_striplib
15767 striplib=$lt_striplib
15768
15769 # Dependencies to place before the objects being linked to create a
15770 # shared library.
15771 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15772
15773 # Dependencies to place after the objects being linked to create a
15774 # shared library.
15775 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15776
15777 # Dependencies to place before the objects being linked to create a
15778 # shared library.
15779 predeps=$lt_predeps_F77
15780
15781 # Dependencies to place after the objects being linked to create a
15782 # shared library.
15783 postdeps=$lt_postdeps_F77
15784
15785 # The library search path used internally by the compiler when linking
15786 # a shared library.
15787 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15788
15789 # Method to check whether dependent libraries are shared objects.
15790 deplibs_check_method=$lt_deplibs_check_method
15791
15792 # Command to use when deplibs_check_method == file_magic.
15793 file_magic_cmd=$lt_file_magic_cmd
15794
15795 # Flag that allows shared libraries with undefined symbols to be built.
15796 allow_undefined_flag=$lt_allow_undefined_flag_F77
15797
15798 # Flag that forces no undefined symbols.
15799 no_undefined_flag=$lt_no_undefined_flag_F77
15800
15801 # Commands used to finish a libtool library installation in a directory.
15802 finish_cmds=$lt_finish_cmds
15803
15804 # Same as above, but a single script fragment to be evaled but not shown.
15805 finish_eval=$lt_finish_eval
15806
15807 # Take the output of nm and produce a listing of raw symbols and C names.
15808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15809
15810 # Transform the output of nm in a proper C declaration
15811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15812
15813 # Transform the output of nm in a C name address pair
15814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15815
15816 # This is the shared library runtime path variable.
15817 runpath_var=$runpath_var
15818
15819 # This is the shared library path variable.
15820 shlibpath_var=$shlibpath_var
15821
15822 # Is shlibpath searched before the hard-coded library search path?
15823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15824
15825 # How to hardcode a shared library path into an executable.
15826 hardcode_action=$hardcode_action_F77
15827
15828 # Whether we should hardcode library paths into libraries.
15829 hardcode_into_libs=$hardcode_into_libs
15830
15831 # Flag to hardcode \$libdir into a binary during linking.
15832 # This must work even if \$libdir does not exist.
15833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15834
15835 # If ld is used when linking, flag to hardcode \$libdir into
15836 # a binary during linking. This must work even if \$libdir does
15837 # not exist.
15838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15839
15840 # Whether we need a single -rpath flag with a separated argument.
15841 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15842
15843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15844 # resulting binary.
15845 hardcode_direct=$hardcode_direct_F77
15846
15847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15848 # resulting binary.
15849 hardcode_minus_L=$hardcode_minus_L_F77
15850
15851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15852 # the resulting binary.
15853 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15854
15855 # Set to yes if building a shared library automatically hardcodes DIR into the library
15856 # and all subsequent libraries and executables linked against it.
15857 hardcode_automatic=$hardcode_automatic_F77
15858
15859 # Variables whose values should be saved in libtool wrapper scripts and
15860 # restored at relink time.
15861 variables_saved_for_relink="$variables_saved_for_relink"
15862
15863 # Whether libtool must link a program against all its dependency libraries.
15864 link_all_deplibs=$link_all_deplibs_F77
15865
15866 # Compile-time system search path for libraries
15867 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15868
15869 # Run-time system search path for libraries
15870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15871
15872 # Fix the shell variable \$srcfile for the compiler.
15873 fix_srcfile_path="$fix_srcfile_path_F77"
15874
15875 # Set to yes if exported symbols are required.
15876 always_export_symbols=$always_export_symbols_F77
15877
15878 # The commands to list exported symbols.
15879 export_symbols_cmds=$lt_export_symbols_cmds_F77
15880
15881 # The commands to extract the exported symbol list from a shared archive.
15882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15883
15884 # Symbols that should not be listed in the preloaded symbols.
15885 exclude_expsyms=$lt_exclude_expsyms_F77
15886
15887 # Symbols that must always be exported.
15888 include_expsyms=$lt_include_expsyms_F77
15889
15890 # ### END LIBTOOL TAG CONFIG: $tagname
15891
15892 __EOF__
15893
15894
15895 else
15896 # If there is no Makefile yet, we rely on a make rule to execute
15897 # `config.status --recheck' to rerun these tests and create the
15898 # libtool script then.
15899 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15900 if test -f "$ltmain_in"; then
15901 test -f Makefile && make "$ltmain"
15902 fi
15903 fi
15904
15905
15906 ac_ext=c
15907 ac_cpp='$CPP $CPPFLAGS'
15908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15911
15912 CC="$lt_save_CC"
15913
15914 else
15915 tagname=""
15916 fi
15917 ;;
15918
15919 GCJ)
15920 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15921
15922
15923
15924 # Source file extension for Java test sources.
15925 ac_ext=java
15926
15927 # Object file extension for compiled Java test sources.
15928 objext=o
15929 objext_GCJ=$objext
15930
15931 # Code to be used in simple compile tests
15932 lt_simple_compile_test_code="class foo {}\n"
15933
15934 # Code to be used in simple link tests
15935 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15936
15937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15938
15939 # If no C compiler was specified, use CC.
15940 LTCC=${LTCC-"$CC"}
15941
15942 # If no C compiler flags were specified, use CFLAGS.
15943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15944
15945 # Allow CC to be a program name with arguments.
15946 compiler=$CC
15947
15948
15949 # save warnings/boilerplate of simple test code
15950 ac_outfile=conftest.$ac_objext
15951 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15952 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15953 _lt_compiler_boilerplate=`cat conftest.err`
15954 $rm conftest*
15955
15956 ac_outfile=conftest.$ac_objext
15957 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15959 _lt_linker_boilerplate=`cat conftest.err`
15960 $rm conftest*
15961
15962
15963 # Allow CC to be a program name with arguments.
15964 lt_save_CC="$CC"
15965 CC=${GCJ-"gcj"}
15966 compiler=$CC
15967 compiler_GCJ=$CC
15968 for cc_temp in $compiler""; do
15969 case $cc_temp in
15970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15972 \-*) ;;
15973 *) break;;
15974 esac
15975 done
15976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15977
15978
15979 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15980 archive_cmds_need_lc_GCJ=no
15981
15982 old_archive_cmds_GCJ=$old_archive_cmds
15983
15984 ## CAVEAT EMPTOR:
15985 ## There is no encapsulation within the following macros, do not change
15986 ## the running order or otherwise move them around unless you know exactly
15987 ## what you are doing...
15988
15989 lt_prog_compiler_no_builtin_flag_GCJ=
15990
15991 if test "$GCC" = yes; then
15992 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15993
15994
15995 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15996 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15997 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000 lt_cv_prog_compiler_rtti_exceptions=no
16001 ac_outfile=conftest.$ac_objext
16002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16003 lt_compiler_flag="-fno-rtti -fno-exceptions"
16004 # Insert the option either (1) after the last *FLAGS variable, or
16005 # (2) before a word containing "conftest.", or (3) at the end.
16006 # Note that $ac_compile itself does not contain backslashes and begins
16007 # with a dollar sign (not a hyphen), so the echo should work correctly.
16008 # The option is referenced via a variable to avoid confusing sed.
16009 lt_compile=`echo "$ac_compile" | $SED \
16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16012 -e 's:$: $lt_compiler_flag:'`
16013 (eval echo "\"\$as_me:16013: $lt_compile\"" >&5)
16014 (eval "$lt_compile" 2>conftest.err)
16015 ac_status=$?
16016 cat conftest.err >&5
16017 echo "$as_me:16017: \$? = $ac_status" >&5
16018 if (exit $ac_status) && test -s "$ac_outfile"; then
16019 # The compiler can only warn and ignore the option if not recognized
16020 # So say no if there are warnings other than the usual output.
16021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16024 lt_cv_prog_compiler_rtti_exceptions=yes
16025 fi
16026 fi
16027 $rm conftest*
16028
16029 fi
16030 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16031 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16032
16033 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16034 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16035 else
16036 :
16037 fi
16038
16039 fi
16040
16041 lt_prog_compiler_wl_GCJ=
16042 lt_prog_compiler_pic_GCJ=
16043 lt_prog_compiler_static_GCJ=
16044
16045 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16046 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16047
16048 if test "$GCC" = yes; then
16049 lt_prog_compiler_wl_GCJ='-Wl,'
16050 lt_prog_compiler_static_GCJ='-static'
16051
16052 case $host_os in
16053 aix*)
16054 # All AIX code is PIC.
16055 if test "$host_cpu" = ia64; then
16056 # AIX 5 now supports IA64 processor
16057 lt_prog_compiler_static_GCJ='-Bstatic'
16058 fi
16059 ;;
16060
16061 amigaos*)
16062 # FIXME: we need at least 68020 code to build shared libraries, but
16063 # adding the `-m68020' flag to GCC prevents building anything better,
16064 # like `-m68040'.
16065 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16066 ;;
16067
16068 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16069 # PIC is the default for these OSes.
16070 ;;
16071
16072 mingw* | pw32* | os2*)
16073 # This hack is so that the source file can tell whether it is being
16074 # built for inclusion in a dll (and should export symbols for example).
16075 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16076 ;;
16077
16078 darwin* | rhapsody*)
16079 # PIC is the default on this platform
16080 # Common symbols not allowed in MH_DYLIB files
16081 lt_prog_compiler_pic_GCJ='-fno-common'
16082 ;;
16083
16084 interix3*)
16085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16086 # Instead, we relocate shared libraries at runtime.
16087 ;;
16088
16089 msdosdjgpp*)
16090 # Just because we use GCC doesn't mean we suddenly get shared libraries
16091 # on systems that don't support them.
16092 lt_prog_compiler_can_build_shared_GCJ=no
16093 enable_shared=no
16094 ;;
16095
16096 sysv4*MP*)
16097 if test -d /usr/nec; then
16098 lt_prog_compiler_pic_GCJ=-Kconform_pic
16099 fi
16100 ;;
16101
16102 hpux*)
16103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16104 # not for PA HP-UX.
16105 case $host_cpu in
16106 hppa*64*|ia64*)
16107 # +Z the default
16108 ;;
16109 *)
16110 lt_prog_compiler_pic_GCJ='-fPIC'
16111 ;;
16112 esac
16113 ;;
16114
16115 *)
16116 lt_prog_compiler_pic_GCJ='-fPIC'
16117 ;;
16118 esac
16119 else
16120 # PORTME Check for flag to pass linker flags through the system compiler.
16121 case $host_os in
16122 aix*)
16123 lt_prog_compiler_wl_GCJ='-Wl,'
16124 if test "$host_cpu" = ia64; then
16125 # AIX 5 now supports IA64 processor
16126 lt_prog_compiler_static_GCJ='-Bstatic'
16127 else
16128 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16129 fi
16130 ;;
16131 darwin*)
16132 # PIC is the default on this platform
16133 # Common symbols not allowed in MH_DYLIB files
16134 case $cc_basename in
16135 xlc*)
16136 lt_prog_compiler_pic_GCJ='-qnocommon'
16137 lt_prog_compiler_wl_GCJ='-Wl,'
16138 ;;
16139 esac
16140 ;;
16141
16142 mingw* | pw32* | os2*)
16143 # This hack is so that the source file can tell whether it is being
16144 # built for inclusion in a dll (and should export symbols for example).
16145 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16146 ;;
16147
16148 hpux9* | hpux10* | hpux11*)
16149 lt_prog_compiler_wl_GCJ='-Wl,'
16150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16151 # not for PA HP-UX.
16152 case $host_cpu in
16153 hppa*64*|ia64*)
16154 # +Z the default
16155 ;;
16156 *)
16157 lt_prog_compiler_pic_GCJ='+Z'
16158 ;;
16159 esac
16160 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16161 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16162 ;;
16163
16164 irix5* | irix6* | nonstopux*)
16165 lt_prog_compiler_wl_GCJ='-Wl,'
16166 # PIC (with -KPIC) is the default.
16167 lt_prog_compiler_static_GCJ='-non_shared'
16168 ;;
16169
16170 newsos6)
16171 lt_prog_compiler_pic_GCJ='-KPIC'
16172 lt_prog_compiler_static_GCJ='-Bstatic'
16173 ;;
16174
16175 linux*)
16176 case $cc_basename in
16177 icc* | ecc*)
16178 lt_prog_compiler_wl_GCJ='-Wl,'
16179 lt_prog_compiler_pic_GCJ='-KPIC'
16180 lt_prog_compiler_static_GCJ='-static'
16181 ;;
16182 pgcc* | pgf77* | pgf90* | pgf95*)
16183 # Portland Group compilers (*not* the Pentium gcc compiler,
16184 # which looks to be a dead project)
16185 lt_prog_compiler_wl_GCJ='-Wl,'
16186 lt_prog_compiler_pic_GCJ='-fpic'
16187 lt_prog_compiler_static_GCJ='-Bstatic'
16188 ;;
16189 ccc*)
16190 lt_prog_compiler_wl_GCJ='-Wl,'
16191 # All Alpha code is PIC.
16192 lt_prog_compiler_static_GCJ='-non_shared'
16193 ;;
16194 esac
16195 ;;
16196
16197 osf3* | osf4* | osf5*)
16198 lt_prog_compiler_wl_GCJ='-Wl,'
16199 # All OSF/1 code is PIC.
16200 lt_prog_compiler_static_GCJ='-non_shared'
16201 ;;
16202
16203 solaris*)
16204 lt_prog_compiler_pic_GCJ='-KPIC'
16205 lt_prog_compiler_static_GCJ='-Bstatic'
16206 case $cc_basename in
16207 f77* | f90* | f95*)
16208 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16209 *)
16210 lt_prog_compiler_wl_GCJ='-Wl,';;
16211 esac
16212 ;;
16213
16214 sunos4*)
16215 lt_prog_compiler_wl_GCJ='-Qoption ld '
16216 lt_prog_compiler_pic_GCJ='-PIC'
16217 lt_prog_compiler_static_GCJ='-Bstatic'
16218 ;;
16219
16220 sysv4 | sysv4.2uw2* | sysv4.3*)
16221 lt_prog_compiler_wl_GCJ='-Wl,'
16222 lt_prog_compiler_pic_GCJ='-KPIC'
16223 lt_prog_compiler_static_GCJ='-Bstatic'
16224 ;;
16225
16226 sysv4*MP*)
16227 if test -d /usr/nec ;then
16228 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16229 lt_prog_compiler_static_GCJ='-Bstatic'
16230 fi
16231 ;;
16232
16233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16234 lt_prog_compiler_wl_GCJ='-Wl,'
16235 lt_prog_compiler_pic_GCJ='-KPIC'
16236 lt_prog_compiler_static_GCJ='-Bstatic'
16237 ;;
16238
16239 unicos*)
16240 lt_prog_compiler_wl_GCJ='-Wl,'
16241 lt_prog_compiler_can_build_shared_GCJ=no
16242 ;;
16243
16244 uts4*)
16245 lt_prog_compiler_pic_GCJ='-pic'
16246 lt_prog_compiler_static_GCJ='-Bstatic'
16247 ;;
16248
16249 *)
16250 lt_prog_compiler_can_build_shared_GCJ=no
16251 ;;
16252 esac
16253 fi
16254
16255 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16256 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16257
16258 #
16259 # Check to make sure the PIC flag actually works.
16260 #
16261 if test -n "$lt_prog_compiler_pic_GCJ"; then
16262
16263 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16265 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 else
16268 lt_prog_compiler_pic_works_GCJ=no
16269 ac_outfile=conftest.$ac_objext
16270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16271 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16272 # Insert the option either (1) after the last *FLAGS variable, or
16273 # (2) before a word containing "conftest.", or (3) at the end.
16274 # Note that $ac_compile itself does not contain backslashes and begins
16275 # with a dollar sign (not a hyphen), so the echo should work correctly.
16276 # The option is referenced via a variable to avoid confusing sed.
16277 lt_compile=`echo "$ac_compile" | $SED \
16278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16280 -e 's:$: $lt_compiler_flag:'`
16281 (eval echo "\"\$as_me:16281: $lt_compile\"" >&5)
16282 (eval "$lt_compile" 2>conftest.err)
16283 ac_status=$?
16284 cat conftest.err >&5
16285 echo "$as_me:16285: \$? = $ac_status" >&5
16286 if (exit $ac_status) && test -s "$ac_outfile"; then
16287 # The compiler can only warn and ignore the option if not recognized
16288 # So say no if there are warnings other than the usual output.
16289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16292 lt_prog_compiler_pic_works_GCJ=yes
16293 fi
16294 fi
16295 $rm conftest*
16296
16297 fi
16298 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16299 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16300
16301 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16302 case $lt_prog_compiler_pic_GCJ in
16303 "" | " "*) ;;
16304 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16305 esac
16306 else
16307 lt_prog_compiler_pic_GCJ=
16308 lt_prog_compiler_can_build_shared_GCJ=no
16309 fi
16310
16311 fi
16312 case $host_os in
16313 # For platforms which do not support PIC, -DPIC is meaningless:
16314 *djgpp*)
16315 lt_prog_compiler_pic_GCJ=
16316 ;;
16317 *)
16318 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16319 ;;
16320 esac
16321
16322 #
16323 # Check to make sure the static flag actually works.
16324 #
16325 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16326 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16328 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331 lt_prog_compiler_static_works_GCJ=no
16332 save_LDFLAGS="$LDFLAGS"
16333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16334 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16336 # The linker can only warn and ignore the option if not recognized
16337 # So say no if there are warnings
16338 if test -s conftest.err; then
16339 # Append any errors to the config.log.
16340 cat conftest.err 1>&5
16341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16343 if diff conftest.exp conftest.er2 >/dev/null; then
16344 lt_prog_compiler_static_works_GCJ=yes
16345 fi
16346 else
16347 lt_prog_compiler_static_works_GCJ=yes
16348 fi
16349 fi
16350 $rm conftest*
16351 LDFLAGS="$save_LDFLAGS"
16352
16353 fi
16354 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16355 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16356
16357 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16358 :
16359 else
16360 lt_prog_compiler_static_GCJ=
16361 fi
16362
16363
16364 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16366 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369 lt_cv_prog_compiler_c_o_GCJ=no
16370 $rm -r conftest 2>/dev/null
16371 mkdir conftest
16372 cd conftest
16373 mkdir out
16374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16375
16376 lt_compiler_flag="-o out/conftest2.$ac_objext"
16377 # Insert the option either (1) after the last *FLAGS variable, or
16378 # (2) before a word containing "conftest.", or (3) at the end.
16379 # Note that $ac_compile itself does not contain backslashes and begins
16380 # with a dollar sign (not a hyphen), so the echo should work correctly.
16381 lt_compile=`echo "$ac_compile" | $SED \
16382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16384 -e 's:$: $lt_compiler_flag:'`
16385 (eval echo "\"\$as_me:16385: $lt_compile\"" >&5)
16386 (eval "$lt_compile" 2>out/conftest.err)
16387 ac_status=$?
16388 cat out/conftest.err >&5
16389 echo "$as_me:16389: \$? = $ac_status" >&5
16390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16391 then
16392 # The compiler can only warn and ignore the option if not recognized
16393 # So say no if there are warnings
16394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16397 lt_cv_prog_compiler_c_o_GCJ=yes
16398 fi
16399 fi
16400 chmod u+w . 2>&5
16401 $rm conftest*
16402 # SGI C++ compiler will create directory out/ii_files/ for
16403 # template instantiation
16404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16405 $rm out/* && rmdir out
16406 cd ..
16407 rmdir conftest
16408 $rm conftest*
16409
16410 fi
16411 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16413
16414
16415 hard_links="nottested"
16416 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16417 # do not overwrite the value of need_locks provided by the user
16418 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16420 hard_links=yes
16421 $rm conftest*
16422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16423 touch conftest.a
16424 ln conftest.a conftest.b 2>&5 || hard_links=no
16425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16426 echo "$as_me:$LINENO: result: $hard_links" >&5
16427 echo "${ECHO_T}$hard_links" >&6
16428 if test "$hard_links" = no; then
16429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16431 need_locks=warn
16432 fi
16433 else
16434 need_locks=no
16435 fi
16436
16437 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16439
16440 runpath_var=
16441 allow_undefined_flag_GCJ=
16442 enable_shared_with_static_runtimes_GCJ=no
16443 archive_cmds_GCJ=
16444 archive_expsym_cmds_GCJ=
16445 old_archive_From_new_cmds_GCJ=
16446 old_archive_from_expsyms_cmds_GCJ=
16447 export_dynamic_flag_spec_GCJ=
16448 whole_archive_flag_spec_GCJ=
16449 thread_safe_flag_spec_GCJ=
16450 hardcode_libdir_flag_spec_GCJ=
16451 hardcode_libdir_flag_spec_ld_GCJ=
16452 hardcode_libdir_separator_GCJ=
16453 hardcode_direct_GCJ=no
16454 hardcode_minus_L_GCJ=no
16455 hardcode_shlibpath_var_GCJ=unsupported
16456 link_all_deplibs_GCJ=unknown
16457 hardcode_automatic_GCJ=no
16458 module_cmds_GCJ=
16459 module_expsym_cmds_GCJ=
16460 always_export_symbols_GCJ=no
16461 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16462 # include_expsyms should be a list of space-separated symbols to be *always*
16463 # included in the symbol list
16464 include_expsyms_GCJ=
16465 # exclude_expsyms can be an extended regexp of symbols to exclude
16466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16468 # as well as any symbol that contains `d'.
16469 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16471 # platforms (ab)use it in PIC code, but their linkers get confused if
16472 # the symbol is explicitly referenced. Since portable code cannot
16473 # rely on this symbol name, it's probably fine to never include it in
16474 # preloaded symbol tables.
16475 extract_expsyms_cmds=
16476 # Just being paranoid about ensuring that cc_basename is set.
16477 for cc_temp in $compiler""; do
16478 case $cc_temp in
16479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16481 \-*) ;;
16482 *) break;;
16483 esac
16484 done
16485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16486
16487 case $host_os in
16488 cygwin* | mingw* | pw32*)
16489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16490 # When not using gcc, we currently assume that we are using
16491 # Microsoft Visual C++.
16492 if test "$GCC" != yes; then
16493 with_gnu_ld=no
16494 fi
16495 ;;
16496 interix*)
16497 # we just hope/assume this is gcc and not c89 (= MSVC++)
16498 with_gnu_ld=yes
16499 ;;
16500 openbsd*)
16501 with_gnu_ld=no
16502 ;;
16503 esac
16504
16505 ld_shlibs_GCJ=yes
16506 if test "$with_gnu_ld" = yes; then
16507 # If archive_cmds runs LD, not CC, wlarc should be empty
16508 wlarc='${wl}'
16509
16510 # Set some defaults for GNU ld with shared library support. These
16511 # are reset later if shared libraries are not supported. Putting them
16512 # here allows them to be overridden if necessary.
16513 runpath_var=LD_RUN_PATH
16514 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16515 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16516 # ancient GNU ld didn't support --whole-archive et. al.
16517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16518 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16519 else
16520 whole_archive_flag_spec_GCJ=
16521 fi
16522 supports_anon_versioning=no
16523 case `$LD -v 2>/dev/null` in
16524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16527 *\ 2.11.*) ;; # other 2.11 versions
16528 *) supports_anon_versioning=yes ;;
16529 esac
16530
16531 # See if GNU ld supports shared libraries.
16532 case $host_os in
16533 aix3* | aix4* | aix5*)
16534 # On AIX/PPC, the GNU linker is very broken
16535 if test "$host_cpu" != ia64; then
16536 ld_shlibs_GCJ=no
16537 cat <<EOF 1>&2
16538
16539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16540 *** to be unable to reliably create shared libraries on AIX.
16541 *** Therefore, libtool is disabling shared libraries support. If you
16542 *** really care for shared libraries, you may want to modify your PATH
16543 *** so that a non-GNU linker is found, and then restart.
16544
16545 EOF
16546 fi
16547 ;;
16548
16549 amigaos*)
16550 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)'
16551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16552 hardcode_minus_L_GCJ=yes
16553
16554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16555 # that the semantics of dynamic libraries on AmigaOS, at least up
16556 # to version 4, is to share data among multiple programs linked
16557 # with the same dynamic library. Since this doesn't match the
16558 # behavior of shared libraries on other platforms, we can't use
16559 # them.
16560 ld_shlibs_GCJ=no
16561 ;;
16562
16563 beos*)
16564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16565 allow_undefined_flag_GCJ=unsupported
16566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16567 # support --undefined. This deserves some investigation. FIXME
16568 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16569 else
16570 ld_shlibs_GCJ=no
16571 fi
16572 ;;
16573
16574 cygwin* | mingw* | pw32*)
16575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16576 # as there is no search path for DLLs.
16577 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16578 allow_undefined_flag_GCJ=unsupported
16579 always_export_symbols_GCJ=no
16580 enable_shared_with_static_runtimes_GCJ=yes
16581 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16582
16583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16585 # If the export-symbols file already is a .def file (1st line
16586 # is EXPORTS), use it as is; otherwise, prepend...
16587 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16588 cp $export_symbols $output_objdir/$soname.def;
16589 else
16590 echo EXPORTS > $output_objdir/$soname.def;
16591 cat $export_symbols >> $output_objdir/$soname.def;
16592 fi~
16593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16594 else
16595 ld_shlibs_GCJ=no
16596 fi
16597 ;;
16598
16599 interix3*)
16600 hardcode_direct_GCJ=no
16601 hardcode_shlibpath_var_GCJ=no
16602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16603 export_dynamic_flag_spec_GCJ='${wl}-E'
16604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16605 # Instead, shared libraries are loaded at an image base (0x10000000 by
16606 # default) and relocated if they conflict, which is a slow very memory
16607 # consuming and fragmenting process. To avoid this, we pick a random,
16608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16610 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16611 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16612 ;;
16613
16614 linux*)
16615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16616 tmp_addflag=
16617 case $cc_basename,$host_cpu in
16618 pgcc*) # Portland Group C compiler
16619 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16620 tmp_addflag=' $pic_flag'
16621 ;;
16622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16623 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16624 tmp_addflag=' $pic_flag -Mnomain' ;;
16625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16626 tmp_addflag=' -i_dynamic' ;;
16627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16628 tmp_addflag=' -i_dynamic -nofor_main' ;;
16629 ifc* | ifort*) # Intel Fortran compiler
16630 tmp_addflag=' -nofor_main' ;;
16631 esac
16632 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16633
16634 if test $supports_anon_versioning = yes; then
16635 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16637 $echo "local: *; };" >> $output_objdir/$libname.ver~
16638 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16639 fi
16640 else
16641 ld_shlibs_GCJ=no
16642 fi
16643 ;;
16644
16645 netbsd*)
16646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16647 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16648 wlarc=
16649 else
16650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16652 fi
16653 ;;
16654
16655 solaris*)
16656 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16657 ld_shlibs_GCJ=no
16658 cat <<EOF 1>&2
16659
16660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16661 *** create shared libraries on Solaris systems. Therefore, libtool
16662 *** is disabling shared libraries support. We urge you to upgrade GNU
16663 *** binutils to release 2.9.1 or newer. Another option is to modify
16664 *** your PATH or compiler configuration so that the native linker is
16665 *** used, and then restart.
16666
16667 EOF
16668 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16671 else
16672 ld_shlibs_GCJ=no
16673 fi
16674 ;;
16675
16676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16677 case `$LD -v 2>&1` in
16678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16679 ld_shlibs_GCJ=no
16680 cat <<_LT_EOF 1>&2
16681
16682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16683 *** reliably create shared libraries on SCO systems. Therefore, libtool
16684 *** is disabling shared libraries support. We urge you to upgrade GNU
16685 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16686 *** your PATH or compiler configuration so that the native linker is
16687 *** used, and then restart.
16688
16689 _LT_EOF
16690 ;;
16691 *)
16692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16693 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16694 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16695 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16696 else
16697 ld_shlibs_GCJ=no
16698 fi
16699 ;;
16700 esac
16701 ;;
16702
16703 sunos4*)
16704 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16705 wlarc=
16706 hardcode_direct_GCJ=yes
16707 hardcode_shlibpath_var_GCJ=no
16708 ;;
16709
16710 *)
16711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16712 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16713 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16714 else
16715 ld_shlibs_GCJ=no
16716 fi
16717 ;;
16718 esac
16719
16720 if test "$ld_shlibs_GCJ" = no; then
16721 runpath_var=
16722 hardcode_libdir_flag_spec_GCJ=
16723 export_dynamic_flag_spec_GCJ=
16724 whole_archive_flag_spec_GCJ=
16725 fi
16726 else
16727 # PORTME fill in a description of your system's linker (not GNU ld)
16728 case $host_os in
16729 aix3*)
16730 allow_undefined_flag_GCJ=unsupported
16731 always_export_symbols_GCJ=yes
16732 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'
16733 # Note: this linker hardcodes the directories in LIBPATH if there
16734 # are no directories specified by -L.
16735 hardcode_minus_L_GCJ=yes
16736 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16737 # Neither direct hardcoding nor static linking is supported with a
16738 # broken collect2.
16739 hardcode_direct_GCJ=unsupported
16740 fi
16741 ;;
16742
16743 aix4* | aix5*)
16744 if test "$host_cpu" = ia64; then
16745 # On IA64, the linker does run time linking by default, so we don't
16746 # have to do anything special.
16747 aix_use_runtimelinking=no
16748 exp_sym_flag='-Bexport'
16749 no_entry_flag=""
16750 else
16751 # If we're using GNU nm, then we don't want the "-C" option.
16752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16754 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'
16755 else
16756 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'
16757 fi
16758 aix_use_runtimelinking=no
16759
16760 # Test if we are trying to use run time linking or normal
16761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16762 # need to do runtime linking.
16763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16764 for ld_flag in $LDFLAGS; do
16765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16766 aix_use_runtimelinking=yes
16767 break
16768 fi
16769 done
16770 ;;
16771 esac
16772
16773 exp_sym_flag='-bexport'
16774 no_entry_flag='-bnoentry'
16775 fi
16776
16777 # When large executables or shared objects are built, AIX ld can
16778 # have problems creating the table of contents. If linking a library
16779 # or program results in "error TOC overflow" add -mminimal-toc to
16780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16782
16783 archive_cmds_GCJ=''
16784 hardcode_direct_GCJ=yes
16785 hardcode_libdir_separator_GCJ=':'
16786 link_all_deplibs_GCJ=yes
16787
16788 if test "$GCC" = yes; then
16789 case $host_os in aix4.[012]|aix4.[012].*)
16790 # We only want to do this on AIX 4.2 and lower, the check
16791 # below for broken collect2 doesn't work under 4.3+
16792 collect2name=`${CC} -print-prog-name=collect2`
16793 if test -f "$collect2name" && \
16794 strings "$collect2name" | grep resolve_lib_name >/dev/null
16795 then
16796 # We have reworked collect2
16797 hardcode_direct_GCJ=yes
16798 else
16799 # We have old collect2
16800 hardcode_direct_GCJ=unsupported
16801 # It fails to find uninstalled libraries when the uninstalled
16802 # path is not listed in the libpath. Setting hardcode_minus_L
16803 # to unsupported forces relinking
16804 hardcode_minus_L_GCJ=yes
16805 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806 hardcode_libdir_separator_GCJ=
16807 fi
16808 ;;
16809 esac
16810 shared_flag='-shared'
16811 if test "$aix_use_runtimelinking" = yes; then
16812 shared_flag="$shared_flag "'${wl}-G'
16813 fi
16814 else
16815 # not using gcc
16816 if test "$host_cpu" = ia64; then
16817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16818 # chokes on -Wl,-G. The following line is correct:
16819 shared_flag='-G'
16820 else
16821 if test "$aix_use_runtimelinking" = yes; then
16822 shared_flag='${wl}-G'
16823 else
16824 shared_flag='${wl}-bM:SRE'
16825 fi
16826 fi
16827 fi
16828
16829 # It seems that -bexpall does not export symbols beginning with
16830 # underscore (_), so it is better to generate a list of symbols to export.
16831 always_export_symbols_GCJ=yes
16832 if test "$aix_use_runtimelinking" = yes; then
16833 # Warning - without using the other runtime loading flags (-brtl),
16834 # -berok will link without error, but may produce a broken library.
16835 allow_undefined_flag_GCJ='-berok'
16836 # Determine the default libpath from the value encoded in an empty executable.
16837 cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h. */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843
16844 int
16845 main ()
16846 {
16847
16848 ;
16849 return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>conftest.er1
16855 ac_status=$?
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest$ac_exeext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874
16875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16876 }'`
16877 # Check for a 64-bit object if we didn't find anything.
16878 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; }
16879 }'`; fi
16880 else
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 fi
16885 rm -f conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16888
16889 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16890 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16891 else
16892 if test "$host_cpu" = ia64; then
16893 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16894 allow_undefined_flag_GCJ="-z nodefs"
16895 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16896 else
16897 # Determine the default libpath from the value encoded in an empty executable.
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904
16905 int
16906 main ()
16907 {
16908
16909 ;
16910 return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -z "$ac_c_werror_flag"
16923 || test ! -s conftest.err'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest$ac_exeext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935
16936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16937 }'`
16938 # Check for a 64-bit object if we didn't find anything.
16939 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; }
16940 }'`; fi
16941 else
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 fi
16946 rm -f conftest.err conftest.$ac_objext \
16947 conftest$ac_exeext conftest.$ac_ext
16948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16949
16950 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16951 # Warning - without using the other run time loading flags,
16952 # -berok will link without error, but may produce a broken library.
16953 no_undefined_flag_GCJ=' ${wl}-bernotok'
16954 allow_undefined_flag_GCJ=' ${wl}-berok'
16955 # Exported symbols can be pulled into shared objects from archives
16956 whole_archive_flag_spec_GCJ='$convenience'
16957 archive_cmds_need_lc_GCJ=yes
16958 # This is similar to how AIX traditionally builds its shared libraries.
16959 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16960 fi
16961 fi
16962 ;;
16963
16964 amigaos*)
16965 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)'
16966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967 hardcode_minus_L_GCJ=yes
16968 # see comment about different semantics on the GNU ld section
16969 ld_shlibs_GCJ=no
16970 ;;
16971
16972 bsdi[45]*)
16973 export_dynamic_flag_spec_GCJ=-rdynamic
16974 ;;
16975
16976 cygwin* | mingw* | pw32*)
16977 # When not using gcc, we currently assume that we are using
16978 # Microsoft Visual C++.
16979 # hardcode_libdir_flag_spec is actually meaningless, as there is
16980 # no search path for DLLs.
16981 hardcode_libdir_flag_spec_GCJ=' '
16982 allow_undefined_flag_GCJ=unsupported
16983 # Tell ltmain to make .lib files, not .a files.
16984 libext=lib
16985 # Tell ltmain to make .dll files, not .so files.
16986 shrext_cmds=".dll"
16987 # FIXME: Setting linknames here is a bad hack.
16988 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16989 # The linker will automatically build a .lib file if we build a DLL.
16990 old_archive_From_new_cmds_GCJ='true'
16991 # FIXME: Should let the user specify the lib program.
16992 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16993 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16994 enable_shared_with_static_runtimes_GCJ=yes
16995 ;;
16996
16997 darwin* | rhapsody*)
16998 case $host_os in
16999 rhapsody* | darwin1.[012])
17000 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17001 ;;
17002 *) # Darwin 1.3 on
17003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17004 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17005 else
17006 case ${MACOSX_DEPLOYMENT_TARGET} in
17007 10.[012])
17008 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17009 ;;
17010 10.*)
17011 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17012 ;;
17013 esac
17014 fi
17015 ;;
17016 esac
17017 archive_cmds_need_lc_GCJ=no
17018 hardcode_direct_GCJ=no
17019 hardcode_automatic_GCJ=yes
17020 hardcode_shlibpath_var_GCJ=unsupported
17021 whole_archive_flag_spec_GCJ=''
17022 link_all_deplibs_GCJ=yes
17023 if test "$GCC" = yes ; then
17024 output_verbose_link_cmd='echo'
17025 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17026 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17027 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17028 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17029 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}'
17030 else
17031 case $cc_basename in
17032 xlc*)
17033 output_verbose_link_cmd='echo'
17034 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17035 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17037 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17038 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}'
17039 ;;
17040 *)
17041 ld_shlibs_GCJ=no
17042 ;;
17043 esac
17044 fi
17045 ;;
17046
17047 dgux*)
17048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17049 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17050 hardcode_shlibpath_var_GCJ=no
17051 ;;
17052
17053 freebsd1*)
17054 ld_shlibs_GCJ=no
17055 ;;
17056
17057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17058 # support. Future versions do this automatically, but an explicit c++rt0.o
17059 # does not break anything, and helps significantly (at the cost of a little
17060 # extra space).
17061 freebsd2.2*)
17062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17063 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17064 hardcode_direct_GCJ=yes
17065 hardcode_shlibpath_var_GCJ=no
17066 ;;
17067
17068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17069 freebsd2*)
17070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17071 hardcode_direct_GCJ=yes
17072 hardcode_minus_L_GCJ=yes
17073 hardcode_shlibpath_var_GCJ=no
17074 ;;
17075
17076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17077 freebsd* | kfreebsd*-gnu | dragonfly*)
17078 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17079 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17080 hardcode_direct_GCJ=yes
17081 hardcode_shlibpath_var_GCJ=no
17082 ;;
17083
17084 hpux9*)
17085 if test "$GCC" = yes; then
17086 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'
17087 else
17088 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'
17089 fi
17090 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17091 hardcode_libdir_separator_GCJ=:
17092 hardcode_direct_GCJ=yes
17093
17094 # hardcode_minus_L: Not really in the search PATH,
17095 # but as the default location of the library.
17096 hardcode_minus_L_GCJ=yes
17097 export_dynamic_flag_spec_GCJ='${wl}-E'
17098 ;;
17099
17100 hpux10*)
17101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17102 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17103 else
17104 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17105 fi
17106 if test "$with_gnu_ld" = no; then
17107 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17108 hardcode_libdir_separator_GCJ=:
17109
17110 hardcode_direct_GCJ=yes
17111 export_dynamic_flag_spec_GCJ='${wl}-E'
17112
17113 # hardcode_minus_L: Not really in the search PATH,
17114 # but as the default location of the library.
17115 hardcode_minus_L_GCJ=yes
17116 fi
17117 ;;
17118
17119 hpux11*)
17120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17121 case $host_cpu in
17122 hppa*64*)
17123 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17124 ;;
17125 ia64*)
17126 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17127 ;;
17128 *)
17129 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17130 ;;
17131 esac
17132 else
17133 case $host_cpu in
17134 hppa*64*)
17135 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17136 ;;
17137 ia64*)
17138 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17139 ;;
17140 *)
17141 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17142 ;;
17143 esac
17144 fi
17145 if test "$with_gnu_ld" = no; then
17146 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17147 hardcode_libdir_separator_GCJ=:
17148
17149 case $host_cpu in
17150 hppa*64*|ia64*)
17151 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17152 hardcode_direct_GCJ=no
17153 hardcode_shlibpath_var_GCJ=no
17154 ;;
17155 *)
17156 hardcode_direct_GCJ=yes
17157 export_dynamic_flag_spec_GCJ='${wl}-E'
17158
17159 # hardcode_minus_L: Not really in the search PATH,
17160 # but as the default location of the library.
17161 hardcode_minus_L_GCJ=yes
17162 ;;
17163 esac
17164 fi
17165 ;;
17166
17167 irix5* | irix6* | nonstopux*)
17168 if test "$GCC" = yes; then
17169 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'
17170 else
17171 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'
17172 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17173 fi
17174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17175 hardcode_libdir_separator_GCJ=:
17176 link_all_deplibs_GCJ=yes
17177 ;;
17178
17179 netbsd*)
17180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17181 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17182 else
17183 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17184 fi
17185 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17186 hardcode_direct_GCJ=yes
17187 hardcode_shlibpath_var_GCJ=no
17188 ;;
17189
17190 newsos6)
17191 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17192 hardcode_direct_GCJ=yes
17193 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17194 hardcode_libdir_separator_GCJ=:
17195 hardcode_shlibpath_var_GCJ=no
17196 ;;
17197
17198 openbsd*)
17199 hardcode_direct_GCJ=yes
17200 hardcode_shlibpath_var_GCJ=no
17201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17202 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17203 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17205 export_dynamic_flag_spec_GCJ='${wl}-E'
17206 else
17207 case $host_os in
17208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17211 ;;
17212 *)
17213 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17214 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17215 ;;
17216 esac
17217 fi
17218 ;;
17219
17220 os2*)
17221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17222 hardcode_minus_L_GCJ=yes
17223 allow_undefined_flag_GCJ=unsupported
17224 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'
17225 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17226 ;;
17227
17228 osf3*)
17229 if test "$GCC" = yes; then
17230 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17231 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'
17232 else
17233 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17234 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'
17235 fi
17236 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17237 hardcode_libdir_separator_GCJ=:
17238 ;;
17239
17240 osf4* | osf5*) # as osf3* with the addition of -msym flag
17241 if test "$GCC" = yes; then
17242 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17243 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'
17244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17245 else
17246 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17247 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'
17248 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~
17249 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17250
17251 # Both c and cxx compiler support -rpath directly
17252 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17253 fi
17254 hardcode_libdir_separator_GCJ=:
17255 ;;
17256
17257 solaris*)
17258 no_undefined_flag_GCJ=' -z text'
17259 if test "$GCC" = yes; then
17260 wlarc='${wl}'
17261 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17262 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17263 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17264 else
17265 wlarc=''
17266 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17267 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17268 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17269 fi
17270 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17271 hardcode_shlibpath_var_GCJ=no
17272 case $host_os in
17273 solaris2.[0-5] | solaris2.[0-5].*) ;;
17274 *)
17275 # The compiler driver will combine linker options so we
17276 # cannot just pass the convience library names through
17277 # without $wl, iff we do not link with $LD.
17278 # Luckily, gcc supports the same syntax we need for Sun Studio.
17279 # Supported since Solaris 2.6 (maybe 2.5.1?)
17280 case $wlarc in
17281 '')
17282 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17283 *)
17284 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17285 esac ;;
17286 esac
17287 link_all_deplibs_GCJ=yes
17288 ;;
17289
17290 sunos4*)
17291 if test "x$host_vendor" = xsequent; then
17292 # Use $CC to link under sequent, because it throws in some extra .o
17293 # files that make .init and .fini sections work.
17294 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17295 else
17296 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17297 fi
17298 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17299 hardcode_direct_GCJ=yes
17300 hardcode_minus_L_GCJ=yes
17301 hardcode_shlibpath_var_GCJ=no
17302 ;;
17303
17304 sysv4)
17305 case $host_vendor in
17306 sni)
17307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308 hardcode_direct_GCJ=yes # is this really true???
17309 ;;
17310 siemens)
17311 ## LD is ld it makes a PLAMLIB
17312 ## CC just makes a GrossModule.
17313 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17314 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17315 hardcode_direct_GCJ=no
17316 ;;
17317 motorola)
17318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17320 ;;
17321 esac
17322 runpath_var='LD_RUN_PATH'
17323 hardcode_shlibpath_var_GCJ=no
17324 ;;
17325
17326 sysv4.3*)
17327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17328 hardcode_shlibpath_var_GCJ=no
17329 export_dynamic_flag_spec_GCJ='-Bexport'
17330 ;;
17331
17332 sysv4*MP*)
17333 if test -d /usr/nec; then
17334 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335 hardcode_shlibpath_var_GCJ=no
17336 runpath_var=LD_RUN_PATH
17337 hardcode_runpath_var=yes
17338 ld_shlibs_GCJ=yes
17339 fi
17340 ;;
17341
17342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17343 no_undefined_flag_GCJ='${wl}-z,text'
17344 archive_cmds_need_lc_GCJ=no
17345 hardcode_shlibpath_var_GCJ=no
17346 runpath_var='LD_RUN_PATH'
17347
17348 if test "$GCC" = yes; then
17349 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17350 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17351 else
17352 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17353 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354 fi
17355 ;;
17356
17357 sysv5* | sco3.2v5* | sco5v6*)
17358 # Note: We can NOT use -z defs as we might desire, because we do not
17359 # link with -lc, and that would cause any symbols used from libc to
17360 # always be unresolved, which means just about no library would
17361 # ever link correctly. If we're not using GNU ld we use -z text
17362 # though, which does catch some bad symbols but isn't as heavy-handed
17363 # as -z defs.
17364 no_undefined_flag_GCJ='${wl}-z,text'
17365 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17366 archive_cmds_need_lc_GCJ=no
17367 hardcode_shlibpath_var_GCJ=no
17368 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17369 hardcode_libdir_separator_GCJ=':'
17370 link_all_deplibs_GCJ=yes
17371 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17372 runpath_var='LD_RUN_PATH'
17373
17374 if test "$GCC" = yes; then
17375 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17376 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17377 else
17378 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17379 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17380 fi
17381 ;;
17382
17383 uts4*)
17384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17386 hardcode_shlibpath_var_GCJ=no
17387 ;;
17388
17389 *)
17390 ld_shlibs_GCJ=no
17391 ;;
17392 esac
17393 fi
17394
17395 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17396 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17397 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17398
17399 #
17400 # Do we need to explicitly link libc?
17401 #
17402 case "x$archive_cmds_need_lc_GCJ" in
17403 x|xyes)
17404 # Assume -lc should be added
17405 archive_cmds_need_lc_GCJ=yes
17406
17407 if test "$enable_shared" = yes && test "$GCC" = yes; then
17408 case $archive_cmds_GCJ in
17409 *'~'*)
17410 # FIXME: we may have to deal with multi-command sequences.
17411 ;;
17412 '$CC '*)
17413 # Test whether the compiler implicitly links with -lc since on some
17414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17415 # to ld, don't add -lc before -lgcc.
17416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17417 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17418 $rm conftest*
17419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17420
17421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17422 (eval $ac_compile) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } 2>conftest.err; then
17426 soname=conftest
17427 lib=conftest
17428 libobjs=conftest.$ac_objext
17429 deplibs=
17430 wl=$lt_prog_compiler_wl_GCJ
17431 pic_flag=$lt_prog_compiler_pic_GCJ
17432 compiler_flags=-v
17433 linker_flags=-v
17434 verstring=
17435 output_objdir=.
17436 libname=conftest
17437 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17438 allow_undefined_flag_GCJ=
17439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17440 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }
17444 then
17445 archive_cmds_need_lc_GCJ=no
17446 else
17447 archive_cmds_need_lc_GCJ=yes
17448 fi
17449 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17450 else
17451 cat conftest.err 1>&5
17452 fi
17453 $rm conftest*
17454 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17455 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17456 ;;
17457 esac
17458 fi
17459 ;;
17460 esac
17461
17462 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17463 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17464 library_names_spec=
17465 libname_spec='lib$name'
17466 soname_spec=
17467 shrext_cmds=".so"
17468 postinstall_cmds=
17469 postuninstall_cmds=
17470 finish_cmds=
17471 finish_eval=
17472 shlibpath_var=
17473 shlibpath_overrides_runpath=unknown
17474 version_type=none
17475 dynamic_linker="$host_os ld.so"
17476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17477 if test "$GCC" = yes; then
17478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17480 # if the path contains ";" then we assume it to be the separator
17481 # otherwise default to the standard path separator (i.e. ":") - it is
17482 # assumed that no part of a normal pathname contains ";" but that should
17483 # okay in the real world where ";" in dirpaths is itself problematic.
17484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17485 else
17486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17487 fi
17488 else
17489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17490 fi
17491 need_lib_prefix=unknown
17492 hardcode_into_libs=no
17493
17494 # when you set need_version to no, make sure it does not cause -set_version
17495 # flags to be left without arguments
17496 need_version=unknown
17497
17498 case $host_os in
17499 aix3*)
17500 version_type=linux
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17502 shlibpath_var=LIBPATH
17503
17504 # AIX 3 has no versioning support, so we append a major version to the name.
17505 soname_spec='${libname}${release}${shared_ext}$major'
17506 ;;
17507
17508 aix4* | aix5*)
17509 version_type=linux
17510 need_lib_prefix=no
17511 need_version=no
17512 hardcode_into_libs=yes
17513 if test "$host_cpu" = ia64; then
17514 # AIX 5 supports IA64
17515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 else
17518 # With GCC up to 2.95.x, collect2 would create an import file
17519 # for dependence libraries. The import file would start with
17520 # the line `#! .'. This would cause the generated library to
17521 # depend on `.', always an invalid library. This was fixed in
17522 # development snapshots of GCC prior to 3.0.
17523 case $host_os in
17524 aix4 | aix4.[01] | aix4.[01].*)
17525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17526 echo ' yes '
17527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17528 :
17529 else
17530 can_build_shared=no
17531 fi
17532 ;;
17533 esac
17534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17535 # soname into executable. Probably we can add versioning support to
17536 # collect2, so additional links can be useful in future.
17537 if test "$aix_use_runtimelinking" = yes; then
17538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17539 # instead of lib<name>.a to let people know that these are not
17540 # typical AIX shared libraries.
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17542 else
17543 # We preserve .a as extension for shared libraries through AIX4.2
17544 # and later when we are not doing run time linking.
17545 library_names_spec='${libname}${release}.a $libname.a'
17546 soname_spec='${libname}${release}${shared_ext}$major'
17547 fi
17548 shlibpath_var=LIBPATH
17549 fi
17550 ;;
17551
17552 amigaos*)
17553 library_names_spec='$libname.ixlibrary $libname.a'
17554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17555 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'
17556 ;;
17557
17558 beos*)
17559 library_names_spec='${libname}${shared_ext}'
17560 dynamic_linker="$host_os ld.so"
17561 shlibpath_var=LIBRARY_PATH
17562 ;;
17563
17564 bsdi[45]*)
17565 version_type=linux
17566 need_version=no
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17573 # the default ld.so.conf also contains /usr/contrib/lib and
17574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17575 # libtool to hard-code these into programs
17576 ;;
17577
17578 cygwin* | mingw* | pw32*)
17579 version_type=windows
17580 shrext_cmds=".dll"
17581 need_version=no
17582 need_lib_prefix=no
17583
17584 case $GCC,$host_os in
17585 yes,cygwin* | yes,mingw* | yes,pw32*)
17586 library_names_spec='$libname.dll.a'
17587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17588 postinstall_cmds='base_file=`basename \${file}`~
17589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17590 dldir=$destdir/`dirname \$dlpath`~
17591 test -d \$dldir || mkdir -p \$dldir~
17592 $install_prog $dir/$dlname \$dldir/$dlname~
17593 chmod a+x \$dldir/$dlname'
17594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17595 dlpath=$dir/\$dldll~
17596 $rm \$dlpath'
17597 shlibpath_overrides_runpath=yes
17598
17599 case $host_os in
17600 cygwin*)
17601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17604 ;;
17605 mingw*)
17606 # MinGW DLLs use traditional 'lib' prefix
17607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17610 # It is most probably a Windows format PATH printed by
17611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17612 # path with ; separators, and with drive letters. We can handle the
17613 # drive letters (cygwin fileutils understands them), so leave them,
17614 # especially as we might pass files found there to a mingw objdump,
17615 # which wouldn't understand a cygwinified path. Ahh.
17616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17617 else
17618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17619 fi
17620 ;;
17621 pw32*)
17622 # pw32 DLLs use 'pw' prefix rather than 'lib'
17623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17624 ;;
17625 esac
17626 ;;
17627
17628 *)
17629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17630 ;;
17631 esac
17632 dynamic_linker='Win32 ld.exe'
17633 # FIXME: first we should search . and the directory the executable is in
17634 shlibpath_var=PATH
17635 ;;
17636
17637 darwin* | rhapsody*)
17638 dynamic_linker="$host_os dyld"
17639 version_type=darwin
17640 need_lib_prefix=no
17641 need_version=no
17642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17643 soname_spec='${libname}${release}${major}$shared_ext'
17644 shlibpath_overrides_runpath=yes
17645 shlibpath_var=DYLD_LIBRARY_PATH
17646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17648 if test "$GCC" = yes; then
17649 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"`
17650 else
17651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17652 fi
17653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17654 ;;
17655
17656 dgux*)
17657 version_type=linux
17658 need_lib_prefix=no
17659 need_version=no
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17661 soname_spec='${libname}${release}${shared_ext}$major'
17662 shlibpath_var=LD_LIBRARY_PATH
17663 ;;
17664
17665 freebsd1*)
17666 dynamic_linker=no
17667 ;;
17668
17669 kfreebsd*-gnu)
17670 version_type=linux
17671 need_lib_prefix=no
17672 need_version=no
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17674 soname_spec='${libname}${release}${shared_ext}$major'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 shlibpath_overrides_runpath=no
17677 hardcode_into_libs=yes
17678 dynamic_linker='GNU ld.so'
17679 ;;
17680
17681 freebsd* | dragonfly*)
17682 # DragonFly does not have aout. When/if they implement a new
17683 # versioning mechanism, adjust this.
17684 if test -x /usr/bin/objformat; then
17685 objformat=`/usr/bin/objformat`
17686 else
17687 case $host_os in
17688 freebsd[123]*) objformat=aout ;;
17689 *) objformat=elf ;;
17690 esac
17691 fi
17692 version_type=freebsd-$objformat
17693 case $version_type in
17694 freebsd-elf*)
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17696 need_version=no
17697 need_lib_prefix=no
17698 ;;
17699 freebsd-*)
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17701 need_version=yes
17702 ;;
17703 esac
17704 shlibpath_var=LD_LIBRARY_PATH
17705 case $host_os in
17706 freebsd2*)
17707 shlibpath_overrides_runpath=yes
17708 ;;
17709 freebsd3.[01]* | freebsdelf3.[01]*)
17710 shlibpath_overrides_runpath=yes
17711 hardcode_into_libs=yes
17712 ;;
17713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17715 shlibpath_overrides_runpath=no
17716 hardcode_into_libs=yes
17717 ;;
17718 freebsd*) # from 4.6 on
17719 shlibpath_overrides_runpath=yes
17720 hardcode_into_libs=yes
17721 ;;
17722 esac
17723 ;;
17724
17725 gnu*)
17726 version_type=linux
17727 need_lib_prefix=no
17728 need_version=no
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 hardcode_into_libs=yes
17733 ;;
17734
17735 hpux9* | hpux10* | hpux11*)
17736 # Give a soname corresponding to the major version so that dld.sl refuses to
17737 # link against other versions.
17738 version_type=sunos
17739 need_lib_prefix=no
17740 need_version=no
17741 case $host_cpu in
17742 ia64*)
17743 shrext_cmds='.so'
17744 hardcode_into_libs=yes
17745 dynamic_linker="$host_os dld.so"
17746 shlibpath_var=LD_LIBRARY_PATH
17747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 if test "X$HPUX_IA64_MODE" = X32; then
17751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17752 else
17753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17754 fi
17755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17756 ;;
17757 hppa*64*)
17758 shrext_cmds='.sl'
17759 hardcode_into_libs=yes
17760 dynamic_linker="$host_os dld.sl"
17761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17767 ;;
17768 *)
17769 shrext_cmds='.sl'
17770 dynamic_linker="$host_os dld.sl"
17771 shlibpath_var=SHLIB_PATH
17772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 ;;
17776 esac
17777 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17778 postinstall_cmds='chmod 555 $lib'
17779 ;;
17780
17781 interix3*)
17782 version_type=linux
17783 need_lib_prefix=no
17784 need_version=no
17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17786 soname_spec='${libname}${release}${shared_ext}$major'
17787 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 shlibpath_overrides_runpath=no
17790 hardcode_into_libs=yes
17791 ;;
17792
17793 irix5* | irix6* | nonstopux*)
17794 case $host_os in
17795 nonstopux*) version_type=nonstopux ;;
17796 *)
17797 if test "$lt_cv_prog_gnu_ld" = yes; then
17798 version_type=linux
17799 else
17800 version_type=irix
17801 fi ;;
17802 esac
17803 need_lib_prefix=no
17804 need_version=no
17805 soname_spec='${libname}${release}${shared_ext}$major'
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17807 case $host_os in
17808 irix5* | nonstopux*)
17809 libsuff= shlibsuff=
17810 ;;
17811 *)
17812 case $LD in # libtool.m4 will add one of these switches to LD
17813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17814 libsuff= shlibsuff= libmagic=32-bit;;
17815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17816 libsuff=32 shlibsuff=N32 libmagic=N32;;
17817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17819 *) libsuff= shlibsuff= libmagic=never-match;;
17820 esac
17821 ;;
17822 esac
17823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17824 shlibpath_overrides_runpath=no
17825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17827 hardcode_into_libs=yes
17828 ;;
17829
17830 # No shared lib support for Linux oldld, aout, or coff.
17831 linux*oldld* | linux*aout* | linux*coff*)
17832 dynamic_linker=no
17833 ;;
17834
17835 # This must be Linux ELF.
17836 linux*)
17837 version_type=linux
17838 need_lib_prefix=no
17839 need_version=no
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 soname_spec='${libname}${release}${shared_ext}$major'
17842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17843 shlibpath_var=LD_LIBRARY_PATH
17844 shlibpath_overrides_runpath=no
17845 # This implies no fast_install, which is unacceptable.
17846 # Some rework will be needed to allow for fast_install
17847 # before this can be enabled.
17848 hardcode_into_libs=yes
17849
17850 # find out which ABI we are using
17851 libsuff=
17852 case "$host_cpu" in
17853 x86_64*|s390x*|powerpc64*)
17854 echo '#line 17854 "configure"' > conftest.$ac_ext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17856 (eval $ac_compile) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; then
17860 case `/usr/bin/file conftest.$ac_objext` in
17861 *64-bit*)
17862 libsuff=64
17863 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17864 ;;
17865 esac
17866 fi
17867 rm -rf conftest*
17868 ;;
17869 esac
17870
17871 # Append ld.so.conf contents to the search path
17872 if test -f /etc/ld.so.conf; then
17873 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17874 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17875 fi
17876
17877 # We used to test for /lib/ld.so.1 and disable shared libraries on
17878 # powerpc, because MkLinux only supported shared libraries with the
17879 # GNU dynamic linker. Since this was broken with cross compilers,
17880 # most powerpc-linux boxes support dynamic linking these days and
17881 # people can always --disable-shared, the test was removed, and we
17882 # assume the GNU/Linux dynamic linker is in use.
17883 dynamic_linker='GNU/Linux ld.so'
17884 ;;
17885
17886 knetbsd*-gnu)
17887 version_type=linux
17888 need_lib_prefix=no
17889 need_version=no
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17891 soname_spec='${libname}${release}${shared_ext}$major'
17892 shlibpath_var=LD_LIBRARY_PATH
17893 shlibpath_overrides_runpath=no
17894 hardcode_into_libs=yes
17895 dynamic_linker='GNU ld.so'
17896 ;;
17897
17898 netbsd*)
17899 version_type=sunos
17900 need_lib_prefix=no
17901 need_version=no
17902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17905 dynamic_linker='NetBSD (a.out) ld.so'
17906 else
17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17908 soname_spec='${libname}${release}${shared_ext}$major'
17909 dynamic_linker='NetBSD ld.elf_so'
17910 fi
17911 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=yes
17913 hardcode_into_libs=yes
17914 ;;
17915
17916 newsos6)
17917 version_type=linux
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17919 shlibpath_var=LD_LIBRARY_PATH
17920 shlibpath_overrides_runpath=yes
17921 ;;
17922
17923 nto-qnx*)
17924 version_type=linux
17925 need_lib_prefix=no
17926 need_version=no
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928 soname_spec='${libname}${release}${shared_ext}$major'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 shlibpath_overrides_runpath=yes
17931 ;;
17932
17933 openbsd*)
17934 version_type=sunos
17935 sys_lib_dlsearch_path_spec="/usr/lib"
17936 need_lib_prefix=no
17937 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17938 case $host_os in
17939 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17940 *) need_version=no ;;
17941 esac
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17944 shlibpath_var=LD_LIBRARY_PATH
17945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17946 case $host_os in
17947 openbsd2.[89] | openbsd2.[89].*)
17948 shlibpath_overrides_runpath=no
17949 ;;
17950 *)
17951 shlibpath_overrides_runpath=yes
17952 ;;
17953 esac
17954 else
17955 shlibpath_overrides_runpath=yes
17956 fi
17957 ;;
17958
17959 os2*)
17960 libname_spec='$name'
17961 shrext_cmds=".dll"
17962 need_lib_prefix=no
17963 library_names_spec='$libname${shared_ext} $libname.a'
17964 dynamic_linker='OS/2 ld.exe'
17965 shlibpath_var=LIBPATH
17966 ;;
17967
17968 osf3* | osf4* | osf5*)
17969 version_type=osf
17970 need_lib_prefix=no
17971 need_version=no
17972 soname_spec='${libname}${release}${shared_ext}$major'
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 shlibpath_var=LD_LIBRARY_PATH
17975 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17976 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17977 ;;
17978
17979 solaris*)
17980 version_type=linux
17981 need_lib_prefix=no
17982 need_version=no
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 shlibpath_overrides_runpath=yes
17987 hardcode_into_libs=yes
17988 # ldd complains unless libraries are executable
17989 postinstall_cmds='chmod +x $lib'
17990 ;;
17991
17992 sunos4*)
17993 version_type=sunos
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17996 shlibpath_var=LD_LIBRARY_PATH
17997 shlibpath_overrides_runpath=yes
17998 if test "$with_gnu_ld" = yes; then
17999 need_lib_prefix=no
18000 fi
18001 need_version=yes
18002 ;;
18003
18004 sysv4 | sysv4.3*)
18005 version_type=linux
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007 soname_spec='${libname}${release}${shared_ext}$major'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 case $host_vendor in
18010 sni)
18011 shlibpath_overrides_runpath=no
18012 need_lib_prefix=no
18013 export_dynamic_flag_spec='${wl}-Blargedynsym'
18014 runpath_var=LD_RUN_PATH
18015 ;;
18016 siemens)
18017 need_lib_prefix=no
18018 ;;
18019 motorola)
18020 need_lib_prefix=no
18021 need_version=no
18022 shlibpath_overrides_runpath=no
18023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18024 ;;
18025 esac
18026 ;;
18027
18028 sysv4*MP*)
18029 if test -d /usr/nec ;then
18030 version_type=linux
18031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18032 soname_spec='$libname${shared_ext}.$major'
18033 shlibpath_var=LD_LIBRARY_PATH
18034 fi
18035 ;;
18036
18037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18038 version_type=freebsd-elf
18039 need_lib_prefix=no
18040 need_version=no
18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18042 soname_spec='${libname}${release}${shared_ext}$major'
18043 shlibpath_var=LD_LIBRARY_PATH
18044 hardcode_into_libs=yes
18045 if test "$with_gnu_ld" = yes; then
18046 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18047 shlibpath_overrides_runpath=no
18048 else
18049 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18050 shlibpath_overrides_runpath=yes
18051 case $host_os in
18052 sco3.2v5*)
18053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18054 ;;
18055 esac
18056 fi
18057 sys_lib_dlsearch_path_spec='/usr/lib'
18058 ;;
18059
18060 uts4*)
18061 version_type=linux
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 ;;
18066
18067 *)
18068 dynamic_linker=no
18069 ;;
18070 esac
18071 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18072 echo "${ECHO_T}$dynamic_linker" >&6
18073 test "$dynamic_linker" = no && can_build_shared=no
18074
18075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18076 if test "$GCC" = yes; then
18077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18078 fi
18079
18080 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18082 hardcode_action_GCJ=
18083 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18084 test -n "$runpath_var_GCJ" || \
18085 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18086
18087 # We can hardcode non-existant directories.
18088 if test "$hardcode_direct_GCJ" != no &&
18089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18090 # have to relink, otherwise we might link with an installed library
18091 # when we should be linking with a yet-to-be-installed one
18092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18093 test "$hardcode_minus_L_GCJ" != no; then
18094 # Linking always hardcodes the temporary library directory.
18095 hardcode_action_GCJ=relink
18096 else
18097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18098 hardcode_action_GCJ=immediate
18099 fi
18100 else
18101 # We cannot hardcode anything, or else we can only hardcode existing
18102 # directories.
18103 hardcode_action_GCJ=unsupported
18104 fi
18105 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18106 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18107
18108 if test "$hardcode_action_GCJ" = relink; then
18109 # Fast installation is not supported
18110 enable_fast_install=no
18111 elif test "$shlibpath_overrides_runpath" = yes ||
18112 test "$enable_shared" = no; then
18113 # Fast installation is not necessary
18114 enable_fast_install=needless
18115 fi
18116
18117
18118 # The else clause should only fire when bootstrapping the
18119 # libtool distribution, otherwise you forgot to ship ltmain.sh
18120 # with your package, and you will get complaints that there are
18121 # no rules to generate ltmain.sh.
18122 if test -f "$ltmain"; then
18123 # See if we are running on zsh, and set the options which allow our commands through
18124 # without removal of \ escapes.
18125 if test -n "${ZSH_VERSION+set}" ; then
18126 setopt NO_GLOB_SUBST
18127 fi
18128 # Now quote all the things that may contain metacharacters while being
18129 # careful not to overquote the AC_SUBSTed values. We take copies of the
18130 # variables and quote the copies for generation of the libtool script.
18131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18132 SED SHELL STRIP \
18133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18135 deplibs_check_method reload_flag reload_cmds need_locks \
18136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18137 lt_cv_sys_global_symbol_to_c_name_address \
18138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18139 old_postinstall_cmds old_postuninstall_cmds \
18140 compiler_GCJ \
18141 CC_GCJ \
18142 LD_GCJ \
18143 lt_prog_compiler_wl_GCJ \
18144 lt_prog_compiler_pic_GCJ \
18145 lt_prog_compiler_static_GCJ \
18146 lt_prog_compiler_no_builtin_flag_GCJ \
18147 export_dynamic_flag_spec_GCJ \
18148 thread_safe_flag_spec_GCJ \
18149 whole_archive_flag_spec_GCJ \
18150 enable_shared_with_static_runtimes_GCJ \
18151 old_archive_cmds_GCJ \
18152 old_archive_from_new_cmds_GCJ \
18153 predep_objects_GCJ \
18154 postdep_objects_GCJ \
18155 predeps_GCJ \
18156 postdeps_GCJ \
18157 compiler_lib_search_path_GCJ \
18158 archive_cmds_GCJ \
18159 archive_expsym_cmds_GCJ \
18160 postinstall_cmds_GCJ \
18161 postuninstall_cmds_GCJ \
18162 old_archive_from_expsyms_cmds_GCJ \
18163 allow_undefined_flag_GCJ \
18164 no_undefined_flag_GCJ \
18165 export_symbols_cmds_GCJ \
18166 hardcode_libdir_flag_spec_GCJ \
18167 hardcode_libdir_flag_spec_ld_GCJ \
18168 hardcode_libdir_separator_GCJ \
18169 hardcode_automatic_GCJ \
18170 module_cmds_GCJ \
18171 module_expsym_cmds_GCJ \
18172 lt_cv_prog_compiler_c_o_GCJ \
18173 exclude_expsyms_GCJ \
18174 include_expsyms_GCJ; do
18175
18176 case $var in
18177 old_archive_cmds_GCJ | \
18178 old_archive_from_new_cmds_GCJ | \
18179 archive_cmds_GCJ | \
18180 archive_expsym_cmds_GCJ | \
18181 module_cmds_GCJ | \
18182 module_expsym_cmds_GCJ | \
18183 old_archive_from_expsyms_cmds_GCJ | \
18184 export_symbols_cmds_GCJ | \
18185 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18186 postinstall_cmds | postuninstall_cmds | \
18187 old_postinstall_cmds | old_postuninstall_cmds | \
18188 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18189 # Double-quote double-evaled strings.
18190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18191 ;;
18192 *)
18193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18194 ;;
18195 esac
18196 done
18197
18198 case $lt_echo in
18199 *'\$0 --fallback-echo"')
18200 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18201 ;;
18202 esac
18203
18204 cfgfile="$ofile"
18205
18206 cat <<__EOF__ >> "$cfgfile"
18207 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18208
18209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18210
18211 # Shell to use when invoking shell scripts.
18212 SHELL=$lt_SHELL
18213
18214 # Whether or not to build shared libraries.
18215 build_libtool_libs=$enable_shared
18216
18217 # Whether or not to build static libraries.
18218 build_old_libs=$enable_static
18219
18220 # Whether or not to add -lc for building shared libraries.
18221 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18222
18223 # Whether or not to disallow shared libs when runtime libs are static
18224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18225
18226 # Whether or not to optimize for fast installation.
18227 fast_install=$enable_fast_install
18228
18229 # The host system.
18230 host_alias=$host_alias
18231 host=$host
18232 host_os=$host_os
18233
18234 # The build system.
18235 build_alias=$build_alias
18236 build=$build
18237 build_os=$build_os
18238
18239 # An echo program that does not interpret backslashes.
18240 echo=$lt_echo
18241
18242 # The archiver.
18243 AR=$lt_AR
18244 AR_FLAGS=$lt_AR_FLAGS
18245
18246 # A C compiler.
18247 LTCC=$lt_LTCC
18248
18249 # LTCC compiler flags.
18250 LTCFLAGS=$lt_LTCFLAGS
18251
18252 # A language-specific compiler.
18253 CC=$lt_compiler_GCJ
18254
18255 # Is the compiler the GNU C compiler?
18256 with_gcc=$GCC_GCJ
18257
18258 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18259 gcc_ver=\`gcc -dumpversion\`
18260
18261 # An ERE matcher.
18262 EGREP=$lt_EGREP
18263
18264 # The linker used to build libraries.
18265 LD=$lt_LD_GCJ
18266
18267 # Whether we need hard or soft links.
18268 LN_S=$lt_LN_S
18269
18270 # A BSD-compatible nm program.
18271 NM=$lt_NM
18272
18273 # A symbol stripping program
18274 STRIP=$lt_STRIP
18275
18276 # Used to examine libraries when file_magic_cmd begins "file"
18277 MAGIC_CMD=$MAGIC_CMD
18278
18279 # Used on cygwin: DLL creation program.
18280 DLLTOOL="$DLLTOOL"
18281
18282 # Used on cygwin: object dumper.
18283 OBJDUMP="$OBJDUMP"
18284
18285 # Used on cygwin: assembler.
18286 AS="$AS"
18287
18288 # The name of the directory that contains temporary libtool files.
18289 objdir=$objdir
18290
18291 # How to create reloadable object files.
18292 reload_flag=$lt_reload_flag
18293 reload_cmds=$lt_reload_cmds
18294
18295 # How to pass a linker flag through the compiler.
18296 wl=$lt_lt_prog_compiler_wl_GCJ
18297
18298 # Object file suffix (normally "o").
18299 objext="$ac_objext"
18300
18301 # Old archive suffix (normally "a").
18302 libext="$libext"
18303
18304 # Shared library suffix (normally ".so").
18305 shrext_cmds='$shrext_cmds'
18306
18307 # Executable file suffix (normally "").
18308 exeext="$exeext"
18309
18310 # Additional compiler flags for building library objects.
18311 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18312 pic_mode=$pic_mode
18313
18314 # What is the maximum length of a command?
18315 max_cmd_len=$lt_cv_sys_max_cmd_len
18316
18317 # Does compiler simultaneously support -c and -o options?
18318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18319
18320 # Must we lock files when doing compilation?
18321 need_locks=$lt_need_locks
18322
18323 # Do we need the lib prefix for modules?
18324 need_lib_prefix=$need_lib_prefix
18325
18326 # Do we need a version for libraries?
18327 need_version=$need_version
18328
18329 # Whether dlopen is supported.
18330 dlopen_support=$enable_dlopen
18331
18332 # Whether dlopen of programs is supported.
18333 dlopen_self=$enable_dlopen_self
18334
18335 # Whether dlopen of statically linked programs is supported.
18336 dlopen_self_static=$enable_dlopen_self_static
18337
18338 # Compiler flag to prevent dynamic linking.
18339 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18340
18341 # Compiler flag to turn off builtin functions.
18342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18343
18344 # Compiler flag to allow reflexive dlopens.
18345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18346
18347 # Compiler flag to generate shared objects directly from archives.
18348 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18349
18350 # Compiler flag to generate thread-safe objects.
18351 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18352
18353 # Library versioning type.
18354 version_type=$version_type
18355
18356 # Format of library name prefix.
18357 libname_spec=$lt_libname_spec
18358
18359 # List of archive names. First name is the real one, the rest are links.
18360 # The last name is the one that the linker finds with -lNAME.
18361 library_names_spec=$lt_library_names_spec
18362
18363 # The coded name of the library, if different from the real name.
18364 soname_spec=$lt_soname_spec
18365
18366 # Commands used to build and install an old-style archive.
18367 RANLIB=$lt_RANLIB
18368 old_archive_cmds=$lt_old_archive_cmds_GCJ
18369 old_postinstall_cmds=$lt_old_postinstall_cmds
18370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18371
18372 # Create an old-style archive from a shared archive.
18373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18374
18375 # Create a temporary old-style archive to link instead of a shared archive.
18376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18377
18378 # Commands used to build and install a shared archive.
18379 archive_cmds=$lt_archive_cmds_GCJ
18380 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18381 postinstall_cmds=$lt_postinstall_cmds
18382 postuninstall_cmds=$lt_postuninstall_cmds
18383
18384 # Commands used to build a loadable module (assumed same as above if empty)
18385 module_cmds=$lt_module_cmds_GCJ
18386 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18387
18388 # Commands to strip libraries.
18389 old_striplib=$lt_old_striplib
18390 striplib=$lt_striplib
18391
18392 # Dependencies to place before the objects being linked to create a
18393 # shared library.
18394 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18395
18396 # Dependencies to place after the objects being linked to create a
18397 # shared library.
18398 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18399
18400 # Dependencies to place before the objects being linked to create a
18401 # shared library.
18402 predeps=$lt_predeps_GCJ
18403
18404 # Dependencies to place after the objects being linked to create a
18405 # shared library.
18406 postdeps=$lt_postdeps_GCJ
18407
18408 # The library search path used internally by the compiler when linking
18409 # a shared library.
18410 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18411
18412 # Method to check whether dependent libraries are shared objects.
18413 deplibs_check_method=$lt_deplibs_check_method
18414
18415 # Command to use when deplibs_check_method == file_magic.
18416 file_magic_cmd=$lt_file_magic_cmd
18417
18418 # Flag that allows shared libraries with undefined symbols to be built.
18419 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18420
18421 # Flag that forces no undefined symbols.
18422 no_undefined_flag=$lt_no_undefined_flag_GCJ
18423
18424 # Commands used to finish a libtool library installation in a directory.
18425 finish_cmds=$lt_finish_cmds
18426
18427 # Same as above, but a single script fragment to be evaled but not shown.
18428 finish_eval=$lt_finish_eval
18429
18430 # Take the output of nm and produce a listing of raw symbols and C names.
18431 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18432
18433 # Transform the output of nm in a proper C declaration
18434 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18435
18436 # Transform the output of nm in a C name address pair
18437 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18438
18439 # This is the shared library runtime path variable.
18440 runpath_var=$runpath_var
18441
18442 # This is the shared library path variable.
18443 shlibpath_var=$shlibpath_var
18444
18445 # Is shlibpath searched before the hard-coded library search path?
18446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18447
18448 # How to hardcode a shared library path into an executable.
18449 hardcode_action=$hardcode_action_GCJ
18450
18451 # Whether we should hardcode library paths into libraries.
18452 hardcode_into_libs=$hardcode_into_libs
18453
18454 # Flag to hardcode \$libdir into a binary during linking.
18455 # This must work even if \$libdir does not exist.
18456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18457
18458 # If ld is used when linking, flag to hardcode \$libdir into
18459 # a binary during linking. This must work even if \$libdir does
18460 # not exist.
18461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18462
18463 # Whether we need a single -rpath flag with a separated argument.
18464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18465
18466 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18467 # resulting binary.
18468 hardcode_direct=$hardcode_direct_GCJ
18469
18470 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18471 # resulting binary.
18472 hardcode_minus_L=$hardcode_minus_L_GCJ
18473
18474 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18475 # the resulting binary.
18476 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18477
18478 # Set to yes if building a shared library automatically hardcodes DIR into the library
18479 # and all subsequent libraries and executables linked against it.
18480 hardcode_automatic=$hardcode_automatic_GCJ
18481
18482 # Variables whose values should be saved in libtool wrapper scripts and
18483 # restored at relink time.
18484 variables_saved_for_relink="$variables_saved_for_relink"
18485
18486 # Whether libtool must link a program against all its dependency libraries.
18487 link_all_deplibs=$link_all_deplibs_GCJ
18488
18489 # Compile-time system search path for libraries
18490 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18491
18492 # Run-time system search path for libraries
18493 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18494
18495 # Fix the shell variable \$srcfile for the compiler.
18496 fix_srcfile_path="$fix_srcfile_path_GCJ"
18497
18498 # Set to yes if exported symbols are required.
18499 always_export_symbols=$always_export_symbols_GCJ
18500
18501 # The commands to list exported symbols.
18502 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18503
18504 # The commands to extract the exported symbol list from a shared archive.
18505 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18506
18507 # Symbols that should not be listed in the preloaded symbols.
18508 exclude_expsyms=$lt_exclude_expsyms_GCJ
18509
18510 # Symbols that must always be exported.
18511 include_expsyms=$lt_include_expsyms_GCJ
18512
18513 # ### END LIBTOOL TAG CONFIG: $tagname
18514
18515 __EOF__
18516
18517
18518 else
18519 # If there is no Makefile yet, we rely on a make rule to execute
18520 # `config.status --recheck' to rerun these tests and create the
18521 # libtool script then.
18522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18523 if test -f "$ltmain_in"; then
18524 test -f Makefile && make "$ltmain"
18525 fi
18526 fi
18527
18528
18529 ac_ext=c
18530 ac_cpp='$CPP $CPPFLAGS'
18531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18534
18535 CC="$lt_save_CC"
18536
18537 else
18538 tagname=""
18539 fi
18540 ;;
18541
18542 RC)
18543
18544
18545
18546 # Source file extension for RC test sources.
18547 ac_ext=rc
18548
18549 # Object file extension for compiled RC test sources.
18550 objext=o
18551 objext_RC=$objext
18552
18553 # Code to be used in simple compile tests
18554 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18555
18556 # Code to be used in simple link tests
18557 lt_simple_link_test_code="$lt_simple_compile_test_code"
18558
18559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18560
18561 # If no C compiler was specified, use CC.
18562 LTCC=${LTCC-"$CC"}
18563
18564 # If no C compiler flags were specified, use CFLAGS.
18565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18566
18567 # Allow CC to be a program name with arguments.
18568 compiler=$CC
18569
18570
18571 # save warnings/boilerplate of simple test code
18572 ac_outfile=conftest.$ac_objext
18573 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18574 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18575 _lt_compiler_boilerplate=`cat conftest.err`
18576 $rm conftest*
18577
18578 ac_outfile=conftest.$ac_objext
18579 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18580 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18581 _lt_linker_boilerplate=`cat conftest.err`
18582 $rm conftest*
18583
18584
18585 # Allow CC to be a program name with arguments.
18586 lt_save_CC="$CC"
18587 CC=${RC-"windres"}
18588 compiler=$CC
18589 compiler_RC=$CC
18590 for cc_temp in $compiler""; do
18591 case $cc_temp in
18592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18594 \-*) ;;
18595 *) break;;
18596 esac
18597 done
18598 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18599
18600 lt_cv_prog_compiler_c_o_RC=yes
18601
18602 # The else clause should only fire when bootstrapping the
18603 # libtool distribution, otherwise you forgot to ship ltmain.sh
18604 # with your package, and you will get complaints that there are
18605 # no rules to generate ltmain.sh.
18606 if test -f "$ltmain"; then
18607 # See if we are running on zsh, and set the options which allow our commands through
18608 # without removal of \ escapes.
18609 if test -n "${ZSH_VERSION+set}" ; then
18610 setopt NO_GLOB_SUBST
18611 fi
18612 # Now quote all the things that may contain metacharacters while being
18613 # careful not to overquote the AC_SUBSTed values. We take copies of the
18614 # variables and quote the copies for generation of the libtool script.
18615 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18616 SED SHELL STRIP \
18617 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18618 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18619 deplibs_check_method reload_flag reload_cmds need_locks \
18620 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18621 lt_cv_sys_global_symbol_to_c_name_address \
18622 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18623 old_postinstall_cmds old_postuninstall_cmds \
18624 compiler_RC \
18625 CC_RC \
18626 LD_RC \
18627 lt_prog_compiler_wl_RC \
18628 lt_prog_compiler_pic_RC \
18629 lt_prog_compiler_static_RC \
18630 lt_prog_compiler_no_builtin_flag_RC \
18631 export_dynamic_flag_spec_RC \
18632 thread_safe_flag_spec_RC \
18633 whole_archive_flag_spec_RC \
18634 enable_shared_with_static_runtimes_RC \
18635 old_archive_cmds_RC \
18636 old_archive_from_new_cmds_RC \
18637 predep_objects_RC \
18638 postdep_objects_RC \
18639 predeps_RC \
18640 postdeps_RC \
18641 compiler_lib_search_path_RC \
18642 archive_cmds_RC \
18643 archive_expsym_cmds_RC \
18644 postinstall_cmds_RC \
18645 postuninstall_cmds_RC \
18646 old_archive_from_expsyms_cmds_RC \
18647 allow_undefined_flag_RC \
18648 no_undefined_flag_RC \
18649 export_symbols_cmds_RC \
18650 hardcode_libdir_flag_spec_RC \
18651 hardcode_libdir_flag_spec_ld_RC \
18652 hardcode_libdir_separator_RC \
18653 hardcode_automatic_RC \
18654 module_cmds_RC \
18655 module_expsym_cmds_RC \
18656 lt_cv_prog_compiler_c_o_RC \
18657 exclude_expsyms_RC \
18658 include_expsyms_RC; do
18659
18660 case $var in
18661 old_archive_cmds_RC | \
18662 old_archive_from_new_cmds_RC | \
18663 archive_cmds_RC | \
18664 archive_expsym_cmds_RC | \
18665 module_cmds_RC | \
18666 module_expsym_cmds_RC | \
18667 old_archive_from_expsyms_cmds_RC | \
18668 export_symbols_cmds_RC | \
18669 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18670 postinstall_cmds | postuninstall_cmds | \
18671 old_postinstall_cmds | old_postuninstall_cmds | \
18672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18673 # Double-quote double-evaled strings.
18674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18675 ;;
18676 *)
18677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18678 ;;
18679 esac
18680 done
18681
18682 case $lt_echo in
18683 *'\$0 --fallback-echo"')
18684 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18685 ;;
18686 esac
18687
18688 cfgfile="$ofile"
18689
18690 cat <<__EOF__ >> "$cfgfile"
18691 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18692
18693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18694
18695 # Shell to use when invoking shell scripts.
18696 SHELL=$lt_SHELL
18697
18698 # Whether or not to build shared libraries.
18699 build_libtool_libs=$enable_shared
18700
18701 # Whether or not to build static libraries.
18702 build_old_libs=$enable_static
18703
18704 # Whether or not to add -lc for building shared libraries.
18705 build_libtool_need_lc=$archive_cmds_need_lc_RC
18706
18707 # Whether or not to disallow shared libs when runtime libs are static
18708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18709
18710 # Whether or not to optimize for fast installation.
18711 fast_install=$enable_fast_install
18712
18713 # The host system.
18714 host_alias=$host_alias
18715 host=$host
18716 host_os=$host_os
18717
18718 # The build system.
18719 build_alias=$build_alias
18720 build=$build
18721 build_os=$build_os
18722
18723 # An echo program that does not interpret backslashes.
18724 echo=$lt_echo
18725
18726 # The archiver.
18727 AR=$lt_AR
18728 AR_FLAGS=$lt_AR_FLAGS
18729
18730 # A C compiler.
18731 LTCC=$lt_LTCC
18732
18733 # LTCC compiler flags.
18734 LTCFLAGS=$lt_LTCFLAGS
18735
18736 # A language-specific compiler.
18737 CC=$lt_compiler_RC
18738
18739 # Is the compiler the GNU C compiler?
18740 with_gcc=$GCC_RC
18741
18742 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18743 gcc_ver=\`gcc -dumpversion\`
18744
18745 # An ERE matcher.
18746 EGREP=$lt_EGREP
18747
18748 # The linker used to build libraries.
18749 LD=$lt_LD_RC
18750
18751 # Whether we need hard or soft links.
18752 LN_S=$lt_LN_S
18753
18754 # A BSD-compatible nm program.
18755 NM=$lt_NM
18756
18757 # A symbol stripping program
18758 STRIP=$lt_STRIP
18759
18760 # Used to examine libraries when file_magic_cmd begins "file"
18761 MAGIC_CMD=$MAGIC_CMD
18762
18763 # Used on cygwin: DLL creation program.
18764 DLLTOOL="$DLLTOOL"
18765
18766 # Used on cygwin: object dumper.
18767 OBJDUMP="$OBJDUMP"
18768
18769 # Used on cygwin: assembler.
18770 AS="$AS"
18771
18772 # The name of the directory that contains temporary libtool files.
18773 objdir=$objdir
18774
18775 # How to create reloadable object files.
18776 reload_flag=$lt_reload_flag
18777 reload_cmds=$lt_reload_cmds
18778
18779 # How to pass a linker flag through the compiler.
18780 wl=$lt_lt_prog_compiler_wl_RC
18781
18782 # Object file suffix (normally "o").
18783 objext="$ac_objext"
18784
18785 # Old archive suffix (normally "a").
18786 libext="$libext"
18787
18788 # Shared library suffix (normally ".so").
18789 shrext_cmds='$shrext_cmds'
18790
18791 # Executable file suffix (normally "").
18792 exeext="$exeext"
18793
18794 # Additional compiler flags for building library objects.
18795 pic_flag=$lt_lt_prog_compiler_pic_RC
18796 pic_mode=$pic_mode
18797
18798 # What is the maximum length of a command?
18799 max_cmd_len=$lt_cv_sys_max_cmd_len
18800
18801 # Does compiler simultaneously support -c and -o options?
18802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18803
18804 # Must we lock files when doing compilation?
18805 need_locks=$lt_need_locks
18806
18807 # Do we need the lib prefix for modules?
18808 need_lib_prefix=$need_lib_prefix
18809
18810 # Do we need a version for libraries?
18811 need_version=$need_version
18812
18813 # Whether dlopen is supported.
18814 dlopen_support=$enable_dlopen
18815
18816 # Whether dlopen of programs is supported.
18817 dlopen_self=$enable_dlopen_self
18818
18819 # Whether dlopen of statically linked programs is supported.
18820 dlopen_self_static=$enable_dlopen_self_static
18821
18822 # Compiler flag to prevent dynamic linking.
18823 link_static_flag=$lt_lt_prog_compiler_static_RC
18824
18825 # Compiler flag to turn off builtin functions.
18826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18827
18828 # Compiler flag to allow reflexive dlopens.
18829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18830
18831 # Compiler flag to generate shared objects directly from archives.
18832 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18833
18834 # Compiler flag to generate thread-safe objects.
18835 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18836
18837 # Library versioning type.
18838 version_type=$version_type
18839
18840 # Format of library name prefix.
18841 libname_spec=$lt_libname_spec
18842
18843 # List of archive names. First name is the real one, the rest are links.
18844 # The last name is the one that the linker finds with -lNAME.
18845 library_names_spec=$lt_library_names_spec
18846
18847 # The coded name of the library, if different from the real name.
18848 soname_spec=$lt_soname_spec
18849
18850 # Commands used to build and install an old-style archive.
18851 RANLIB=$lt_RANLIB
18852 old_archive_cmds=$lt_old_archive_cmds_RC
18853 old_postinstall_cmds=$lt_old_postinstall_cmds
18854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18855
18856 # Create an old-style archive from a shared archive.
18857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18858
18859 # Create a temporary old-style archive to link instead of a shared archive.
18860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18861
18862 # Commands used to build and install a shared archive.
18863 archive_cmds=$lt_archive_cmds_RC
18864 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18865 postinstall_cmds=$lt_postinstall_cmds
18866 postuninstall_cmds=$lt_postuninstall_cmds
18867
18868 # Commands used to build a loadable module (assumed same as above if empty)
18869 module_cmds=$lt_module_cmds_RC
18870 module_expsym_cmds=$lt_module_expsym_cmds_RC
18871
18872 # Commands to strip libraries.
18873 old_striplib=$lt_old_striplib
18874 striplib=$lt_striplib
18875
18876 # Dependencies to place before the objects being linked to create a
18877 # shared library.
18878 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18879
18880 # Dependencies to place after the objects being linked to create a
18881 # shared library.
18882 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18883
18884 # Dependencies to place before the objects being linked to create a
18885 # shared library.
18886 predeps=$lt_predeps_RC
18887
18888 # Dependencies to place after the objects being linked to create a
18889 # shared library.
18890 postdeps=$lt_postdeps_RC
18891
18892 # The library search path used internally by the compiler when linking
18893 # a shared library.
18894 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18895
18896 # Method to check whether dependent libraries are shared objects.
18897 deplibs_check_method=$lt_deplibs_check_method
18898
18899 # Command to use when deplibs_check_method == file_magic.
18900 file_magic_cmd=$lt_file_magic_cmd
18901
18902 # Flag that allows shared libraries with undefined symbols to be built.
18903 allow_undefined_flag=$lt_allow_undefined_flag_RC
18904
18905 # Flag that forces no undefined symbols.
18906 no_undefined_flag=$lt_no_undefined_flag_RC
18907
18908 # Commands used to finish a libtool library installation in a directory.
18909 finish_cmds=$lt_finish_cmds
18910
18911 # Same as above, but a single script fragment to be evaled but not shown.
18912 finish_eval=$lt_finish_eval
18913
18914 # Take the output of nm and produce a listing of raw symbols and C names.
18915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18916
18917 # Transform the output of nm in a proper C declaration
18918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18919
18920 # Transform the output of nm in a C name address pair
18921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18922
18923 # This is the shared library runtime path variable.
18924 runpath_var=$runpath_var
18925
18926 # This is the shared library path variable.
18927 shlibpath_var=$shlibpath_var
18928
18929 # Is shlibpath searched before the hard-coded library search path?
18930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18931
18932 # How to hardcode a shared library path into an executable.
18933 hardcode_action=$hardcode_action_RC
18934
18935 # Whether we should hardcode library paths into libraries.
18936 hardcode_into_libs=$hardcode_into_libs
18937
18938 # Flag to hardcode \$libdir into a binary during linking.
18939 # This must work even if \$libdir does not exist.
18940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18941
18942 # If ld is used when linking, flag to hardcode \$libdir into
18943 # a binary during linking. This must work even if \$libdir does
18944 # not exist.
18945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18946
18947 # Whether we need a single -rpath flag with a separated argument.
18948 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18949
18950 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18951 # resulting binary.
18952 hardcode_direct=$hardcode_direct_RC
18953
18954 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18955 # resulting binary.
18956 hardcode_minus_L=$hardcode_minus_L_RC
18957
18958 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18959 # the resulting binary.
18960 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18961
18962 # Set to yes if building a shared library automatically hardcodes DIR into the library
18963 # and all subsequent libraries and executables linked against it.
18964 hardcode_automatic=$hardcode_automatic_RC
18965
18966 # Variables whose values should be saved in libtool wrapper scripts and
18967 # restored at relink time.
18968 variables_saved_for_relink="$variables_saved_for_relink"
18969
18970 # Whether libtool must link a program against all its dependency libraries.
18971 link_all_deplibs=$link_all_deplibs_RC
18972
18973 # Compile-time system search path for libraries
18974 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18975
18976 # Run-time system search path for libraries
18977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18978
18979 # Fix the shell variable \$srcfile for the compiler.
18980 fix_srcfile_path="$fix_srcfile_path_RC"
18981
18982 # Set to yes if exported symbols are required.
18983 always_export_symbols=$always_export_symbols_RC
18984
18985 # The commands to list exported symbols.
18986 export_symbols_cmds=$lt_export_symbols_cmds_RC
18987
18988 # The commands to extract the exported symbol list from a shared archive.
18989 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18990
18991 # Symbols that should not be listed in the preloaded symbols.
18992 exclude_expsyms=$lt_exclude_expsyms_RC
18993
18994 # Symbols that must always be exported.
18995 include_expsyms=$lt_include_expsyms_RC
18996
18997 # ### END LIBTOOL TAG CONFIG: $tagname
18998
18999 __EOF__
19000
19001
19002 else
19003 # If there is no Makefile yet, we rely on a make rule to execute
19004 # `config.status --recheck' to rerun these tests and create the
19005 # libtool script then.
19006 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19007 if test -f "$ltmain_in"; then
19008 test -f Makefile && make "$ltmain"
19009 fi
19010 fi
19011
19012
19013 ac_ext=c
19014 ac_cpp='$CPP $CPPFLAGS'
19015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19018
19019 CC="$lt_save_CC"
19020
19021 ;;
19022
19023 *)
19024 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19025 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19026 { (exit 1); exit 1; }; }
19027 ;;
19028 esac
19029
19030 # Append the new tag name to the list of available tags.
19031 if test -n "$tagname" ; then
19032 available_tags="$available_tags $tagname"
19033 fi
19034 fi
19035 done
19036 IFS="$lt_save_ifs"
19037
19038 # Now substitute the updated list of available tags.
19039 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19040 mv "${ofile}T" "$ofile"
19041 chmod +x "$ofile"
19042 else
19043 rm -f "${ofile}T"
19044 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19045 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19046 { (exit 1); exit 1; }; }
19047 fi
19048 fi
19049
19050
19051
19052 # This can be used to rebuild libtool when needed
19053 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19054
19055 # Always use our own libtool.
19056 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19057
19058 # Prevent multiple expansion
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086 ac_header_dirent=no
19087 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19088 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19089 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19090 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h. */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100 #include <sys/types.h>
19101 #include <$ac_hdr>
19102
19103 int
19104 main ()
19105 {
19106 if ((DIR *) 0)
19107 return 0;
19108 ;
19109 return 0;
19110 }
19111 _ACEOF
19112 rm -f conftest.$ac_objext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19114 (eval $ac_compile) 2>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
19121 { ac_try='test -z "$ac_c_werror_flag"
19122 || test ! -s conftest.err'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest.$ac_objext'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 eval "$as_ac_Header=yes"
19135 else
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 eval "$as_ac_Header=no"
19140 fi
19141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19142 fi
19143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19148 _ACEOF
19149
19150 ac_header_dirent=$ac_hdr; break
19151 fi
19152
19153 done
19154 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19155 if test $ac_header_dirent = dirent.h; then
19156 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19158 if test "${ac_cv_search_opendir+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 else
19161 ac_func_search_save_LIBS=$LIBS
19162 ac_cv_search_opendir=no
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169
19170 /* Override any gcc2 internal prototype to avoid an error. */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 /* We use char because int might match the return type of a gcc2
19175 builtin and then its argument prototype would still apply. */
19176 char opendir ();
19177 int
19178 main ()
19179 {
19180 opendir ();
19181 ;
19182 return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187 (eval $ac_link) 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag"
19195 || test ! -s conftest.err'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try='test -s conftest$ac_exeext'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
19207 ac_cv_search_opendir="none required"
19208 else
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212 fi
19213 rm -f conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215 if test "$ac_cv_search_opendir" = no; then
19216 for ac_lib in dir; do
19217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19218 cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h. */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224
19225 /* Override any gcc2 internal prototype to avoid an error. */
19226 #ifdef __cplusplus
19227 extern "C"
19228 #endif
19229 /* We use char because int might match the return type of a gcc2
19230 builtin and then its argument prototype would still apply. */
19231 char opendir ();
19232 int
19233 main ()
19234 {
19235 opendir ();
19236 ;
19237 return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag"
19250 || test ! -s conftest.err'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try='test -s conftest$ac_exeext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 ac_cv_search_opendir="-l$ac_lib"
19263 break
19264 else
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 fi
19269 rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271 done
19272 fi
19273 LIBS=$ac_func_search_save_LIBS
19274 fi
19275 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19276 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19277 if test "$ac_cv_search_opendir" != no; then
19278 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19279
19280 fi
19281
19282 else
19283 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19284 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19285 if test "${ac_cv_search_opendir+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288 ac_func_search_save_LIBS=$LIBS
19289 ac_cv_search_opendir=no
19290 cat >conftest.$ac_ext <<_ACEOF
19291 /* confdefs.h. */
19292 _ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19296
19297 /* Override any gcc2 internal prototype to avoid an error. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 /* We use char because int might match the return type of a gcc2
19302 builtin and then its argument prototype would still apply. */
19303 char opendir ();
19304 int
19305 main ()
19306 {
19307 opendir ();
19308 ;
19309 return 0;
19310 }
19311 _ACEOF
19312 rm -f conftest.$ac_objext conftest$ac_exeext
19313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19314 (eval $ac_link) 2>conftest.er1
19315 ac_status=$?
19316 grep -v '^ *+' conftest.er1 >conftest.err
19317 rm -f conftest.er1
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
19321 { ac_try='test -z "$ac_c_werror_flag"
19322 || test ! -s conftest.err'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; } &&
19328 { ac_try='test -s conftest$ac_exeext'
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_search_opendir="none required"
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19338
19339 fi
19340 rm -f conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19342 if test "$ac_cv_search_opendir" = no; then
19343 for ac_lib in x; do
19344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h. */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19351
19352 /* Override any gcc2 internal prototype to avoid an error. */
19353 #ifdef __cplusplus
19354 extern "C"
19355 #endif
19356 /* We use char because int might match the return type of a gcc2
19357 builtin and then its argument prototype would still apply. */
19358 char opendir ();
19359 int
19360 main ()
19361 {
19362 opendir ();
19363 ;
19364 return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369 (eval $ac_link) 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag"
19377 || test ! -s conftest.err'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest$ac_exeext'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_cv_search_opendir="-l$ac_lib"
19390 break
19391 else
19392 echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 fi
19396 rm -f conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398 done
19399 fi
19400 LIBS=$ac_func_search_save_LIBS
19401 fi
19402 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19403 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19404 if test "$ac_cv_search_opendir" != no; then
19405 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19406
19407 fi
19408
19409 fi
19410
19411 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19412 if test "${enable_ltdl_install+set}" = set; then
19413 enableval="$enable_ltdl_install"
19414
19415 fi;
19416
19417
19418
19419 if test x"${enable_ltdl_install-no}" != xno; then
19420 INSTALL_LTDL_TRUE=
19421 INSTALL_LTDL_FALSE='#'
19422 else
19423 INSTALL_LTDL_TRUE='#'
19424 INSTALL_LTDL_FALSE=
19425 fi
19426
19427
19428
19429 if test x"${enable_ltdl_convenience-no}" != xno; then
19430 CONVENIENCE_LTDL_TRUE=
19431 CONVENIENCE_LTDL_FALSE='#'
19432 else
19433 CONVENIENCE_LTDL_TRUE='#'
19434 CONVENIENCE_LTDL_FALSE=
19435 fi
19436
19437
19438
19439 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19440 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19441 if test "${libltdl_cv_shlibext+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444
19445 module=yes
19446 eval libltdl_cv_shlibext=$shrext_cmds
19447
19448 fi
19449 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19450 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19451 if test -n "$libltdl_cv_shlibext"; then
19452
19453 cat >>confdefs.h <<_ACEOF
19454 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19455 _ACEOF
19456
19457 fi
19458
19459
19460 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19461 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19462 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 else
19465 libltdl_cv_shlibpath_var="$shlibpath_var"
19466 fi
19467 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19468 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19469 if test -n "$libltdl_cv_shlibpath_var"; then
19470
19471 cat >>confdefs.h <<_ACEOF
19472 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19473 _ACEOF
19474
19475 fi
19476
19477
19478 echo "$as_me:$LINENO: checking for the default library search path" >&5
19479 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19480 if test "${libltdl_cv_sys_search_path+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19484 fi
19485 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19486 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19487 if test -n "$libltdl_cv_sys_search_path"; then
19488 sys_search_path=
19489 for dir in $libltdl_cv_sys_search_path; do
19490 if test -z "$sys_search_path"; then
19491 sys_search_path="$dir"
19492 else
19493 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19494 fi
19495 done
19496
19497 cat >>confdefs.h <<_ACEOF
19498 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19499 _ACEOF
19500
19501 fi
19502
19503 echo "$as_me:$LINENO: checking for objdir" >&5
19504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19505 if test "${libltdl_cv_objdir+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508 libltdl_cv_objdir="$objdir"
19509 if test -n "$objdir"; then
19510 :
19511 else
19512 rm -f .libs 2>/dev/null
19513 mkdir .libs 2>/dev/null
19514 if test -d .libs; then
19515 libltdl_cv_objdir=.libs
19516 else
19517 # MS-DOS does not allow filenames that begin with a dot.
19518 libltdl_cv_objdir=_libs
19519 fi
19520 rmdir .libs 2>/dev/null
19521 fi
19522
19523 fi
19524 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19525 echo "${ECHO_T}$libltdl_cv_objdir" >&6
19526
19527 cat >>confdefs.h <<_ACEOF
19528 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19529 _ACEOF
19530
19531
19532
19533 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19534 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19535 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19536 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19539 libltdl_cv_preloaded_symbols=yes
19540 else
19541 libltdl_cv_preloaded_symbols=no
19542 fi
19543
19544 fi
19545 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19546 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19547 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_PRELOADED_SYMBOLS 1
19551 _ACEOF
19552
19553 fi
19554
19555 LIBADD_DL=
19556
19557 ac_ext=c
19558 ac_cpp='$CPP $CPPFLAGS'
19559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19562
19563
19564 echo "$as_me:$LINENO: checking for shl_load" >&5
19565 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19566 if test "${ac_cv_func_shl_load+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569 cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h. */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19575 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19577 #define shl_load innocuous_shl_load
19578
19579 /* System header to define __stub macros and hopefully few prototypes,
19580 which can conflict with char shl_load (); below.
19581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19582 <limits.h> exists even on freestanding compilers. */
19583
19584 #ifdef __STDC__
19585 # include <limits.h>
19586 #else
19587 # include <assert.h>
19588 #endif
19589
19590 #undef shl_load
19591
19592 /* Override any gcc2 internal prototype to avoid an error. */
19593 #ifdef __cplusplus
19594 extern "C"
19595 {
19596 #endif
19597 /* We use char because int might match the return type of a gcc2
19598 builtin and then its argument prototype would still apply. */
19599 char shl_load ();
19600 /* The GNU C library defines this for functions which it implements
19601 to always fail with ENOSYS. Some functions are actually named
19602 something starting with __ and the normal name is an alias. */
19603 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19604 choke me
19605 #else
19606 char (*f) () = shl_load;
19607 #endif
19608 #ifdef __cplusplus
19609 }
19610 #endif
19611
19612 int
19613 main ()
19614 {
19615 return f != shl_load;
19616 ;
19617 return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19622 (eval $ac_link) 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag"
19630 || test ! -s conftest.err'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } &&
19636 { ac_try='test -s conftest$ac_exeext'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_cv_func_shl_load=yes
19643 else
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_cv_func_shl_load=no
19648 fi
19649 rm -f conftest.err conftest.$ac_objext \
19650 conftest$ac_exeext conftest.$ac_ext
19651 fi
19652 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19653 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19654 if test $ac_cv_func_shl_load = yes; then
19655
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_SHL_LOAD 1
19658 _ACEOF
19659
19660 else
19661 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19662 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19663 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666 ac_check_lib_save_LIBS=$LIBS
19667 LIBS="-ldld $LIBS"
19668 cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674
19675 /* Override any gcc2 internal prototype to avoid an error. */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 /* We use char because int might match the return type of a gcc2
19680 builtin and then its argument prototype would still apply. */
19681 char shl_load ();
19682 int
19683 main ()
19684 {
19685 shl_load ();
19686 ;
19687 return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try='test -z "$ac_c_werror_flag"
19700 || test ! -s conftest.err'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest$ac_exeext'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_lib_dld_shl_load=yes
19713 else
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717 ac_cv_lib_dld_shl_load=no
19718 fi
19719 rm -f conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19721 LIBS=$ac_check_lib_save_LIBS
19722 fi
19723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19724 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19725 if test $ac_cv_lib_dld_shl_load = yes; then
19726
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_SHL_LOAD 1
19729 _ACEOF
19730
19731 LIBADD_DL="$LIBADD_DL -ldld"
19732 else
19733 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19734 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738 ac_check_lib_save_LIBS=$LIBS
19739 LIBS="-ldl $LIBS"
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746
19747 /* Override any gcc2 internal prototype to avoid an error. */
19748 #ifdef __cplusplus
19749 extern "C"
19750 #endif
19751 /* We use char because int might match the return type of a gcc2
19752 builtin and then its argument prototype would still apply. */
19753 char dlopen ();
19754 int
19755 main ()
19756 {
19757 dlopen ();
19758 ;
19759 return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19764 (eval $ac_link) 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_cv_lib_dl_dlopen=yes
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 ac_cv_lib_dl_dlopen=no
19790 fi
19791 rm -f conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19793 LIBS=$ac_check_lib_save_LIBS
19794 fi
19795 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19796 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19797 if test $ac_cv_lib_dl_dlopen = yes; then
19798
19799 cat >>confdefs.h <<\_ACEOF
19800 #define HAVE_LIBDL 1
19801 _ACEOF
19802
19803 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19804 else
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h. */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811 #if HAVE_DLFCN_H
19812 # include <dlfcn.h>
19813 #endif
19814
19815 int
19816 main ()
19817 {
19818 dlopen(0, 0);
19819 ;
19820 return 0;
19821 }
19822 _ACEOF
19823 rm -f conftest.$ac_objext conftest$ac_exeext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19825 (eval $ac_link) 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag"
19833 || test ! -s conftest.err'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest$ac_exeext'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845
19846 cat >>confdefs.h <<\_ACEOF
19847 #define HAVE_LIBDL 1
19848 _ACEOF
19849 libltdl_cv_func_dlopen="yes"
19850 else
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19855 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19856 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859 ac_check_lib_save_LIBS=$LIBS
19860 LIBS="-lsvld $LIBS"
19861 cat >conftest.$ac_ext <<_ACEOF
19862 /* confdefs.h. */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19867
19868 /* Override any gcc2 internal prototype to avoid an error. */
19869 #ifdef __cplusplus
19870 extern "C"
19871 #endif
19872 /* We use char because int might match the return type of a gcc2
19873 builtin and then its argument prototype would still apply. */
19874 char dlopen ();
19875 int
19876 main ()
19877 {
19878 dlopen ();
19879 ;
19880 return 0;
19881 }
19882 _ACEOF
19883 rm -f conftest.$ac_objext conftest$ac_exeext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19885 (eval $ac_link) 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_c_werror_flag"
19893 || test ! -s conftest.err'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest$ac_exeext'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 ac_cv_lib_svld_dlopen=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19909
19910 ac_cv_lib_svld_dlopen=no
19911 fi
19912 rm -f conftest.err conftest.$ac_objext \
19913 conftest$ac_exeext conftest.$ac_ext
19914 LIBS=$ac_check_lib_save_LIBS
19915 fi
19916 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19917 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19918 if test $ac_cv_lib_svld_dlopen = yes; then
19919
19920 cat >>confdefs.h <<\_ACEOF
19921 #define HAVE_LIBDL 1
19922 _ACEOF
19923
19924 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
19925 else
19926 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19927 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19928 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931 ac_check_lib_save_LIBS=$LIBS
19932 LIBS="-ldld $LIBS"
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939
19940 /* Override any gcc2 internal prototype to avoid an error. */
19941 #ifdef __cplusplus
19942 extern "C"
19943 #endif
19944 /* We use char because int might match the return type of a gcc2
19945 builtin and then its argument prototype would still apply. */
19946 char dld_link ();
19947 int
19948 main ()
19949 {
19950 dld_link ();
19951 ;
19952 return 0;
19953 }
19954 _ACEOF
19955 rm -f conftest.$ac_objext conftest$ac_exeext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19957 (eval $ac_link) 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest$ac_exeext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_lib_dld_dld_link=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19981
19982 ac_cv_lib_dld_dld_link=no
19983 fi
19984 rm -f conftest.err conftest.$ac_objext \
19985 conftest$ac_exeext conftest.$ac_ext
19986 LIBS=$ac_check_lib_save_LIBS
19987 fi
19988 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19989 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19990 if test $ac_cv_lib_dld_dld_link = yes; then
19991
19992 cat >>confdefs.h <<\_ACEOF
19993 #define HAVE_DLD 1
19994 _ACEOF
19995
19996 LIBADD_DL="$LIBADD_DL -ldld"
19997 else
19998 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19999 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20000 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h. */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20011 #define _dyld_func_lookup innocuous__dyld_func_lookup
20012
20013 /* System header to define __stub macros and hopefully few prototypes,
20014 which can conflict with char _dyld_func_lookup (); below.
20015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20016 <limits.h> exists even on freestanding compilers. */
20017
20018 #ifdef __STDC__
20019 # include <limits.h>
20020 #else
20021 # include <assert.h>
20022 #endif
20023
20024 #undef _dyld_func_lookup
20025
20026 /* Override any gcc2 internal prototype to avoid an error. */
20027 #ifdef __cplusplus
20028 extern "C"
20029 {
20030 #endif
20031 /* We use char because int might match the return type of a gcc2
20032 builtin and then its argument prototype would still apply. */
20033 char _dyld_func_lookup ();
20034 /* The GNU C library defines this for functions which it implements
20035 to always fail with ENOSYS. Some functions are actually named
20036 something starting with __ and the normal name is an alias. */
20037 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20038 choke me
20039 #else
20040 char (*f) () = _dyld_func_lookup;
20041 #endif
20042 #ifdef __cplusplus
20043 }
20044 #endif
20045
20046 int
20047 main ()
20048 {
20049 return f != _dyld_func_lookup;
20050 ;
20051 return 0;
20052 }
20053 _ACEOF
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20056 (eval $ac_link) 2>conftest.er1
20057 ac_status=$?
20058 grep -v '^ *+' conftest.er1 >conftest.err
20059 rm -f conftest.er1
20060 cat conftest.err >&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); } &&
20063 { ac_try='test -z "$ac_c_werror_flag"
20064 || test ! -s conftest.err'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; } &&
20070 { ac_try='test -s conftest$ac_exeext'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 ac_cv_func__dyld_func_lookup=yes
20077 else
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081 ac_cv_func__dyld_func_lookup=no
20082 fi
20083 rm -f conftest.err conftest.$ac_objext \
20084 conftest$ac_exeext conftest.$ac_ext
20085 fi
20086 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20087 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20088 if test $ac_cv_func__dyld_func_lookup = yes; then
20089
20090 cat >>confdefs.h <<\_ACEOF
20091 #define HAVE_DYLD 1
20092 _ACEOF
20093
20094 fi
20095
20096
20097 fi
20098
20099
20100 fi
20101
20102
20103 fi
20104 rm -f conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106
20107 fi
20108
20109
20110 fi
20111
20112
20113 fi
20114
20115
20116 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20117 then
20118 lt_save_LIBS="$LIBS"
20119 LIBS="$LIBS $LIBADD_DL"
20120
20121 for ac_func in dlerror
20122 do
20123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20124 echo "$as_me:$LINENO: checking for $ac_func" >&5
20125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_var+set}\" = set"; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129 cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h. */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20137 #define $ac_func innocuous_$ac_func
20138
20139 /* System header to define __stub macros and hopefully few prototypes,
20140 which can conflict with char $ac_func (); below.
20141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20142 <limits.h> exists even on freestanding compilers. */
20143
20144 #ifdef __STDC__
20145 # include <limits.h>
20146 #else
20147 # include <assert.h>
20148 #endif
20149
20150 #undef $ac_func
20151
20152 /* Override any gcc2 internal prototype to avoid an error. */
20153 #ifdef __cplusplus
20154 extern "C"
20155 {
20156 #endif
20157 /* We use char because int might match the return type of a gcc2
20158 builtin and then its argument prototype would still apply. */
20159 char $ac_func ();
20160 /* The GNU C library defines this for functions which it implements
20161 to always fail with ENOSYS. Some functions are actually named
20162 something starting with __ and the normal name is an alias. */
20163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20164 choke me
20165 #else
20166 char (*f) () = $ac_func;
20167 #endif
20168 #ifdef __cplusplus
20169 }
20170 #endif
20171
20172 int
20173 main ()
20174 {
20175 return f != $ac_func;
20176 ;
20177 return 0;
20178 }
20179 _ACEOF
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20182 (eval $ac_link) 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag"
20190 || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest$ac_exeext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 eval "$as_ac_var=yes"
20203 else
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 eval "$as_ac_var=no"
20208 fi
20209 rm -f conftest.err conftest.$ac_objext \
20210 conftest$ac_exeext conftest.$ac_ext
20211 fi
20212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20214 if test `eval echo '${'$as_ac_var'}'` = yes; then
20215 cat >>confdefs.h <<_ACEOF
20216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20217 _ACEOF
20218
20219 fi
20220 done
20221
20222 LIBS="$lt_save_LIBS"
20223 fi
20224 ac_ext=c
20225 ac_cpp='$CPP $CPPFLAGS'
20226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229
20230
20231
20232 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20233 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20234 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237 ac_cv_sys_symbol_underscore=no
20238 cat > conftest.$ac_ext <<EOF
20239 void nm_test_func(){}
20240 int main(){nm_test_func;return 0;}
20241 EOF
20242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20243 (eval $ac_compile) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; then
20247 # Now try to grab the symbols.
20248 ac_nlist=conftest.nm
20249 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && test -s "$ac_nlist"; then
20254 # See whether the symbols have a leading underscore.
20255 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20256 ac_cv_sys_symbol_underscore=yes
20257 else
20258 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20259 :
20260 else
20261 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20262 fi
20263 fi
20264 else
20265 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20266 fi
20267 else
20268 echo "configure: failed program was:" >&5
20269 cat conftest.c >&5
20270 fi
20271 rm -rf conftest*
20272
20273 fi
20274 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20275 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20276
20277
20278 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20279 if test x"$libltdl_cv_func_dlopen" = xyes ||
20280 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20281 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20282 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20283 if test "${libltdl_cv_need_uscore+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 else
20286 libltdl_cv_need_uscore=unknown
20287 save_LIBS="$LIBS"
20288 LIBS="$LIBS $LIBADD_DL"
20289 if test "$cross_compiling" = yes; then :
20290 libltdl_cv_need_uscore=cross
20291 else
20292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20293 lt_status=$lt_dlunknown
20294 cat > conftest.$ac_ext <<EOF
20295 #line 20295 "configure"
20296 #include "confdefs.h"
20297
20298 #if HAVE_DLFCN_H
20299 #include <dlfcn.h>
20300 #endif
20301
20302 #include <stdio.h>
20303
20304 #ifdef RTLD_GLOBAL
20305 # define LT_DLGLOBAL RTLD_GLOBAL
20306 #else
20307 # ifdef DL_GLOBAL
20308 # define LT_DLGLOBAL DL_GLOBAL
20309 # else
20310 # define LT_DLGLOBAL 0
20311 # endif
20312 #endif
20313
20314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20315 find out it does not work in some platform. */
20316 #ifndef LT_DLLAZY_OR_NOW
20317 # ifdef RTLD_LAZY
20318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20319 # else
20320 # ifdef DL_LAZY
20321 # define LT_DLLAZY_OR_NOW DL_LAZY
20322 # else
20323 # ifdef RTLD_NOW
20324 # define LT_DLLAZY_OR_NOW RTLD_NOW
20325 # else
20326 # ifdef DL_NOW
20327 # define LT_DLLAZY_OR_NOW DL_NOW
20328 # else
20329 # define LT_DLLAZY_OR_NOW 0
20330 # endif
20331 # endif
20332 # endif
20333 # endif
20334 #endif
20335
20336 #ifdef __cplusplus
20337 extern "C" void exit (int);
20338 #endif
20339
20340 void fnord() { int i=42;}
20341 int main ()
20342 {
20343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20344 int status = $lt_dlunknown;
20345
20346 if (self)
20347 {
20348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20350 /* dlclose (self); */
20351 }
20352 else
20353 puts (dlerror ());
20354
20355 exit (status);
20356 }
20357 EOF
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20363 (./conftest; exit; ) >&5 2>/dev/null
20364 lt_status=$?
20365 case x$lt_status in
20366 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20367 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20368 x$lt_dlunknown|x*) ;;
20369 esac
20370 else :
20371 # compilation failed
20372
20373 fi
20374 fi
20375 rm -fr conftest*
20376
20377 LIBS="$save_LIBS"
20378
20379 fi
20380 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20381 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20382 fi
20383 fi
20384
20385 if test x"$libltdl_cv_need_uscore" = xyes; then
20386
20387 cat >>confdefs.h <<\_ACEOF
20388 #define NEED_USCORE 1
20389 _ACEOF
20390
20391 fi
20392
20393
20394 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20395 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20396 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399 # PORTME does your system automatically load deplibs for dlopen?
20400 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20401 # For now, we just catch OSes we know something about -- in the
20402 # future, we'll try test this programmatically.
20403 libltdl_cv_sys_dlopen_deplibs=unknown
20404 case "$host_os" in
20405 aix3*|aix4.1.*|aix4.2.*)
20406 # Unknown whether this is true for these versions of AIX, but
20407 # we want this `case' here to explicitly catch those versions.
20408 libltdl_cv_sys_dlopen_deplibs=unknown
20409 ;;
20410 aix[45]*)
20411 libltdl_cv_sys_dlopen_deplibs=yes
20412 ;;
20413 darwin*)
20414 # Assuming the user has installed a libdl from somewhere, this is true
20415 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20416 libltdl_cv_sys_dlopen_deplibs=yes
20417 ;;
20418 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
20419 # GNU and its variants, using gnu ld.so (Glibc)
20420 libltdl_cv_sys_dlopen_deplibs=yes
20421 ;;
20422 hpux10*|hpux11*)
20423 libltdl_cv_sys_dlopen_deplibs=yes
20424 ;;
20425 interix*)
20426 libltdl_cv_sys_dlopen_deplibs=yes
20427 ;;
20428 irix[12345]*|irix6.[01]*)
20429 # Catch all versions of IRIX before 6.2, and indicate that we don't
20430 # know how it worked for any of those versions.
20431 libltdl_cv_sys_dlopen_deplibs=unknown
20432 ;;
20433 irix*)
20434 # The case above catches anything before 6.2, and it's known that
20435 # at 6.2 and later dlopen does load deplibs.
20436 libltdl_cv_sys_dlopen_deplibs=yes
20437 ;;
20438 netbsd*)
20439 libltdl_cv_sys_dlopen_deplibs=yes
20440 ;;
20441 openbsd*)
20442 libltdl_cv_sys_dlopen_deplibs=yes
20443 ;;
20444 osf[1234]*)
20445 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20446 # it did *not* use an RPATH in a shared library to find objects the
20447 # library depends on, so we explictly say `no'.
20448 libltdl_cv_sys_dlopen_deplibs=no
20449 ;;
20450 osf5.0|osf5.0a|osf5.1)
20451 # dlopen *does* load deplibs and with the right loader patch applied
20452 # it even uses RPATH in a shared library to search for shared objects
20453 # that the library depends on, but there's no easy way to know if that
20454 # patch is installed. Since this is the case, all we can really
20455 # say is unknown -- it depends on the patch being installed. If
20456 # it is, this changes to `yes'. Without it, it would be `no'.
20457 libltdl_cv_sys_dlopen_deplibs=unknown
20458 ;;
20459 osf*)
20460 # the two cases above should catch all versions of osf <= 5.1. Read
20461 # the comments above for what we know about them.
20462 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20463 # is used to find them so we can finally say `yes'.
20464 libltdl_cv_sys_dlopen_deplibs=yes
20465 ;;
20466 solaris*)
20467 libltdl_cv_sys_dlopen_deplibs=yes
20468 ;;
20469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20470 libltdl_cv_sys_dlopen_deplibs=yes
20471 ;;
20472 esac
20473
20474 fi
20475 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20476 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20477 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20478
20479 cat >>confdefs.h <<\_ACEOF
20480 #define LTDL_DLOPEN_DEPLIBS 1
20481 _ACEOF
20482
20483 fi
20484
20485
20486 for ac_header in argz.h
20487 do
20488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20490 echo "$as_me:$LINENO: checking for $ac_header" >&5
20491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20494 fi
20495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20497 else
20498 # Is the header compilable?
20499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20501 cat >conftest.$ac_ext <<_ACEOF
20502 /* confdefs.h. */
20503 _ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h. */
20507 $ac_includes_default
20508 #include <$ac_header>
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512 (eval $ac_compile) 2>conftest.er1
20513 ac_status=$?
20514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest.$ac_objext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20529 ac_status=$?
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_header_compiler=yes
20533 else
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_header_compiler=no
20538 fi
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20541 echo "${ECHO_T}$ac_header_compiler" >&6
20542
20543 # Is the header present?
20544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h. */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 #include <$ac_header>
20553 _ACEOF
20554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } >/dev/null; then
20562 if test -s conftest.err; then
20563 ac_cpp_err=$ac_c_preproc_warn_flag
20564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20565 else
20566 ac_cpp_err=
20567 fi
20568 else
20569 ac_cpp_err=yes
20570 fi
20571 if test -z "$ac_cpp_err"; then
20572 ac_header_preproc=yes
20573 else
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 ac_header_preproc=no
20578 fi
20579 rm -f conftest.err conftest.$ac_ext
20580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20581 echo "${ECHO_T}$ac_header_preproc" >&6
20582
20583 # So? What about this header?
20584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20585 yes:no: )
20586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20590 ac_header_preproc=yes
20591 ;;
20592 no:yes:* )
20593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20605 (
20606 cat <<\_ASBOX
20607 ## ---------------------------------- ##
20608 ## Report this to bug-libtool@gnu.org ##
20609 ## ---------------------------------- ##
20610 _ASBOX
20611 ) |
20612 sed "s/^/$as_me: WARNING: /" >&2
20613 ;;
20614 esac
20615 echo "$as_me:$LINENO: checking for $ac_header" >&5
20616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620 eval "$as_ac_Header=\$ac_header_preproc"
20621 fi
20622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20624
20625 fi
20626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20627 cat >>confdefs.h <<_ACEOF
20628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20629 _ACEOF
20630
20631 fi
20632
20633 done
20634
20635
20636 echo "$as_me:$LINENO: checking for error_t" >&5
20637 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
20638 if test "${ac_cv_type_error_t+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #if HAVE_ARGZ_H
20648 # include <argz.h>
20649 #endif
20650
20651 int
20652 main ()
20653 {
20654 if ((error_t *) 0)
20655 return 0;
20656 if (sizeof (error_t))
20657 return 0;
20658 ;
20659 return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664 (eval $ac_compile) 2>conftest.er1
20665 ac_status=$?
20666 grep -v '^ *+' conftest.er1 >conftest.err
20667 rm -f conftest.er1
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } &&
20671 { ac_try='test -z "$ac_c_werror_flag"
20672 || test ! -s conftest.err'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; } &&
20678 { ac_try='test -s conftest.$ac_objext'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 ac_cv_type_error_t=yes
20685 else
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ac_cv_type_error_t=no
20690 fi
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20692 fi
20693 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20694 echo "${ECHO_T}$ac_cv_type_error_t" >&6
20695 if test $ac_cv_type_error_t = yes; then
20696
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_ERROR_T 1
20699 _ACEOF
20700
20701
20702 else
20703
20704 cat >>confdefs.h <<\_ACEOF
20705 #define error_t int
20706 _ACEOF
20707
20708 fi
20709
20710
20711
20712
20713
20714
20715
20716 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20717 do
20718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20719 echo "$as_me:$LINENO: checking for $ac_func" >&5
20720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20721 if eval "test \"\${$as_ac_var+set}\" = set"; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20732 #define $ac_func innocuous_$ac_func
20733
20734 /* System header to define __stub macros and hopefully few prototypes,
20735 which can conflict with char $ac_func (); below.
20736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20737 <limits.h> exists even on freestanding compilers. */
20738
20739 #ifdef __STDC__
20740 # include <limits.h>
20741 #else
20742 # include <assert.h>
20743 #endif
20744
20745 #undef $ac_func
20746
20747 /* Override any gcc2 internal prototype to avoid an error. */
20748 #ifdef __cplusplus
20749 extern "C"
20750 {
20751 #endif
20752 /* We use char because int might match the return type of a gcc2
20753 builtin and then its argument prototype would still apply. */
20754 char $ac_func ();
20755 /* The GNU C library defines this for functions which it implements
20756 to always fail with ENOSYS. Some functions are actually named
20757 something starting with __ and the normal name is an alias. */
20758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20759 choke me
20760 #else
20761 char (*f) () = $ac_func;
20762 #endif
20763 #ifdef __cplusplus
20764 }
20765 #endif
20766
20767 int
20768 main ()
20769 {
20770 return f != $ac_func;
20771 ;
20772 return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20777 (eval $ac_link) 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } &&
20784 { ac_try='test -z "$ac_c_werror_flag"
20785 || test ! -s conftest.err'
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; } &&
20791 { ac_try='test -s conftest$ac_exeext'
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 eval "$as_ac_var=yes"
20798 else
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20801
20802 eval "$as_ac_var=no"
20803 fi
20804 rm -f conftest.err conftest.$ac_objext \
20805 conftest$ac_exeext conftest.$ac_ext
20806 fi
20807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20809 if test `eval echo '${'$as_ac_var'}'` = yes; then
20810 cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20812 _ACEOF
20813
20814 fi
20815 done
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20845 stdio.h unistd.h
20846 do
20847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20849 echo "$as_me:$LINENO: checking for $ac_header" >&5
20850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 fi
20854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20856 else
20857 # Is the header compilable?
20858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20860 cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h. */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 $ac_includes_default
20867 #include <$ac_header>
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20871 (eval $ac_compile) 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -z "$ac_c_werror_flag"
20879 || test ! -s conftest.err'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 ac_header_compiler=yes
20892 else
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896 ac_header_compiler=no
20897 fi
20898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20900 echo "${ECHO_T}$ac_header_compiler" >&6
20901
20902 # Is the header present?
20903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <$ac_header>
20912 _ACEOF
20913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20915 ac_status=$?
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } >/dev/null; then
20921 if test -s conftest.err; then
20922 ac_cpp_err=$ac_c_preproc_warn_flag
20923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20924 else
20925 ac_cpp_err=
20926 fi
20927 else
20928 ac_cpp_err=yes
20929 fi
20930 if test -z "$ac_cpp_err"; then
20931 ac_header_preproc=yes
20932 else
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_header_preproc=no
20937 fi
20938 rm -f conftest.err conftest.$ac_ext
20939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20940 echo "${ECHO_T}$ac_header_preproc" >&6
20941
20942 # So? What about this header?
20943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20944 yes:no: )
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20949 ac_header_preproc=yes
20950 ;;
20951 no:yes:* )
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20964 (
20965 cat <<\_ASBOX
20966 ## ---------------------------------- ##
20967 ## Report this to bug-libtool@gnu.org ##
20968 ## ---------------------------------- ##
20969 _ASBOX
20970 ) |
20971 sed "s/^/$as_me: WARNING: /" >&2
20972 ;;
20973 esac
20974 echo "$as_me:$LINENO: checking for $ac_header" >&5
20975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979 eval "$as_ac_Header=\$ac_header_preproc"
20980 fi
20981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20983
20984 fi
20985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20986 cat >>confdefs.h <<_ACEOF
20987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20988 _ACEOF
20989
20990 fi
20991
20992 done
20993
20994
20995
20996
20997
20998 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
20999 do
21000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21002 echo "$as_me:$LINENO: checking for $ac_header" >&5
21003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 fi
21007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21009 else
21010 # Is the header compilable?
21011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 #include <$ac_header>
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024 (eval $ac_compile) 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
21031 { ac_try='test -z "$ac_c_werror_flag"
21032 || test ! -s conftest.err'
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); }; } &&
21038 { ac_try='test -s conftest.$ac_objext'
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
21044 ac_header_compiler=yes
21045 else
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049 ac_header_compiler=no
21050 fi
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21053 echo "${ECHO_T}$ac_header_compiler" >&6
21054
21055 # Is the header present?
21056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21058 cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h. */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 #include <$ac_header>
21065 _ACEOF
21066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } >/dev/null; then
21074 if test -s conftest.err; then
21075 ac_cpp_err=$ac_c_preproc_warn_flag
21076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21077 else
21078 ac_cpp_err=
21079 fi
21080 else
21081 ac_cpp_err=yes
21082 fi
21083 if test -z "$ac_cpp_err"; then
21084 ac_header_preproc=yes
21085 else
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 ac_header_preproc=no
21090 fi
21091 rm -f conftest.err conftest.$ac_ext
21092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21093 echo "${ECHO_T}$ac_header_preproc" >&6
21094
21095 # So? What about this header?
21096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21097 yes:no: )
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21102 ac_header_preproc=yes
21103 ;;
21104 no:yes:* )
21105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21117 (
21118 cat <<\_ASBOX
21119 ## ---------------------------------- ##
21120 ## Report this to bug-libtool@gnu.org ##
21121 ## ---------------------------------- ##
21122 _ASBOX
21123 ) |
21124 sed "s/^/$as_me: WARNING: /" >&2
21125 ;;
21126 esac
21127 echo "$as_me:$LINENO: checking for $ac_header" >&5
21128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132 eval "$as_ac_Header=\$ac_header_preproc"
21133 fi
21134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21136
21137 fi
21138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21139 cat >>confdefs.h <<_ACEOF
21140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21141 _ACEOF
21142
21143 fi
21144
21145 done
21146
21147
21148
21149 for ac_header in string.h strings.h
21150 do
21151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21153 echo "$as_me:$LINENO: checking for $ac_header" >&5
21154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 fi
21158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21160 else
21161 # Is the header compilable?
21162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21164 cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h. */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 $ac_includes_default
21171 #include <$ac_header>
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175 (eval $ac_compile) 2>conftest.er1
21176 ac_status=$?
21177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
21182 { ac_try='test -z "$ac_c_werror_flag"
21183 || test ! -s conftest.err'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_header_compiler=yes
21196 else
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200 ac_header_compiler=no
21201 fi
21202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21204 echo "${ECHO_T}$ac_header_compiler" >&6
21205
21206 # Is the header present?
21207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21209 cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h. */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 #include <$ac_header>
21216 _ACEOF
21217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } >/dev/null; then
21225 if test -s conftest.err; then
21226 ac_cpp_err=$ac_c_preproc_warn_flag
21227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21228 else
21229 ac_cpp_err=
21230 fi
21231 else
21232 ac_cpp_err=yes
21233 fi
21234 if test -z "$ac_cpp_err"; then
21235 ac_header_preproc=yes
21236 else
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21239
21240 ac_header_preproc=no
21241 fi
21242 rm -f conftest.err conftest.$ac_ext
21243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21244 echo "${ECHO_T}$ac_header_preproc" >&6
21245
21246 # So? What about this header?
21247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21248 yes:no: )
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21253 ac_header_preproc=yes
21254 ;;
21255 no:yes:* )
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21268 (
21269 cat <<\_ASBOX
21270 ## ---------------------------------- ##
21271 ## Report this to bug-libtool@gnu.org ##
21272 ## ---------------------------------- ##
21273 _ASBOX
21274 ) |
21275 sed "s/^/$as_me: WARNING: /" >&2
21276 ;;
21277 esac
21278 echo "$as_me:$LINENO: checking for $ac_header" >&5
21279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 eval "$as_ac_Header=\$ac_header_preproc"
21284 fi
21285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21287
21288 fi
21289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21290 cat >>confdefs.h <<_ACEOF
21291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21292 _ACEOF
21293 break
21294 fi
21295
21296 done
21297
21298
21299
21300
21301 for ac_func in strchr index
21302 do
21303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21304 echo "$as_me:$LINENO: checking for $ac_func" >&5
21305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21306 if eval "test \"\${$as_ac_var+set}\" = set"; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21309 cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h. */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21317 #define $ac_func innocuous_$ac_func
21318
21319 /* System header to define __stub macros and hopefully few prototypes,
21320 which can conflict with char $ac_func (); below.
21321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21322 <limits.h> exists even on freestanding compilers. */
21323
21324 #ifdef __STDC__
21325 # include <limits.h>
21326 #else
21327 # include <assert.h>
21328 #endif
21329
21330 #undef $ac_func
21331
21332 /* Override any gcc2 internal prototype to avoid an error. */
21333 #ifdef __cplusplus
21334 extern "C"
21335 {
21336 #endif
21337 /* We use char because int might match the return type of a gcc2
21338 builtin and then its argument prototype would still apply. */
21339 char $ac_func ();
21340 /* The GNU C library defines this for functions which it implements
21341 to always fail with ENOSYS. Some functions are actually named
21342 something starting with __ and the normal name is an alias. */
21343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21344 choke me
21345 #else
21346 char (*f) () = $ac_func;
21347 #endif
21348 #ifdef __cplusplus
21349 }
21350 #endif
21351
21352 int
21353 main ()
21354 {
21355 return f != $ac_func;
21356 ;
21357 return 0;
21358 }
21359 _ACEOF
21360 rm -f conftest.$ac_objext conftest$ac_exeext
21361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21362 (eval $ac_link) 2>conftest.er1
21363 ac_status=$?
21364 grep -v '^ *+' conftest.er1 >conftest.err
21365 rm -f conftest.er1
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } &&
21369 { ac_try='test -z "$ac_c_werror_flag"
21370 || test ! -s conftest.err'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest$ac_exeext'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 eval "$as_ac_var=yes"
21383 else
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 eval "$as_ac_var=no"
21388 fi
21389 rm -f conftest.err conftest.$ac_objext \
21390 conftest$ac_exeext conftest.$ac_ext
21391 fi
21392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21394 if test `eval echo '${'$as_ac_var'}'` = yes; then
21395 cat >>confdefs.h <<_ACEOF
21396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21397 _ACEOF
21398 break
21399 fi
21400 done
21401
21402
21403
21404 for ac_func in strrchr rindex
21405 do
21406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21407 echo "$as_me:$LINENO: checking for $ac_func" >&5
21408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21409 if eval "test \"\${$as_ac_var+set}\" = set"; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412 cat >conftest.$ac_ext <<_ACEOF
21413 /* confdefs.h. */
21414 _ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h. */
21418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21420 #define $ac_func innocuous_$ac_func
21421
21422 /* System header to define __stub macros and hopefully few prototypes,
21423 which can conflict with char $ac_func (); below.
21424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21425 <limits.h> exists even on freestanding compilers. */
21426
21427 #ifdef __STDC__
21428 # include <limits.h>
21429 #else
21430 # include <assert.h>
21431 #endif
21432
21433 #undef $ac_func
21434
21435 /* Override any gcc2 internal prototype to avoid an error. */
21436 #ifdef __cplusplus
21437 extern "C"
21438 {
21439 #endif
21440 /* We use char because int might match the return type of a gcc2
21441 builtin and then its argument prototype would still apply. */
21442 char $ac_func ();
21443 /* The GNU C library defines this for functions which it implements
21444 to always fail with ENOSYS. Some functions are actually named
21445 something starting with __ and the normal name is an alias. */
21446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21447 choke me
21448 #else
21449 char (*f) () = $ac_func;
21450 #endif
21451 #ifdef __cplusplus
21452 }
21453 #endif
21454
21455 int
21456 main ()
21457 {
21458 return f != $ac_func;
21459 ;
21460 return 0;
21461 }
21462 _ACEOF
21463 rm -f conftest.$ac_objext conftest$ac_exeext
21464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21465 (eval $ac_link) 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } &&
21472 { ac_try='test -z "$ac_c_werror_flag"
21473 || test ! -s conftest.err'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; } &&
21479 { ac_try='test -s conftest$ac_exeext'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 eval "$as_ac_var=yes"
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21489
21490 eval "$as_ac_var=no"
21491 fi
21492 rm -f conftest.err conftest.$ac_objext \
21493 conftest$ac_exeext conftest.$ac_ext
21494 fi
21495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21497 if test `eval echo '${'$as_ac_var'}'` = yes; then
21498 cat >>confdefs.h <<_ACEOF
21499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21500 _ACEOF
21501 break
21502 fi
21503 done
21504
21505
21506
21507 for ac_func in memcpy bcopy
21508 do
21509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21510 echo "$as_me:$LINENO: checking for $ac_func" >&5
21511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21512 if eval "test \"\${$as_ac_var+set}\" = set"; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21523 #define $ac_func innocuous_$ac_func
21524
21525 /* System header to define __stub macros and hopefully few prototypes,
21526 which can conflict with char $ac_func (); below.
21527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21528 <limits.h> exists even on freestanding compilers. */
21529
21530 #ifdef __STDC__
21531 # include <limits.h>
21532 #else
21533 # include <assert.h>
21534 #endif
21535
21536 #undef $ac_func
21537
21538 /* Override any gcc2 internal prototype to avoid an error. */
21539 #ifdef __cplusplus
21540 extern "C"
21541 {
21542 #endif
21543 /* We use char because int might match the return type of a gcc2
21544 builtin and then its argument prototype would still apply. */
21545 char $ac_func ();
21546 /* The GNU C library defines this for functions which it implements
21547 to always fail with ENOSYS. Some functions are actually named
21548 something starting with __ and the normal name is an alias. */
21549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21550 choke me
21551 #else
21552 char (*f) () = $ac_func;
21553 #endif
21554 #ifdef __cplusplus
21555 }
21556 #endif
21557
21558 int
21559 main ()
21560 {
21561 return f != $ac_func;
21562 ;
21563 return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568 (eval $ac_link) 2>conftest.er1
21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -z "$ac_c_werror_flag"
21576 || test ! -s conftest.err'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest$ac_exeext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 eval "$as_ac_var=yes"
21589 else
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 eval "$as_ac_var=no"
21594 fi
21595 rm -f conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext conftest.$ac_ext
21597 fi
21598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21600 if test `eval echo '${'$as_ac_var'}'` = yes; then
21601 cat >>confdefs.h <<_ACEOF
21602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21603 _ACEOF
21604 break
21605 fi
21606 done
21607
21608
21609
21610 for ac_func in memmove strcmp
21611 do
21612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21613 echo "$as_me:$LINENO: checking for $ac_func" >&5
21614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21615 if eval "test \"\${$as_ac_var+set}\" = set"; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 else
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h. */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21626 #define $ac_func innocuous_$ac_func
21627
21628 /* System header to define __stub macros and hopefully few prototypes,
21629 which can conflict with char $ac_func (); below.
21630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21631 <limits.h> exists even on freestanding compilers. */
21632
21633 #ifdef __STDC__
21634 # include <limits.h>
21635 #else
21636 # include <assert.h>
21637 #endif
21638
21639 #undef $ac_func
21640
21641 /* Override any gcc2 internal prototype to avoid an error. */
21642 #ifdef __cplusplus
21643 extern "C"
21644 {
21645 #endif
21646 /* We use char because int might match the return type of a gcc2
21647 builtin and then its argument prototype would still apply. */
21648 char $ac_func ();
21649 /* The GNU C library defines this for functions which it implements
21650 to always fail with ENOSYS. Some functions are actually named
21651 something starting with __ and the normal name is an alias. */
21652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21653 choke me
21654 #else
21655 char (*f) () = $ac_func;
21656 #endif
21657 #ifdef __cplusplus
21658 }
21659 #endif
21660
21661 int
21662 main ()
21663 {
21664 return f != $ac_func;
21665 ;
21666 return 0;
21667 }
21668 _ACEOF
21669 rm -f conftest.$ac_objext conftest$ac_exeext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21671 (eval $ac_link) 2>conftest.er1
21672 ac_status=$?
21673 grep -v '^ *+' conftest.er1 >conftest.err
21674 rm -f conftest.er1
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } &&
21678 { ac_try='test -z "$ac_c_werror_flag"
21679 || test ! -s conftest.err'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest$ac_exeext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 eval "$as_ac_var=yes"
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 eval "$as_ac_var=no"
21697 fi
21698 rm -f conftest.err conftest.$ac_objext \
21699 conftest$ac_exeext conftest.$ac_ext
21700 fi
21701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21703 if test `eval echo '${'$as_ac_var'}'` = yes; then
21704 cat >>confdefs.h <<_ACEOF
21705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21706 _ACEOF
21707
21708 fi
21709 done
21710
21711
21712
21713
21714 for ac_func in closedir opendir readdir
21715 do
21716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21717 echo "$as_me:$LINENO: checking for $ac_func" >&5
21718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21719 if eval "test \"\${$as_ac_var+set}\" = set"; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 else
21722 cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h. */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21730 #define $ac_func innocuous_$ac_func
21731
21732 /* System header to define __stub macros and hopefully few prototypes,
21733 which can conflict with char $ac_func (); below.
21734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21735 <limits.h> exists even on freestanding compilers. */
21736
21737 #ifdef __STDC__
21738 # include <limits.h>
21739 #else
21740 # include <assert.h>
21741 #endif
21742
21743 #undef $ac_func
21744
21745 /* Override any gcc2 internal prototype to avoid an error. */
21746 #ifdef __cplusplus
21747 extern "C"
21748 {
21749 #endif
21750 /* We use char because int might match the return type of a gcc2
21751 builtin and then its argument prototype would still apply. */
21752 char $ac_func ();
21753 /* The GNU C library defines this for functions which it implements
21754 to always fail with ENOSYS. Some functions are actually named
21755 something starting with __ and the normal name is an alias. */
21756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21757 choke me
21758 #else
21759 char (*f) () = $ac_func;
21760 #endif
21761 #ifdef __cplusplus
21762 }
21763 #endif
21764
21765 int
21766 main ()
21767 {
21768 return f != $ac_func;
21769 ;
21770 return 0;
21771 }
21772 _ACEOF
21773 rm -f conftest.$ac_objext conftest$ac_exeext
21774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21775 (eval $ac_link) 2>conftest.er1
21776 ac_status=$?
21777 grep -v '^ *+' conftest.er1 >conftest.err
21778 rm -f conftest.er1
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } &&
21782 { ac_try='test -z "$ac_c_werror_flag"
21783 || test ! -s conftest.err'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; } &&
21789 { ac_try='test -s conftest$ac_exeext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 eval "$as_ac_var=yes"
21796 else
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 eval "$as_ac_var=no"
21801 fi
21802 rm -f conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 fi
21805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21807 if test `eval echo '${'$as_ac_var'}'` = yes; then
21808 cat >>confdefs.h <<_ACEOF
21809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21810 _ACEOF
21811
21812 fi
21813 done
21814
21815
21816
21817
21818 ## -------- ##
21819 ## Outputs. ##
21820 ## -------- ##
21821 ac_config_files="$ac_config_files Makefile"
21822
21823 cat >confcache <<\_ACEOF
21824 # This file is a shell script that caches the results of configure
21825 # tests run on this system so they can be shared between configure
21826 # scripts and configure runs, see configure's option --config-cache.
21827 # It is not useful on other systems. If it contains results you don't
21828 # want to keep, you may remove or edit it.
21829 #
21830 # config.status only pays attention to the cache file if you give it
21831 # the --recheck option to rerun configure.
21832 #
21833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21835 # following values.
21836
21837 _ACEOF
21838
21839 # The following way of writing the cache mishandles newlines in values,
21840 # but we know of no workaround that is simple, portable, and efficient.
21841 # So, don't put newlines in cache variables' values.
21842 # Ultrix sh set writes to stderr and can't be redirected directly,
21843 # and sets the high bit in the cache file unless we assign to the vars.
21844 {
21845 (set) 2>&1 |
21846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21847 *ac_space=\ *)
21848 # `set' does not quote correctly, so add quotes (double-quote
21849 # substitution turns \\\\ into \\, and sed turns \\ into \).
21850 sed -n \
21851 "s/'/'\\\\''/g;
21852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21853 ;;
21854 *)
21855 # `set' quotes correctly as required by POSIX, so do not add quotes.
21856 sed -n \
21857 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21858 ;;
21859 esac;
21860 } |
21861 sed '
21862 t clear
21863 : clear
21864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21865 t end
21866 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21867 : end' >>confcache
21868 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21869 if test -w $cache_file; then
21870 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21871 cat confcache >$cache_file
21872 else
21873 echo "not updating unwritable cache $cache_file"
21874 fi
21875 fi
21876 rm -f confcache
21877
21878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21879 # Let make expand exec_prefix.
21880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21881
21882 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21883 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21884 # trailing colons and then remove the whole line if VPATH becomes empty
21885 # (actually we leave an empty line to preserve line numbers).
21886 if test "x$srcdir" = x.; then
21887 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21888 s/:*\$(srcdir):*/:/;
21889 s/:*\${srcdir}:*/:/;
21890 s/:*@srcdir@:*/:/;
21891 s/^\([^=]*=[ ]*\):*/\1/;
21892 s/:*$//;
21893 s/^[^=]*=[ ]*$//;
21894 }'
21895 fi
21896
21897 DEFS=-DHAVE_CONFIG_H
21898
21899 ac_libobjs=
21900 ac_ltlibobjs=
21901 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21902 # 1. Remove the extension, and $U if already installed.
21903 ac_i=`echo "$ac_i" |
21904 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21905 # 2. Add them.
21906 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21907 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21908 done
21909 LIBOBJS=$ac_libobjs
21910
21911 LTLIBOBJS=$ac_ltlibobjs
21912
21913
21914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21915 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21916 Usually this means the macro was only invoked conditionally." >&5
21917 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21918 Usually this means the macro was only invoked conditionally." >&2;}
21919 { (exit 1); exit 1; }; }
21920 fi
21921 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21922 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21923 Usually this means the macro was only invoked conditionally." >&5
21924 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21925 Usually this means the macro was only invoked conditionally." >&2;}
21926 { (exit 1); exit 1; }; }
21927 fi
21928 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21929 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21930 Usually this means the macro was only invoked conditionally." >&5
21931 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21932 Usually this means the macro was only invoked conditionally." >&2;}
21933 { (exit 1); exit 1; }; }
21934 fi
21935 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21936 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21937 Usually this means the macro was only invoked conditionally." >&5
21938 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21939 Usually this means the macro was only invoked conditionally." >&2;}
21940 { (exit 1); exit 1; }; }
21941 fi
21942 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21943 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21944 Usually this means the macro was only invoked conditionally." >&5
21945 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21946 Usually this means the macro was only invoked conditionally." >&2;}
21947 { (exit 1); exit 1; }; }
21948 fi
21949
21950 : ${CONFIG_STATUS=./config.status}
21951 ac_clean_files_save=$ac_clean_files
21952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21953 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21954 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21955 cat >$CONFIG_STATUS <<_ACEOF
21956 #! $SHELL
21957 # Generated by $as_me.
21958 # Run this file to recreate the current configuration.
21959 # Compiler output produced by configure, useful for debugging
21960 # configure, is in config.log if it exists.
21961
21962 debug=false
21963 ac_cs_recheck=false
21964 ac_cs_silent=false
21965 SHELL=\${CONFIG_SHELL-$SHELL}
21966 _ACEOF
21967
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21969 ## --------------------- ##
21970 ## M4sh Initialization. ##
21971 ## --------------------- ##
21972
21973 # Be Bourne compatible
21974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21975 emulate sh
21976 NULLCMD=:
21977 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21978 # is contrary to our usage. Disable this feature.
21979 alias -g '${1+"$@"}'='"$@"'
21980 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21981 set -o posix
21982 fi
21983 DUALCASE=1; export DUALCASE # for MKS sh
21984
21985 # Support unset when possible.
21986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21987 as_unset=unset
21988 else
21989 as_unset=false
21990 fi
21991
21992
21993 # Work around bugs in pre-3.0 UWIN ksh.
21994 $as_unset ENV MAIL MAILPATH
21995 PS1='$ '
21996 PS2='> '
21997 PS4='+ '
21998
21999 # NLS nuisances.
22000 for as_var in \
22001 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22002 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22003 LC_TELEPHONE LC_TIME
22004 do
22005 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22006 eval $as_var=C; export $as_var
22007 else
22008 $as_unset $as_var
22009 fi
22010 done
22011
22012 # Required to use basename.
22013 if expr a : '\(a\)' >/dev/null 2>&1; then
22014 as_expr=expr
22015 else
22016 as_expr=false
22017 fi
22018
22019 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22020 as_basename=basename
22021 else
22022 as_basename=false
22023 fi
22024
22025
22026 # Name of the executable.
22027 as_me=`$as_basename "$0" ||
22028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22029 X"$0" : 'X\(//\)$' \| \
22030 X"$0" : 'X\(/\)$' \| \
22031 . : '\(.\)' 2>/dev/null ||
22032 echo X/"$0" |
22033 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22034 /^X\/\(\/\/\)$/{ s//\1/; q; }
22035 /^X\/\(\/\).*/{ s//\1/; q; }
22036 s/.*/./; q'`
22037
22038
22039 # PATH needs CR, and LINENO needs CR and PATH.
22040 # Avoid depending upon Character Ranges.
22041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22044 as_cr_digits='0123456789'
22045 as_cr_alnum=$as_cr_Letters$as_cr_digits
22046
22047 # The user is always right.
22048 if test "${PATH_SEPARATOR+set}" != set; then
22049 echo "#! /bin/sh" >conf$$.sh
22050 echo "exit 0" >>conf$$.sh
22051 chmod +x conf$$.sh
22052 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22053 PATH_SEPARATOR=';'
22054 else
22055 PATH_SEPARATOR=:
22056 fi
22057 rm -f conf$$.sh
22058 fi
22059
22060
22061 as_lineno_1=$LINENO
22062 as_lineno_2=$LINENO
22063 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22064 test "x$as_lineno_1" != "x$as_lineno_2" &&
22065 test "x$as_lineno_3" = "x$as_lineno_2" || {
22066 # Find who we are. Look in the path if we contain no path at all
22067 # relative or not.
22068 case $0 in
22069 *[\\/]* ) as_myself=$0 ;;
22070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22071 for as_dir in $PATH
22072 do
22073 IFS=$as_save_IFS
22074 test -z "$as_dir" && as_dir=.
22075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22076 done
22077
22078 ;;
22079 esac
22080 # We did not find ourselves, most probably we were run as `sh COMMAND'
22081 # in which case we are not to be found in the path.
22082 if test "x$as_myself" = x; then
22083 as_myself=$0
22084 fi
22085 if test ! -f "$as_myself"; then
22086 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22087 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22088 { (exit 1); exit 1; }; }
22089 fi
22090 case $CONFIG_SHELL in
22091 '')
22092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22093 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22094 do
22095 IFS=$as_save_IFS
22096 test -z "$as_dir" && as_dir=.
22097 for as_base in sh bash ksh sh5; do
22098 case $as_dir in
22099 /*)
22100 if ("$as_dir/$as_base" -c '
22101 as_lineno_1=$LINENO
22102 as_lineno_2=$LINENO
22103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22104 test "x$as_lineno_1" != "x$as_lineno_2" &&
22105 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22106 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22107 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22108 CONFIG_SHELL=$as_dir/$as_base
22109 export CONFIG_SHELL
22110 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22111 fi;;
22112 esac
22113 done
22114 done
22115 ;;
22116 esac
22117
22118 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22119 # uniformly replaced by the line number. The first 'sed' inserts a
22120 # line-number line before each line; the second 'sed' does the real
22121 # work. The second script uses 'N' to pair each line-number line
22122 # with the numbered line, and appends trailing '-' during
22123 # substitution so that $LINENO is not a special case at line end.
22124 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22125 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22126 sed '=' <$as_myself |
22127 sed '
22128 N
22129 s,$,-,
22130 : loop
22131 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22132 t loop
22133 s,-$,,
22134 s,^['$as_cr_digits']*\n,,
22135 ' >$as_me.lineno &&
22136 chmod +x $as_me.lineno ||
22137 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22138 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22139 { (exit 1); exit 1; }; }
22140
22141 # Don't try to exec as it changes $[0], causing all sort of problems
22142 # (the dirname of $[0] is not the place where we might find the
22143 # original and so on. Autoconf is especially sensible to this).
22144 . ./$as_me.lineno
22145 # Exit status is that of the last command.
22146 exit
22147 }
22148
22149
22150 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22151 *c*,-n*) ECHO_N= ECHO_C='
22152 ' ECHO_T=' ' ;;
22153 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22154 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22155 esac
22156
22157 if expr a : '\(a\)' >/dev/null 2>&1; then
22158 as_expr=expr
22159 else
22160 as_expr=false
22161 fi
22162
22163 rm -f conf$$ conf$$.exe conf$$.file
22164 echo >conf$$.file
22165 if ln -s conf$$.file conf$$ 2>/dev/null; then
22166 # We could just check for DJGPP; but this test a) works b) is more generic
22167 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22168 if test -f conf$$.exe; then
22169 # Don't use ln at all; we don't have any links
22170 as_ln_s='cp -p'
22171 else
22172 as_ln_s='ln -s'
22173 fi
22174 elif ln conf$$.file conf$$ 2>/dev/null; then
22175 as_ln_s=ln
22176 else
22177 as_ln_s='cp -p'
22178 fi
22179 rm -f conf$$ conf$$.exe conf$$.file
22180
22181 if mkdir -p . 2>/dev/null; then
22182 as_mkdir_p=:
22183 else
22184 test -d ./-p && rmdir ./-p
22185 as_mkdir_p=false
22186 fi
22187
22188 as_executable_p="test -f"
22189
22190 # Sed expression to map a string onto a valid CPP name.
22191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22192
22193 # Sed expression to map a string onto a valid variable name.
22194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22195
22196
22197 # IFS
22198 # We need space, tab and new line, in precisely that order.
22199 as_nl='
22200 '
22201 IFS=" $as_nl"
22202
22203 # CDPATH.
22204 $as_unset CDPATH
22205
22206 exec 6>&1
22207
22208 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22209 # report actual input values of CONFIG_FILES etc. instead of their
22210 # values after options handling. Logging --version etc. is OK.
22211 exec 5>>config.log
22212 {
22213 echo
22214 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22215 ## Running $as_me. ##
22216 _ASBOX
22217 } >&5
22218 cat >&5 <<_CSEOF
22219
22220 This file was extended by libltdl $as_me 1.2, which was
22221 generated by GNU Autoconf 2.59. Invocation command line was
22222
22223 CONFIG_FILES = $CONFIG_FILES
22224 CONFIG_HEADERS = $CONFIG_HEADERS
22225 CONFIG_LINKS = $CONFIG_LINKS
22226 CONFIG_COMMANDS = $CONFIG_COMMANDS
22227 $ $0 $@
22228
22229 _CSEOF
22230 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22231 echo >&5
22232 _ACEOF
22233
22234 # Files that config.status was made for.
22235 if test -n "$ac_config_files"; then
22236 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22237 fi
22238
22239 if test -n "$ac_config_headers"; then
22240 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22241 fi
22242
22243 if test -n "$ac_config_links"; then
22244 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22245 fi
22246
22247 if test -n "$ac_config_commands"; then
22248 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22249 fi
22250
22251 cat >>$CONFIG_STATUS <<\_ACEOF
22252
22253 ac_cs_usage="\
22254 \`$as_me' instantiates files from templates according to the
22255 current configuration.
22256
22257 Usage: $0 [OPTIONS] [FILE]...
22258
22259 -h, --help print this help, then exit
22260 -V, --version print version number, then exit
22261 -q, --quiet do not print progress messages
22262 -d, --debug don't remove temporary files
22263 --recheck update $as_me by reconfiguring in the same conditions
22264 --file=FILE[:TEMPLATE]
22265 instantiate the configuration file FILE
22266 --header=FILE[:TEMPLATE]
22267 instantiate the configuration header FILE
22268
22269 Configuration files:
22270 $config_files
22271
22272 Configuration headers:
22273 $config_headers
22274
22275 Configuration commands:
22276 $config_commands
22277
22278 Report bugs to <bug-autoconf@gnu.org>."
22279 _ACEOF
22280
22281 cat >>$CONFIG_STATUS <<_ACEOF
22282 ac_cs_version="\\
22283 libltdl config.status 1.2
22284 configured by $0, generated by GNU Autoconf 2.59,
22285 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22286
22287 Copyright (C) 2003 Free Software Foundation, Inc.
22288 This config.status script is free software; the Free Software Foundation
22289 gives unlimited permission to copy, distribute and modify it."
22290 srcdir=$srcdir
22291 INSTALL="$INSTALL"
22292 _ACEOF
22293
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 # If no file are specified by the user, then we need to provide default
22296 # value. By we need to know if files were specified by the user.
22297 ac_need_defaults=:
22298 while test $# != 0
22299 do
22300 case $1 in
22301 --*=*)
22302 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22303 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22304 ac_shift=:
22305 ;;
22306 -*)
22307 ac_option=$1
22308 ac_optarg=$2
22309 ac_shift=shift
22310 ;;
22311 *) # This is not an option, so the user has probably given explicit
22312 # arguments.
22313 ac_option=$1
22314 ac_need_defaults=false;;
22315 esac
22316
22317 case $ac_option in
22318 # Handling of the options.
22319 _ACEOF
22320 cat >>$CONFIG_STATUS <<\_ACEOF
22321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22322 ac_cs_recheck=: ;;
22323 --version | --vers* | -V )
22324 echo "$ac_cs_version"; exit 0 ;;
22325 --he | --h)
22326 # Conflict between --help and --header
22327 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22328 Try \`$0 --help' for more information." >&5
22329 echo "$as_me: error: ambiguous option: $1
22330 Try \`$0 --help' for more information." >&2;}
22331 { (exit 1); exit 1; }; };;
22332 --help | --hel | -h )
22333 echo "$ac_cs_usage"; exit 0 ;;
22334 --debug | --d* | -d )
22335 debug=: ;;
22336 --file | --fil | --fi | --f )
22337 $ac_shift
22338 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22339 ac_need_defaults=false;;
22340 --header | --heade | --head | --hea )
22341 $ac_shift
22342 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22343 ac_need_defaults=false;;
22344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22346 ac_cs_silent=: ;;
22347
22348 # This is an error.
22349 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22350 Try \`$0 --help' for more information." >&5
22351 echo "$as_me: error: unrecognized option: $1
22352 Try \`$0 --help' for more information." >&2;}
22353 { (exit 1); exit 1; }; } ;;
22354
22355 *) ac_config_targets="$ac_config_targets $1" ;;
22356
22357 esac
22358 shift
22359 done
22360
22361 ac_configure_extra_args=
22362
22363 if $ac_cs_silent; then
22364 exec 6>/dev/null
22365 ac_configure_extra_args="$ac_configure_extra_args --silent"
22366 fi
22367
22368 _ACEOF
22369 cat >>$CONFIG_STATUS <<_ACEOF
22370 if \$ac_cs_recheck; then
22371 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22372 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22373 fi
22374
22375 _ACEOF
22376
22377 cat >>$CONFIG_STATUS <<_ACEOF
22378 #
22379 # INIT-COMMANDS section.
22380 #
22381
22382 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22383
22384 _ACEOF
22385
22386
22387
22388 cat >>$CONFIG_STATUS <<\_ACEOF
22389 for ac_config_target in $ac_config_targets
22390 do
22391 case "$ac_config_target" in
22392 # Handling of arguments.
22393 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22394 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22395 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22396 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22397 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22398 { (exit 1); exit 1; }; };;
22399 esac
22400 done
22401
22402 # If the user did not use the arguments to specify the items to instantiate,
22403 # then the envvar interface is used. Set only those that are not.
22404 # We use the long form for the default assignment because of an extremely
22405 # bizarre bug on SunOS 4.1.3.
22406 if $ac_need_defaults; then
22407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22408 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22410 fi
22411
22412 # Have a temporary directory for convenience. Make it in the build tree
22413 # simply because there is no reason to put it here, and in addition,
22414 # creating and moving files from /tmp can sometimes cause problems.
22415 # Create a temporary directory, and hook for its removal unless debugging.
22416 $debug ||
22417 {
22418 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22419 trap '{ (exit 1); exit 1; }' 1 2 13 15
22420 }
22421
22422 # Create a (secure) tmp directory for tmp files.
22423
22424 {
22425 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22426 test -n "$tmp" && test -d "$tmp"
22427 } ||
22428 {
22429 tmp=./confstat$$-$RANDOM
22430 (umask 077 && mkdir $tmp)
22431 } ||
22432 {
22433 echo "$me: cannot create a temporary directory in ." >&2
22434 { (exit 1); exit 1; }
22435 }
22436
22437 _ACEOF
22438
22439 cat >>$CONFIG_STATUS <<_ACEOF
22440
22441 #
22442 # CONFIG_FILES section.
22443 #
22444
22445 # No need to generate the scripts if there are no CONFIG_FILES.
22446 # This happens for instance when ./config.status config.h
22447 if test -n "\$CONFIG_FILES"; then
22448 # Protect against being on the right side of a sed subst in config.status.
22449 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22450 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22451 s,@SHELL@,$SHELL,;t t
22452 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22453 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22454 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22455 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22456 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22457 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22458 s,@exec_prefix@,$exec_prefix,;t t
22459 s,@prefix@,$prefix,;t t
22460 s,@program_transform_name@,$program_transform_name,;t t
22461 s,@bindir@,$bindir,;t t
22462 s,@sbindir@,$sbindir,;t t
22463 s,@libexecdir@,$libexecdir,;t t
22464 s,@datadir@,$datadir,;t t
22465 s,@sysconfdir@,$sysconfdir,;t t
22466 s,@sharedstatedir@,$sharedstatedir,;t t
22467 s,@localstatedir@,$localstatedir,;t t
22468 s,@libdir@,$libdir,;t t
22469 s,@includedir@,$includedir,;t t
22470 s,@oldincludedir@,$oldincludedir,;t t
22471 s,@infodir@,$infodir,;t t
22472 s,@mandir@,$mandir,;t t
22473 s,@build_alias@,$build_alias,;t t
22474 s,@host_alias@,$host_alias,;t t
22475 s,@target_alias@,$target_alias,;t t
22476 s,@DEFS@,$DEFS,;t t
22477 s,@ECHO_C@,$ECHO_C,;t t
22478 s,@ECHO_N@,$ECHO_N,;t t
22479 s,@ECHO_T@,$ECHO_T,;t t
22480 s,@LIBS@,$LIBS,;t t
22481 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22482 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22483 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22484 s,@CYGPATH_W@,$CYGPATH_W,;t t
22485 s,@PACKAGE@,$PACKAGE,;t t
22486 s,@VERSION@,$VERSION,;t t
22487 s,@ACLOCAL@,$ACLOCAL,;t t
22488 s,@AUTOCONF@,$AUTOCONF,;t t
22489 s,@AUTOMAKE@,$AUTOMAKE,;t t
22490 s,@AUTOHEADER@,$AUTOHEADER,;t t
22491 s,@MAKEINFO@,$MAKEINFO,;t t
22492 s,@install_sh@,$install_sh,;t t
22493 s,@STRIP@,$STRIP,;t t
22494 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22495 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22496 s,@mkdir_p@,$mkdir_p,;t t
22497 s,@AWK@,$AWK,;t t
22498 s,@SET_MAKE@,$SET_MAKE,;t t
22499 s,@am__leading_dot@,$am__leading_dot,;t t
22500 s,@AMTAR@,$AMTAR,;t t
22501 s,@am__tar@,$am__tar,;t t
22502 s,@am__untar@,$am__untar,;t t
22503 s,@CC@,$CC,;t t
22504 s,@CFLAGS@,$CFLAGS,;t t
22505 s,@LDFLAGS@,$LDFLAGS,;t t
22506 s,@CPPFLAGS@,$CPPFLAGS,;t t
22507 s,@ac_ct_CC@,$ac_ct_CC,;t t
22508 s,@EXEEXT@,$EXEEXT,;t t
22509 s,@OBJEXT@,$OBJEXT,;t t
22510 s,@DEPDIR@,$DEPDIR,;t t
22511 s,@am__include@,$am__include,;t t
22512 s,@am__quote@,$am__quote,;t t
22513 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22514 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22515 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22516 s,@CCDEPMODE@,$CCDEPMODE,;t t
22517 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22518 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22519 s,@build@,$build,;t t
22520 s,@build_cpu@,$build_cpu,;t t
22521 s,@build_vendor@,$build_vendor,;t t
22522 s,@build_os@,$build_os,;t t
22523 s,@host@,$host,;t t
22524 s,@host_cpu@,$host_cpu,;t t
22525 s,@host_vendor@,$host_vendor,;t t
22526 s,@host_os@,$host_os,;t t
22527 s,@SED@,$SED,;t t
22528 s,@EGREP@,$EGREP,;t t
22529 s,@LN_S@,$LN_S,;t t
22530 s,@ECHO@,$ECHO,;t t
22531 s,@AR@,$AR,;t t
22532 s,@ac_ct_AR@,$ac_ct_AR,;t t
22533 s,@RANLIB@,$RANLIB,;t t
22534 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22535 s,@DLLTOOL@,$DLLTOOL,;t t
22536 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22537 s,@AS@,$AS,;t t
22538 s,@ac_ct_AS@,$ac_ct_AS,;t t
22539 s,@OBJDUMP@,$OBJDUMP,;t t
22540 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22541 s,@CPP@,$CPP,;t t
22542 s,@CXX@,$CXX,;t t
22543 s,@CXXFLAGS@,$CXXFLAGS,;t t
22544 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22545 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22546 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22547 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22548 s,@CXXCPP@,$CXXCPP,;t t
22549 s,@F77@,$F77,;t t
22550 s,@FFLAGS@,$FFLAGS,;t t
22551 s,@ac_ct_F77@,$ac_ct_F77,;t t
22552 s,@LIBTOOL@,$LIBTOOL,;t t
22553 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22554 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
22555 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
22556 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
22557 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
22558 s,@LIBADD_DL@,$LIBADD_DL,;t t
22559 s,@LIBOBJS@,$LIBOBJS,;t t
22560 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22561 CEOF
22562
22563 _ACEOF
22564
22565 cat >>$CONFIG_STATUS <<\_ACEOF
22566 # Split the substitutions into bite-sized pieces for seds with
22567 # small command number limits, like on Digital OSF/1 and HP-UX.
22568 ac_max_sed_lines=48
22569 ac_sed_frag=1 # Number of current file.
22570 ac_beg=1 # First line for current file.
22571 ac_end=$ac_max_sed_lines # Line after last line for current file.
22572 ac_more_lines=:
22573 ac_sed_cmds=
22574 while $ac_more_lines; do
22575 if test $ac_beg -gt 1; then
22576 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22577 else
22578 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22579 fi
22580 if test ! -s $tmp/subs.frag; then
22581 ac_more_lines=false
22582 else
22583 # The purpose of the label and of the branching condition is to
22584 # speed up the sed processing (if there are no `@' at all, there
22585 # is no need to browse any of the substitutions).
22586 # These are the two extra sed commands mentioned above.
22587 (echo ':t
22588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22589 if test -z "$ac_sed_cmds"; then
22590 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22591 else
22592 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22593 fi
22594 ac_sed_frag=`expr $ac_sed_frag + 1`
22595 ac_beg=$ac_end
22596 ac_end=`expr $ac_end + $ac_max_sed_lines`
22597 fi
22598 done
22599 if test -z "$ac_sed_cmds"; then
22600 ac_sed_cmds=cat
22601 fi
22602 fi # test -n "$CONFIG_FILES"
22603
22604 _ACEOF
22605 cat >>$CONFIG_STATUS <<\_ACEOF
22606 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22608 case $ac_file in
22609 - | *:- | *:-:* ) # input from stdin
22610 cat >$tmp/stdin
22611 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22613 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22615 * ) ac_file_in=$ac_file.in ;;
22616 esac
22617
22618 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22619 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22621 X"$ac_file" : 'X\(//\)[^/]' \| \
22622 X"$ac_file" : 'X\(//\)$' \| \
22623 X"$ac_file" : 'X\(/\)' \| \
22624 . : '\(.\)' 2>/dev/null ||
22625 echo X"$ac_file" |
22626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22628 /^X\(\/\/\)$/{ s//\1/; q; }
22629 /^X\(\/\).*/{ s//\1/; q; }
22630 s/.*/./; q'`
22631 { if $as_mkdir_p; then
22632 mkdir -p "$ac_dir"
22633 else
22634 as_dir="$ac_dir"
22635 as_dirs=
22636 while test ! -d "$as_dir"; do
22637 as_dirs="$as_dir $as_dirs"
22638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22640 X"$as_dir" : 'X\(//\)[^/]' \| \
22641 X"$as_dir" : 'X\(//\)$' \| \
22642 X"$as_dir" : 'X\(/\)' \| \
22643 . : '\(.\)' 2>/dev/null ||
22644 echo X"$as_dir" |
22645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22647 /^X\(\/\/\)$/{ s//\1/; q; }
22648 /^X\(\/\).*/{ s//\1/; q; }
22649 s/.*/./; q'`
22650 done
22651 test ! -n "$as_dirs" || mkdir $as_dirs
22652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22654 { (exit 1); exit 1; }; }; }
22655
22656 ac_builddir=.
22657
22658 if test "$ac_dir" != .; then
22659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22660 # A "../" for each directory in $ac_dir_suffix.
22661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22662 else
22663 ac_dir_suffix= ac_top_builddir=
22664 fi
22665
22666 case $srcdir in
22667 .) # No --srcdir option. We are building in place.
22668 ac_srcdir=.
22669 if test -z "$ac_top_builddir"; then
22670 ac_top_srcdir=.
22671 else
22672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22673 fi ;;
22674 [\\/]* | ?:[\\/]* ) # Absolute path.
22675 ac_srcdir=$srcdir$ac_dir_suffix;
22676 ac_top_srcdir=$srcdir ;;
22677 *) # Relative path.
22678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22680 esac
22681
22682 # Do not use `cd foo && pwd` to compute absolute paths, because
22683 # the directories may not exist.
22684 case `pwd` in
22685 .) ac_abs_builddir="$ac_dir";;
22686 *)
22687 case "$ac_dir" in
22688 .) ac_abs_builddir=`pwd`;;
22689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22691 esac;;
22692 esac
22693 case $ac_abs_builddir in
22694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22695 *)
22696 case ${ac_top_builddir}. in
22697 .) ac_abs_top_builddir=$ac_abs_builddir;;
22698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22700 esac;;
22701 esac
22702 case $ac_abs_builddir in
22703 .) ac_abs_srcdir=$ac_srcdir;;
22704 *)
22705 case $ac_srcdir in
22706 .) ac_abs_srcdir=$ac_abs_builddir;;
22707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22709 esac;;
22710 esac
22711 case $ac_abs_builddir in
22712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22713 *)
22714 case $ac_top_srcdir in
22715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22718 esac;;
22719 esac
22720
22721
22722 case $INSTALL in
22723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22724 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22725 esac
22726
22727 if test x"$ac_file" != x-; then
22728 { echo "$as_me:$LINENO: creating $ac_file" >&5
22729 echo "$as_me: creating $ac_file" >&6;}
22730 rm -f "$ac_file"
22731 fi
22732 # Let's still pretend it is `configure' which instantiates (i.e., don't
22733 # use $as_me), people would be surprised to read:
22734 # /* config.h. Generated by config.status. */
22735 if test x"$ac_file" = x-; then
22736 configure_input=
22737 else
22738 configure_input="$ac_file. "
22739 fi
22740 configure_input=$configure_input"Generated from `echo $ac_file_in |
22741 sed 's,.*/,,'` by configure."
22742
22743 # First look for the input files in the build tree, otherwise in the
22744 # src tree.
22745 ac_file_inputs=`IFS=:
22746 for f in $ac_file_in; do
22747 case $f in
22748 -) echo $tmp/stdin ;;
22749 [\\/$]*)
22750 # Absolute (can't be DOS-style, as IFS=:)
22751 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22752 echo "$as_me: error: cannot find input file: $f" >&2;}
22753 { (exit 1); exit 1; }; }
22754 echo "$f";;
22755 *) # Relative
22756 if test -f "$f"; then
22757 # Build tree
22758 echo "$f"
22759 elif test -f "$srcdir/$f"; then
22760 # Source tree
22761 echo "$srcdir/$f"
22762 else
22763 # /dev/null tree
22764 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22765 echo "$as_me: error: cannot find input file: $f" >&2;}
22766 { (exit 1); exit 1; }; }
22767 fi;;
22768 esac
22769 done` || { (exit 1); exit 1; }
22770 _ACEOF
22771 cat >>$CONFIG_STATUS <<_ACEOF
22772 sed "$ac_vpsub
22773 $extrasub
22774 _ACEOF
22775 cat >>$CONFIG_STATUS <<\_ACEOF
22776 :t
22777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22778 s,@configure_input@,$configure_input,;t t
22779 s,@srcdir@,$ac_srcdir,;t t
22780 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22781 s,@top_srcdir@,$ac_top_srcdir,;t t
22782 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22783 s,@builddir@,$ac_builddir,;t t
22784 s,@abs_builddir@,$ac_abs_builddir,;t t
22785 s,@top_builddir@,$ac_top_builddir,;t t
22786 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22787 s,@INSTALL@,$ac_INSTALL,;t t
22788 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22789 rm -f $tmp/stdin
22790 if test x"$ac_file" != x-; then
22791 mv $tmp/out $ac_file
22792 else
22793 cat $tmp/out
22794 rm -f $tmp/out
22795 fi
22796
22797 done
22798 _ACEOF
22799 cat >>$CONFIG_STATUS <<\_ACEOF
22800
22801 #
22802 # CONFIG_HEADER section.
22803 #
22804
22805 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22806 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22807 #
22808 # ac_d sets the value in "#define NAME VALUE" lines.
22809 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22810 ac_dB='[ ].*$,\1#\2'
22811 ac_dC=' '
22812 ac_dD=',;t'
22813 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22814 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22815 ac_uB='$,\1#\2define\3'
22816 ac_uC=' '
22817 ac_uD=',;t'
22818
22819 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22821 case $ac_file in
22822 - | *:- | *:-:* ) # input from stdin
22823 cat >$tmp/stdin
22824 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22826 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22828 * ) ac_file_in=$ac_file.in ;;
22829 esac
22830
22831 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22832 echo "$as_me: creating $ac_file" >&6;}
22833
22834 # First look for the input files in the build tree, otherwise in the
22835 # src tree.
22836 ac_file_inputs=`IFS=:
22837 for f in $ac_file_in; do
22838 case $f in
22839 -) echo $tmp/stdin ;;
22840 [\\/$]*)
22841 # Absolute (can't be DOS-style, as IFS=:)
22842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22843 echo "$as_me: error: cannot find input file: $f" >&2;}
22844 { (exit 1); exit 1; }; }
22845 # Do quote $f, to prevent DOS paths from being IFS'd.
22846 echo "$f";;
22847 *) # Relative
22848 if test -f "$f"; then
22849 # Build tree
22850 echo "$f"
22851 elif test -f "$srcdir/$f"; then
22852 # Source tree
22853 echo "$srcdir/$f"
22854 else
22855 # /dev/null tree
22856 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22857 echo "$as_me: error: cannot find input file: $f" >&2;}
22858 { (exit 1); exit 1; }; }
22859 fi;;
22860 esac
22861 done` || { (exit 1); exit 1; }
22862 # Remove the trailing spaces.
22863 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22864
22865 _ACEOF
22866
22867 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22868 # `conftest.undefs', that substitutes the proper values into
22869 # config.h.in to produce config.h. The first handles `#define'
22870 # templates, and the second `#undef' templates.
22871 # And first: Protect against being on the right side of a sed subst in
22872 # config.status. Protect against being in an unquoted here document
22873 # in config.status.
22874 rm -f conftest.defines conftest.undefs
22875 # Using a here document instead of a string reduces the quoting nightmare.
22876 # Putting comments in sed scripts is not portable.
22877 #
22878 # `end' is used to avoid that the second main sed command (meant for
22879 # 0-ary CPP macros) applies to n-ary macro definitions.
22880 # See the Autoconf documentation for `clear'.
22881 cat >confdef2sed.sed <<\_ACEOF
22882 s/[\\&,]/\\&/g
22883 s,[\\$`],\\&,g
22884 t clear
22885 : clear
22886 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22887 t end
22888 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22889 : end
22890 _ACEOF
22891 # If some macros were called several times there might be several times
22892 # the same #defines, which is useless. Nevertheless, we may not want to
22893 # sort them, since we want the *last* AC-DEFINE to be honored.
22894 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22895 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22896 rm -f confdef2sed.sed
22897
22898 # This sed command replaces #undef with comments. This is necessary, for
22899 # example, in the case of _POSIX_SOURCE, which is predefined and required
22900 # on some systems where configure will not decide to define it.
22901 cat >>conftest.undefs <<\_ACEOF
22902 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22903 _ACEOF
22904
22905 # Break up conftest.defines because some shells have a limit on the size
22906 # of here documents, and old seds have small limits too (100 cmds).
22907 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22908 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22909 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22910 echo ' :' >>$CONFIG_STATUS
22911 rm -f conftest.tail
22912 while grep . conftest.defines >/dev/null
22913 do
22914 # Write a limited-size here document to $tmp/defines.sed.
22915 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22916 # Speed up: don't consider the non `#define' lines.
22917 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22918 # Work around the forget-to-reset-the-flag bug.
22919 echo 't clr' >>$CONFIG_STATUS
22920 echo ': clr' >>$CONFIG_STATUS
22921 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22922 echo 'CEOF
22923 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22924 rm -f $tmp/in
22925 mv $tmp/out $tmp/in
22926 ' >>$CONFIG_STATUS
22927 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22928 rm -f conftest.defines
22929 mv conftest.tail conftest.defines
22930 done
22931 rm -f conftest.defines
22932 echo ' fi # grep' >>$CONFIG_STATUS
22933 echo >>$CONFIG_STATUS
22934
22935 # Break up conftest.undefs because some shells have a limit on the size
22936 # of here documents, and old seds have small limits too (100 cmds).
22937 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22938 rm -f conftest.tail
22939 while grep . conftest.undefs >/dev/null
22940 do
22941 # Write a limited-size here document to $tmp/undefs.sed.
22942 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22943 # Speed up: don't consider the non `#undef'
22944 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22945 # Work around the forget-to-reset-the-flag bug.
22946 echo 't clr' >>$CONFIG_STATUS
22947 echo ': clr' >>$CONFIG_STATUS
22948 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22949 echo 'CEOF
22950 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22951 rm -f $tmp/in
22952 mv $tmp/out $tmp/in
22953 ' >>$CONFIG_STATUS
22954 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22955 rm -f conftest.undefs
22956 mv conftest.tail conftest.undefs
22957 done
22958 rm -f conftest.undefs
22959
22960 cat >>$CONFIG_STATUS <<\_ACEOF
22961 # Let's still pretend it is `configure' which instantiates (i.e., don't
22962 # use $as_me), people would be surprised to read:
22963 # /* config.h. Generated by config.status. */
22964 if test x"$ac_file" = x-; then
22965 echo "/* Generated by configure. */" >$tmp/config.h
22966 else
22967 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22968 fi
22969 cat $tmp/in >>$tmp/config.h
22970 rm -f $tmp/in
22971 if test x"$ac_file" != x-; then
22972 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22973 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22974 echo "$as_me: $ac_file is unchanged" >&6;}
22975 else
22976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22978 X"$ac_file" : 'X\(//\)[^/]' \| \
22979 X"$ac_file" : 'X\(//\)$' \| \
22980 X"$ac_file" : 'X\(/\)' \| \
22981 . : '\(.\)' 2>/dev/null ||
22982 echo X"$ac_file" |
22983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22985 /^X\(\/\/\)$/{ s//\1/; q; }
22986 /^X\(\/\).*/{ s//\1/; q; }
22987 s/.*/./; q'`
22988 { if $as_mkdir_p; then
22989 mkdir -p "$ac_dir"
22990 else
22991 as_dir="$ac_dir"
22992 as_dirs=
22993 while test ! -d "$as_dir"; do
22994 as_dirs="$as_dir $as_dirs"
22995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22997 X"$as_dir" : 'X\(//\)[^/]' \| \
22998 X"$as_dir" : 'X\(//\)$' \| \
22999 X"$as_dir" : 'X\(/\)' \| \
23000 . : '\(.\)' 2>/dev/null ||
23001 echo X"$as_dir" |
23002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23004 /^X\(\/\/\)$/{ s//\1/; q; }
23005 /^X\(\/\).*/{ s//\1/; q; }
23006 s/.*/./; q'`
23007 done
23008 test ! -n "$as_dirs" || mkdir $as_dirs
23009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23011 { (exit 1); exit 1; }; }; }
23012
23013 rm -f $ac_file
23014 mv $tmp/config.h $ac_file
23015 fi
23016 else
23017 cat $tmp/config.h
23018 rm -f $tmp/config.h
23019 fi
23020 # Compute $ac_file's index in $config_headers.
23021 _am_stamp_count=1
23022 for _am_header in $config_headers :; do
23023 case $_am_header in
23024 $ac_file | $ac_file:* )
23025 break ;;
23026 * )
23027 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23028 esac
23029 done
23030 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23031 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23032 X$ac_file : 'X\(//\)[^/]' \| \
23033 X$ac_file : 'X\(//\)$' \| \
23034 X$ac_file : 'X\(/\)' \| \
23035 . : '\(.\)' 2>/dev/null ||
23036 echo X$ac_file |
23037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23039 /^X\(\/\/\)$/{ s//\1/; q; }
23040 /^X\(\/\).*/{ s//\1/; q; }
23041 s/.*/./; q'`/stamp-h$_am_stamp_count
23042 done
23043 _ACEOF
23044 cat >>$CONFIG_STATUS <<\_ACEOF
23045
23046 #
23047 # CONFIG_COMMANDS section.
23048 #
23049 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23050 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23051 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23052 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23053 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23054 X"$ac_dest" : 'X\(//\)[^/]' \| \
23055 X"$ac_dest" : 'X\(//\)$' \| \
23056 X"$ac_dest" : 'X\(/\)' \| \
23057 . : '\(.\)' 2>/dev/null ||
23058 echo X"$ac_dest" |
23059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23061 /^X\(\/\/\)$/{ s//\1/; q; }
23062 /^X\(\/\).*/{ s//\1/; q; }
23063 s/.*/./; q'`
23064 { if $as_mkdir_p; then
23065 mkdir -p "$ac_dir"
23066 else
23067 as_dir="$ac_dir"
23068 as_dirs=
23069 while test ! -d "$as_dir"; do
23070 as_dirs="$as_dir $as_dirs"
23071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23073 X"$as_dir" : 'X\(//\)[^/]' \| \
23074 X"$as_dir" : 'X\(//\)$' \| \
23075 X"$as_dir" : 'X\(/\)' \| \
23076 . : '\(.\)' 2>/dev/null ||
23077 echo X"$as_dir" |
23078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23080 /^X\(\/\/\)$/{ s//\1/; q; }
23081 /^X\(\/\).*/{ s//\1/; q; }
23082 s/.*/./; q'`
23083 done
23084 test ! -n "$as_dirs" || mkdir $as_dirs
23085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23087 { (exit 1); exit 1; }; }; }
23088
23089 ac_builddir=.
23090
23091 if test "$ac_dir" != .; then
23092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23093 # A "../" for each directory in $ac_dir_suffix.
23094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23095 else
23096 ac_dir_suffix= ac_top_builddir=
23097 fi
23098
23099 case $srcdir in
23100 .) # No --srcdir option. We are building in place.
23101 ac_srcdir=.
23102 if test -z "$ac_top_builddir"; then
23103 ac_top_srcdir=.
23104 else
23105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23106 fi ;;
23107 [\\/]* | ?:[\\/]* ) # Absolute path.
23108 ac_srcdir=$srcdir$ac_dir_suffix;
23109 ac_top_srcdir=$srcdir ;;
23110 *) # Relative path.
23111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23113 esac
23114
23115 # Do not use `cd foo && pwd` to compute absolute paths, because
23116 # the directories may not exist.
23117 case `pwd` in
23118 .) ac_abs_builddir="$ac_dir";;
23119 *)
23120 case "$ac_dir" in
23121 .) ac_abs_builddir=`pwd`;;
23122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23124 esac;;
23125 esac
23126 case $ac_abs_builddir in
23127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23128 *)
23129 case ${ac_top_builddir}. in
23130 .) ac_abs_top_builddir=$ac_abs_builddir;;
23131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23133 esac;;
23134 esac
23135 case $ac_abs_builddir in
23136 .) ac_abs_srcdir=$ac_srcdir;;
23137 *)
23138 case $ac_srcdir in
23139 .) ac_abs_srcdir=$ac_abs_builddir;;
23140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23142 esac;;
23143 esac
23144 case $ac_abs_builddir in
23145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23146 *)
23147 case $ac_top_srcdir in
23148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23151 esac;;
23152 esac
23153
23154
23155 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23156 echo "$as_me: executing $ac_dest commands" >&6;}
23157 case $ac_dest in
23158 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23159 # Strip MF so we end up with the name of the file.
23160 mf=`echo "$mf" | sed -e 's/:.*$//'`
23161 # Check whether this is an Automake generated Makefile or not.
23162 # We used to match only the files named `Makefile.in', but
23163 # some people rename them; so instead we look at the file content.
23164 # Grep'ing the first line is not enough: some people post-process
23165 # each Makefile.in and add a new line on top of each file to say so.
23166 # So let's grep whole file.
23167 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23168 dirpart=`(dirname "$mf") 2>/dev/null ||
23169 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23170 X"$mf" : 'X\(//\)[^/]' \| \
23171 X"$mf" : 'X\(//\)$' \| \
23172 X"$mf" : 'X\(/\)' \| \
23173 . : '\(.\)' 2>/dev/null ||
23174 echo X"$mf" |
23175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23177 /^X\(\/\/\)$/{ s//\1/; q; }
23178 /^X\(\/\).*/{ s//\1/; q; }
23179 s/.*/./; q'`
23180 else
23181 continue
23182 fi
23183 # Extract the definition of DEPDIR, am__include, and am__quote
23184 # from the Makefile without running `make'.
23185 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23186 test -z "$DEPDIR" && continue
23187 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23188 test -z "am__include" && continue
23189 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23190 # When using ansi2knr, U may be empty or an underscore; expand it
23191 U=`sed -n 's/^U = //p' < "$mf"`
23192 # Find all dependency output files, they are included files with
23193 # $(DEPDIR) in their names. We invoke sed twice because it is the
23194 # simplest approach to changing $(DEPDIR) to its actual value in the
23195 # expansion.
23196 for file in `sed -n "
23197 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23198 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23199 # Make sure the directory exists.
23200 test -f "$dirpart/$file" && continue
23201 fdir=`(dirname "$file") 2>/dev/null ||
23202 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23203 X"$file" : 'X\(//\)[^/]' \| \
23204 X"$file" : 'X\(//\)$' \| \
23205 X"$file" : 'X\(/\)' \| \
23206 . : '\(.\)' 2>/dev/null ||
23207 echo X"$file" |
23208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23210 /^X\(\/\/\)$/{ s//\1/; q; }
23211 /^X\(\/\).*/{ s//\1/; q; }
23212 s/.*/./; q'`
23213 { if $as_mkdir_p; then
23214 mkdir -p $dirpart/$fdir
23215 else
23216 as_dir=$dirpart/$fdir
23217 as_dirs=
23218 while test ! -d "$as_dir"; do
23219 as_dirs="$as_dir $as_dirs"
23220 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23222 X"$as_dir" : 'X\(//\)[^/]' \| \
23223 X"$as_dir" : 'X\(//\)$' \| \
23224 X"$as_dir" : 'X\(/\)' \| \
23225 . : '\(.\)' 2>/dev/null ||
23226 echo X"$as_dir" |
23227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23229 /^X\(\/\/\)$/{ s//\1/; q; }
23230 /^X\(\/\).*/{ s//\1/; q; }
23231 s/.*/./; q'`
23232 done
23233 test ! -n "$as_dirs" || mkdir $as_dirs
23234 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23235 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23236 { (exit 1); exit 1; }; }; }
23237
23238 # echo "creating $dirpart/$file"
23239 echo '# dummy' > "$dirpart/$file"
23240 done
23241 done
23242 ;;
23243 esac
23244 done
23245 _ACEOF
23246
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248
23249 { (exit 0); exit 0; }
23250 _ACEOF
23251 chmod +x $CONFIG_STATUS
23252 ac_clean_files=$ac_clean_files_save
23253
23254
23255 # configure is writing to config.log, and then calls config.status.
23256 # config.status does its own redirection, appending to config.log.
23257 # Unfortunately, on DOS this fails, as config.log is still kept open
23258 # by configure, so config.status won't be able to write to it; its
23259 # output is simply discarded. So we exec the FD to /dev/null,
23260 # effectively closing config.log, so it can be properly (re)opened and
23261 # appended to by config.status. When coming back to configure, we
23262 # need to make the FD available again.
23263 if test "$no_create" != yes; then
23264 ac_cs_success=:
23265 ac_config_status_args=
23266 test "$silent" = yes &&
23267 ac_config_status_args="$ac_config_status_args --quiet"
23268 exec 5>/dev/null
23269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23270 exec 5>>config.log
23271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23272 # would make configure fail if this is the last instruction.
23273 $ac_cs_success || { (exit 1); exit 1; }
23274 fi
23275