Debian Codegraph @

libchise/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libchise 0.3.0.
4 #
5 # Report bugs to <[email protected]>.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='libchise'
425 PACKAGE_TARNAME='libchise'
426 PACKAGE_VERSION='0.3.0'
427 PACKAGE_STRING='libchise 0.3.0'
428 PACKAGE_BUGREPORT='[email protected]'
429
430 ac_unique_file="chise.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA 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 libchise 0.3.0 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 System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of libchise 0.3.0:";;
1020 esac
1021 cat <<\_ACEOF
1022
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033
1034 Optional Packages:
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1038 --with-pic try to use only PIC/non-PIC objects [default=use
1039 both]
1040 --with-tags[=TAGS]
1041 include additional configurations [automatic]
1042
1043 Some influential environment variables:
1044 CC C compiler command
1045 CFLAGS C compiler flags
1046 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1047 nonstandard directory <lib dir>
1048 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1049 headers in a nonstandard directory <include dir>
1050 CPP C preprocessor
1051 CXX C++ compiler command
1052 CXXFLAGS C++ compiler flags
1053 CXXCPP C++ preprocessor
1054 F77 Fortran 77 compiler command
1055 FFLAGS Fortran 77 compiler flags
1056
1057 Use these variables to override the choices made by `configure' or to help
1058 it to find libraries and programs with nonstandard names/locations.
1059
1060 Report bugs to <[email protected]>.
1061 _ACEOF
1062 fi
1063
1064 if test "$ac_init_help" = "recursive"; then
1065 # If there are subdirs, report their specific --help.
1066 ac_popdir=`pwd`
1067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1068 test -d $ac_dir || continue
1069 ac_builddir=.
1070
1071 if test "$ac_dir" != .; then
1072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1073 # A "../" for each directory in $ac_dir_suffix.
1074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1075 else
1076 ac_dir_suffix= ac_top_builddir=
1077 fi
1078
1079 case $srcdir in
1080 .) # No --srcdir option. We are building in place.
1081 ac_srcdir=.
1082 if test -z "$ac_top_builddir"; then
1083 ac_top_srcdir=.
1084 else
1085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1086 fi ;;
1087 [\\/]* | ?:[\\/]* ) # Absolute path.
1088 ac_srcdir=$srcdir$ac_dir_suffix;
1089 ac_top_srcdir=$srcdir ;;
1090 *) # Relative path.
1091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1093 esac
1094
1095 # Do not use `cd foo && pwd` to compute absolute paths, because
1096 # the directories may not exist.
1097 case `pwd` in
1098 .) ac_abs_builddir="$ac_dir";;
1099 *)
1100 case "$ac_dir" in
1101 .) ac_abs_builddir=`pwd`;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1103 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1104 esac;;
1105 esac
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1108 *)
1109 case ${ac_top_builddir}. in
1110 .) ac_abs_top_builddir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1113 esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_srcdir=$ac_srcdir;;
1117 *)
1118 case $ac_srcdir in
1119 .) ac_abs_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1121 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1126 *)
1127 case $ac_top_srcdir in
1128 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1131 esac;;
1132 esac
1133
1134 cd $ac_dir
1135 # Check for guested configure; otherwise get Cygnus style configure.
1136 if test -f $ac_srcdir/configure.gnu; then
1137 echo
1138 $SHELL $ac_srcdir/configure.gnu --help=recursive
1139 elif test -f $ac_srcdir/configure; then
1140 echo
1141 $SHELL $ac_srcdir/configure --help=recursive
1142 elif test -f $ac_srcdir/configure.ac ||
1143 test -f $ac_srcdir/configure.in; then
1144 echo
1145 $ac_configure --help
1146 else
1147 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1148 fi
1149 cd $ac_popdir
1150 done
1151 fi
1152
1153 test -n "$ac_init_help" && exit 0
1154 if $ac_init_version; then
1155 cat <<\_ACEOF
1156 libchise configure 0.3.0
1157 generated by GNU Autoconf 2.59
1158
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1162 _ACEOF
1163 exit 0
1164 fi
1165 exec 5>config.log
1166 cat >&5 <<_ACEOF
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1169
1170 It was created by libchise $as_me 0.3.0, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1172
1173 $ $0 $@
1174
1175 _ACEOF
1176 {
1177 cat <<_ASUNAME
1178 ## --------- ##
1179 ## Platform. ##
1180 ## --------- ##
1181
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198
1199 _ASUNAME
1200
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202 for as_dir in $PATH
1203 do
1204 IFS=$as_save_IFS
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1207 done
1208
1209 } >&5
1210
1211 cat >&5 <<_ACEOF
1212
1213
1214 ## ----------- ##
1215 ## Core tests. ##
1216 ## ----------- ##
1217
1218 _ACEOF
1219
1220
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1226 ac_configure_args=
1227 ac_configure_args0=
1228 ac_configure_args1=
1229 ac_sep=
1230 ac_must_keep_next=false
1231 for ac_pass in 1 2
1232 do
1233 for ac_arg
1234 do
1235 case $ac_arg in
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 continue ;;
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 esac
1243 case $ac_pass in
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 2)
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1249 else
1250 case $ac_arg in
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257 esac
1258 ;;
1259 -* ) ac_must_keep_next=true ;;
1260 esac
1261 fi
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1264 ac_sep=" "
1265 ;;
1266 esac
1267 done
1268 done
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1279 {
1280 echo
1281
1282 cat <<\_ASBOX
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1286 _ASBOX
1287 echo
1288 # The following way of writing the cache mishandles newlines in values,
1289 {
1290 (set) 2>&1 |
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292 *ac_space=\ *)
1293 sed -n \
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1296 ;;
1297 *)
1298 sed -n \
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300 ;;
1301 esac;
1302 }
1303 echo
1304
1305 cat <<\_ASBOX
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1309 _ASBOX
1310 echo
1311 for ac_var in $ac_subst_vars
1312 do
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1317
1318 if test -n "$ac_subst_files"; then
1319 cat <<\_ASBOX
1320 ## ------------- ##
1321 ## Output files. ##
1322 ## ------------- ##
1323 _ASBOX
1324 echo
1325 for ac_var in $ac_subst_files
1326 do
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1329 done | sort
1330 echo
1331 fi
1332
1333 if test -s confdefs.h; then
1334 cat <<\_ASBOX
1335 ## ----------- ##
1336 ## confdefs.h. ##
1337 ## ----------- ##
1338 _ASBOX
1339 echo
1340 sed "/^$/d" confdefs.h | sort
1341 echo
1342 fi
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1346 } >&5
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1349 exit $exit_status
1350 ' 0
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353 done
1354 ac_signal=0
1355
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359 echo >confdefs.h
1360
1361 # Predefined preprocessor variables.
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1365 _ACEOF
1366
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370 _ACEOF
1371
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385 _ACEOF
1386
1387
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 else
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1395 fi
1396 fi
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1402 . "$ac_site_file"
1403 fi
1404 done
1405
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1412 case $cache_file in
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1415 esac
1416 fi
1417 else
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1420 >$cache_file
1421 fi
1422
1423 # Check that the precious variables saved in the cache have kept the same
1424 # value.
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1433 set,)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,set)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,);;
1442 *)
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1445 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1447 echo "$as_me: former value: $ac_old_val" >&2;}
1448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1449 echo "$as_me: current value: $ac_new_val" >&2;}
1450 ac_cache_corrupted=:
1451 fi;;
1452 esac
1453 # Pass precious variables to config.status.
1454 if test "$ac_new_set" = set; then
1455 case $ac_new_val in
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1459 esac
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1463 esac
1464 fi
1465 done
1466 if $ac_cache_corrupted; then
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1472 fi
1473
1474 ac_ext=c
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507 ac_config_headers="$ac_config_headers config.h"
1508
1509
1510 ac_aux_dir=
1511 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512 if test -f $ac_dir/install-sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install-sh -c"
1515 break
1516 elif test -f $ac_dir/install.sh; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/install.sh -c"
1519 break
1520 elif test -f $ac_dir/shtool; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/shtool install -c"
1523 break
1524 fi
1525 done
1526 if test -z "$ac_aux_dir"; then
1527 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529 { (exit 1); exit 1; }; }
1530 fi
1531 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1534
1535 # Make sure we can run config.sub.
1536 $ac_config_sub sun4 >/dev/null 2>&1 ||
1537 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1538 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541 echo "$as_me:$LINENO: checking build system type" >&5
1542 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1543 if test "${ac_cv_build+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546 ac_cv_build_alias=$build_alias
1547 test -z "$ac_cv_build_alias" &&
1548 ac_cv_build_alias=`$ac_config_guess`
1549 test -z "$ac_cv_build_alias" &&
1550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1552 { (exit 1); exit 1; }; }
1553 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1557
1558 fi
1559 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1560 echo "${ECHO_T}$ac_cv_build" >&6
1561 build=$ac_cv_build
1562 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567 echo "$as_me:$LINENO: checking host system type" >&5
1568 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1569 if test "${ac_cv_host+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 ac_cv_host_alias=$host_alias
1573 test -z "$ac_cv_host_alias" &&
1574 ac_cv_host_alias=$ac_cv_build_alias
1575 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580 fi
1581 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1582 echo "${ECHO_T}$ac_cv_host" >&6
1583 host=$ac_cv_host
1584 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 echo "$as_me:$LINENO: checking target system type" >&5
1590 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1591 if test "${ac_cv_target+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594 ac_cv_target_alias=$target_alias
1595 test "x$ac_cv_target_alias" = "x" &&
1596 ac_cv_target_alias=$ac_cv_host_alias
1597 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602 fi
1603 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1604 echo "${ECHO_T}$ac_cv_target" >&6
1605 target=$ac_cv_target
1606 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611 # The aliases save the names the user supplied, while $host etc.
1612 # will get canonicalized.
1613 test -n "$target_alias" &&
1614 test "$program_prefix$program_suffix$program_transform_name" = \
1615 NONENONEs,x,x, &&
1616 program_prefix=${target_alias}-
1617
1618 # Checks for programs.
1619 ac_ext=c
1620 ac_cpp='$CPP $CPPFLAGS'
1621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1624 if test -n "$ac_tool_prefix"; then
1625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1645 fi
1646 done
1647 done
1648
1649 fi
1650 fi
1651 CC=$ac_cv_prog_CC
1652 if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654 echo "${ECHO_T}$CC" >&6
1655 else
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1658 fi
1659
1660 fi
1661 if test -z "$ac_cv_prog_CC"; then
1662 ac_ct_CC=$CC
1663 # Extract the first word of "gcc", so it can be a program name with args.
1664 set dummy gcc; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$ac_ct_CC"; then
1671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_ac_ct_CC="gcc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1683 fi
1684 done
1685 done
1686
1687 fi
1688 fi
1689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690 if test -n "$ac_ct_CC"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692 echo "${ECHO_T}$ac_ct_CC" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1696 fi
1697
1698 CC=$ac_ct_CC
1699 else
1700 CC="$ac_cv_prog_CC"
1701 fi
1702
1703 if test -z "$CC"; then
1704 if test -n "$ac_tool_prefix"; then
1705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1706 set dummy ${ac_tool_prefix}cc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="${ac_tool_prefix}cc"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 break 2
1725 fi
1726 done
1727 done
1728
1729 fi
1730 fi
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740 fi
1741 if test -z "$ac_cv_prog_CC"; then
1742 ac_ct_CC=$CC
1743 # Extract the first word of "cc", so it can be a program name with args.
1744 set dummy cc; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750 if test -n "$ac_ct_CC"; then
1751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_ac_ct_CC="cc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 break 2
1763 fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6
1773 else
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778 CC=$ac_ct_CC
1779 else
1780 CC="$ac_cv_prog_CC"
1781 fi
1782
1783 fi
1784 if test -z "$CC"; then
1785 # Extract the first word of "cc", so it can be a program name with args.
1786 set dummy cc; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 else
1795 ac_prog_rejected=no
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1804 ac_prog_rejected=yes
1805 continue
1806 fi
1807 ac_cv_prog_CC="cc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811 done
1812 done
1813
1814 if test $ac_prog_rejected = yes; then
1815 # We found a bogon in the path, so make sure we never use it.
1816 set dummy $ac_cv_prog_CC
1817 shift
1818 if test $# != 0; then
1819 # We chose a different compiler from the bogus one.
1820 # However, it has the same basename, so the bogon will be chosen
1821 # first if we set CC to just the basename; use the full file name.
1822 shift
1823 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1824 fi
1825 fi
1826 fi
1827 fi
1828 CC=$ac_cv_prog_CC
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837 fi
1838 if test -z "$CC"; then
1839 if test -n "$ac_tool_prefix"; then
1840 for ac_prog in cl
1841 do
1842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1862 fi
1863 done
1864 done
1865
1866 fi
1867 fi
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 fi
1876
1877 test -n "$CC" && break
1878 done
1879 fi
1880 if test -z "$CC"; then
1881 ac_ct_CC=$CC
1882 for ac_prog in cl
1883 do
1884 # Extract the first word of "$ac_prog", so it can be a program name with args.
1885 set dummy $ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$ac_ct_CC"; then
1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_CC="$ac_prog"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1904 fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911 if test -n "$ac_ct_CC"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913 echo "${ECHO_T}$ac_ct_CC" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 test -n "$ac_ct_CC" && break
1920 done
1921
1922 CC=$ac_ct_CC
1923 fi
1924
1925 fi
1926
1927
1928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: no acceptable C compiler found in \$PATH
1931 See \`config.log' for more details." >&2;}
1932 { (exit 1); exit 1; }; }
1933
1934 # Provide some information about the compiler.
1935 echo "$as_me:$LINENO:" \
1936 "checking for C compiler version" >&5
1937 ac_compiler=`set X $ac_compile; echo $2`
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1939 (eval $ac_compiler --version </dev/null >&5) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }
1943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1944 (eval $ac_compiler -v </dev/null >&5) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1949 (eval $ac_compiler -V </dev/null >&5) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953
1954 cat >conftest.$ac_ext <<_ACEOF
1955 /* confdefs.h. */
1956 _ACEOF
1957 cat confdefs.h >>conftest.$ac_ext
1958 cat >>conftest.$ac_ext <<_ACEOF
1959 /* end confdefs.h. */
1960
1961 int
1962 main ()
1963 {
1964
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 ac_clean_files_save=$ac_clean_files
1970 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1971 # Try to create an executable without -o first, disregard a.out.
1972 # It will help us diagnose broken compilers, and finding out an intuition
1973 # of exeext.
1974 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1975 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1976 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1977 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1978 (eval $ac_link_default) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 # Find the output, starting from the most likely. This scheme is
1983 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1984 # resort.
1985
1986 # Be careful to initialize this variable, since it used to be cached.
1987 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1988 ac_cv_exeext=
1989 # b.out is created by i960 compilers.
1990 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1991 do
1992 test -f "$ac_file" || continue
1993 case $ac_file in
1994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1995 ;;
1996 conftest.$ac_ext )
1997 # This is the source file.
1998 ;;
1999 [ab].out )
2000 # We found the default executable, but exeext='' is most
2001 # certainly right.
2002 break;;
2003 *.* )
2004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2005 # FIXME: I believe we export ac_cv_exeext for Libtool,
2006 # but it would be cool to find out if it's true. Does anybody
2007 # maintain Libtool? --akim.
2008 export ac_cv_exeext
2009 break;;
2010 * )
2011 break;;
2012 esac
2013 done
2014 else
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2019 See \`config.log' for more details." >&5
2020 echo "$as_me: error: C compiler cannot create executables
2021 See \`config.log' for more details." >&2;}
2022 { (exit 77); exit 77; }; }
2023 fi
2024
2025 ac_exeext=$ac_cv_exeext
2026 echo "$as_me:$LINENO: result: $ac_file" >&5
2027 echo "${ECHO_T}$ac_file" >&6
2028
2029 # Check the compiler produces executables we can run. If not, either
2030 # the compiler is broken, or we cross compile.
2031 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2032 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2033 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2034 # If not cross compiling, check that we can run a simple program.
2035 if test "$cross_compiling" != yes; then
2036 if { ac_try='./$ac_file'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 (eval $ac_try) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2042 cross_compiling=no
2043 else
2044 if test "$cross_compiling" = maybe; then
2045 cross_compiling=yes
2046 else
2047 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2048 If you meant to cross compile, use \`--host'.
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: cannot run C compiled programs.
2051 If you meant to cross compile, use \`--host'.
2052 See \`config.log' for more details." >&2;}
2053 { (exit 1); exit 1; }; }
2054 fi
2055 fi
2056 fi
2057 echo "$as_me:$LINENO: result: yes" >&5
2058 echo "${ECHO_T}yes" >&6
2059
2060 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2061 ac_clean_files=$ac_clean_files_save
2062 # Check the compiler produces executables we can run. If not, either
2063 # the compiler is broken, or we cross compile.
2064 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2065 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2066 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2067 echo "${ECHO_T}$cross_compiling" >&6
2068
2069 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2070 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2072 (eval $ac_link) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; then
2076 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2077 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2078 # work properly (i.e., refer to `conftest.exe'), while it won't with
2079 # `rm'.
2080 for ac_file in conftest.exe conftest conftest.*; do
2081 test -f "$ac_file" || continue
2082 case $ac_file in
2083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2084 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2085 export ac_cv_exeext
2086 break;;
2087 * ) break;;
2088 esac
2089 done
2090 else
2091 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2094 See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 rm -f conftest$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2100 echo "${ECHO_T}$ac_cv_exeext" >&6
2101
2102 rm -f conftest.$ac_ext
2103 EXEEXT=$ac_cv_exeext
2104 ac_exeext=$EXEEXT
2105 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2106 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2107 if test "${ac_cv_objext+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 cat >conftest.$ac_ext <<_ACEOF
2111 /* confdefs.h. */
2112 _ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2116
2117 int
2118 main ()
2119 {
2120
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 rm -f conftest.o conftest.obj
2126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127 (eval $ac_compile) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2132 case $ac_file in
2133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2134 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2135 break;;
2136 esac
2137 done
2138 else
2139 echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2147 fi
2148
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150 fi
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2154 ac_objext=$OBJEXT
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2166
2167 int
2168 main ()
2169 {
2170 #ifndef __GNUC__
2171 choke me
2172 #endif
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_compiler_gnu=yes
2201 else
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 ac_compiler_gnu=no
2206 fi
2207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209
2210 fi
2211 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213 GCC=`test $ac_compiler_gnu = yes && echo yes`
2214 ac_test_CFLAGS=${CFLAGS+set}
2215 ac_save_CFLAGS=$CFLAGS
2216 CFLAGS="-g"
2217 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2228
2229 int
2230 main ()
2231 {
2232
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260 else
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 ac_cv_prog_cc_g=no
2265 fi
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2277 fi
2278 else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284 fi
2285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 ac_cv_prog_cc_stdc=no
2291 ac_save_CC=$CC
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2298 #include <stdarg.h>
2299 #include <stdio.h>
2300 #include <sys/types.h>
2301 #include <sys/stat.h>
2302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303 struct buf { int x; };
2304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305 static char *e (p, i)
2306 char **p;
2307 int i;
2308 {
2309 return p[i];
2310 }
2311 static char *f (char * (*g) (char **, int), char **p, ...)
2312 {
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2319 }
2320
2321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
2330 int test (int i, double x);
2331 struct s1 {int (*f) (int a);};
2332 struct s2 {int (*f) (double a);};
2333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334 int argc;
2335 char **argv;
2336 int
2337 main ()
2338 {
2339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 # Don't try gcc -ansi; that turns off useful extensions and
2345 # breaks some systems' header files.
2346 # AIX -qlanglvl=ansi
2347 # Ultrix and OSF/1 -std1
2348 # HP-UX 10.20 and later -Ae
2349 # HP-UX older versions -Aa -D_HPUX_SOURCE
2350 # SVR4 -Xc -D__EXTENSIONS__
2351 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352 do
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2377 break
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 fi
2383 rm -f conftest.err conftest.$ac_objext
2384 done
2385 rm -f conftest.$ac_ext conftest.$ac_objext
2386 CC=$ac_save_CC
2387
2388 fi
2389
2390 case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393 echo "${ECHO_T}none needed" >&6 ;;
2394 *)
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398 esac
2399
2400 # Some people use a C++ compiler to compile C. Since we use `exit',
2401 # in C++ we need to declare it. In case someone uses the same compiler
2402 # for both compiling C and C++ we need to have the C++ compiler decide
2403 # the declaration of exit, since it's the most demanding environment.
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #ifndef __cplusplus
2406 choke me
2407 #endif
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2432 '' \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2437 'void exit (int);'
2438 do
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 $ac_declaration
2446 #include <stdlib.h>
2447 int
2448 main ()
2449 {
2450 exit (42);
2451 ;
2452 return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 :
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 continue
2483 fi
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 $ac_declaration
2492 int
2493 main ()
2494 {
2495 exit (42);
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 break
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 fi
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 rm -f conftest*
2531 if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2535 fi
2536
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 fi
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_ext=c
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
2549 # Check whether --enable-shared or --disable-shared was given.
2550 if test "${enable_shared+set}" = set; then
2551 enableval="$enable_shared"
2552 p=${PACKAGE-default}
2553 case $enableval in
2554 yes) enable_shared=yes ;;
2555 no) enable_shared=no ;;
2556 *)
2557 enable_shared=no
2558 # Look at the argument we got. We use all the common list separators.
2559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2560 for pkg in $enableval; do
2561 IFS="$lt_save_ifs"
2562 if test "X$pkg" = "X$p"; then
2563 enable_shared=yes
2564 fi
2565 done
2566 IFS="$lt_save_ifs"
2567 ;;
2568 esac
2569 else
2570 enable_shared=yes
2571 fi;
2572
2573 # Check whether --enable-static or --disable-static was given.
2574 if test "${enable_static+set}" = set; then
2575 enableval="$enable_static"
2576 p=${PACKAGE-default}
2577 case $enableval in
2578 yes) enable_static=yes ;;
2579 no) enable_static=no ;;
2580 *)
2581 enable_static=no
2582 # Look at the argument we got. We use all the common list separators.
2583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2584 for pkg in $enableval; do
2585 IFS="$lt_save_ifs"
2586 if test "X$pkg" = "X$p"; then
2587 enable_static=yes
2588 fi
2589 done
2590 IFS="$lt_save_ifs"
2591 ;;
2592 esac
2593 else
2594 enable_static=yes
2595 fi;
2596
2597 # Check whether --enable-fast-install or --disable-fast-install was given.
2598 if test "${enable_fast_install+set}" = set; then
2599 enableval="$enable_fast_install"
2600 p=${PACKAGE-default}
2601 case $enableval in
2602 yes) enable_fast_install=yes ;;
2603 no) enable_fast_install=no ;;
2604 *)
2605 enable_fast_install=no
2606 # Look at the argument we got. We use all the common list separators.
2607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2608 for pkg in $enableval; do
2609 IFS="$lt_save_ifs"
2610 if test "X$pkg" = "X$p"; then
2611 enable_fast_install=yes
2612 fi
2613 done
2614 IFS="$lt_save_ifs"
2615 ;;
2616 esac
2617 else
2618 enable_fast_install=yes
2619 fi;
2620
2621 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2622 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2623 if test "${lt_cv_path_SED+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 # Loop through the user's path and test for sed and gsed.
2627 # Then use that list of sed's as ones to test for truncation.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for lt_ac_prog in sed gsed; do
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2636 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2637 fi
2638 done
2639 done
2640 done
2641 lt_ac_max=0
2642 lt_ac_count=0
2643 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2644 # along with /bin/sed that truncates output.
2645 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2646 test ! -f $lt_ac_sed && break
2647 cat /dev/null > conftest.in
2648 lt_ac_count=0
2649 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2650 # Check for GNU sed and select it if it is found.
2651 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2652 lt_cv_path_SED=$lt_ac_sed
2653 break
2654 fi
2655 while true; do
2656 cat conftest.in conftest.in >conftest.tmp
2657 mv conftest.tmp conftest.in
2658 cp conftest.in conftest.nl
2659 echo >>conftest.nl
2660 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2661 cmp -s conftest.out conftest.nl || break
2662 # 10000 chars as input seems more than enough
2663 test $lt_ac_count -gt 10 && break
2664 lt_ac_count=`expr $lt_ac_count + 1`
2665 if test $lt_ac_count -gt $lt_ac_max; then
2666 lt_ac_max=$lt_ac_count
2667 lt_cv_path_SED=$lt_ac_sed
2668 fi
2669 done
2670 done
2671 SED=$lt_cv_path_SED
2672
2673 fi
2674
2675 echo "$as_me:$LINENO: result: $SED" >&5
2676 echo "${ECHO_T}$SED" >&6
2677
2678 echo "$as_me:$LINENO: checking for egrep" >&5
2679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2680 if test "${ac_cv_prog_egrep+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2684 then ac_cv_prog_egrep='grep -E'
2685 else ac_cv_prog_egrep='egrep'
2686 fi
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2690 EGREP=$ac_cv_prog_egrep
2691
2692
2693
2694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2695 if test "${with_gnu_ld+set}" = set; then
2696 withval="$with_gnu_ld"
2697 test "$withval" = no || with_gnu_ld=yes
2698 else
2699 with_gnu_ld=no
2700 fi;
2701 ac_prog=ld
2702 if test "$GCC" = yes; then
2703 # Check if gcc -print-prog-name=ld gives a path.
2704 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2705 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2706 case $host in
2707 *-*-mingw*)
2708 # gcc leaves a trailing carriage return which upsets mingw
2709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2710 *)
2711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2712 esac
2713 case $ac_prog in
2714 # Accept absolute paths.
2715 [\\/]* | ?:[\\/]*)
2716 re_direlt='/[^/][^/]*/\.\./'
2717 # Canonicalize the pathname of ld
2718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2720 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2721 done
2722 test -z "$LD" && LD="$ac_prog"
2723 ;;
2724 "")
2725 # If it fails, then pretend we aren't using GCC.
2726 ac_prog=ld
2727 ;;
2728 *)
2729 # If it is relative, then search for the first ld in PATH.
2730 with_gnu_ld=unknown
2731 ;;
2732 esac
2733 elif test "$with_gnu_ld" = yes; then
2734 echo "$as_me:$LINENO: checking for GNU ld" >&5
2735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2736 else
2737 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2739 fi
2740 if test "${lt_cv_path_LD+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 if test -z "$LD"; then
2744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2745 for ac_dir in $PATH; do
2746 IFS="$lt_save_ifs"
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2749 lt_cv_path_LD="$ac_dir/$ac_prog"
2750 # Check to see if the program is GNU ld. I'd rather use --version,
2751 # but apparently some GNU ld's only accept -v.
2752 # Break only if it was the GNU/non-GNU ld that we prefer.
2753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2754 *GNU* | *'with BFD'*)
2755 test "$with_gnu_ld" != no && break
2756 ;;
2757 *)
2758 test "$with_gnu_ld" != yes && break
2759 ;;
2760 esac
2761 fi
2762 done
2763 IFS="$lt_save_ifs"
2764 else
2765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2766 fi
2767 fi
2768
2769 LD="$lt_cv_path_LD"
2770 if test -n "$LD"; then
2771 echo "$as_me:$LINENO: result: $LD" >&5
2772 echo "${ECHO_T}$LD" >&6
2773 else
2774 echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2776 fi
2777 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2778 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2779 { (exit 1); exit 1; }; }
2780 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2781 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2786 case `$LD -v 2>&1 </dev/null` in
2787 *GNU* | *'with BFD'*)
2788 lt_cv_prog_gnu_ld=yes
2789 ;;
2790 *)
2791 lt_cv_prog_gnu_ld=no
2792 ;;
2793 esac
2794 fi
2795 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2797 with_gnu_ld=$lt_cv_prog_gnu_ld
2798
2799
2800 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2801 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2802 if test "${lt_cv_ld_reload_flag+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 lt_cv_ld_reload_flag='-r'
2806 fi
2807 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2809 reload_flag=$lt_cv_ld_reload_flag
2810 case $reload_flag in
2811 "" | " "*) ;;
2812 *) reload_flag=" $reload_flag" ;;
2813 esac
2814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2815
2816 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2817 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2818 if test "${lt_cv_path_NM+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 if test -n "$NM"; then
2822 # Let the user override the test.
2823 lt_cv_path_NM="$NM"
2824 else
2825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2826 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2827 IFS="$lt_save_ifs"
2828 test -z "$ac_dir" && ac_dir=.
2829 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2831 # Check to see if the nm accepts a BSD-compat flag.
2832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2833 # nm: unknown option "B" ignored
2834 # Tru64's nm complains that /dev/null is an invalid object file
2835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2836 */dev/null* | *'Invalid file or object type'*)
2837 lt_cv_path_NM="$tmp_nm -B"
2838 break
2839 ;;
2840 *)
2841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2842 */dev/null*)
2843 lt_cv_path_NM="$tmp_nm -p"
2844 break
2845 ;;
2846 *)
2847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2848 continue # so that we can try to find one that supports BSD flags
2849 ;;
2850 esac
2851 esac
2852 fi
2853 done
2854 IFS="$lt_save_ifs"
2855 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2856 fi
2857 fi
2858 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2859 echo "${ECHO_T}$lt_cv_path_NM" >&6
2860 NM="$lt_cv_path_NM"
2861
2862 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2863 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2864 LN_S=$as_ln_s
2865 if test "$LN_S" = "ln -s"; then
2866 echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2870 echo "${ECHO_T}no, using $LN_S" >&6
2871 fi
2872
2873 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2874 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2875 if test "${lt_cv_deplibs_check_method+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 lt_cv_file_magic_cmd='$MAGIC_CMD'
2879 lt_cv_file_magic_test_file=
2880 lt_cv_deplibs_check_method='unknown'
2881 # Need to set the preceding variable on all platforms that support
2882 # interlibrary dependencies.
2883 # 'none' -- dependencies not supported.
2884 # `unknown' -- same as none, but documents that we really don't know.
2885 # 'pass_all' -- all dependencies passed with no checks.
2886 # 'test_compile' -- check by making test program.
2887 # 'file_magic [[regex]]' -- check by looking for files in library path
2888 # which responds to the $file_magic_cmd with a given extended regex.
2889 # If you have `file' or equivalent on your system and you're not sure
2890 # whether `pass_all' will *always* work, you probably want this one.
2891
2892 case $host_os in
2893 aix4* | aix5*)
2894 lt_cv_deplibs_check_method=pass_all
2895 ;;
2896
2897 beos*)
2898 lt_cv_deplibs_check_method=pass_all
2899 ;;
2900
2901 bsdi4*)
2902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2903 lt_cv_file_magic_cmd='/usr/bin/file -L'
2904 lt_cv_file_magic_test_file=/shlib/libc.so
2905 ;;
2906
2907 cygwin* | mingw* | pw32*)
2908 # win32_libid is a shell function defined in ltmain.sh
2909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2910 lt_cv_file_magic_cmd='win32_libid'
2911 ;;
2912
2913 darwin* | rhapsody*)
2914 # this will be overwritten by pass_all, but leave it in just in case
2915 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2916 lt_cv_file_magic_cmd='/usr/bin/file -L'
2917 case "$host_os" in
2918 rhapsody* | darwin1.[012])
2919 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2920 ;;
2921 *) # Darwin 1.3 on
2922 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2923 ;;
2924 esac
2925 lt_cv_deplibs_check_method=pass_all
2926 ;;
2927
2928 freebsd* | kfreebsd*-gnu)
2929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2930 case $host_cpu in
2931 i*86 )
2932 # Not sure whether the presence of OpenBSD here was a mistake.
2933 # Let's accept both of them until this is cleared up.
2934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2935 lt_cv_file_magic_cmd=/usr/bin/file
2936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2937 ;;
2938 esac
2939 else
2940 lt_cv_deplibs_check_method=pass_all
2941 fi
2942 ;;
2943
2944 gnu*)
2945 lt_cv_deplibs_check_method=pass_all
2946 ;;
2947
2948 hpux10.20* | hpux11*)
2949 lt_cv_file_magic_cmd=/usr/bin/file
2950 case "$host_cpu" in
2951 ia64*)
2952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2954 ;;
2955 hppa*64*)
2956 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]'
2957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2958 ;;
2959 *)
2960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2961 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2962 ;;
2963 esac
2964 ;;
2965
2966 irix5* | irix6* | nonstopux*)
2967 case $host_os in
2968 irix5* | nonstopux*)
2969 # this will be overridden with pass_all, but let us keep it just in case
2970 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2971 ;;
2972 *)
2973 case $LD in
2974 *-32|*"-32 ") libmagic=32-bit;;
2975 *-n32|*"-n32 ") libmagic=N32;;
2976 *-64|*"-64 ") libmagic=64-bit;;
2977 *) libmagic=never-match;;
2978 esac
2979 # this will be overridden with pass_all, but let us keep it just in case
2980 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2981 ;;
2982 esac
2983 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2984 lt_cv_deplibs_check_method=pass_all
2985 ;;
2986
2987 # This must be Linux ELF.
2988 linux*)
2989 # linux always uses pass_all now, this code is the old way (tm)
2990 case $host_cpu in
2991 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
2992 lt_cv_deplibs_check_method=pass_all ;;
2993 *)
2994 # glibc up to 2.1.1 does not perform some relocations on ARM
2995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2996 esac
2997 lt_cv_deplibs_check_method=pass_all
2998 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2999 ;;
3000
3001 netbsd*)
3002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3004 else
3005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3006 fi
3007 ;;
3008
3009 newos6*)
3010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3011 lt_cv_file_magic_cmd=/usr/bin/file
3012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3013 ;;
3014
3015 nto-qnx*)
3016 lt_cv_deplibs_check_method=unknown
3017 ;;
3018
3019 openbsd*)
3020 lt_cv_file_magic_cmd=/usr/bin/file
3021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3024 else
3025 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3026 fi
3027 ;;
3028
3029 osf3* | osf4* | osf5*)
3030 # this will be overridden with pass_all, but let us keep it just in case
3031 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3032 lt_cv_file_magic_test_file=/shlib/libc.so
3033 lt_cv_deplibs_check_method=pass_all
3034 ;;
3035
3036 sco3.2v5*)
3037 lt_cv_deplibs_check_method=pass_all
3038 ;;
3039
3040 solaris*)
3041 lt_cv_deplibs_check_method=pass_all
3042 lt_cv_file_magic_test_file=/lib/libc.so
3043 ;;
3044
3045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3046 case $host_vendor in
3047 motorola)
3048 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]'
3049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3050 ;;
3051 ncr)
3052 lt_cv_deplibs_check_method=pass_all
3053 ;;
3054 sequent)
3055 lt_cv_file_magic_cmd='/bin/file'
3056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3057 ;;
3058 sni)
3059 lt_cv_file_magic_cmd='/bin/file'
3060 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3061 lt_cv_file_magic_test_file=/lib/libc.so
3062 ;;
3063 siemens)
3064 lt_cv_deplibs_check_method=pass_all
3065 ;;
3066 esac
3067 ;;
3068
3069 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3070 lt_cv_deplibs_check_method=pass_all
3071 ;;
3072 esac
3073
3074 fi
3075 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3076 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3077 file_magic_cmd=$lt_cv_file_magic_cmd
3078 deplibs_check_method=$lt_cv_deplibs_check_method
3079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3080
3081
3082
3083
3084 # If no C compiler was specified, use CC.
3085 LTCC=${LTCC-"$CC"}
3086
3087 # Allow CC to be a program name with arguments.
3088 compiler=$CC
3089
3090
3091 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3092 if test "${enable_libtool_lock+set}" = set; then
3093 enableval="$enable_libtool_lock"
3094
3095 fi;
3096 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3097
3098 # Some flags need to be propagated to the compiler or linker for good
3099 # libtool support.
3100 case $host in
3101 ia64-*-hpux*)
3102 # Find out which ABI we are using.
3103 echo 'int i;' > conftest.$ac_ext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; then
3109 case `/usr/bin/file conftest.$ac_objext` in
3110 *ELF-32*)
3111 HPUX_IA64_MODE="32"
3112 ;;
3113 *ELF-64*)
3114 HPUX_IA64_MODE="64"
3115 ;;
3116 esac
3117 fi
3118 rm -rf conftest*
3119 ;;
3120 *-*-irix6*)
3121 # Find out which ABI we are using.
3122 echo '#line 3122 "configure"' > conftest.$ac_ext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124 (eval $ac_compile) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 if test "$lt_cv_prog_gnu_ld" = yes; then
3129 case `/usr/bin/file conftest.$ac_objext` in
3130 *32-bit*)
3131 LD="${LD-ld} -melf32bsmip"
3132 ;;
3133 *N32*)
3134 LD="${LD-ld} -melf32bmipn32"
3135 ;;
3136 *64-bit*)
3137 LD="${LD-ld} -melf64bmip"
3138 ;;
3139 esac
3140 else
3141 case `/usr/bin/file conftest.$ac_objext` in
3142 *32-bit*)
3143 LD="${LD-ld} -32"
3144 ;;
3145 *N32*)
3146 LD="${LD-ld} -n32"
3147 ;;
3148 *64-bit*)
3149 LD="${LD-ld} -64"
3150 ;;
3151 esac
3152 fi
3153 fi
3154 rm -rf conftest*
3155 ;;
3156
3157 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3158 # Find out which ABI we are using.
3159 echo 'int i;' > conftest.$ac_ext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; then
3165 case "`/usr/bin/file conftest.o`" in
3166 *32-bit*)
3167 case $host in
3168 x86_64-*linux*)
3169 LD="${LD-ld} -m elf_i386"
3170 ;;
3171 ppc64-*linux*|powerpc64-*linux*)
3172 LD="${LD-ld} -m elf32ppclinux"
3173 ;;
3174 s390x-*linux*)
3175 LD="${LD-ld} -m elf_s390"
3176 ;;
3177 sparc64-*linux*)
3178 LD="${LD-ld} -m elf32_sparc"
3179 ;;
3180 esac
3181 ;;
3182 *64-bit*)
3183 case $host in
3184 x86_64-*linux*)
3185 LD="${LD-ld} -m elf_x86_64"
3186 ;;
3187 ppc*-*linux*|powerpc*-*linux*)
3188 LD="${LD-ld} -m elf64ppc"
3189 ;;
3190 s390*-*linux*)
3191 LD="${LD-ld} -m elf64_s390"
3192 ;;
3193 sparc*-*linux*)
3194 LD="${LD-ld} -m elf64_sparc"
3195 ;;
3196 esac
3197 ;;
3198 esac
3199 fi
3200 rm -rf conftest*
3201 ;;
3202
3203 *-*-sco3.2v5*)
3204 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3205 SAVE_CFLAGS="$CFLAGS"
3206 CFLAGS="$CFLAGS -belf"
3207 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3208 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3209 if test "${lt_cv_cc_needs_belf+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext conftest$ac_exeext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3235 (eval $ac_link) 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 lt_cv_cc_needs_belf=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 lt_cv_cc_needs_belf=no
3261 fi
3262 rm -f conftest.err conftest.$ac_objext \
3263 conftest$ac_exeext conftest.$ac_ext
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269
3270 fi
3271 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3272 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3273 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3274 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3275 CFLAGS="$SAVE_CFLAGS"
3276 fi
3277 ;;
3278
3279 esac
3280
3281 need_locks="$enable_libtool_lock"
3282
3283
3284 ac_ext=c
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3290 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3291 # On Suns, sometimes $CPP names a directory.
3292 if test -n "$CPP" && test -d "$CPP"; then
3293 CPP=
3294 fi
3295 if test -z "$CPP"; then
3296 if test "${ac_cv_prog_CPP+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 # Double quotes because CPP needs to be expanded
3300 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3301 do
3302 ac_preproc_ok=false
3303 for ac_c_preproc_warn_flag in '' yes
3304 do
3305 # Use a header file that comes with gcc, so configuring glibc
3306 # with a fresh cross-compiler works.
3307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3308 # <limits.h> exists even on freestanding compilers.
3309 # On the NeXT, cc -E runs the code through the compiler's parser,
3310 # not just through cpp. "Syntax error" is here to catch this case.
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #ifdef __STDC__
3318 # include <limits.h>
3319 #else
3320 # include <assert.h>
3321 #endif
3322 Syntax error
3323 _ACEOF
3324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } >/dev/null; then
3332 if test -s conftest.err; then
3333 ac_cpp_err=$ac_c_preproc_warn_flag
3334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 else
3336 ac_cpp_err=
3337 fi
3338 else
3339 ac_cpp_err=yes
3340 fi
3341 if test -z "$ac_cpp_err"; then
3342 :
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 # Broken: fails on valid input.
3348 continue
3349 fi
3350 rm -f conftest.err conftest.$ac_ext
3351
3352 # OK, works on sane cases. Now check whether non-existent headers
3353 # can be detected and how.
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <ac_nonexistent.h>
3361 _ACEOF
3362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373 else
3374 ac_cpp_err=
3375 fi
3376 else
3377 ac_cpp_err=yes
3378 fi
3379 if test -z "$ac_cpp_err"; then
3380 # Broken: success on invalid input.
3381 continue
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 # Passes both tests.
3387 ac_preproc_ok=:
3388 break
3389 fi
3390 rm -f conftest.err conftest.$ac_ext
3391
3392 done
3393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3394 rm -f conftest.err conftest.$ac_ext
3395 if $ac_preproc_ok; then
3396 break
3397 fi
3398
3399 done
3400 ac_cv_prog_CPP=$CPP
3401
3402 fi
3403 CPP=$ac_cv_prog_CPP
3404 else
3405 ac_cv_prog_CPP=$CPP
3406 fi
3407 echo "$as_me:$LINENO: result: $CPP" >&5
3408 echo "${ECHO_T}$CPP" >&6
3409 ac_preproc_ok=false
3410 for ac_c_preproc_warn_flag in '' yes
3411 do
3412 # Use a header file that comes with gcc, so configuring glibc
3413 # with a fresh cross-compiler works.
3414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415 # <limits.h> exists even on freestanding compilers.
3416 # On the NeXT, cc -E runs the code through the compiler's parser,
3417 # not just through cpp. "Syntax error" is here to catch this case.
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #ifdef __STDC__
3425 # include <limits.h>
3426 #else
3427 # include <assert.h>
3428 #endif
3429 Syntax error
3430 _ACEOF
3431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
3445 else
3446 ac_cpp_err=yes
3447 fi
3448 if test -z "$ac_cpp_err"; then
3449 :
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454 # Broken: fails on valid input.
3455 continue
3456 fi
3457 rm -f conftest.err conftest.$ac_ext
3458
3459 # OK, works on sane cases. Now check whether non-existent headers
3460 # can be detected and how.
3461 cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h. */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467 #include <ac_nonexistent.h>
3468 _ACEOF
3469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480 else
3481 ac_cpp_err=
3482 fi
3483 else
3484 ac_cpp_err=yes
3485 fi
3486 if test -z "$ac_cpp_err"; then
3487 # Broken: success on invalid input.
3488 continue
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 # Passes both tests.
3494 ac_preproc_ok=:
3495 break
3496 fi
3497 rm -f conftest.err conftest.$ac_ext
3498
3499 done
3500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501 rm -f conftest.err conftest.$ac_ext
3502 if $ac_preproc_ok; then
3503 :
3504 else
3505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3508 See \`config.log' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3510 fi
3511
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517
3518
3519 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3520 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3521 if test "${ac_cv_header_stdc+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <stdlib.h>
3531 #include <stdarg.h>
3532 #include <string.h>
3533 #include <float.h>
3534
3535 int
3536 main ()
3537 {
3538
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -z "$ac_c_werror_flag"
3553 || test ! -s conftest.err'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; } &&
3559 { ac_try='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 ac_cv_header_stdc=yes
3566 else
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 ac_cv_header_stdc=no
3571 fi
3572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573
3574 if test $ac_cv_header_stdc = yes; then
3575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <string.h>
3583
3584 _ACEOF
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 $EGREP "memchr" >/dev/null 2>&1; then
3587 :
3588 else
3589 ac_cv_header_stdc=no
3590 fi
3591 rm -f conftest*
3592
3593 fi
3594
3595 if test $ac_cv_header_stdc = yes; then
3596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <stdlib.h>
3604
3605 _ACEOF
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 $EGREP "free" >/dev/null 2>&1; then
3608 :
3609 else
3610 ac_cv_header_stdc=no
3611 fi
3612 rm -f conftest*
3613
3614 fi
3615
3616 if test $ac_cv_header_stdc = yes; then
3617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3618 if test "$cross_compiling" = yes; then
3619 :
3620 else
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 #include <ctype.h>
3628 #if ((' ' & 0x0FF) == 0x020)
3629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3631 #else
3632 # define ISLOWER(c) \
3633 (('a' <= (c) && (c) <= 'i') \
3634 || ('j' <= (c) && (c) <= 'r') \
3635 || ('s' <= (c) && (c) <= 'z'))
3636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3637 #endif
3638
3639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3640 int
3641 main ()
3642 {
3643 int i;
3644 for (i = 0; i < 256; i++)
3645 if (XOR (islower (i), ISLOWER (i))
3646 || toupper (i) != TOUPPER (i))
3647 exit(2);
3648 exit (0);
3649 }
3650 _ACEOF
3651 rm -f conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 :
3663 else
3664 echo "$as_me: program exited with status $ac_status" >&5
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 ( exit $ac_status )
3669 ac_cv_header_stdc=no
3670 fi
3671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3672 fi
3673 fi
3674 fi
3675 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3676 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3677 if test $ac_cv_header_stdc = yes; then
3678
3679 cat >>confdefs.h <<\_ACEOF
3680 #define STDC_HEADERS 1
3681 _ACEOF
3682
3683 fi
3684
3685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3696 inttypes.h stdint.h unistd.h
3697 do
3698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3699 echo "$as_me:$LINENO: checking for $ac_header" >&5
3700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 $ac_includes_default
3711
3712 #include <$ac_header>
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_c_werror_flag"
3724 || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 eval "$as_ac_Header=yes"
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 eval "$as_ac_Header=no"
3742 fi
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3748 cat >>confdefs.h <<_ACEOF
3749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3750 _ACEOF
3751
3752 fi
3753
3754 done
3755
3756
3757
3758 for ac_header in dlfcn.h
3759 do
3760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 fi
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3769 else
3770 # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 $ac_includes_default
3780 #include <$ac_header>
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_header_compiler=yes
3805 else
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 ac_header_compiler=no
3810 fi
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3813 echo "${ECHO_T}$ac_header_compiler" >&6
3814
3815 # Is the header present?
3816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <$ac_header>
3825 _ACEOF
3826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } >/dev/null; then
3834 if test -s conftest.err; then
3835 ac_cpp_err=$ac_c_preproc_warn_flag
3836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3837 else
3838 ac_cpp_err=
3839 fi
3840 else
3841 ac_cpp_err=yes
3842 fi
3843 if test -z "$ac_cpp_err"; then
3844 ac_header_preproc=yes
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 ac_header_preproc=no
3850 fi
3851 rm -f conftest.err conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3853 echo "${ECHO_T}$ac_header_preproc" >&6
3854
3855 # So? What about this header?
3856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3857 yes:no: )
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3862 ac_header_preproc=yes
3863 ;;
3864 no:yes:* )
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3877 (
3878 cat <<\_ASBOX
3879 ## -------------------------------- ##
3880 ## Report this to [email protected] ##
3881 ## -------------------------------- ##
3882 _ASBOX
3883 ) |
3884 sed "s/^/$as_me: WARNING: /" >&2
3885 ;;
3886 esac
3887 echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892 eval "$as_ac_Header=\$ac_header_preproc"
3893 fi
3894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3896
3897 fi
3898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3899 cat >>confdefs.h <<_ACEOF
3900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3901 _ACEOF
3902
3903 fi
3904
3905 done
3906
3907 ac_ext=cc
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3914 do
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 CXX=$ac_cv_prog_CXX
3942 if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3945 else
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950 test -n "$CXX" && break
3951 done
3952 fi
3953 if test -z "$CXX"; then
3954 ac_ct_CXX=$CXX
3955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3956 do
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3987 else
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992 test -n "$ac_ct_CXX" && break
3993 done
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996 CXX=$ac_ct_CXX
3997 fi
3998
3999
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </dev/null >&5) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015 (eval $ac_compiler -V </dev/null >&5) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4019
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031
4032 int
4033 main ()
4034 {
4035 #ifndef __GNUC__
4036 choke me
4037 #endif
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_compiler_gnu=yes
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_compiler_gnu=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075 fi
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4081 CXXFLAGS="-g"
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093
4094 int
4095 main ()
4096 {
4097
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4125 else
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_prog_cxx_g=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4139 CXXFLAGS="-g -O2"
4140 else
4141 CXXFLAGS="-g"
4142 fi
4143 else
4144 if test "$GXX" = yes; then
4145 CXXFLAGS="-O2"
4146 else
4147 CXXFLAGS=
4148 fi
4149 fi
4150 for ac_declaration in \
4151 '' \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4156 'void exit (int);'
4157 do
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 $ac_declaration
4165 #include <stdlib.h>
4166 int
4167 main ()
4168 {
4169 exit (42);
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 :
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_declaration
4211 int
4212 main ()
4213 {
4214 exit (42);
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 break
4242 else
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 fi
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 done
4249 rm -f conftest*
4250 if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
4254 fi
4255
4256 ac_ext=cc
4257 ac_cpp='$CXXCPP $CPPFLAGS'
4258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4261
4262 ac_ext=cc
4263 ac_cpp='$CXXCPP $CPPFLAGS'
4264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4267 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4268 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4269 if test -z "$CXXCPP"; then
4270 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 # Double quotes because CXXCPP needs to be expanded
4274 for CXXCPP in "$CXX -E" "/lib/cpp"
4275 do
4276 ac_preproc_ok=false
4277 for ac_cxx_preproc_warn_flag in '' yes
4278 do
4279 # Use a header file that comes with gcc, so configuring glibc
4280 # with a fresh cross-compiler works.
4281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 # <limits.h> exists even on freestanding compilers.
4283 # On the NeXT, cc -E runs the code through the compiler's parser,
4284 # not just through cpp. "Syntax error" is here to catch this case.
4285 cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h. */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 #ifdef __STDC__
4292 # include <limits.h>
4293 #else
4294 # include <assert.h>
4295 #endif
4296 Syntax error
4297 _ACEOF
4298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } >/dev/null; then
4306 if test -s conftest.err; then
4307 ac_cpp_err=$ac_cxx_preproc_warn_flag
4308 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4309 else
4310 ac_cpp_err=
4311 fi
4312 else
4313 ac_cpp_err=yes
4314 fi
4315 if test -z "$ac_cpp_err"; then
4316 :
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321 # Broken: fails on valid input.
4322 continue
4323 fi
4324 rm -f conftest.err conftest.$ac_ext
4325
4326 # OK, works on sane cases. Now check whether non-existent headers
4327 # can be detected and how.
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <ac_nonexistent.h>
4335 _ACEOF
4336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } >/dev/null; then
4344 if test -s conftest.err; then
4345 ac_cpp_err=$ac_cxx_preproc_warn_flag
4346 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4347 else
4348 ac_cpp_err=
4349 fi
4350 else
4351 ac_cpp_err=yes
4352 fi
4353 if test -z "$ac_cpp_err"; then
4354 # Broken: success on invalid input.
4355 continue
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 # Passes both tests.
4361 ac_preproc_ok=:
4362 break
4363 fi
4364 rm -f conftest.err conftest.$ac_ext
4365
4366 done
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.err conftest.$ac_ext
4369 if $ac_preproc_ok; then
4370 break
4371 fi
4372
4373 done
4374 ac_cv_prog_CXXCPP=$CXXCPP
4375
4376 fi
4377 CXXCPP=$ac_cv_prog_CXXCPP
4378 else
4379 ac_cv_prog_CXXCPP=$CXXCPP
4380 fi
4381 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4382 echo "${ECHO_T}$CXXCPP" >&6
4383 ac_preproc_ok=false
4384 for ac_cxx_preproc_warn_flag in '' yes
4385 do
4386 # Use a header file that comes with gcc, so configuring glibc
4387 # with a fresh cross-compiler works.
4388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 # <limits.h> exists even on freestanding compilers.
4390 # On the NeXT, cc -E runs the code through the compiler's parser,
4391 # not just through cpp. "Syntax error" is here to catch this case.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #ifdef __STDC__
4399 # include <limits.h>
4400 #else
4401 # include <assert.h>
4402 #endif
4403 Syntax error
4404 _ACEOF
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null; then
4413 if test -s conftest.err; then
4414 ac_cpp_err=$ac_cxx_preproc_warn_flag
4415 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4416 else
4417 ac_cpp_err=
4418 fi
4419 else
4420 ac_cpp_err=yes
4421 fi
4422 if test -z "$ac_cpp_err"; then
4423 :
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 # Broken: fails on valid input.
4429 continue
4430 fi
4431 rm -f conftest.err conftest.$ac_ext
4432
4433 # OK, works on sane cases. Now check whether non-existent headers
4434 # can be detected and how.
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 #include <ac_nonexistent.h>
4442 _ACEOF
4443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev/null; then
4451 if test -s conftest.err; then
4452 ac_cpp_err=$ac_cxx_preproc_warn_flag
4453 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4454 else
4455 ac_cpp_err=
4456 fi
4457 else
4458 ac_cpp_err=yes
4459 fi
4460 if test -z "$ac_cpp_err"; then
4461 # Broken: success on invalid input.
4462 continue
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 # Passes both tests.
4468 ac_preproc_ok=:
4469 break
4470 fi
4471 rm -f conftest.err conftest.$ac_ext
4472
4473 done
4474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4475 rm -f conftest.err conftest.$ac_ext
4476 if $ac_preproc_ok; then
4477 :
4478 else
4479 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4482 See \`config.log' for more details." >&2;}
4483 { (exit 1); exit 1; }; }
4484 fi
4485
4486 ac_ext=cc
4487 ac_cpp='$CXXCPP $CPPFLAGS'
4488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4491
4492
4493 ac_ext=f
4494 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4495 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4499 do
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504 if test "${ac_cv_prog_F77+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 if test -n "$F77"; then
4508 ac_cv_prog_F77="$F77" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523
4524 fi
4525 fi
4526 F77=$ac_cv_prog_F77
4527 if test -n "$F77"; then
4528 echo "$as_me:$LINENO: result: $F77" >&5
4529 echo "${ECHO_T}$F77" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535 test -n "$F77" && break
4536 done
4537 fi
4538 if test -z "$F77"; then
4539 ac_ct_F77=$F77
4540 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4541 do
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543 set dummy $ac_prog; ac_word=$2
4544 echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 if test -n "$ac_ct_F77"; then
4550 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_ac_ct_F77="$ac_prog"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565
4566 fi
4567 fi
4568 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4569 if test -n "$ac_ct_F77"; then
4570 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4571 echo "${ECHO_T}$ac_ct_F77" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4575 fi
4576
4577 test -n "$ac_ct_F77" && break
4578 done
4579
4580 F77=$ac_ct_F77
4581 fi
4582
4583
4584 # Provide some information about the compiler.
4585 echo "$as_me:4585:" \
4586 "checking for Fortran 77 compiler version" >&5
4587 ac_compiler=`set X $ac_compile; echo $2`
4588 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4589 (eval $ac_compiler --version </dev/null >&5) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }
4593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4594 (eval $ac_compiler -v </dev/null >&5) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }
4598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4599 (eval $ac_compiler -V </dev/null >&5) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }
4603 rm -f a.out
4604
4605 # If we don't use `.F' as extension, the preprocessor is not run on the
4606 # input file. (Note that this only needs to work for GNU compilers.)
4607 ac_save_ext=$ac_ext
4608 ac_ext=F
4609 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4610 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4611 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 cat >conftest.$ac_ext <<_ACEOF
4615 program main
4616 #ifndef __GNUC__
4617 choke me
4618 #endif
4619
4620 end
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_f77_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_compiler_gnu=yes
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_compiler_gnu=no
4650 fi
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4653
4654 fi
4655 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4656 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4657 ac_ext=$ac_save_ext
4658 ac_test_FFLAGS=${FFLAGS+set}
4659 ac_save_FFLAGS=$FFLAGS
4660 FFLAGS=
4661 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4662 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4663 if test "${ac_cv_prog_f77_g+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 FFLAGS=-g
4667 cat >conftest.$ac_ext <<_ACEOF
4668 program main
4669
4670 end
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674 (eval $ac_compile) 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -z "$ac_f77_werror_flag"
4682 || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_prog_f77_g=yes
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ac_cv_prog_f77_g=no
4700 fi
4701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4702
4703 fi
4704 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4705 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4706 if test "$ac_test_FFLAGS" = set; then
4707 FFLAGS=$ac_save_FFLAGS
4708 elif test $ac_cv_prog_f77_g = yes; then
4709 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4710 FFLAGS="-g -O2"
4711 else
4712 FFLAGS="-g"
4713 fi
4714 else
4715 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4716 FFLAGS="-O2"
4717 else
4718 FFLAGS=
4719 fi
4720 fi
4721
4722 G77=`test $ac_compiler_gnu = yes && echo yes`
4723 ac_ext=c
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728
4729
4730
4731 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4732
4733 # find the maximum length of command line arguments
4734 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4735 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4736 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739 i=0
4740 testring="ABCD"
4741
4742 case $build_os in
4743 msdosdjgpp*)
4744 # On DJGPP, this test can blow up pretty badly due to problems in libc
4745 # (any single argument exceeding 2000 bytes causes a buffer overrun
4746 # during glob expansion). Even if it were fixed, the result of this
4747 # check would be larger than it should be.
4748 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4749 ;;
4750
4751 gnu*)
4752 # Under GNU Hurd, this test is not required because there is
4753 # no limit to the length of command line arguments.
4754 # Libtool will interpret -1 as no limit whatsoever
4755 lt_cv_sys_max_cmd_len=-1;
4756 ;;
4757
4758 cygwin* | mingw*)
4759 # On Win9x/ME, this test blows up -- it succeeds, but takes
4760 # about 5 minutes as the teststring grows exponentially.
4761 # Worse, since 9x/ME are not pre-emptively multitasking,
4762 # you end up with a "frozen" computer, even though with patience
4763 # the test eventually succeeds (with a max line length of 256k).
4764 # Instead, let's just punt: use the minimum linelength reported by
4765 # all of the supported platforms: 8192 (on NT/2K/XP).
4766 lt_cv_sys_max_cmd_len=8192;
4767 ;;
4768
4769 amigaos*)
4770 # On AmigaOS with pdksh, this test takes hours, literally.
4771 # So we just punt and use a minimum line length of 8192.
4772 lt_cv_sys_max_cmd_len=8192;
4773 ;;
4774
4775 *)
4776 # If test is not a shell built-in, we'll probably end up computing a
4777 # maximum length that is only half of the actual maximum length, but
4778 # we can't tell.
4779 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4780 = "XX$testring") >/dev/null 2>&1 &&
4781 new_result=`expr "X$testring" : ".*" 2>&1` &&
4782 lt_cv_sys_max_cmd_len=$new_result &&
4783 test $i != 17 # 1/2 MB should be enough
4784 do
4785 i=`expr $i + 1`
4786 testring=$testring$testring
4787 done
4788 testring=
4789 # Add a significant safety factor because C++ compilers can tack on massive
4790 # amounts of additional arguments before passing them to the linker.
4791 # It appears as though 1/2 is a usable value.
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4793 ;;
4794 esac
4795
4796 fi
4797
4798 if test -n $lt_cv_sys_max_cmd_len ; then
4799 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4800 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4801 else
4802 echo "$as_me:$LINENO: result: none" >&5
4803 echo "${ECHO_T}none" >&6
4804 fi
4805
4806
4807
4808
4809 # Check for command to grab the raw symbol name followed by C symbol from nm.
4810 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4811 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4812 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815
4816 # These are sane defaults that work on at least a few old systems.
4817 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4818
4819 # Character class describing NM global symbol codes.
4820 symcode='[BCDEGRST]'
4821
4822 # Regexp to match symbols that can be accessed directly from C.
4823 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4824
4825 # Transform the above into a raw symbol and a C symbol.
4826 symxfrm='\1 \2\3 \3'
4827
4828 # Transform an extracted symbol line into a proper C declaration
4829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4830
4831 # Transform an extracted symbol line into symbol name and symbol address
4832 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'"
4833
4834 # Define system-specific variables.
4835 case $host_os in
4836 aix*)
4837 symcode='[BCDT]'
4838 ;;
4839 cygwin* | mingw* | pw32*)
4840 symcode='[ABCDGISTW]'
4841 ;;
4842 hpux*) # Its linker distinguishes data from code symbols
4843 if test "$host_cpu" = ia64; then
4844 symcode='[ABCDEGRST]'
4845 fi
4846 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4847 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'"
4848 ;;
4849 irix* | nonstopux*)
4850 symcode='[BCDEGRST]'
4851 ;;
4852 osf*)
4853 symcode='[BCDEGQRST]'
4854 ;;
4855 solaris* | sysv5*)
4856 symcode='[BDRT]'
4857 ;;
4858 sysv4)
4859 symcode='[DFNSTU]'
4860 ;;
4861 esac
4862
4863 # Handle CRLF in mingw tool chain
4864 opt_cr=
4865 case $build_os in
4866 mingw*)
4867 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4868 ;;
4869 esac
4870
4871 # If we're using GNU nm, then use its standard symbol codes.
4872 case `$NM -V 2>&1` in
4873 *GNU* | *'with BFD'*)
4874 symcode='[ABCDGIRSTW]' ;;
4875 esac
4876
4877 # Try without a prefix undercore, then with it.
4878 for ac_symprfx in "" "_"; do
4879
4880 # Write the raw and C identifiers.
4881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4882
4883 # Check to see that the pipe works correctly.
4884 pipe_works=no
4885
4886 rm -f conftest*
4887 cat > conftest.$ac_ext <<EOF
4888 #ifdef __cplusplus
4889 extern "C" {
4890 #endif
4891 char nm_test_var;
4892 void nm_test_func(){}
4893 #ifdef __cplusplus
4894 }
4895 #endif
4896 int main(){nm_test_var='a';nm_test_func();return(0);}
4897 EOF
4898
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; then
4904 # Now try to grab the symbols.
4905 nlist=conftest.nm
4906 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4907 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && test -s "$nlist"; then
4911 # Try sorting and uniquifying the output.
4912 if sort "$nlist" | uniq > "$nlist"T; then
4913 mv -f "$nlist"T "$nlist"
4914 else
4915 rm -f "$nlist"T
4916 fi
4917
4918 # Make sure that we snagged all the symbols we need.
4919 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4920 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4921 cat <<EOF > conftest.$ac_ext
4922 #ifdef __cplusplus
4923 extern "C" {
4924 #endif
4925
4926 EOF
4927 # Now generate the symbol file.
4928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4929
4930 cat <<EOF >> conftest.$ac_ext
4931 #if defined (__STDC__) && __STDC__
4932 # define lt_ptr_t void *
4933 #else
4934 # define lt_ptr_t char *
4935 # define const
4936 #endif
4937
4938 /* The mapping between symbol names and symbols. */
4939 const struct {
4940 const char *name;
4941 lt_ptr_t address;
4942 }
4943 lt_preloaded_symbols[] =
4944 {
4945 EOF
4946 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4947 cat <<\EOF >> conftest.$ac_ext
4948 {0, (lt_ptr_t) 0}
4949 };
4950
4951 #ifdef __cplusplus
4952 }
4953 #endif
4954 EOF
4955 # Now try linking the two files.
4956 mv conftest.$ac_objext conftstm.$ac_objext
4957 lt_save_LIBS="$LIBS"
4958 lt_save_CFLAGS="$CFLAGS"
4959 LIBS="conftstm.$ac_objext"
4960 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4966 pipe_works=yes
4967 fi
4968 LIBS="$lt_save_LIBS"
4969 CFLAGS="$lt_save_CFLAGS"
4970 else
4971 echo "cannot find nm_test_func in $nlist" >&5
4972 fi
4973 else
4974 echo "cannot find nm_test_var in $nlist" >&5
4975 fi
4976 else
4977 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4978 fi
4979 else
4980 echo "$progname: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4982 fi
4983 rm -f conftest* conftst*
4984
4985 # Do not use the global_symbol_pipe unless it works.
4986 if test "$pipe_works" = yes; then
4987 break
4988 else
4989 lt_cv_sys_global_symbol_pipe=
4990 fi
4991 done
4992
4993 fi
4994
4995 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4996 lt_cv_sys_global_symbol_to_cdecl=
4997 fi
4998 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4999 echo "$as_me:$LINENO: result: failed" >&5
5000 echo "${ECHO_T}failed" >&6
5001 else
5002 echo "$as_me:$LINENO: result: ok" >&5
5003 echo "${ECHO_T}ok" >&6
5004 fi
5005
5006 echo "$as_me:$LINENO: checking for objdir" >&5
5007 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5008 if test "${lt_cv_objdir+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 rm -f .libs 2>/dev/null
5012 mkdir .libs 2>/dev/null
5013 if test -d .libs; then
5014 lt_cv_objdir=.libs
5015 else
5016 # MS-DOS does not allow filenames that begin with a dot.
5017 lt_cv_objdir=_libs
5018 fi
5019 rmdir .libs 2>/dev/null
5020 fi
5021 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5022 echo "${ECHO_T}$lt_cv_objdir" >&6
5023 objdir=$lt_cv_objdir
5024
5025
5026
5027
5028
5029 case $host_os in
5030 aix3*)
5031 # AIX sometimes has problems with the GCC collect2 program. For some
5032 # reason, if we set the COLLECT_NAMES environment variable, the problems
5033 # vanish in a puff of smoke.
5034 if test "X${COLLECT_NAMES+set}" != Xset; then
5035 COLLECT_NAMES=
5036 export COLLECT_NAMES
5037 fi
5038 ;;
5039 esac
5040
5041 # Sed substitution that helps us do robust quoting. It backslashifies
5042 # metacharacters that are still active within double-quoted strings.
5043 Xsed='sed -e s/^X//'
5044 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5045
5046 # Same as above, but do not quote variable references.
5047 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5048
5049 # Sed substitution to delay expansion of an escaped shell variable in a
5050 # double_quote_subst'ed string.
5051 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5052
5053 # Sed substitution to avoid accidental globbing in evaled expressions
5054 no_glob_subst='s/\*/\\\*/g'
5055
5056 # Constants:
5057 rm="rm -f"
5058
5059 # Global variables:
5060 default_ofile=libtool
5061 can_build_shared=yes
5062
5063 # All known linkers require a `.a' archive for static linking (except M$VC,
5064 # which needs '.lib').
5065 libext=a
5066 ltmain="$ac_aux_dir/ltmain.sh"
5067 ofile="$default_ofile"
5068 with_gnu_ld="$lt_cv_prog_gnu_ld"
5069
5070 if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}ar; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_AR+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 if test -n "$AR"; then
5079 ac_cv_prog_AR="$AR" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_AR="${ac_tool_prefix}ar"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094
5095 fi
5096 fi
5097 AR=$ac_cv_prog_AR
5098 if test -n "$AR"; then
5099 echo "$as_me:$LINENO: result: $AR" >&5
5100 echo "${ECHO_T}$AR" >&6
5101 else
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5104 fi
5105
5106 fi
5107 if test -z "$ac_cv_prog_AR"; then
5108 ac_ct_AR=$AR
5109 # Extract the first word of "ar", so it can be a program name with args.
5110 set dummy ar; ac_word=$2
5111 echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 if test -n "$ac_ct_AR"; then
5117 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_ac_ct_AR="ar"
5127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132
5133 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5134 fi
5135 fi
5136 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5137 if test -n "$ac_ct_AR"; then
5138 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5139 echo "${ECHO_T}$ac_ct_AR" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6
5143 fi
5144
5145 AR=$ac_ct_AR
5146 else
5147 AR="$ac_cv_prog_AR"
5148 fi
5149
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_prog_RANLIB+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 if test -n "$RANLIB"; then
5159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174
5175 fi
5176 fi
5177 RANLIB=$ac_cv_prog_RANLIB
5178 if test -n "$RANLIB"; then
5179 echo "$as_me:$LINENO: result: $RANLIB" >&5
5180 echo "${ECHO_T}$RANLIB" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6
5184 fi
5185
5186 fi
5187 if test -z "$ac_cv_prog_RANLIB"; then
5188 ac_ct_RANLIB=$RANLIB
5189 # Extract the first word of "ranlib", so it can be a program name with args.
5190 set dummy ranlib; ac_word=$2
5191 echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 if test -n "$ac_ct_RANLIB"; then
5197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_ac_ct_RANLIB="ranlib"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5209 fi
5210 done
5211 done
5212
5213 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5214 fi
5215 fi
5216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5217 if test -n "$ac_ct_RANLIB"; then
5218 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5219 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5220 else
5221 echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5223 fi
5224
5225 RANLIB=$ac_ct_RANLIB
5226 else
5227 RANLIB="$ac_cv_prog_RANLIB"
5228 fi
5229
5230 if test -n "$ac_tool_prefix"; then
5231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5232 set dummy ${ac_tool_prefix}strip; ac_word=$2
5233 echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235 if test "${ac_cv_prog_STRIP+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 if test -n "$STRIP"; then
5239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252 done
5253 done
5254
5255 fi
5256 fi
5257 STRIP=$ac_cv_prog_STRIP
5258 if test -n "$STRIP"; then
5259 echo "$as_me:$LINENO: result: $STRIP" >&5
5260 echo "${ECHO_T}$STRIP" >&6
5261 else
5262 echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6
5264 fi
5265
5266 fi
5267 if test -z "$ac_cv_prog_STRIP"; then
5268 ac_ct_STRIP=$STRIP
5269 # Extract the first word of "strip", so it can be a program name with args.
5270 set dummy strip; ac_word=$2
5271 echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 if test -n "$ac_ct_STRIP"; then
5277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_ac_ct_STRIP="strip"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290 done
5291 done
5292
5293 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5294 fi
5295 fi
5296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5297 if test -n "$ac_ct_STRIP"; then
5298 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5299 echo "${ECHO_T}$ac_ct_STRIP" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5303 fi
5304
5305 STRIP=$ac_ct_STRIP
5306 else
5307 STRIP="$ac_cv_prog_STRIP"
5308 fi
5309
5310
5311 old_CC="$CC"
5312 old_CFLAGS="$CFLAGS"
5313
5314 # Set sane defaults for various variables
5315 test -z "$AR" && AR=ar
5316 test -z "$AR_FLAGS" && AR_FLAGS=cru
5317 test -z "$AS" && AS=as
5318 test -z "$CC" && CC=cc
5319 test -z "$LTCC" && LTCC=$CC
5320 test -z "$DLLTOOL" && DLLTOOL=dlltool
5321 test -z "$LD" && LD=ld
5322 test -z "$LN_S" && LN_S="ln -s"
5323 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5324 test -z "$NM" && NM=nm
5325 test -z "$SED" && SED=sed
5326 test -z "$OBJDUMP" && OBJDUMP=objdump
5327 test -z "$RANLIB" && RANLIB=:
5328 test -z "$STRIP" && STRIP=:
5329 test -z "$ac_objext" && ac_objext=o
5330
5331 # Determine commands to create old-style static archives.
5332 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5333 old_postinstall_cmds='chmod 644 $oldlib'
5334 old_postuninstall_cmds=
5335
5336 if test -n "$RANLIB"; then
5337 case $host_os in
5338 openbsd*)
5339 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5340 ;;
5341 *)
5342 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5343 ;;
5344 esac
5345 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5346 fi
5347
5348 # Only perform the check for file, if the check method requires it
5349 case $deplibs_check_method in
5350 file_magic*)
5351 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5352 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5353 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5354 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357 case $MAGIC_CMD in
5358 [\\/*] | ?:[\\/]*)
5359 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5360 ;;
5361 *)
5362 lt_save_MAGIC_CMD="$MAGIC_CMD"
5363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5365 for ac_dir in $ac_dummy; do
5366 IFS="$lt_save_ifs"
5367 test -z "$ac_dir" && ac_dir=.
5368 if test -f $ac_dir/${ac_tool_prefix}file; then
5369 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5370 if test -n "$file_magic_test_file"; then
5371 case $deplibs_check_method in
5372 "file_magic "*)
5373 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5376 $EGREP "$file_magic_regex" > /dev/null; then
5377 :
5378 else
5379 cat <<EOF 1>&2
5380
5381 *** Warning: the command libtool uses to detect shared libraries,
5382 *** $file_magic_cmd, produces output that libtool cannot recognize.
5383 *** The result is that libtool may fail to recognize shared libraries
5384 *** as such. This will affect the creation of libtool libraries that
5385 *** depend on shared libraries, but programs linked with such libtool
5386 *** libraries will work regardless of this problem. Nevertheless, you
5387 *** may want to report the problem to your system manager and/or to
5388 *** [email protected]
5389
5390 EOF
5391 fi ;;
5392 esac
5393 fi
5394 break
5395 fi
5396 done
5397 IFS="$lt_save_ifs"
5398 MAGIC_CMD="$lt_save_MAGIC_CMD"
5399 ;;
5400 esac
5401 fi
5402
5403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5404 if test -n "$MAGIC_CMD"; then
5405 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5406 echo "${ECHO_T}$MAGIC_CMD" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410 fi
5411
5412 if test -z "$lt_cv_path_MAGIC_CMD"; then
5413 if test -n "$ac_tool_prefix"; then
5414 echo "$as_me:$LINENO: checking for file" >&5
5415 echo $ECHO_N "checking for file... $ECHO_C" >&6
5416 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 case $MAGIC_CMD in
5420 [\\/*] | ?:[\\/]*)
5421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5422 ;;
5423 *)
5424 lt_save_MAGIC_CMD="$MAGIC_CMD"
5425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5427 for ac_dir in $ac_dummy; do
5428 IFS="$lt_save_ifs"
5429 test -z "$ac_dir" && ac_dir=.
5430 if test -f $ac_dir/file; then
5431 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5432 if test -n "$file_magic_test_file"; then
5433 case $deplibs_check_method in
5434 "file_magic "*)
5435 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5438 $EGREP "$file_magic_regex" > /dev/null; then
5439 :
5440 else
5441 cat <<EOF 1>&2
5442
5443 *** Warning: the command libtool uses to detect shared libraries,
5444 *** $file_magic_cmd, produces output that libtool cannot recognize.
5445 *** The result is that libtool may fail to recognize shared libraries
5446 *** as such. This will affect the creation of libtool libraries that
5447 *** depend on shared libraries, but programs linked with such libtool
5448 *** libraries will work regardless of this problem. Nevertheless, you
5449 *** may want to report the problem to your system manager and/or to
5450 *** [email protected]
5451
5452 EOF
5453 fi ;;
5454 esac
5455 fi
5456 break
5457 fi
5458 done
5459 IFS="$lt_save_ifs"
5460 MAGIC_CMD="$lt_save_MAGIC_CMD"
5461 ;;
5462 esac
5463 fi
5464
5465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5466 if test -n "$MAGIC_CMD"; then
5467 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5468 echo "${ECHO_T}$MAGIC_CMD" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471 echo "${ECHO_T}no" >&6
5472 fi
5473
5474 else
5475 MAGIC_CMD=:
5476 fi
5477 fi
5478
5479 fi
5480 ;;
5481 esac
5482
5483 enable_dlopen=no
5484 enable_win32_dll=no
5485
5486 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5487 if test "${enable_libtool_lock+set}" = set; then
5488 enableval="$enable_libtool_lock"
5489
5490 fi;
5491 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5492
5493
5494 # Check whether --with-pic or --without-pic was given.
5495 if test "${with_pic+set}" = set; then
5496 withval="$with_pic"
5497 pic_mode="$withval"
5498 else
5499 pic_mode=default
5500 fi;
5501 test -z "$pic_mode" && pic_mode=default
5502
5503 # Use C for the default configuration in the libtool script
5504 tagname=
5505 lt_save_CC="$CC"
5506 ac_ext=c
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511
5512
5513 # Source file extension for C test sources.
5514 ac_ext=c
5515
5516 # Object file extension for compiled C test sources.
5517 objext=o
5518 objext=$objext
5519
5520 # Code to be used in simple compile tests
5521 lt_simple_compile_test_code="int some_variable = 0;\n"
5522
5523 # Code to be used in simple link tests
5524 lt_simple_link_test_code='int main(){return(0);}\n'
5525
5526
5527 # If no C compiler was specified, use CC.
5528 LTCC=${LTCC-"$CC"}
5529
5530 # Allow CC to be a program name with arguments.
5531 compiler=$CC
5532
5533
5534 #
5535 # Check for any special shared library compilation flags.
5536 #
5537 lt_prog_cc_shlib=
5538 if test "$GCC" = no; then
5539 case $host_os in
5540 sco3.2v5*)
5541 lt_prog_cc_shlib='-belf'
5542 ;;
5543 esac
5544 fi
5545 if test -n "$lt_prog_cc_shlib"; then
5546 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5547 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5548 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5549 else
5550 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5551 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5552 lt_cv_prog_cc_can_build_shared=no
5553 fi
5554 fi
5555
5556
5557 #
5558 # Check to make sure the static flag actually works.
5559 #
5560 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5561 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5562 if test "${lt_prog_compiler_static_works+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 lt_prog_compiler_static_works=no
5566 save_LDFLAGS="$LDFLAGS"
5567 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5568 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5570 # The compiler can only warn and ignore the option if not recognized
5571 # So say no if there are warnings
5572 if test -s conftest.err; then
5573 # Append any errors to the config.log.
5574 cat conftest.err 1>&5
5575 else
5576 lt_prog_compiler_static_works=yes
5577 fi
5578 fi
5579 $rm conftest*
5580 LDFLAGS="$save_LDFLAGS"
5581
5582 fi
5583 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5584 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5585
5586 if test x"$lt_prog_compiler_static_works" = xyes; then
5587 :
5588 else
5589 lt_prog_compiler_static=
5590 fi
5591
5592
5593
5594 ## CAVEAT EMPTOR:
5595 ## There is no encapsulation within the following macros, do not change
5596 ## the running order or otherwise move them around unless you know exactly
5597 ## what you are doing...
5598
5599 lt_prog_compiler_no_builtin_flag=
5600
5601 if test "$GCC" = yes; then
5602 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5603
5604
5605 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5606 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5607 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 lt_cv_prog_compiler_rtti_exceptions=no
5611 ac_outfile=conftest.$ac_objext
5612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5613 lt_compiler_flag="-fno-rtti -fno-exceptions"
5614 # Insert the option either (1) after the last *FLAGS variable, or
5615 # (2) before a word containing "conftest.", or (3) at the end.
5616 # Note that $ac_compile itself does not contain backslashes and begins
5617 # with a dollar sign (not a hyphen), so the echo should work correctly.
5618 # The option is referenced via a variable to avoid confusing sed.
5619 lt_compile=`echo "$ac_compile" | $SED \
5620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5622 -e 's:$: $lt_compiler_flag:'`
5623 (eval echo "\"\$as_me:5623: $lt_compile\"" >&5)
5624 (eval "$lt_compile" 2>conftest.err)
5625 ac_status=$?
5626 cat conftest.err >&5
5627 echo "$as_me:5627: \$? = $ac_status" >&5
5628 if (exit $ac_status) && test -s "$ac_outfile"; then
5629 # The compiler can only warn and ignore the option if not recognized
5630 # So say no if there are warnings
5631 if test ! -s conftest.err; then
5632 lt_cv_prog_compiler_rtti_exceptions=yes
5633 fi
5634 fi
5635 $rm conftest*
5636
5637 fi
5638 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5639 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5640
5641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5642 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5643 else
5644 :
5645 fi
5646
5647 fi
5648
5649 lt_prog_compiler_wl=
5650 lt_prog_compiler_pic=
5651 lt_prog_compiler_static=
5652
5653 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5654 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5655
5656 if test "$GCC" = yes; then
5657 lt_prog_compiler_wl='-Wl,'
5658 lt_prog_compiler_static='-static'
5659
5660 case $host_os in
5661 aix*)
5662 # All AIX code is PIC.
5663 if test "$host_cpu" = ia64; then
5664 # AIX 5 now supports IA64 processor
5665 lt_prog_compiler_static='-Bstatic'
5666 fi
5667 ;;
5668
5669 amigaos*)
5670 # FIXME: we need at least 68020 code to build shared libraries, but
5671 # adding the `-m68020' flag to GCC prevents building anything better,
5672 # like `-m68040'.
5673 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5674 ;;
5675
5676 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5677 # PIC is the default for these OSes.
5678 ;;
5679
5680 mingw* | pw32* | os2*)
5681 # This hack is so that the source file can tell whether it is being
5682 # built for inclusion in a dll (and should export symbols for example).
5683 lt_prog_compiler_pic='-DDLL_EXPORT'
5684 ;;
5685
5686 darwin* | rhapsody*)
5687 # PIC is the default on this platform
5688 # Common symbols not allowed in MH_DYLIB files
5689 lt_prog_compiler_pic='-fno-common'
5690 ;;
5691
5692 msdosdjgpp*)
5693 # Just because we use GCC doesn't mean we suddenly get shared libraries
5694 # on systems that don't support them.
5695 lt_prog_compiler_can_build_shared=no
5696 enable_shared=no
5697 ;;
5698
5699 sysv4*MP*)
5700 if test -d /usr/nec; then
5701 lt_prog_compiler_pic=-Kconform_pic
5702 fi
5703 ;;
5704
5705 hpux*)
5706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5707 # not for PA HP-UX.
5708 case "$host_cpu" in
5709 hppa*64*|ia64*)
5710 # +Z the default
5711 ;;
5712 *)
5713 lt_prog_compiler_pic='-fPIC'
5714 ;;
5715 esac
5716 ;;
5717
5718 *)
5719 lt_prog_compiler_pic='-fPIC'
5720 ;;
5721 esac
5722 else
5723 # PORTME Check for flag to pass linker flags through the system compiler.
5724 case $host_os in
5725 aix*)
5726 lt_prog_compiler_wl='-Wl,'
5727 if test "$host_cpu" = ia64; then
5728 # AIX 5 now supports IA64 processor
5729 lt_prog_compiler_static='-Bstatic'
5730 else
5731 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5732 fi
5733 ;;
5734
5735 mingw* | pw32* | os2*)
5736 # This hack is so that the source file can tell whether it is being
5737 # built for inclusion in a dll (and should export symbols for example).
5738 lt_prog_compiler_pic='-DDLL_EXPORT'
5739 ;;
5740
5741 hpux9* | hpux10* | hpux11*)
5742 lt_prog_compiler_wl='-Wl,'
5743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5744 # not for PA HP-UX.
5745 case "$host_cpu" in
5746 hppa*64*|ia64*)
5747 # +Z the default
5748 ;;
5749 *)
5750 lt_prog_compiler_pic='+Z'
5751 ;;
5752 esac
5753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5754 lt_prog_compiler_static='${wl}-a ${wl}archive'
5755 ;;
5756
5757 irix5* | irix6* | nonstopux*)
5758 lt_prog_compiler_wl='-Wl,'
5759 # PIC (with -KPIC) is the default.
5760 lt_prog_compiler_static='-non_shared'
5761 ;;
5762
5763 newsos6)
5764 lt_prog_compiler_pic='-KPIC'
5765 lt_prog_compiler_static='-Bstatic'
5766 ;;
5767
5768 linux*)
5769 case $CC in
5770 icc* | ecc*)
5771 lt_prog_compiler_wl='-Wl,'
5772 lt_prog_compiler_pic='-KPIC'
5773 lt_prog_compiler_static='-static'
5774 ;;
5775 ccc*)
5776 lt_prog_compiler_wl='-Wl,'
5777 # All Alpha code is PIC.
5778 lt_prog_compiler_static='-non_shared'
5779 ;;
5780 esac
5781 ;;
5782
5783 osf3* | osf4* | osf5*)
5784 lt_prog_compiler_wl='-Wl,'
5785 # All OSF/1 code is PIC.
5786 lt_prog_compiler_static='-non_shared'
5787 ;;
5788
5789 sco3.2v5*)
5790 lt_prog_compiler_pic='-Kpic'
5791 lt_prog_compiler_static='-dn'
5792 ;;
5793
5794 solaris*)
5795 lt_prog_compiler_wl='-Wl,'
5796 lt_prog_compiler_pic='-KPIC'
5797 lt_prog_compiler_static='-Bstatic'
5798 ;;
5799
5800 sunos4*)
5801 lt_prog_compiler_wl='-Qoption ld '
5802 lt_prog_compiler_pic='-PIC'
5803 lt_prog_compiler_static='-Bstatic'
5804 ;;
5805
5806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5807 lt_prog_compiler_wl='-Wl,'
5808 lt_prog_compiler_pic='-KPIC'
5809 lt_prog_compiler_static='-Bstatic'
5810 ;;
5811
5812 sysv4*MP*)
5813 if test -d /usr/nec ;then
5814 lt_prog_compiler_pic='-Kconform_pic'
5815 lt_prog_compiler_static='-Bstatic'
5816 fi
5817 ;;
5818
5819 uts4*)
5820 lt_prog_compiler_pic='-pic'
5821 lt_prog_compiler_static='-Bstatic'
5822 ;;
5823
5824 *)
5825 lt_prog_compiler_can_build_shared=no
5826 ;;
5827 esac
5828 fi
5829
5830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5831 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5832
5833 #
5834 # Check to make sure the PIC flag actually works.
5835 #
5836 if test -n "$lt_prog_compiler_pic"; then
5837
5838 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5839 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5840 if test "${lt_prog_compiler_pic_works+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 lt_prog_compiler_pic_works=no
5844 ac_outfile=conftest.$ac_objext
5845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5846 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5847 # Insert the option either (1) after the last *FLAGS variable, or
5848 # (2) before a word containing "conftest.", or (3) at the end.
5849 # Note that $ac_compile itself does not contain backslashes and begins
5850 # with a dollar sign (not a hyphen), so the echo should work correctly.
5851 # The option is referenced via a variable to avoid confusing sed.
5852 lt_compile=`echo "$ac_compile" | $SED \
5853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5855 -e 's:$: $lt_compiler_flag:'`
5856 (eval echo "\"\$as_me:5856: $lt_compile\"" >&5)
5857 (eval "$lt_compile" 2>conftest.err)
5858 ac_status=$?
5859 cat conftest.err >&5
5860 echo "$as_me:5860: \$? = $ac_status" >&5
5861 if (exit $ac_status) && test -s "$ac_outfile"; then
5862 # The compiler can only warn and ignore the option if not recognized
5863 # So say no if there are warnings
5864 if test ! -s conftest.err; then
5865 lt_prog_compiler_pic_works=yes
5866 fi
5867 fi
5868 $rm conftest*
5869
5870 fi
5871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5872 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5873
5874 if test x"$lt_prog_compiler_pic_works" = xyes; then
5875 case $lt_prog_compiler_pic in
5876 "" | " "*) ;;
5877 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5878 esac
5879 else
5880 lt_prog_compiler_pic=
5881 lt_prog_compiler_can_build_shared=no
5882 fi
5883
5884 fi
5885 case "$host_os" in
5886 # For platforms which do not support PIC, -DPIC is meaningless:
5887 *djgpp*)
5888 lt_prog_compiler_pic=
5889 ;;
5890 *)
5891 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5892 ;;
5893 esac
5894
5895 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5897 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 lt_cv_prog_compiler_c_o=no
5901 $rm -r conftest 2>/dev/null
5902 mkdir conftest
5903 cd conftest
5904 mkdir out
5905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5906
5907 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5908 # that will create temporary files in the current directory regardless of
5909 # the output directory. Thus, making CWD read-only will cause this test
5910 # to fail, enabling locking or at least warning the user not to do parallel
5911 # builds.
5912 chmod -w .
5913
5914 lt_compiler_flag="-o out/conftest2.$ac_objext"
5915 # Insert the option either (1) after the last *FLAGS variable, or
5916 # (2) before a word containing "conftest.", or (3) at the end.
5917 # Note that $ac_compile itself does not contain backslashes and begins
5918 # with a dollar sign (not a hyphen), so the echo should work correctly.
5919 lt_compile=`echo "$ac_compile" | $SED \
5920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5922 -e 's:$: $lt_compiler_flag:'`
5923 (eval echo "\"\$as_me:5923: $lt_compile\"" >&5)
5924 (eval "$lt_compile" 2>out/conftest.err)
5925 ac_status=$?
5926 cat out/conftest.err >&5
5927 echo "$as_me:5927: \$? = $ac_status" >&5
5928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5929 then
5930 # The compiler can only warn and ignore the option if not recognized
5931 # So say no if there are warnings
5932 if test ! -s out/conftest.err; then
5933 lt_cv_prog_compiler_c_o=yes
5934 fi
5935 fi
5936 chmod u+w .
5937 $rm conftest*
5938 # SGI C++ compiler will create directory out/ii_files/ for
5939 # template instantiation
5940 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5941 $rm out/* && rmdir out
5942 cd ..
5943 rmdir conftest
5944 $rm conftest*
5945
5946 fi
5947 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5948 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5949
5950
5951 hard_links="nottested"
5952 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5953 # do not overwrite the value of need_locks provided by the user
5954 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5955 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5956 hard_links=yes
5957 $rm conftest*
5958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5959 touch conftest.a
5960 ln conftest.a conftest.b 2>&5 || hard_links=no
5961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5962 echo "$as_me:$LINENO: result: $hard_links" >&5
5963 echo "${ECHO_T}$hard_links" >&6
5964 if test "$hard_links" = no; then
5965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5966 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5967 need_locks=warn
5968 fi
5969 else
5970 need_locks=no
5971 fi
5972
5973 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5974 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5975
5976 runpath_var=
5977 allow_undefined_flag=
5978 enable_shared_with_static_runtimes=no
5979 archive_cmds=
5980 archive_expsym_cmds=
5981 old_archive_From_new_cmds=
5982 old_archive_from_expsyms_cmds=
5983 export_dynamic_flag_spec=
5984 whole_archive_flag_spec=
5985 thread_safe_flag_spec=
5986 hardcode_libdir_flag_spec=
5987 hardcode_libdir_flag_spec_ld=
5988 hardcode_libdir_separator=
5989 hardcode_direct=no
5990 hardcode_minus_L=no
5991 hardcode_shlibpath_var=unsupported
5992 link_all_deplibs=unknown
5993 hardcode_automatic=no
5994 module_cmds=
5995 module_expsym_cmds=
5996 always_export_symbols=no
5997 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5998 # include_expsyms should be a list of space-separated symbols to be *always*
5999 # included in the symbol list
6000 include_expsyms=
6001 # exclude_expsyms can be an extended regexp of symbols to exclude
6002 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6003 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6004 # as well as any symbol that contains `d'.
6005 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6006 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6007 # platforms (ab)use it in PIC code, but their linkers get confused if
6008 # the symbol is explicitly referenced. Since portable code cannot
6009 # rely on this symbol name, it's probably fine to never include it in
6010 # preloaded symbol tables.
6011 extract_expsyms_cmds=
6012
6013 case $host_os in
6014 cygwin* | mingw* | pw32*)
6015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6016 # When not using gcc, we currently assume that we are using
6017 # Microsoft Visual C++.
6018 if test "$GCC" != yes; then
6019 with_gnu_ld=no
6020 fi
6021 ;;
6022 openbsd*)
6023 with_gnu_ld=no
6024 ;;
6025 esac
6026
6027 ld_shlibs=yes
6028 if test "$with_gnu_ld" = yes; then
6029 # If archive_cmds runs LD, not CC, wlarc should be empty
6030 wlarc='${wl}'
6031
6032 # See if GNU ld supports shared libraries.
6033 case $host_os in
6034 aix3* | aix4* | aix5*)
6035 # On AIX/PPC, the GNU linker is very broken
6036 if test "$host_cpu" != ia64; then
6037 ld_shlibs=no
6038 cat <<EOF 1>&2
6039
6040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6041 *** to be unable to reliably create shared libraries on AIX.
6042 *** Therefore, libtool is disabling shared libraries support. If you
6043 *** really care for shared libraries, you may want to modify your PATH
6044 *** so that a non-GNU linker is found, and then restart.
6045
6046 EOF
6047 fi
6048 ;;
6049
6050 amigaos*)
6051 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)'
6052 hardcode_libdir_flag_spec='-L$libdir'
6053 hardcode_minus_L=yes
6054
6055 # Samuel A. Falvo II <[email protected]> reports
6056 # that the semantics of dynamic libraries on AmigaOS, at least up
6057 # to version 4, is to share data among multiple programs linked
6058 # with the same dynamic library. Since this doesn't match the
6059 # behavior of shared libraries on other platforms, we can't use
6060 # them.
6061 ld_shlibs=no
6062 ;;
6063
6064 beos*)
6065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6066 allow_undefined_flag=unsupported
6067 # Joseph Beckenbach <[email protected]> says some releases of gcc
6068 # support --undefined. This deserves some investigation. FIXME
6069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6070 else
6071 ld_shlibs=no
6072 fi
6073 ;;
6074
6075 cygwin* | mingw* | pw32*)
6076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6077 # as there is no search path for DLLs.
6078 hardcode_libdir_flag_spec='-L$libdir'
6079 allow_undefined_flag=unsupported
6080 always_export_symbols=no
6081 enable_shared_with_static_runtimes=yes
6082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6083
6084 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6086 # If the export-symbols file already is a .def file (1st line
6087 # is EXPORTS), use it as is; otherwise, prepend...
6088 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6089 cp $export_symbols $output_objdir/$soname.def;
6090 else
6091 echo EXPORTS > $output_objdir/$soname.def;
6092 cat $export_symbols >> $output_objdir/$soname.def;
6093 fi~
6094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6095 else
6096 ld_shlibs=no
6097 fi
6098 ;;
6099
6100 netbsd*)
6101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6102 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6103 wlarc=
6104 else
6105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6107 fi
6108 ;;
6109
6110 solaris* | sysv5*)
6111 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6112 ld_shlibs=no
6113 cat <<EOF 1>&2
6114
6115 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6116 *** create shared libraries on Solaris systems. Therefore, libtool
6117 *** is disabling shared libraries support. We urge you to upgrade GNU
6118 *** binutils to release 2.9.1 or newer. Another option is to modify
6119 *** your PATH or compiler configuration so that the native linker is
6120 *** used, and then restart.
6121
6122 EOF
6123 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6126 else
6127 ld_shlibs=no
6128 fi
6129 ;;
6130
6131 sunos4*)
6132 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6133 wlarc=
6134 hardcode_direct=yes
6135 hardcode_shlibpath_var=no
6136 ;;
6137
6138 linux*)
6139 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6140 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6141 archive_cmds="$tmp_archive_cmds"
6142 supports_anon_versioning=no
6143 case `$LD -v 2>/dev/null` in
6144 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6147 *\ 2.11.*) ;; # other 2.11 versions
6148 *) supports_anon_versioning=yes ;;
6149 esac
6150 if test $supports_anon_versioning = yes; then
6151 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6153 $echo "local: *; };" >> $output_objdir/$libname.ver~
6154 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6155 else
6156 archive_expsym_cmds="$tmp_archive_cmds"
6157 fi
6158 else
6159 ld_shlibs=no
6160 fi
6161 ;;
6162
6163 *)
6164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6167 else
6168 ld_shlibs=no
6169 fi
6170 ;;
6171 esac
6172
6173 if test "$ld_shlibs" = yes; then
6174 runpath_var=LD_RUN_PATH
6175 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6176 export_dynamic_flag_spec='${wl}--export-dynamic'
6177 # ancient GNU ld didn't support --whole-archive et. al.
6178 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6180 else
6181 whole_archive_flag_spec=
6182 fi
6183 fi
6184 else
6185 # PORTME fill in a description of your system's linker (not GNU ld)
6186 case $host_os in
6187 aix3*)
6188 allow_undefined_flag=unsupported
6189 always_export_symbols=yes
6190 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'
6191 # Note: this linker hardcodes the directories in LIBPATH if there
6192 # are no directories specified by -L.
6193 hardcode_minus_L=yes
6194 if test "$GCC" = yes && test -z "$link_static_flag"; then
6195 # Neither direct hardcoding nor static linking is supported with a
6196 # broken collect2.
6197 hardcode_direct=unsupported
6198 fi
6199 ;;
6200
6201 aix4* | aix5*)
6202 if test "$host_cpu" = ia64; then
6203 # On IA64, the linker does run time linking by default, so we don't
6204 # have to do anything special.
6205 aix_use_runtimelinking=no
6206 exp_sym_flag='-Bexport'
6207 no_entry_flag=""
6208 else
6209 # If we're using GNU nm, then we don't want the "-C" option.
6210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6211 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6212 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'
6213 else
6214 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'
6215 fi
6216 aix_use_runtimelinking=no
6217
6218 # Test if we are trying to use run time linking or normal
6219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6220 # need to do runtime linking.
6221 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6222 for ld_flag in $LDFLAGS; do
6223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6224 aix_use_runtimelinking=yes
6225 break
6226 fi
6227 done
6228 esac
6229
6230 exp_sym_flag='-bexport'
6231 no_entry_flag='-bnoentry'
6232 fi
6233
6234 # When large executables or shared objects are built, AIX ld can
6235 # have problems creating the table of contents. If linking a library
6236 # or program results in "error TOC overflow" add -mminimal-toc to
6237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6239
6240 archive_cmds=''
6241 hardcode_direct=yes
6242 hardcode_libdir_separator=':'
6243 link_all_deplibs=yes
6244
6245 if test "$GCC" = yes; then
6246 case $host_os in aix4.012|aix4.012.*)
6247 # We only want to do this on AIX 4.2 and lower, the check
6248 # below for broken collect2 doesn't work under 4.3+
6249 collect2name=`${CC} -print-prog-name=collect2`
6250 if test -f "$collect2name" && \
6251 strings "$collect2name" | grep resolve_lib_name >/dev/null
6252 then
6253 # We have reworked collect2
6254 hardcode_direct=yes
6255 else
6256 # We have old collect2
6257 hardcode_direct=unsupported
6258 # It fails to find uninstalled libraries when the uninstalled
6259 # path is not listed in the libpath. Setting hardcode_minus_L
6260 # to unsupported forces relinking
6261 hardcode_minus_L=yes
6262 hardcode_libdir_flag_spec='-L$libdir'
6263 hardcode_libdir_separator=
6264 fi
6265 esac
6266 shared_flag='-shared'
6267 else
6268 # not using gcc
6269 if test "$host_cpu" = ia64; then
6270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6271 # chokes on -Wl,-G. The following line is correct:
6272 shared_flag='-G'
6273 else
6274 if test "$aix_use_runtimelinking" = yes; then
6275 shared_flag='${wl}-G'
6276 else
6277 shared_flag='${wl}-bM:SRE'
6278 fi
6279 fi
6280 fi
6281
6282 # It seems that -bexpall does not export symbols beginning with
6283 # underscore (_), so it is better to generate a list of symbols to export.
6284 always_export_symbols=yes
6285 if test "$aix_use_runtimelinking" = yes; then
6286 # Warning - without using the other runtime loading flags (-brtl),
6287 # -berok will link without error, but may produce a broken library.
6288 allow_undefined_flag='-berok'
6289 # Determine the default libpath from the value encoded in an empty executable.
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296
6297 int
6298 main ()
6299 {
6300
6301 ;
6302 return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327
6328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6329 }'`
6330 # Check for a 64-bit object if we didn't find anything.
6331 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; }
6332 }'`; fi
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 fi
6338 rm -f conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6341
6342 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6343 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6344 else
6345 if test "$host_cpu" = ia64; then
6346 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6347 allow_undefined_flag="-z nodefs"
6348 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6349 else
6350 # Determine the default libpath from the value encoded in an empty executable.
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357
6358 int
6359 main ()
6360 {
6361
6362 ;
6363 return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest$ac_exeext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388
6389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6390 }'`
6391 # Check for a 64-bit object if we didn't find anything.
6392 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; }
6393 }'`; fi
6394 else
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 fi
6399 rm -f conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6402
6403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6404 # Warning - without using the other run time loading flags,
6405 # -berok will link without error, but may produce a broken library.
6406 no_undefined_flag=' ${wl}-bernotok'
6407 allow_undefined_flag=' ${wl}-berok'
6408 # -bexpall does not export symbols beginning with underscore (_)
6409 always_export_symbols=yes
6410 # Exported symbols can be pulled into shared objects from archives
6411 whole_archive_flag_spec=' '
6412 archive_cmds_need_lc=yes
6413 # This is similar to how AIX traditionally builds it's shared libraries.
6414 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6415 fi
6416 fi
6417 ;;
6418
6419 amigaos*)
6420 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)'
6421 hardcode_libdir_flag_spec='-L$libdir'
6422 hardcode_minus_L=yes
6423 # see comment about different semantics on the GNU ld section
6424 ld_shlibs=no
6425 ;;
6426
6427 bsdi4*)
6428 export_dynamic_flag_spec=-rdynamic
6429 ;;
6430
6431 cygwin* | mingw* | pw32*)
6432 # When not using gcc, we currently assume that we are using
6433 # Microsoft Visual C++.
6434 # hardcode_libdir_flag_spec is actually meaningless, as there is
6435 # no search path for DLLs.
6436 hardcode_libdir_flag_spec=' '
6437 allow_undefined_flag=unsupported
6438 # Tell ltmain to make .lib files, not .a files.
6439 libext=lib
6440 # Tell ltmain to make .dll files, not .so files.
6441 shrext=".dll"
6442 # FIXME: Setting linknames here is a bad hack.
6443 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6444 # The linker will automatically build a .lib file if we build a DLL.
6445 old_archive_From_new_cmds='true'
6446 # FIXME: Should let the user specify the lib program.
6447 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6448 fix_srcfile_path='`cygpath -w "$srcfile"`'
6449 enable_shared_with_static_runtimes=yes
6450 ;;
6451
6452 darwin* | rhapsody*)
6453 if test "$GXX" = yes ; then
6454 archive_cmds_need_lc=no
6455 case "$host_os" in
6456 rhapsody* | darwin1.[012])
6457 allow_undefined_flag='-undefined suppress'
6458 ;;
6459 *) # Darwin 1.3 on
6460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6461 allow_undefined_flag='-flat_namespace -undefined suppress'
6462 else
6463 case ${MACOSX_DEPLOYMENT_TARGET} in
6464 10.[012])
6465 allow_undefined_flag='-flat_namespace -undefined suppress'
6466 ;;
6467 10.*)
6468 allow_undefined_flag='-undefined dynamic_lookup'
6469 ;;
6470 esac
6471 fi
6472 ;;
6473 esac
6474 lt_int_apple_cc_single_mod=no
6475 output_verbose_link_cmd='echo'
6476 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6477 lt_int_apple_cc_single_mod=yes
6478 fi
6479 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6480 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6481 else
6482 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6483 fi
6484 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6486 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6487 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6488 else
6489 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6490 fi
6491 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}'
6492 hardcode_direct=no
6493 hardcode_automatic=yes
6494 hardcode_shlibpath_var=unsupported
6495 whole_archive_flag_spec='-all_load $convenience'
6496 link_all_deplibs=yes
6497 else
6498 ld_shlibs=no
6499 fi
6500 ;;
6501
6502 dgux*)
6503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6504 hardcode_libdir_flag_spec='-L$libdir'
6505 hardcode_shlibpath_var=no
6506 ;;
6507
6508 freebsd1*)
6509 ld_shlibs=no
6510 ;;
6511
6512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6513 # support. Future versions do this automatically, but an explicit c++rt0.o
6514 # does not break anything, and helps significantly (at the cost of a little
6515 # extra space).
6516 freebsd2.2*)
6517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6518 hardcode_libdir_flag_spec='-R$libdir'
6519 hardcode_direct=yes
6520 hardcode_shlibpath_var=no
6521 ;;
6522
6523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6524 freebsd2*)
6525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_direct=yes
6527 hardcode_minus_L=yes
6528 hardcode_shlibpath_var=no
6529 ;;
6530
6531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6532 freebsd* | kfreebsd*-gnu)
6533 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6534 hardcode_libdir_flag_spec='-R$libdir'
6535 hardcode_direct=yes
6536 hardcode_shlibpath_var=no
6537 ;;
6538
6539 hpux9*)
6540 if test "$GCC" = yes; then
6541 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'
6542 else
6543 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'
6544 fi
6545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6546 hardcode_libdir_separator=:
6547 hardcode_direct=yes
6548
6549 # hardcode_minus_L: Not really in the search PATH,
6550 # but as the default location of the library.
6551 hardcode_minus_L=yes
6552 export_dynamic_flag_spec='${wl}-E'
6553 ;;
6554
6555 hpux10* | hpux11*)
6556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6557 case "$host_cpu" in
6558 hppa*64*|ia64*)
6559 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6560 ;;
6561 *)
6562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6563 ;;
6564 esac
6565 else
6566 case "$host_cpu" in
6567 hppa*64*|ia64*)
6568 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6569 ;;
6570 *)
6571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6572 ;;
6573 esac
6574 fi
6575 if test "$with_gnu_ld" = no; then
6576 case "$host_cpu" in
6577 hppa*64*)
6578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6579 hardcode_libdir_flag_spec_ld='+b $libdir'
6580 hardcode_libdir_separator=:
6581 hardcode_direct=no
6582 hardcode_shlibpath_var=no
6583 ;;
6584 ia64*)
6585 hardcode_libdir_flag_spec='-L$libdir'
6586 hardcode_direct=no
6587 hardcode_shlibpath_var=no
6588
6589 # hardcode_minus_L: Not really in the search PATH,
6590 # but as the default location of the library.
6591 hardcode_minus_L=yes
6592 ;;
6593 *)
6594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6595 hardcode_libdir_separator=:
6596 hardcode_direct=yes
6597 export_dynamic_flag_spec='${wl}-E'
6598
6599 # hardcode_minus_L: Not really in the search PATH,
6600 # but as the default location of the library.
6601 hardcode_minus_L=yes
6602 ;;
6603 esac
6604 fi
6605 ;;
6606
6607 irix5* | irix6* | nonstopux*)
6608 if test "$GCC" = yes; then
6609 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'
6610 else
6611 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'
6612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6613 fi
6614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6615 hardcode_libdir_separator=:
6616 link_all_deplibs=yes
6617 ;;
6618
6619 netbsd*)
6620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6622 else
6623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6624 fi
6625 hardcode_libdir_flag_spec='-R$libdir'
6626 hardcode_direct=yes
6627 hardcode_shlibpath_var=no
6628 ;;
6629
6630 newsos6)
6631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6632 hardcode_direct=yes
6633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6634 hardcode_libdir_separator=:
6635 hardcode_shlibpath_var=no
6636 ;;
6637
6638 openbsd*)
6639 hardcode_direct=yes
6640 hardcode_shlibpath_var=no
6641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6644 export_dynamic_flag_spec='${wl}-E'
6645 else
6646 case $host_os in
6647 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6649 hardcode_libdir_flag_spec='-R$libdir'
6650 ;;
6651 *)
6652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6654 ;;
6655 esac
6656 fi
6657 ;;
6658
6659 os2*)
6660 hardcode_libdir_flag_spec='-L$libdir'
6661 hardcode_minus_L=yes
6662 allow_undefined_flag=unsupported
6663 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'
6664 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6665 ;;
6666
6667 osf3*)
6668 if test "$GCC" = yes; then
6669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6670 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'
6671 else
6672 allow_undefined_flag=' -expect_unresolved \*'
6673 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'
6674 fi
6675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6676 hardcode_libdir_separator=:
6677 ;;
6678
6679 osf4* | osf5*) # as osf3* with the addition of -msym flag
6680 if test "$GCC" = yes; then
6681 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6682 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'
6683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6684 else
6685 allow_undefined_flag=' -expect_unresolved \*'
6686 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'
6687 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6688 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6689
6690 # Both c and cxx compiler support -rpath directly
6691 hardcode_libdir_flag_spec='-rpath $libdir'
6692 fi
6693 hardcode_libdir_separator=:
6694 ;;
6695
6696 sco3.2v5*)
6697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6698 hardcode_shlibpath_var=no
6699 export_dynamic_flag_spec='${wl}-Bexport'
6700 runpath_var=LD_RUN_PATH
6701 hardcode_runpath_var=yes
6702 ;;
6703
6704 solaris*)
6705 no_undefined_flag=' -z text'
6706 if test "$GCC" = yes; then
6707 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6708 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6709 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6710 else
6711 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6712 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6714 fi
6715 hardcode_libdir_flag_spec='-R$libdir'
6716 hardcode_shlibpath_var=no
6717 case $host_os in
6718 solaris2.[0-5] | solaris2.[0-5].*) ;;
6719 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6721 esac
6722 link_all_deplibs=yes
6723 ;;
6724
6725 sunos4*)
6726 if test "x$host_vendor" = xsequent; then
6727 # Use $CC to link under sequent, because it throws in some extra .o
6728 # files that make .init and .fini sections work.
6729 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6730 else
6731 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6732 fi
6733 hardcode_libdir_flag_spec='-L$libdir'
6734 hardcode_direct=yes
6735 hardcode_minus_L=yes
6736 hardcode_shlibpath_var=no
6737 ;;
6738
6739 sysv4)
6740 case $host_vendor in
6741 sni)
6742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6743 hardcode_direct=yes # is this really true???
6744 ;;
6745 siemens)
6746 ## LD is ld it makes a PLAMLIB
6747 ## CC just makes a GrossModule.
6748 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6749 reload_cmds='$CC -r -o $output$reload_objs'
6750 hardcode_direct=no
6751 ;;
6752 motorola)
6753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6754 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6755 ;;
6756 esac
6757 runpath_var='LD_RUN_PATH'
6758 hardcode_shlibpath_var=no
6759 ;;
6760
6761 sysv4.3*)
6762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6763 hardcode_shlibpath_var=no
6764 export_dynamic_flag_spec='-Bexport'
6765 ;;
6766
6767 sysv4*MP*)
6768 if test -d /usr/nec; then
6769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6770 hardcode_shlibpath_var=no
6771 runpath_var=LD_RUN_PATH
6772 hardcode_runpath_var=yes
6773 ld_shlibs=yes
6774 fi
6775 ;;
6776
6777 sysv4.2uw2*)
6778 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6779 hardcode_direct=yes
6780 hardcode_minus_L=no
6781 hardcode_shlibpath_var=no
6782 hardcode_runpath_var=yes
6783 runpath_var=LD_RUN_PATH
6784 ;;
6785
6786 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6787 no_undefined_flag='${wl}-z ${wl}text'
6788 if test "$GCC" = yes; then
6789 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6790 else
6791 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6792 fi
6793 runpath_var='LD_RUN_PATH'
6794 hardcode_shlibpath_var=no
6795 ;;
6796
6797 sysv5*)
6798 no_undefined_flag=' -z text'
6799 # $CC -shared without GNU ld will not create a library from C++
6800 # object files and a static libstdc++, better avoid it by now
6801 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6802 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6804 hardcode_libdir_flag_spec=
6805 hardcode_shlibpath_var=no
6806 runpath_var='LD_RUN_PATH'
6807 ;;
6808
6809 uts4*)
6810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6811 hardcode_libdir_flag_spec='-L$libdir'
6812 hardcode_shlibpath_var=no
6813 ;;
6814
6815 *)
6816 ld_shlibs=no
6817 ;;
6818 esac
6819 fi
6820
6821 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6822 echo "${ECHO_T}$ld_shlibs" >&6
6823 test "$ld_shlibs" = no && can_build_shared=no
6824
6825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6826 if test "$GCC" = yes; then
6827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6828 fi
6829
6830 #
6831 # Do we need to explicitly link libc?
6832 #
6833 case "x$archive_cmds_need_lc" in
6834 x|xyes)
6835 # Assume -lc should be added
6836 archive_cmds_need_lc=yes
6837
6838 if test "$enable_shared" = yes && test "$GCC" = yes; then
6839 case $archive_cmds in
6840 *'~'*)
6841 # FIXME: we may have to deal with multi-command sequences.
6842 ;;
6843 '$CC '*)
6844 # Test whether the compiler implicitly links with -lc since on some
6845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6846 # to ld, don't add -lc before -lgcc.
6847 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6848 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6849 $rm conftest*
6850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6851
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } 2>conftest.err; then
6857 soname=conftest
6858 lib=conftest
6859 libobjs=conftest.$ac_objext
6860 deplibs=
6861 wl=$lt_prog_compiler_wl
6862 compiler_flags=-v
6863 linker_flags=-v
6864 verstring=
6865 output_objdir=.
6866 libname=conftest
6867 lt_save_allow_undefined_flag=$allow_undefined_flag
6868 allow_undefined_flag=
6869 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6870 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }
6874 then
6875 archive_cmds_need_lc=no
6876 else
6877 archive_cmds_need_lc=yes
6878 fi
6879 allow_undefined_flag=$lt_save_allow_undefined_flag
6880 else
6881 cat conftest.err 1>&5
6882 fi
6883 $rm conftest*
6884 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6885 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6886 ;;
6887 esac
6888 fi
6889 ;;
6890 esac
6891
6892 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6893 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6894 library_names_spec=
6895 libname_spec='lib$name'
6896 soname_spec=
6897 shrext=".so"
6898 postinstall_cmds=
6899 postuninstall_cmds=
6900 finish_cmds=
6901 finish_eval=
6902 shlibpath_var=
6903 shlibpath_overrides_runpath=unknown
6904 version_type=none
6905 dynamic_linker="$host_os ld.so"
6906 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6907 if test "$GCC" = yes; then
6908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6909 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6910 # if the path contains ";" then we assume it to be the separator
6911 # otherwise default to the standard path separator (i.e. ":") - it is
6912 # assumed that no part of a normal pathname contains ";" but that should
6913 # okay in the real world where ";" in dirpaths is itself problematic.
6914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6915 else
6916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6917 fi
6918 else
6919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6920 fi
6921 need_lib_prefix=unknown
6922 hardcode_into_libs=no
6923
6924 # when you set need_version to no, make sure it does not cause -set_version
6925 # flags to be left without arguments
6926 need_version=unknown
6927
6928 case $host_os in
6929 aix3*)
6930 version_type=linux
6931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6932 shlibpath_var=LIBPATH
6933
6934 # AIX 3 has no versioning support, so we append a major version to the name.
6935 soname_spec='${libname}${release}${shared_ext}$major'
6936 ;;
6937
6938 aix4* | aix5*)
6939 version_type=linux
6940 need_lib_prefix=no
6941 need_version=no
6942 hardcode_into_libs=yes
6943 if test "$host_cpu" = ia64; then
6944 # AIX 5 supports IA64
6945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6946 shlibpath_var=LD_LIBRARY_PATH
6947 else
6948 # With GCC up to 2.95.x, collect2 would create an import file
6949 # for dependence libraries. The import file would start with
6950 # the line `#! .'. This would cause the generated library to
6951 # depend on `.', always an invalid library. This was fixed in
6952 # development snapshots of GCC prior to 3.0.
6953 case $host_os in
6954 aix4 | aix4.[01] | aix4.[01].*)
6955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6956 echo ' yes '
6957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6958 :
6959 else
6960 can_build_shared=no
6961 fi
6962 ;;
6963 esac
6964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6965 # soname into executable. Probably we can add versioning support to
6966 # collect2, so additional links can be useful in future.
6967 if test "$aix_use_runtimelinking" = yes; then
6968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6969 # instead of lib<name>.a to let people know that these are not
6970 # typical AIX shared libraries.
6971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6972 else
6973 # We preserve .a as extension for shared libraries through AIX4.2
6974 # and later when we are not doing run time linking.
6975 library_names_spec='${libname}${release}.a $libname.a'
6976 soname_spec='${libname}${release}${shared_ext}$major'
6977 fi
6978 shlibpath_var=LIBPATH
6979 fi
6980 ;;
6981
6982 amigaos*)
6983 library_names_spec='$libname.ixlibrary $libname.a'
6984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6985 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'
6986 ;;
6987
6988 beos*)
6989 library_names_spec='${libname}${shared_ext}'
6990 dynamic_linker="$host_os ld.so"
6991 shlibpath_var=LIBRARY_PATH
6992 ;;
6993
6994 bsdi4*)
6995 version_type=linux
6996 need_version=no
6997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6998 soname_spec='${libname}${release}${shared_ext}$major'
6999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7000 shlibpath_var=LD_LIBRARY_PATH
7001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7003 # the default ld.so.conf also contains /usr/contrib/lib and
7004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7005 # libtool to hard-code these into programs
7006 ;;
7007
7008 cygwin* | mingw* | pw32*)
7009 version_type=windows
7010 shrext=".dll"
7011 need_version=no
7012 need_lib_prefix=no
7013
7014 case $GCC,$host_os in
7015 yes,cygwin* | yes,mingw* | yes,pw32*)
7016 library_names_spec='$libname.dll.a'
7017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7018 postinstall_cmds='base_file=`basename \${file}`~
7019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7020 dldir=$destdir/`dirname \$dlpath`~
7021 test -d \$dldir || mkdir -p \$dldir~
7022 $install_prog $dir/$dlname \$dldir/$dlname'
7023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7024 dlpath=$dir/\$dldll~
7025 $rm \$dlpath'
7026 shlibpath_overrides_runpath=yes
7027
7028 case $host_os in
7029 cygwin*)
7030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7033 ;;
7034 mingw*)
7035 # MinGW DLLs use traditional 'lib' prefix
7036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7039 # It is most probably a Windows format PATH printed by
7040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7041 # path with ; separators, and with drive letters. We can handle the
7042 # drive letters (cygwin fileutils understands them), so leave them,
7043 # especially as we might pass files found there to a mingw objdump,
7044 # which wouldn't understand a cygwinified path. Ahh.
7045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7046 else
7047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7048 fi
7049 ;;
7050 pw32*)
7051 # pw32 DLLs use 'pw' prefix rather than 'lib'
7052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7053 ;;
7054 esac
7055 ;;
7056
7057 *)
7058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7059 ;;
7060 esac
7061 dynamic_linker='Win32 ld.exe'
7062 # FIXME: first we should search . and the directory the executable is in
7063 shlibpath_var=PATH
7064 ;;
7065
7066 darwin* | rhapsody*)
7067 dynamic_linker="$host_os dyld"
7068 version_type=darwin
7069 need_lib_prefix=no
7070 need_version=no
7071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7072 soname_spec='${libname}${release}${major}$shared_ext'
7073 shlibpath_overrides_runpath=yes
7074 shlibpath_var=DYLD_LIBRARY_PATH
7075 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7077 if test "$GCC" = yes; then
7078 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"`
7079 else
7080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7081 fi
7082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7083 ;;
7084
7085 dgux*)
7086 version_type=linux
7087 need_lib_prefix=no
7088 need_version=no
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7090 soname_spec='${libname}${release}${shared_ext}$major'
7091 shlibpath_var=LD_LIBRARY_PATH
7092 ;;
7093
7094 freebsd1*)
7095 dynamic_linker=no
7096 ;;
7097
7098 kfreebsd*-gnu)
7099 version_type=linux
7100 need_lib_prefix=no
7101 need_version=no
7102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7103 soname_spec='${libname}${release}${shared_ext}$major'
7104 shlibpath_var=LD_LIBRARY_PATH
7105 shlibpath_overrides_runpath=no
7106 hardcode_into_libs=yes
7107 dynamic_linker='GNU ld.so'
7108 ;;
7109
7110 freebsd*)
7111 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7112 version_type=freebsd-$objformat
7113 case $version_type in
7114 freebsd-elf*)
7115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7116 need_version=no
7117 need_lib_prefix=no
7118 ;;
7119 freebsd-*)
7120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7121 need_version=yes
7122 ;;
7123 esac
7124 shlibpath_var=LD_LIBRARY_PATH
7125 case $host_os in
7126 freebsd2*)
7127 shlibpath_overrides_runpath=yes
7128 ;;
7129 freebsd3.01* | freebsdelf3.01*)
7130 shlibpath_overrides_runpath=yes
7131 hardcode_into_libs=yes
7132 ;;
7133 *) # from 3.2 on
7134 shlibpath_overrides_runpath=no
7135 hardcode_into_libs=yes
7136 ;;
7137 esac
7138 ;;
7139
7140 gnu*)
7141 version_type=linux
7142 need_lib_prefix=no
7143 need_version=no
7144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7145 soname_spec='${libname}${release}${shared_ext}$major'
7146 shlibpath_var=LD_LIBRARY_PATH
7147 hardcode_into_libs=yes
7148 ;;
7149
7150 hpux9* | hpux10* | hpux11*)
7151 # Give a soname corresponding to the major version so that dld.sl refuses to
7152 # link against other versions.
7153 version_type=sunos
7154 need_lib_prefix=no
7155 need_version=no
7156 case "$host_cpu" in
7157 ia64*)
7158 shrext='.so'
7159 hardcode_into_libs=yes
7160 dynamic_linker="$host_os dld.so"
7161 shlibpath_var=LD_LIBRARY_PATH
7162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7164 soname_spec='${libname}${release}${shared_ext}$major'
7165 if test "X$HPUX_IA64_MODE" = X32; then
7166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7167 else
7168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7169 fi
7170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7171 ;;
7172 hppa*64*)
7173 shrext='.sl'
7174 hardcode_into_libs=yes
7175 dynamic_linker="$host_os dld.sl"
7176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7179 soname_spec='${libname}${release}${shared_ext}$major'
7180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7182 ;;
7183 *)
7184 shrext='.sl'
7185 dynamic_linker="$host_os dld.sl"
7186 shlibpath_var=SHLIB_PATH
7187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7189 soname_spec='${libname}${release}${shared_ext}$major'
7190 ;;
7191 esac
7192 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7193 postinstall_cmds='chmod 555 $lib'
7194 ;;
7195
7196 irix5* | irix6* | nonstopux*)
7197 case $host_os in
7198 nonstopux*) version_type=nonstopux ;;
7199 *)
7200 if test "$lt_cv_prog_gnu_ld" = yes; then
7201 version_type=linux
7202 else
7203 version_type=irix
7204 fi ;;
7205 esac
7206 need_lib_prefix=no
7207 need_version=no
7208 soname_spec='${libname}${release}${shared_ext}$major'
7209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7210 case $host_os in
7211 irix5* | nonstopux*)
7212 libsuff= shlibsuff=
7213 ;;
7214 *)
7215 case $LD in # libtool.m4 will add one of these switches to LD
7216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7217 libsuff= shlibsuff= libmagic=32-bit;;
7218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7219 libsuff=32 shlibsuff=N32 libmagic=N32;;
7220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7221 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7222 *) libsuff= shlibsuff= libmagic=never-match;;
7223 esac
7224 ;;
7225 esac
7226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7227 shlibpath_overrides_runpath=no
7228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7230 hardcode_into_libs=yes
7231 ;;
7232
7233 # No shared lib support for Linux oldld, aout, or coff.
7234 linux*oldld* | linux*aout* | linux*coff*)
7235 dynamic_linker=no
7236 ;;
7237
7238 # This must be Linux ELF.
7239 linux*)
7240 version_type=linux
7241 need_lib_prefix=no
7242 need_version=no
7243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7244 soname_spec='${libname}${release}${shared_ext}$major'
7245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7246 shlibpath_var=LD_LIBRARY_PATH
7247 shlibpath_overrides_runpath=no
7248 # This implies no fast_install, which is unacceptable.
7249 # Some rework will be needed to allow for fast_install
7250 # before this can be enabled.
7251 hardcode_into_libs=yes
7252
7253 # We used to test for /lib/ld.so.1 and disable shared libraries on
7254 # powerpc, because MkLinux only supported shared libraries with the
7255 # GNU dynamic linker. Since this was broken with cross compilers,
7256 # most powerpc-linux boxes support dynamic linking these days and
7257 # people can always --disable-shared, the test was removed, and we
7258 # assume the GNU/Linux dynamic linker is in use.
7259 dynamic_linker='GNU/Linux ld.so'
7260 ;;
7261
7262 netbsd*)
7263 version_type=sunos
7264 need_lib_prefix=no
7265 need_version=no
7266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7269 dynamic_linker='NetBSD (a.out) ld.so'
7270 else
7271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7272 soname_spec='${libname}${release}${shared_ext}$major'
7273 dynamic_linker='NetBSD ld.elf_so'
7274 fi
7275 shlibpath_var=LD_LIBRARY_PATH
7276 shlibpath_overrides_runpath=yes
7277 hardcode_into_libs=yes
7278 ;;
7279
7280 newsos6)
7281 version_type=linux
7282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7283 shlibpath_var=LD_LIBRARY_PATH
7284 shlibpath_overrides_runpath=yes
7285 ;;
7286
7287 nto-qnx*)
7288 version_type=linux
7289 need_lib_prefix=no
7290 need_version=no
7291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7292 soname_spec='${libname}${release}${shared_ext}$major'
7293 shlibpath_var=LD_LIBRARY_PATH
7294 shlibpath_overrides_runpath=yes
7295 ;;
7296
7297 openbsd*)
7298 version_type=sunos
7299 need_lib_prefix=no
7300 need_version=no
7301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7303 shlibpath_var=LD_LIBRARY_PATH
7304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7305 case $host_os in
7306 openbsd2.[89] | openbsd2.[89].*)
7307 shlibpath_overrides_runpath=no
7308 ;;
7309 *)
7310 shlibpath_overrides_runpath=yes
7311 ;;
7312 esac
7313 else
7314 shlibpath_overrides_runpath=yes
7315 fi
7316 ;;
7317
7318 os2*)
7319 libname_spec='$name'
7320 shrext=".dll"
7321 need_lib_prefix=no
7322 library_names_spec='$libname${shared_ext} $libname.a'
7323 dynamic_linker='OS/2 ld.exe'
7324 shlibpath_var=LIBPATH
7325 ;;
7326
7327 osf3* | osf4* | osf5*)
7328 version_type=osf
7329 need_lib_prefix=no
7330 need_version=no
7331 soname_spec='${libname}${release}${shared_ext}$major'
7332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7333 shlibpath_var=LD_LIBRARY_PATH
7334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7336 ;;
7337
7338 sco3.2v5*)
7339 version_type=osf
7340 soname_spec='${libname}${release}${shared_ext}$major'
7341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7342 shlibpath_var=LD_LIBRARY_PATH
7343 ;;
7344
7345 solaris*)
7346 version_type=linux
7347 need_lib_prefix=no
7348 need_version=no
7349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7350 soname_spec='${libname}${release}${shared_ext}$major'
7351 shlibpath_var=LD_LIBRARY_PATH
7352 shlibpath_overrides_runpath=yes
7353 hardcode_into_libs=yes
7354 # ldd complains unless libraries are executable
7355 postinstall_cmds='chmod +x $lib'
7356 ;;
7357
7358 sunos4*)
7359 version_type=sunos
7360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7362 shlibpath_var=LD_LIBRARY_PATH
7363 shlibpath_overrides_runpath=yes
7364 if test "$with_gnu_ld" = yes; then
7365 need_lib_prefix=no
7366 fi
7367 need_version=yes
7368 ;;
7369
7370 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7371 version_type=linux
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
7375 case $host_vendor in
7376 sni)
7377 shlibpath_overrides_runpath=no
7378 need_lib_prefix=no
7379 export_dynamic_flag_spec='${wl}-Blargedynsym'
7380 runpath_var=LD_RUN_PATH
7381 ;;
7382 siemens)
7383 need_lib_prefix=no
7384 ;;
7385 motorola)
7386 need_lib_prefix=no
7387 need_version=no
7388 shlibpath_overrides_runpath=no
7389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7390 ;;
7391 esac
7392 ;;
7393
7394 sysv4*MP*)
7395 if test -d /usr/nec ;then
7396 version_type=linux
7397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7398 soname_spec='$libname${shared_ext}.$major'
7399 shlibpath_var=LD_LIBRARY_PATH
7400 fi
7401 ;;
7402
7403 uts4*)
7404 version_type=linux
7405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7406 soname_spec='${libname}${release}${shared_ext}$major'
7407 shlibpath_var=LD_LIBRARY_PATH
7408 ;;
7409
7410 *)
7411 dynamic_linker=no
7412 ;;
7413 esac
7414 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7415 echo "${ECHO_T}$dynamic_linker" >&6
7416 test "$dynamic_linker" = no && can_build_shared=no
7417
7418 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7419 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7420 hardcode_action=
7421 if test -n "$hardcode_libdir_flag_spec" || \
7422 test -n "$runpath_var " || \
7423 test "X$hardcode_automatic"="Xyes" ; then
7424
7425 # We can hardcode non-existant directories.
7426 if test "$hardcode_direct" != no &&
7427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7428 # have to relink, otherwise we might link with an installed library
7429 # when we should be linking with a yet-to-be-installed one
7430 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7431 test "$hardcode_minus_L" != no; then
7432 # Linking always hardcodes the temporary library directory.
7433 hardcode_action=relink
7434 else
7435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7436 hardcode_action=immediate
7437 fi
7438 else
7439 # We cannot hardcode anything, or else we can only hardcode existing
7440 # directories.
7441 hardcode_action=unsupported
7442 fi
7443 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7444 echo "${ECHO_T}$hardcode_action" >&6
7445
7446 if test "$hardcode_action" = relink; then
7447 # Fast installation is not supported
7448 enable_fast_install=no
7449 elif test "$shlibpath_overrides_runpath" = yes ||
7450 test "$enable_shared" = no; then
7451 # Fast installation is not necessary
7452 enable_fast_install=needless
7453 fi
7454
7455 striplib=
7456 old_striplib=
7457 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7458 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7459 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7460 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7461 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7462 echo "$as_me:$LINENO: result: yes" >&5
7463 echo "${ECHO_T}yes" >&6
7464 else
7465 # FIXME - insert some real tests, host_os isn't really good enough
7466 case $host_os in
7467 darwin*)
7468 if test -n "$STRIP" ; then
7469 striplib="$STRIP -x"
7470 echo "$as_me:$LINENO: result: yes" >&5
7471 echo "${ECHO_T}yes" >&6
7472 else
7473 echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7475 fi
7476 ;;
7477 *)
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480 ;;
7481 esac
7482 fi
7483
7484 if test "x$enable_dlopen" != xyes; then
7485 enable_dlopen=unknown
7486 enable_dlopen_self=unknown
7487 enable_dlopen_self_static=unknown
7488 else
7489 lt_cv_dlopen=no
7490 lt_cv_dlopen_libs=
7491
7492 case $host_os in
7493 beos*)
7494 lt_cv_dlopen="load_add_on"
7495 lt_cv_dlopen_libs=
7496 lt_cv_dlopen_self=yes
7497 ;;
7498
7499 mingw* | pw32*)
7500 lt_cv_dlopen="LoadLibrary"
7501 lt_cv_dlopen_libs=
7502 ;;
7503
7504 cygwin*)
7505 lt_cv_dlopen="dlopen"
7506 lt_cv_dlopen_libs=
7507 ;;
7508
7509 darwin*)
7510 # if libdl is installed we need to link against it
7511 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7512 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7513 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-ldl $LIBS"
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 #ifdef __cplusplus
7527 extern "C"
7528 #endif
7529 /* We use char because int might match the return type of a gcc2
7530 builtin and then its argument prototype would still apply. */
7531 char dlopen ();
7532 int
7533 main ()
7534 {
7535 dlopen ();
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542 (eval $ac_link) 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_lib_dl_dlopen=yes
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_cv_lib_dl_dlopen=no
7568 fi
7569 rm -f conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 LIBS=$ac_check_lib_save_LIBS
7572 fi
7573 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7574 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7575 if test $ac_cv_lib_dl_dlopen = yes; then
7576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7577 else
7578
7579 lt_cv_dlopen="dyld"
7580 lt_cv_dlopen_libs=
7581 lt_cv_dlopen_self=yes
7582
7583 fi
7584
7585 ;;
7586
7587 *)
7588 echo "$as_me:$LINENO: checking for shl_load" >&5
7589 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7590 if test "${ac_cv_func_shl_load+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7601 #define shl_load innocuous_shl_load
7602
7603 /* System header to define __stub macros and hopefully few prototypes,
7604 which can conflict with char shl_load (); below.
7605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7606 <limits.h> exists even on freestanding compilers. */
7607
7608 #ifdef __STDC__
7609 # include <limits.h>
7610 #else
7611 # include <assert.h>
7612 #endif
7613
7614 #undef shl_load
7615
7616 /* Override any gcc2 internal prototype to avoid an error. */
7617 #ifdef __cplusplus
7618 extern "C"
7619 {
7620 #endif
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7623 char shl_load ();
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7628 choke me
7629 #else
7630 char (*f) () = shl_load;
7631 #endif
7632 #ifdef __cplusplus
7633 }
7634 #endif
7635
7636 int
7637 main ()
7638 {
7639 return f != shl_load;
7640 ;
7641 return 0;
7642 }
7643 _ACEOF
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646 (eval $ac_link) 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
7653 { ac_try='test -z "$ac_c_werror_flag"
7654 || test ! -s conftest.err'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; } &&
7660 { ac_try='test -s conftest$ac_exeext'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7666 ac_cv_func_shl_load=yes
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_cv_func_shl_load=no
7672 fi
7673 rm -f conftest.err conftest.$ac_objext \
7674 conftest$ac_exeext conftest.$ac_ext
7675 fi
7676 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7677 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7678 if test $ac_cv_func_shl_load = yes; then
7679 lt_cv_dlopen="shl_load"
7680 else
7681 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7682 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7683 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 ac_check_lib_save_LIBS=$LIBS
7687 LIBS="-ldld $LIBS"
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694
7695 /* Override any gcc2 internal prototype to avoid an error. */
7696 #ifdef __cplusplus
7697 extern "C"
7698 #endif
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char shl_load ();
7702 int
7703 main ()
7704 {
7705 shl_load ();
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext conftest$ac_exeext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest$ac_exeext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 ac_cv_lib_dld_shl_load=yes
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ac_cv_lib_dld_shl_load=no
7738 fi
7739 rm -f conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 LIBS=$ac_check_lib_save_LIBS
7742 fi
7743 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7745 if test $ac_cv_lib_dld_shl_load = yes; then
7746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7747 else
7748 echo "$as_me:$LINENO: checking for dlopen" >&5
7749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7750 if test "${ac_cv_func_dlopen+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7761 #define dlopen innocuous_dlopen
7762
7763 /* System header to define __stub macros and hopefully few prototypes,
7764 which can conflict with char dlopen (); below.
7765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7766 <limits.h> exists even on freestanding compilers. */
7767
7768 #ifdef __STDC__
7769 # include <limits.h>
7770 #else
7771 # include <assert.h>
7772 #endif
7773
7774 #undef dlopen
7775
7776 /* Override any gcc2 internal prototype to avoid an error. */
7777 #ifdef __cplusplus
7778 extern "C"
7779 {
7780 #endif
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7783 char dlopen ();
7784 /* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7788 choke me
7789 #else
7790 char (*f) () = dlopen;
7791 #endif
7792 #ifdef __cplusplus
7793 }
7794 #endif
7795
7796 int
7797 main ()
7798 {
7799 return f != dlopen;
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_cv_func_dlopen=yes
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831 ac_cv_func_dlopen=no
7832 fi
7833 rm -f conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7835 fi
7836 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7837 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7838 if test $ac_cv_func_dlopen = yes; then
7839 lt_cv_dlopen="dlopen"
7840 else
7841 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7842 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 ac_check_lib_save_LIBS=$LIBS
7847 LIBS="-ldl $LIBS"
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854
7855 /* Override any gcc2 internal prototype to avoid an error. */
7856 #ifdef __cplusplus
7857 extern "C"
7858 #endif
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7861 char dlopen ();
7862 int
7863 main ()
7864 {
7865 dlopen ();
7866 ;
7867 return 0;
7868 }
7869 _ACEOF
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7872 (eval $ac_link) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_c_werror_flag"
7880 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_lib_dl_dlopen=yes
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 ac_cv_lib_dl_dlopen=no
7898 fi
7899 rm -f conftest.err conftest.$ac_objext \
7900 conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7904 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7905 if test $ac_cv_lib_dl_dlopen = yes; then
7906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7907 else
7908 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7909 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7910 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913 ac_check_lib_save_LIBS=$LIBS
7914 LIBS="-lsvld $LIBS"
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921
7922 /* Override any gcc2 internal prototype to avoid an error. */
7923 #ifdef __cplusplus
7924 extern "C"
7925 #endif
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928 char dlopen ();
7929 int
7930 main ()
7931 {
7932 dlopen ();
7933 ;
7934 return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_cv_lib_svld_dlopen=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 ac_cv_lib_svld_dlopen=no
7965 fi
7966 rm -f conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 LIBS=$ac_check_lib_save_LIBS
7969 fi
7970 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7972 if test $ac_cv_lib_svld_dlopen = yes; then
7973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7974 else
7975 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 ac_check_lib_save_LIBS=$LIBS
7981 LIBS="-ldld $LIBS"
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 #ifdef __cplusplus
7991 extern "C"
7992 #endif
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7995 char dld_link ();
7996 int
7997 main ()
7998 {
7999 dld_link ();
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_dld_dld_link=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ac_cv_lib_dld_dld_link=no
8032 fi
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8036 fi
8037 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8038 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8039 if test $ac_cv_lib_dld_dld_link = yes; then
8040 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8041 fi
8042
8043
8044 fi
8045
8046
8047 fi
8048
8049
8050 fi
8051
8052
8053 fi
8054
8055
8056 fi
8057
8058 ;;
8059 esac
8060
8061 if test "x$lt_cv_dlopen" != xno; then
8062 enable_dlopen=yes
8063 else
8064 enable_dlopen=no
8065 fi
8066
8067 case $lt_cv_dlopen in
8068 dlopen)
8069 save_CPPFLAGS="$CPPFLAGS"
8070 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8071
8072 save_LDFLAGS="$LDFLAGS"
8073 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8074
8075 save_LIBS="$LIBS"
8076 LIBS="$lt_cv_dlopen_libs $LIBS"
8077
8078 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8079 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8080 if test "${lt_cv_dlopen_self+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 if test "$cross_compiling" = yes; then :
8084 lt_cv_dlopen_self=cross
8085 else
8086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8087 lt_status=$lt_dlunknown
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8089 "configure"
8090 #include "confdefs.h"
8091
8092 #if HAVE_DLFCN_H
8093 #include <dlfcn.h>
8094 #endif
8095
8096 #include <stdio.h>
8097
8098 #ifdef RTLD_GLOBAL
8099 # define LT_DLGLOBAL RTLD_GLOBAL
8100 #else
8101 # ifdef DL_GLOBAL
8102 # define LT_DLGLOBAL DL_GLOBAL
8103 # else
8104 # define LT_DLGLOBAL 0
8105 # endif
8106 #endif
8107
8108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8109 find out it does not work in some platform. */
8110 #ifndef LT_DLLAZY_OR_NOW
8111 # ifdef RTLD_LAZY
8112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8113 # else
8114 # ifdef DL_LAZY
8115 # define LT_DLLAZY_OR_NOW DL_LAZY
8116 # else
8117 # ifdef RTLD_NOW
8118 # define LT_DLLAZY_OR_NOW RTLD_NOW
8119 # else
8120 # ifdef DL_NOW
8121 # define LT_DLLAZY_OR_NOW DL_NOW
8122 # else
8123 # define LT_DLLAZY_OR_NOW 0
8124 # endif
8125 # endif
8126 # endif
8127 # endif
8128 #endif
8129
8130 #ifdef __cplusplus
8131 extern "C" void exit (int);
8132 #endif
8133
8134 void fnord() { int i=42;}
8135 int main ()
8136 {
8137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8138 int status = $lt_dlunknown;
8139
8140 if (self)
8141 {
8142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8143 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8144 /* dlclose (self); */
8145 }
8146
8147 exit (status);
8148 }
8149 EOF
8150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151 (eval $ac_link) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8155 (./conftest; exit; ) 2>/dev/null
8156 lt_status=$?
8157 case x$lt_status in
8158 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8159 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8160 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8161 esac
8162 else :
8163 # compilation failed
8164 lt_cv_dlopen_self=no
8165 fi
8166 fi
8167 rm -fr conftest*
8168
8169
8170 fi
8171 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8172 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8173
8174 if test "x$lt_cv_dlopen_self" = xyes; then
8175 LDFLAGS="$LDFLAGS $link_static_flag"
8176 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8177 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8178 if test "${lt_cv_dlopen_self_static+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 if test "$cross_compiling" = yes; then :
8182 lt_cv_dlopen_self_static=cross
8183 else
8184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8185 lt_status=$lt_dlunknown
8186 cat > conftest.$ac_ext <<EOF
8187 #line 8187 "configure"
8188 #include "confdefs.h"
8189
8190 #if HAVE_DLFCN_H
8191 #include <dlfcn.h>
8192 #endif
8193
8194 #include <stdio.h>
8195
8196 #ifdef RTLD_GLOBAL
8197 # define LT_DLGLOBAL RTLD_GLOBAL
8198 #else
8199 # ifdef DL_GLOBAL
8200 # define LT_DLGLOBAL DL_GLOBAL
8201 # else
8202 # define LT_DLGLOBAL 0
8203 # endif
8204 #endif
8205
8206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8207 find out it does not work in some platform. */
8208 #ifndef LT_DLLAZY_OR_NOW
8209 # ifdef RTLD_LAZY
8210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8211 # else
8212 # ifdef DL_LAZY
8213 # define LT_DLLAZY_OR_NOW DL_LAZY
8214 # else
8215 # ifdef RTLD_NOW
8216 # define LT_DLLAZY_OR_NOW RTLD_NOW
8217 # else
8218 # ifdef DL_NOW
8219 # define LT_DLLAZY_OR_NOW DL_NOW
8220 # else
8221 # define LT_DLLAZY_OR_NOW 0
8222 # endif
8223 # endif
8224 # endif
8225 # endif
8226 #endif
8227
8228 #ifdef __cplusplus
8229 extern "C" void exit (int);
8230 #endif
8231
8232 void fnord() { int i=42;}
8233 int main ()
8234 {
8235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8236 int status = $lt_dlunknown;
8237
8238 if (self)
8239 {
8240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8241 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8242 /* dlclose (self); */
8243 }
8244
8245 exit (status);
8246 }
8247 EOF
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8253 (./conftest; exit; ) 2>/dev/null
8254 lt_status=$?
8255 case x$lt_status in
8256 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8257 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8258 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8259 esac
8260 else :
8261 # compilation failed
8262 lt_cv_dlopen_self_static=no
8263 fi
8264 fi
8265 rm -fr conftest*
8266
8267
8268 fi
8269 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8270 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8271 fi
8272
8273 CPPFLAGS="$save_CPPFLAGS"
8274 LDFLAGS="$save_LDFLAGS"
8275 LIBS="$save_LIBS"
8276 ;;
8277 esac
8278
8279 case $lt_cv_dlopen_self in
8280 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8281 *) enable_dlopen_self=unknown ;;
8282 esac
8283
8284 case $lt_cv_dlopen_self_static in
8285 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8286 *) enable_dlopen_self_static=unknown ;;
8287 esac
8288 fi
8289
8290
8291 # Report which librarie types wil actually be built
8292 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8293 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8294 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8295 echo "${ECHO_T}$can_build_shared" >&6
8296
8297 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8298 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8299 test "$can_build_shared" = "no" && enable_shared=no
8300
8301 # On AIX, shared libraries and static libraries use the same namespace, and
8302 # are all built from PIC.
8303 case "$host_os" in
8304 aix3*)
8305 test "$enable_shared" = yes && enable_static=no
8306 if test -n "$RANLIB"; then
8307 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8308 postinstall_cmds='$RANLIB $lib'
8309 fi
8310 ;;
8311
8312 aix4*)
8313 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8314 test "$enable_shared" = yes && enable_static=no
8315 fi
8316 ;;
8317 darwin* | rhapsody*)
8318 if test "$GCC" = yes; then
8319 archive_cmds_need_lc=no
8320 case "$host_os" in
8321 rhapsody* | darwin1.[012])
8322 allow_undefined_flag='-undefined suppress'
8323 ;;
8324 *) # Darwin 1.3 on
8325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8326 allow_undefined_flag='-flat_namespace -undefined suppress'
8327 else
8328 case ${MACOSX_DEPLOYMENT_TARGET} in
8329 10.[012])
8330 allow_undefined_flag='-flat_namespace -undefined suppress'
8331 ;;
8332 10.*)
8333 allow_undefined_flag='-undefined dynamic_lookup'
8334 ;;
8335 esac
8336 fi
8337 ;;
8338 esac
8339 output_verbose_link_cmd='echo'
8340 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8341 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8343 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}'
8344 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}'
8345 hardcode_direct=no
8346 hardcode_automatic=yes
8347 hardcode_shlibpath_var=unsupported
8348 whole_archive_flag_spec='-all_load $convenience'
8349 link_all_deplibs=yes
8350 else
8351 ld_shlibs=no
8352 fi
8353 ;;
8354 esac
8355 echo "$as_me:$LINENO: result: $enable_shared" >&5
8356 echo "${ECHO_T}$enable_shared" >&6
8357
8358 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8359 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8360 # Make sure either enable_shared or enable_static is yes.
8361 test "$enable_shared" = yes || enable_static=yes
8362 echo "$as_me:$LINENO: result: $enable_static" >&5
8363 echo "${ECHO_T}$enable_static" >&6
8364
8365 # The else clause should only fire when bootstrapping the
8366 # libtool distribution, otherwise you forgot to ship ltmain.sh
8367 # with your package, and you will get complaints that there are
8368 # no rules to generate ltmain.sh.
8369 if test -f "$ltmain"; then
8370 # See if we are running on zsh, and set the options which allow our commands through
8371 # without removal of \ escapes.
8372 if test -n "${ZSH_VERSION+set}" ; then
8373 setopt NO_GLOB_SUBST
8374 fi
8375 # Now quote all the things that may contain metacharacters while being
8376 # careful not to overquote the AC_SUBSTed values. We take copies of the
8377 # variables and quote the copies for generation of the libtool script.
8378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8379 SED SHELL STRIP \
8380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8382 deplibs_check_method reload_flag reload_cmds need_locks \
8383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8384 lt_cv_sys_global_symbol_to_c_name_address \
8385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8386 old_postinstall_cmds old_postuninstall_cmds \
8387 compiler \
8388 CC \
8389 LD \
8390 lt_prog_compiler_wl \
8391 lt_prog_compiler_pic \
8392 lt_prog_compiler_static \
8393 lt_prog_compiler_no_builtin_flag \
8394 export_dynamic_flag_spec \
8395 thread_safe_flag_spec \
8396 whole_archive_flag_spec \
8397 enable_shared_with_static_runtimes \
8398 old_archive_cmds \
8399 old_archive_from_new_cmds \
8400 predep_objects \
8401 postdep_objects \
8402 predeps \
8403 postdeps \
8404 compiler_lib_search_path \
8405 archive_cmds \
8406 archive_expsym_cmds \
8407 postinstall_cmds \
8408 postuninstall_cmds \
8409 old_archive_from_expsyms_cmds \
8410 allow_undefined_flag \
8411 no_undefined_flag \
8412 export_symbols_cmds \
8413 hardcode_libdir_flag_spec \
8414 hardcode_libdir_flag_spec_ld \
8415 hardcode_libdir_separator \
8416 hardcode_automatic \
8417 module_cmds \
8418 module_expsym_cmds \
8419 lt_cv_prog_compiler_c_o \
8420 exclude_expsyms \
8421 include_expsyms; do
8422
8423 case $var in
8424 old_archive_cmds | \
8425 old_archive_from_new_cmds | \
8426 archive_cmds | \
8427 archive_expsym_cmds | \
8428 module_cmds | \
8429 module_expsym_cmds | \
8430 old_archive_from_expsyms_cmds | \
8431 export_symbols_cmds | \
8432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8433 postinstall_cmds | postuninstall_cmds | \
8434 old_postinstall_cmds | old_postuninstall_cmds | \
8435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8436 # Double-quote double-evaled strings.
8437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8438 ;;
8439 *)
8440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8441 ;;
8442 esac
8443 done
8444
8445 case $lt_echo in
8446 *'\$0 --fallback-echo"')
8447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8448 ;;
8449 esac
8450
8451 cfgfile="${ofile}T"
8452 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8453 $rm -f "$cfgfile"
8454 { echo "$as_me:$LINENO: creating $ofile" >&5
8455 echo "$as_me: creating $ofile" >&6;}
8456
8457 cat <<__EOF__ >> "$cfgfile"
8458 #! $SHELL
8459
8460 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8461 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8463 #
8464 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8465 # Free Software Foundation, Inc.
8466 #
8467 # This file is part of GNU Libtool:
8468 # Originally by Gordon Matzigkeit <[email protected]>, 1996
8469 #
8470 # This program is free software; you can redistribute it and/or modify
8471 # it under the terms of the GNU General Public License as published by
8472 # the Free Software Foundation; either version 2 of the License, or
8473 # (at your option) any later version.
8474 #
8475 # This program is distributed in the hope that it will be useful, but
8476 # WITHOUT ANY WARRANTY; without even the implied warranty of
8477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8478 # General Public License for more details.
8479 #
8480 # You should have received a copy of the GNU General Public License
8481 # along with this program; if not, write to the Free Software
8482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8483 #
8484 # As a special exception to the GNU General Public License, if you
8485 # distribute this file as part of a program that contains a
8486 # configuration script generated by Autoconf, you may include it under
8487 # the same distribution terms that you use for the rest of that program.
8488
8489 # A sed program that does not truncate output.
8490 SED=$lt_SED
8491
8492 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8493 Xsed="$SED -e s/^X//"
8494
8495 # The HP-UX ksh and POSIX shell print the target directory to stdout
8496 # if CDPATH is set.
8497 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8498
8499 # The names of the tagged configurations supported by this script.
8500 available_tags=
8501
8502 # ### BEGIN LIBTOOL CONFIG
8503
8504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8505
8506 # Shell to use when invoking shell scripts.
8507 SHELL=$lt_SHELL
8508
8509 # Whether or not to build shared libraries.
8510 build_libtool_libs=$enable_shared
8511
8512 # Whether or not to build static libraries.
8513 build_old_libs=$enable_static
8514
8515 # Whether or not to add -lc for building shared libraries.
8516 build_libtool_need_lc=$archive_cmds_need_lc
8517
8518 # Whether or not to disallow shared libs when runtime libs are static
8519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8520
8521 # Whether or not to optimize for fast installation.
8522 fast_install=$enable_fast_install
8523
8524 # The host system.
8525 host_alias=$host_alias
8526 host=$host
8527
8528 # An echo program that does not interpret backslashes.
8529 echo=$lt_echo
8530
8531 # The archiver.
8532 AR=$lt_AR
8533 AR_FLAGS=$lt_AR_FLAGS
8534
8535 # A C compiler.
8536 LTCC=$lt_LTCC
8537
8538 # A language-specific compiler.
8539 CC=$lt_compiler
8540
8541 # Is the compiler the GNU C compiler?
8542 with_gcc=$GCC
8543
8544 # An ERE matcher.
8545 EGREP=$lt_EGREP
8546
8547 # The linker used to build libraries.
8548 LD=$lt_LD
8549
8550 # Whether we need hard or soft links.
8551 LN_S=$lt_LN_S
8552
8553 # A BSD-compatible nm program.
8554 NM=$lt_NM
8555
8556 # A symbol stripping program
8557 STRIP=$lt_STRIP
8558
8559 # Used to examine libraries when file_magic_cmd begins "file"
8560 MAGIC_CMD=$MAGIC_CMD
8561
8562 # Used on cygwin: DLL creation program.
8563 DLLTOOL="$DLLTOOL"
8564
8565 # Used on cygwin: object dumper.
8566 OBJDUMP="$OBJDUMP"
8567
8568 # Used on cygwin: assembler.
8569 AS="$AS"
8570
8571 # The name of the directory that contains temporary libtool files.
8572 objdir=$objdir
8573
8574 # How to create reloadable object files.
8575 reload_flag=$lt_reload_flag
8576 reload_cmds=$lt_reload_cmds
8577
8578 # How to pass a linker flag through the compiler.
8579 wl=$lt_lt_prog_compiler_wl
8580
8581 # Object file suffix (normally "o").
8582 objext="$ac_objext"
8583
8584 # Old archive suffix (normally "a").
8585 libext="$libext"
8586
8587 # Shared library suffix (normally ".so").
8588 shrext='$shrext'
8589
8590 # Executable file suffix (normally "").
8591 exeext="$exeext"
8592
8593 # Additional compiler flags for building library objects.
8594 pic_flag=$lt_lt_prog_compiler_pic
8595 pic_mode=$pic_mode
8596
8597 # What is the maximum length of a command?
8598 max_cmd_len=$lt_cv_sys_max_cmd_len
8599
8600 # Does compiler simultaneously support -c and -o options?
8601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8602
8603 # Must we lock files when doing compilation ?
8604 need_locks=$lt_need_locks
8605
8606 # Do we need the lib prefix for modules?
8607 need_lib_prefix=$need_lib_prefix
8608
8609 # Do we need a version for libraries?
8610 need_version=$need_version
8611
8612 # Whether dlopen is supported.
8613 dlopen_support=$enable_dlopen
8614
8615 # Whether dlopen of programs is supported.
8616 dlopen_self=$enable_dlopen_self
8617
8618 # Whether dlopen of statically linked programs is supported.
8619 dlopen_self_static=$enable_dlopen_self_static
8620
8621 # Compiler flag to prevent dynamic linking.
8622 link_static_flag=$lt_lt_prog_compiler_static
8623
8624 # Compiler flag to turn off builtin functions.
8625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8626
8627 # Compiler flag to allow reflexive dlopens.
8628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8629
8630 # Compiler flag to generate shared objects directly from archives.
8631 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8632
8633 # Compiler flag to generate thread-safe objects.
8634 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8635
8636 # Library versioning type.
8637 version_type=$version_type
8638
8639 # Format of library name prefix.
8640 libname_spec=$lt_libname_spec
8641
8642 # List of archive names. First name is the real one, the rest are links.
8643 # The last name is the one that the linker finds with -lNAME.
8644 library_names_spec=$lt_library_names_spec
8645
8646 # The coded name of the library, if different from the real name.
8647 soname_spec=$lt_soname_spec
8648
8649 # Commands used to build and install an old-style archive.
8650 RANLIB=$lt_RANLIB
8651 old_archive_cmds=$lt_old_archive_cmds
8652 old_postinstall_cmds=$lt_old_postinstall_cmds
8653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8654
8655 # Create an old-style archive from a shared archive.
8656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8657
8658 # Create a temporary old-style archive to link instead of a shared archive.
8659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8660
8661 # Commands used to build and install a shared archive.
8662 archive_cmds=$lt_archive_cmds
8663 archive_expsym_cmds=$lt_archive_expsym_cmds
8664 postinstall_cmds=$lt_postinstall_cmds
8665 postuninstall_cmds=$lt_postuninstall_cmds
8666
8667 # Commands used to build a loadable module (assumed same as above if empty)
8668 module_cmds=$lt_module_cmds
8669 module_expsym_cmds=$lt_module_expsym_cmds
8670
8671 # Commands to strip libraries.
8672 old_striplib=$lt_old_striplib
8673 striplib=$lt_striplib
8674
8675 # Dependencies to place before the objects being linked to create a
8676 # shared library.
8677 predep_objects=$lt_predep_objects
8678
8679 # Dependencies to place after the objects being linked to create a
8680 # shared library.
8681 postdep_objects=$lt_postdep_objects
8682
8683 # Dependencies to place before the objects being linked to create a
8684 # shared library.
8685 predeps=$lt_predeps
8686
8687 # Dependencies to place after the objects being linked to create a
8688 # shared library.
8689 postdeps=$lt_postdeps
8690
8691 # The library search path used internally by the compiler when linking
8692 # a shared library.
8693 compiler_lib_search_path=$lt_compiler_lib_search_path
8694
8695 # Method to check whether dependent libraries are shared objects.
8696 deplibs_check_method=$lt_deplibs_check_method
8697
8698 # Command to use when deplibs_check_method == file_magic.
8699 file_magic_cmd=$lt_file_magic_cmd
8700
8701 # Flag that allows shared libraries with undefined symbols to be built.
8702 allow_undefined_flag=$lt_allow_undefined_flag
8703
8704 # Flag that forces no undefined symbols.
8705 no_undefined_flag=$lt_no_undefined_flag
8706
8707 # Commands used to finish a libtool library installation in a directory.
8708 finish_cmds=$lt_finish_cmds
8709
8710 # Same as above, but a single script fragment to be evaled but not shown.
8711 finish_eval=$lt_finish_eval
8712
8713 # Take the output of nm and produce a listing of raw symbols and C names.
8714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8715
8716 # Transform the output of nm in a proper C declaration
8717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8718
8719 # Transform the output of nm in a C name address pair
8720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8721
8722 # This is the shared library runtime path variable.
8723 runpath_var=$runpath_var
8724
8725 # This is the shared library path variable.
8726 shlibpath_var=$shlibpath_var
8727
8728 # Is shlibpath searched before the hard-coded library search path?
8729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8730
8731 # How to hardcode a shared library path into an executable.
8732 hardcode_action=$hardcode_action
8733
8734 # Whether we should hardcode library paths into libraries.
8735 hardcode_into_libs=$hardcode_into_libs
8736
8737 # Flag to hardcode \$libdir into a binary during linking.
8738 # This must work even if \$libdir does not exist.
8739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8740
8741 # If ld is used when linking, flag to hardcode \$libdir into
8742 # a binary during linking. This must work even if \$libdir does
8743 # not exist.
8744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8745
8746 # Whether we need a single -rpath flag with a separated argument.
8747 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8748
8749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8750 # resulting binary.
8751 hardcode_direct=$hardcode_direct
8752
8753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8754 # resulting binary.
8755 hardcode_minus_L=$hardcode_minus_L
8756
8757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8758 # the resulting binary.
8759 hardcode_shlibpath_var=$hardcode_shlibpath_var
8760
8761 # Set to yes if building a shared library automatically hardcodes DIR into the library
8762 # and all subsequent libraries and executables linked against it.
8763 hardcode_automatic=$hardcode_automatic
8764
8765 # Variables whose values should be saved in libtool wrapper scripts and
8766 # restored at relink time.
8767 variables_saved_for_relink="$variables_saved_for_relink"
8768
8769 # Whether libtool must link a program against all its dependency libraries.
8770 link_all_deplibs=$link_all_deplibs
8771
8772 # Compile-time system search path for libraries
8773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8774
8775 # Run-time system search path for libraries
8776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8777
8778 # Fix the shell variable \$srcfile for the compiler.
8779 fix_srcfile_path="$fix_srcfile_path"
8780
8781 # Set to yes if exported symbols are required.
8782 always_export_symbols=$always_export_symbols
8783
8784 # The commands to list exported symbols.
8785 export_symbols_cmds=$lt_export_symbols_cmds
8786
8787 # The commands to extract the exported symbol list from a shared archive.
8788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8789
8790 # Symbols that should not be listed in the preloaded symbols.
8791 exclude_expsyms=$lt_exclude_expsyms
8792
8793 # Symbols that must always be exported.
8794 include_expsyms=$lt_include_expsyms
8795
8796 # ### END LIBTOOL CONFIG
8797
8798 __EOF__
8799
8800
8801 case $host_os in
8802 aix3*)
8803 cat <<\EOF >> "$cfgfile"
8804
8805 # AIX sometimes has problems with the GCC collect2 program. For some
8806 # reason, if we set the COLLECT_NAMES environment variable, the problems
8807 # vanish in a puff of smoke.
8808 if test "X${COLLECT_NAMES+set}" != Xset; then
8809 COLLECT_NAMES=
8810 export COLLECT_NAMES
8811 fi
8812 EOF
8813 ;;
8814 esac
8815
8816 # We use sed instead of cat because bash on DJGPP gets confused if
8817 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8818 # text mode, it properly converts lines to CR/LF. This bash problem
8819 # is reportedly fixed, but why not run on old versions too?
8820 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8821
8822 mv -f "$cfgfile" "$ofile" || \
8823 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8824 chmod +x "$ofile"
8825
8826 else
8827 # If there is no Makefile yet, we rely on a make rule to execute
8828 # `config.status --recheck' to rerun these tests and create the
8829 # libtool script then.
8830 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8831 if test -f "$ltmain_in"; then
8832 test -f Makefile && make "$ltmain"
8833 fi
8834 fi
8835
8836
8837 ac_ext=c
8838 ac_cpp='$CPP $CPPFLAGS'
8839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8842
8843 CC="$lt_save_CC"
8844
8845
8846 # Check whether --with-tags or --without-tags was given.
8847 if test "${with_tags+set}" = set; then
8848 withval="$with_tags"
8849 tagnames="$withval"
8850 fi;
8851
8852 if test -f "$ltmain" && test -n "$tagnames"; then
8853 if test ! -f "${ofile}"; then
8854 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8855 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8856 fi
8857
8858 if test -z "$LTCC"; then
8859 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8860 if test -z "$LTCC"; then
8861 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8862 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8863 else
8864 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8865 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8866 fi
8867 fi
8868
8869 # Extract list of available tagged configurations in $ofile.
8870 # Note that this assumes the entire list is on one line.
8871 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8872
8873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8874 for tagname in $tagnames; do
8875 IFS="$lt_save_ifs"
8876 # Check whether tagname contains only valid characters
8877 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8878 "") ;;
8879 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8880 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8881 { (exit 1); exit 1; }; }
8882 ;;
8883 esac
8884
8885 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8886 then
8887 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8888 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8889 { (exit 1); exit 1; }; }
8890 fi
8891
8892 # Update the list of available tags.
8893 if test -n "$tagname"; then
8894 echo appending configuration tag \"$tagname\" to $ofile
8895
8896 case $tagname in
8897 CXX)
8898 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8899 ac_ext=cc
8900 ac_cpp='$CXXCPP $CPPFLAGS'
8901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8904
8905
8906
8907
8908 archive_cmds_need_lc_CXX=no
8909 allow_undefined_flag_CXX=
8910 always_export_symbols_CXX=no
8911 archive_expsym_cmds_CXX=
8912 export_dynamic_flag_spec_CXX=
8913 hardcode_direct_CXX=no
8914 hardcode_libdir_flag_spec_CXX=
8915 hardcode_libdir_flag_spec_ld_CXX=
8916 hardcode_libdir_separator_CXX=
8917 hardcode_minus_L_CXX=no
8918 hardcode_automatic_CXX=no
8919 module_cmds_CXX=
8920 module_expsym_cmds_CXX=
8921 link_all_deplibs_CXX=unknown
8922 old_archive_cmds_CXX=$old_archive_cmds
8923 no_undefined_flag_CXX=
8924 whole_archive_flag_spec_CXX=
8925 enable_shared_with_static_runtimes_CXX=no
8926
8927 # Dependencies to place before and after the object being linked:
8928 predep_objects_CXX=
8929 postdep_objects_CXX=
8930 predeps_CXX=
8931 postdeps_CXX=
8932 compiler_lib_search_path_CXX=
8933
8934 # Source file extension for C++ test sources.
8935 ac_ext=cc
8936
8937 # Object file extension for compiled C++ test sources.
8938 objext=o
8939 objext_CXX=$objext
8940
8941 # Code to be used in simple compile tests
8942 lt_simple_compile_test_code="int some_variable = 0;\n"
8943
8944 # Code to be used in simple link tests
8945 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8946
8947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8948
8949 # If no C compiler was specified, use CC.
8950 LTCC=${LTCC-"$CC"}
8951
8952 # Allow CC to be a program name with arguments.
8953 compiler=$CC
8954
8955
8956 # Allow CC to be a program name with arguments.
8957 lt_save_CC=$CC
8958 lt_save_LD=$LD
8959 lt_save_GCC=$GCC
8960 GCC=$GXX
8961 lt_save_with_gnu_ld=$with_gnu_ld
8962 lt_save_path_LD=$lt_cv_path_LD
8963 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8964 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8965 else
8966 unset lt_cv_prog_gnu_ld
8967 fi
8968 if test -n "${lt_cv_path_LDCXX+set}"; then
8969 lt_cv_path_LD=$lt_cv_path_LDCXX
8970 else
8971 unset lt_cv_path_LD
8972 fi
8973 test -z "${LDCXX+set}" || LD=$LDCXX
8974 CC=${CXX-"c++"}
8975 compiler=$CC
8976 compiler_CXX=$CC
8977 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8978
8979 # We don't want -fno-exception wen compiling C++ code, so set the
8980 # no_builtin_flag separately
8981 if test "$GXX" = yes; then
8982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8983 else
8984 lt_prog_compiler_no_builtin_flag_CXX=
8985 fi
8986
8987 if test "$GXX" = yes; then
8988 # Set up default GNU C++ configuration
8989
8990
8991 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8992 if test "${with_gnu_ld+set}" = set; then
8993 withval="$with_gnu_ld"
8994 test "$withval" = no || with_gnu_ld=yes
8995 else
8996 with_gnu_ld=no
8997 fi;
8998 ac_prog=ld
8999 if test "$GCC" = yes; then
9000 # Check if gcc -print-prog-name=ld gives a path.
9001 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9002 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9003 case $host in
9004 *-*-mingw*)
9005 # gcc leaves a trailing carriage return which upsets mingw
9006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9007 *)
9008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9009 esac
9010 case $ac_prog in
9011 # Accept absolute paths.
9012 [\\/]* | ?:[\\/]*)
9013 re_direlt='/[^/][^/]*/\.\./'
9014 # Canonicalize the pathname of ld
9015 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9017 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9018 done
9019 test -z "$LD" && LD="$ac_prog"
9020 ;;
9021 "")
9022 # If it fails, then pretend we aren't using GCC.
9023 ac_prog=ld
9024 ;;
9025 *)
9026 # If it is relative, then search for the first ld in PATH.
9027 with_gnu_ld=unknown
9028 ;;
9029 esac
9030 elif test "$with_gnu_ld" = yes; then
9031 echo "$as_me:$LINENO: checking for GNU ld" >&5
9032 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9033 else
9034 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9035 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9036 fi
9037 if test "${lt_cv_path_LD+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 if test -z "$LD"; then
9041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9042 for ac_dir in $PATH; do
9043 IFS="$lt_save_ifs"
9044 test -z "$ac_dir" && ac_dir=.
9045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9046 lt_cv_path_LD="$ac_dir/$ac_prog"
9047 # Check to see if the program is GNU ld. I'd rather use --version,
9048 # but apparently some GNU ld's only accept -v.
9049 # Break only if it was the GNU/non-GNU ld that we prefer.
9050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9051 *GNU* | *'with BFD'*)
9052 test "$with_gnu_ld" != no && break
9053 ;;
9054 *)
9055 test "$with_gnu_ld" != yes && break
9056 ;;
9057 esac
9058 fi
9059 done
9060 IFS="$lt_save_ifs"
9061 else
9062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9063 fi
9064 fi
9065
9066 LD="$lt_cv_path_LD"
9067 if test -n "$LD"; then
9068 echo "$as_me:$LINENO: result: $LD" >&5
9069 echo "${ECHO_T}$LD" >&6
9070 else
9071 echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6
9073 fi
9074 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9075 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9076 { (exit 1); exit 1; }; }
9077 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9078 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9079 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9083 case `$LD -v 2>&1 </dev/null` in
9084 *GNU* | *'with BFD'*)
9085 lt_cv_prog_gnu_ld=yes
9086 ;;
9087 *)
9088 lt_cv_prog_gnu_ld=no
9089 ;;
9090 esac
9091 fi
9092 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9093 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9094 with_gnu_ld=$lt_cv_prog_gnu_ld
9095
9096
9097
9098 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9099 # archiving commands below assume that GNU ld is being used.
9100 if test "$with_gnu_ld" = yes; then
9101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102 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'
9103
9104 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9106
9107 # If archive_cmds runs LD, not CC, wlarc should be empty
9108 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9109 # investigate it a little bit more. (MM)
9110 wlarc='${wl}'
9111
9112 # ancient GNU ld didn't support --whole-archive et. al.
9113 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9114 grep 'no-whole-archive' > /dev/null; then
9115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9116 else
9117 whole_archive_flag_spec_CXX=
9118 fi
9119 else
9120 with_gnu_ld=no
9121 wlarc=
9122
9123 # A generic and very simple default shared library creation
9124 # command for GNU C++ for the case where it uses the native
9125 # linker, instead of GNU ld. If possible, this setting should
9126 # overridden to take advantage of the native linker features on
9127 # the platform it is being used on.
9128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9129 fi
9130
9131 # Commands to make compiler produce verbose output that lists
9132 # what "hidden" libraries, object files and flags are used when
9133 # linking a shared library.
9134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9135
9136 else
9137 GXX=no
9138 with_gnu_ld=no
9139 wlarc=
9140 fi
9141
9142 # PORTME: fill in a description of your system's C++ link characteristics
9143 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9145 ld_shlibs_CXX=yes
9146 case $host_os in
9147 aix3*)
9148 # FIXME: insert proper C++ library support
9149 ld_shlibs_CXX=no
9150 ;;
9151 aix4* | aix5*)
9152 if test "$host_cpu" = ia64; then
9153 # On IA64, the linker does run time linking by default, so we don't
9154 # have to do anything special.
9155 aix_use_runtimelinking=no
9156 exp_sym_flag='-Bexport'
9157 no_entry_flag=""
9158 else
9159 aix_use_runtimelinking=no
9160
9161 # Test if we are trying to use run time linking or normal
9162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9163 # need to do runtime linking.
9164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9165 for ld_flag in $LDFLAGS; do
9166 case $ld_flag in
9167 *-brtl*)
9168 aix_use_runtimelinking=yes
9169 break
9170 ;;
9171 esac
9172 done
9173 esac
9174
9175 exp_sym_flag='-bexport'
9176 no_entry_flag='-bnoentry'
9177 fi
9178
9179 # When large executables or shared objects are built, AIX ld can
9180 # have problems creating the table of contents. If linking a library
9181 # or program results in "error TOC overflow" add -mminimal-toc to
9182 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9183 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9184
9185 archive_cmds_CXX=''
9186 hardcode_direct_CXX=yes
9187 hardcode_libdir_separator_CXX=':'
9188 link_all_deplibs_CXX=yes
9189
9190 if test "$GXX" = yes; then
9191 case $host_os in aix4.012|aix4.012.*)
9192 # We only want to do this on AIX 4.2 and lower, the check
9193 # below for broken collect2 doesn't work under 4.3+
9194 collect2name=`${CC} -print-prog-name=collect2`
9195 if test -f "$collect2name" && \
9196 strings "$collect2name" | grep resolve_lib_name >/dev/null
9197 then
9198 # We have reworked collect2
9199 hardcode_direct_CXX=yes
9200 else
9201 # We have old collect2
9202 hardcode_direct_CXX=unsupported
9203 # It fails to find uninstalled libraries when the uninstalled
9204 # path is not listed in the libpath. Setting hardcode_minus_L
9205 # to unsupported forces relinking
9206 hardcode_minus_L_CXX=yes
9207 hardcode_libdir_flag_spec_CXX='-L$libdir'
9208 hardcode_libdir_separator_CXX=
9209 fi
9210 esac
9211 shared_flag='-shared'
9212 else
9213 # not using gcc
9214 if test "$host_cpu" = ia64; then
9215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9216 # chokes on -Wl,-G. The following line is correct:
9217 shared_flag='-G'
9218 else
9219 if test "$aix_use_runtimelinking" = yes; then
9220 shared_flag='${wl}-G'
9221 else
9222 shared_flag='${wl}-bM:SRE'
9223 fi
9224 fi
9225 fi
9226
9227 # It seems that -bexpall does not export symbols beginning with
9228 # underscore (_), so it is better to generate a list of symbols to export.
9229 always_export_symbols_CXX=yes
9230 if test "$aix_use_runtimelinking" = yes; then
9231 # Warning - without using the other runtime loading flags (-brtl),
9232 # -berok will link without error, but may produce a broken library.
9233 allow_undefined_flag_CXX='-berok'
9234 # Determine the default libpath from the value encoded in an empty executable.
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241
9242 int
9243 main ()
9244 {
9245
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_cxx_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272
9273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9274 }'`
9275 # Check for a 64-bit object if we didn't find anything.
9276 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; }
9277 }'`; fi
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282 fi
9283 rm -f conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9286
9287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9288
9289 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9290 else
9291 if test "$host_cpu" = ia64; then
9292 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9293 allow_undefined_flag_CXX="-z nodefs"
9294 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9295 else
9296 # Determine the default libpath from the value encoded in an empty executable.
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303
9304 int
9305 main ()
9306 {
9307
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_cxx_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334
9335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9336 }'`
9337 # Check for a 64-bit object if we didn't find anything.
9338 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; }
9339 }'`; fi
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344 fi
9345 rm -f conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9348
9349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9350 # Warning - without using the other run time loading flags,
9351 # -berok will link without error, but may produce a broken library.
9352 no_undefined_flag_CXX=' ${wl}-bernotok'
9353 allow_undefined_flag_CXX=' ${wl}-berok'
9354 # -bexpall does not export symbols beginning with underscore (_)
9355 always_export_symbols_CXX=yes
9356 # Exported symbols can be pulled into shared objects from archives
9357 whole_archive_flag_spec_CXX=' '
9358 archive_cmds_need_lc_CXX=yes
9359 # This is similar to how AIX traditionally builds it's shared libraries.
9360 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9361 fi
9362 fi
9363 ;;
9364 chorus*)
9365 case $cc_basename in
9366 *)
9367 # FIXME: insert proper C++ library support
9368 ld_shlibs_CXX=no
9369 ;;
9370 esac
9371 ;;
9372
9373 cygwin* | mingw* | pw32*)
9374 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9375 # as there is no search path for DLLs.
9376 hardcode_libdir_flag_spec_CXX='-L$libdir'
9377 allow_undefined_flag_CXX=unsupported
9378 always_export_symbols_CXX=no
9379 enable_shared_with_static_runtimes_CXX=yes
9380
9381 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9382 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9383 # If the export-symbols file already is a .def file (1st line
9384 # is EXPORTS), use it as is; otherwise, prepend...
9385 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9386 cp $export_symbols $output_objdir/$soname.def;
9387 else
9388 echo EXPORTS > $output_objdir/$soname.def;
9389 cat $export_symbols >> $output_objdir/$soname.def;
9390 fi~
9391 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9392 else
9393 ld_shlibs_CXX=no
9394 fi
9395 ;;
9396
9397 darwin* | rhapsody*)
9398 if test "$GXX" = yes; then
9399 archive_cmds_need_lc_CXX=no
9400 case "$host_os" in
9401 rhapsody* | darwin1.[012])
9402 allow_undefined_flag_CXX='-undefined suppress'
9403 ;;
9404 *) # Darwin 1.3 on
9405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9406 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9407 else
9408 case ${MACOSX_DEPLOYMENT_TARGET} in
9409 10.[012])
9410 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9411 ;;
9412 10.*)
9413 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9414 ;;
9415 esac
9416 fi
9417 ;;
9418 esac
9419 lt_int_apple_cc_single_mod=no
9420 output_verbose_link_cmd='echo'
9421 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9422 lt_int_apple_cc_single_mod=yes
9423 fi
9424 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9425 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9426 else
9427 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9428 fi
9429 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9430
9431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9432 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9433 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}'
9434 else
9435 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9436 fi
9437 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}'
9438 hardcode_direct_CXX=no
9439 hardcode_automatic_CXX=yes
9440 hardcode_shlibpath_var_CXX=unsupported
9441 whole_archive_flag_spec_CXX='-all_load $convenience'
9442 link_all_deplibs_CXX=yes
9443 else
9444 ld_shlibs_CXX=no
9445 fi
9446 ;;
9447
9448 dgux*)
9449 case $cc_basename in
9450 ec++)
9451 # FIXME: insert proper C++ library support
9452 ld_shlibs_CXX=no
9453 ;;
9454 ghcx)
9455 # Green Hills C++ Compiler
9456 # FIXME: insert proper C++ library support
9457 ld_shlibs_CXX=no
9458 ;;
9459 *)
9460 # FIXME: insert proper C++ library support
9461 ld_shlibs_CXX=no
9462 ;;
9463 esac
9464 ;;
9465 freebsd12*)
9466 # C++ shared libraries reported to be fairly broken before switch to ELF
9467 ld_shlibs_CXX=no
9468 ;;
9469 freebsd-elf*)
9470 archive_cmds_need_lc_CXX=no
9471 ;;
9472 freebsd* | kfreebsd*-gnu)
9473 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9474 # conventions
9475 ld_shlibs_CXX=yes
9476 ;;
9477 gnu*)
9478 ;;
9479 hpux9*)
9480 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9481 hardcode_libdir_separator_CXX=:
9482 export_dynamic_flag_spec_CXX='${wl}-E'
9483 hardcode_direct_CXX=yes
9484 hardcode_minus_L_CXX=yes # Not in the search PATH,
9485 # but as the default
9486 # location of the library.
9487
9488 case $cc_basename in
9489 CC)
9490 # FIXME: insert proper C++ library support
9491 ld_shlibs_CXX=no
9492 ;;
9493 aCC)
9494 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'
9495 # Commands to make compiler produce verbose output that lists
9496 # what "hidden" libraries, object files and flags are used when
9497 # linking a shared library.
9498 #
9499 # There doesn't appear to be a way to prevent this compiler from
9500 # explicitly linking system object files so we need to strip them
9501 # from the output so that they don't get included in the library
9502 # dependencies.
9503 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9504 ;;
9505 *)
9506 if test "$GXX" = yes; then
9507 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'
9508 else
9509 # FIXME: insert proper C++ library support
9510 ld_shlibs_CXX=no
9511 fi
9512 ;;
9513 esac
9514 ;;
9515 hpux10*|hpux11*)
9516 if test $with_gnu_ld = no; then
9517 case "$host_cpu" in
9518 hppa*64*)
9519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9520 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9521 hardcode_libdir_separator_CXX=:
9522 ;;
9523 ia64*)
9524 hardcode_libdir_flag_spec_CXX='-L$libdir'
9525 ;;
9526 *)
9527 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9528 hardcode_libdir_separator_CXX=:
9529 export_dynamic_flag_spec_CXX='${wl}-E'
9530 ;;
9531 esac
9532 fi
9533 case "$host_cpu" in
9534 hppa*64*)
9535 hardcode_direct_CXX=no
9536 hardcode_shlibpath_var_CXX=no
9537 ;;
9538 ia64*)
9539 hardcode_direct_CXX=no
9540 hardcode_shlibpath_var_CXX=no
9541 hardcode_minus_L_CXX=yes # Not in the search PATH,
9542 # but as the default
9543 # location of the library.
9544 ;;
9545 *)
9546 hardcode_direct_CXX=yes
9547 hardcode_minus_L_CXX=yes # Not in the search PATH,
9548 # but as the default
9549 # location of the library.
9550 ;;
9551 esac
9552
9553 case $cc_basename in
9554 CC)
9555 # FIXME: insert proper C++ library support
9556 ld_shlibs_CXX=no
9557 ;;
9558 aCC)
9559 case "$host_cpu" in
9560 hppa*64*|ia64*)
9561 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9562 ;;
9563 *)
9564 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9565 ;;
9566 esac
9567 # Commands to make compiler produce verbose output that lists
9568 # what "hidden" libraries, object files and flags are used when
9569 # linking a shared library.
9570 #
9571 # There doesn't appear to be a way to prevent this compiler from
9572 # explicitly linking system object files so we need to strip them
9573 # from the output so that they don't get included in the library
9574 # dependencies.
9575 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'
9576 ;;
9577 *)
9578 if test "$GXX" = yes; then
9579 if test $with_gnu_ld = no; then
9580 case "$host_cpu" in
9581 ia64*|hppa*64*)
9582 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9583 ;;
9584 *)
9585 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'
9586 ;;
9587 esac
9588 fi
9589 else
9590 # FIXME: insert proper C++ library support
9591 ld_shlibs_CXX=no
9592 fi
9593 ;;
9594 esac
9595 ;;
9596 irix5* | irix6*)
9597 case $cc_basename in
9598 CC)
9599 # SGI C++
9600 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9601
9602 # Archives containing C++ object files must be created using
9603 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9604 # necessary to make sure instantiated templates are included
9605 # in the archive.
9606 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9607 ;;
9608 *)
9609 if test "$GXX" = yes; then
9610 if test "$with_gnu_ld" = no; then
9611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9612 else
9613 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'
9614 fi
9615 fi
9616 link_all_deplibs_CXX=yes
9617 ;;
9618 esac
9619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator_CXX=:
9621 ;;
9622 linux*)
9623 case $cc_basename in
9624 KCC)
9625 # Kuck and Associates, Inc. (KAI) C++ Compiler
9626
9627 # KCC will only create a shared library if the output file
9628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9629 # to its proper name (with version) after linking.
9630 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'
9631 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'
9632 # Commands to make compiler produce verbose output that lists
9633 # what "hidden" libraries, object files and flags are used when
9634 # linking a shared library.
9635 #
9636 # There doesn't appear to be a way to prevent this compiler from
9637 # explicitly linking system object files so we need to strip them
9638 # from the output so that they don't get included in the library
9639 # dependencies.
9640 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'
9641
9642 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9644
9645 # Archives containing C++ object files must be created using
9646 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9647 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9648 ;;
9649 icpc)
9650 # Intel C++
9651 with_gnu_ld=yes
9652 archive_cmds_need_lc_CXX=no
9653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654 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'
9655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9657 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9658 ;;
9659 cxx)
9660 # Compaq C++
9661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 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'
9663
9664 runpath_var=LD_RUN_PATH
9665 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9666 hardcode_libdir_separator_CXX=:
9667
9668 # Commands to make compiler produce verbose output that lists
9669 # what "hidden" libraries, object files and flags are used when
9670 # linking a shared library.
9671 #
9672 # There doesn't appear to be a way to prevent this compiler from
9673 # explicitly linking system object files so we need to strip them
9674 # from the output so that they don't get included in the library
9675 # dependencies.
9676 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'
9677 ;;
9678 esac
9679 ;;
9680 lynxos*)
9681 # FIXME: insert proper C++ library support
9682 ld_shlibs_CXX=no
9683 ;;
9684 m88k*)
9685 # FIXME: insert proper C++ library support
9686 ld_shlibs_CXX=no
9687 ;;
9688 mvs*)
9689 case $cc_basename in
9690 cxx)
9691 # FIXME: insert proper C++ library support
9692 ld_shlibs_CXX=no
9693 ;;
9694 *)
9695 # FIXME: insert proper C++ library support
9696 ld_shlibs_CXX=no
9697 ;;
9698 esac
9699 ;;
9700 netbsd*)
9701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9702 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9703 wlarc=
9704 hardcode_libdir_flag_spec_CXX='-R$libdir'
9705 hardcode_direct_CXX=yes
9706 hardcode_shlibpath_var_CXX=no
9707 fi
9708 # Workaround some broken pre-1.5 toolchains
9709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9710 ;;
9711 osf3*)
9712 case $cc_basename in
9713 KCC)
9714 # Kuck and Associates, Inc. (KAI) C++ Compiler
9715
9716 # KCC will only create a shared library if the output file
9717 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9718 # to its proper name (with version) after linking.
9719 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'
9720
9721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9722 hardcode_libdir_separator_CXX=:
9723
9724 # Archives containing C++ object files must be created using
9725 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9726 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9727
9728 ;;
9729 RCC)
9730 # Rational C++ 2.4.1
9731 # FIXME: insert proper C++ library support
9732 ld_shlibs_CXX=no
9733 ;;
9734 cxx)
9735 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9736 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9737
9738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9739 hardcode_libdir_separator_CXX=:
9740
9741 # Commands to make compiler produce verbose output that lists
9742 # what "hidden" libraries, object files and flags are used when
9743 # linking a shared library.
9744 #
9745 # There doesn't appear to be a way to prevent this compiler from
9746 # explicitly linking system object files so we need to strip them
9747 # from the output so that they don't get included in the library
9748 # dependencies.
9749 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'
9750 ;;
9751 *)
9752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9753 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9754 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9755
9756 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9757 hardcode_libdir_separator_CXX=:
9758
9759 # Commands to make compiler produce verbose output that lists
9760 # what "hidden" libraries, object files and flags are used when
9761 # linking a shared library.
9762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9763
9764 else
9765 # FIXME: insert proper C++ library support
9766 ld_shlibs_CXX=no
9767 fi
9768 ;;
9769 esac
9770 ;;
9771 osf4* | osf5*)
9772 case $cc_basename in
9773 KCC)
9774 # Kuck and Associates, Inc. (KAI) C++ Compiler
9775
9776 # KCC will only create a shared library if the output file
9777 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9778 # to its proper name (with version) after linking.
9779 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'
9780
9781 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9782 hardcode_libdir_separator_CXX=:
9783
9784 # Archives containing C++ object files must be created using
9785 # the KAI C++ compiler.
9786 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9787 ;;
9788 RCC)
9789 # Rational C++ 2.4.1
9790 # FIXME: insert proper C++ library support
9791 ld_shlibs_CXX=no
9792 ;;
9793 cxx)
9794 allow_undefined_flag_CXX=' -expect_unresolved \*'
9795 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9796 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9797 echo "-hidden">> $lib.exp~
9798 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9799 $rm $lib.exp'
9800
9801 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9802 hardcode_libdir_separator_CXX=:
9803
9804 # Commands to make compiler produce verbose output that lists
9805 # what "hidden" libraries, object files and flags are used when
9806 # linking a shared library.
9807 #
9808 # There doesn't appear to be a way to prevent this compiler from
9809 # explicitly linking system object files so we need to strip them
9810 # from the output so that they don't get included in the library
9811 # dependencies.
9812 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'
9813 ;;
9814 *)
9815 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9816 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9817 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9818
9819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9820 hardcode_libdir_separator_CXX=:
9821
9822 # Commands to make compiler produce verbose output that lists
9823 # what "hidden" libraries, object files and flags are used when
9824 # linking a shared library.
9825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9826
9827 else
9828 # FIXME: insert proper C++ library support
9829 ld_shlibs_CXX=no
9830 fi
9831 ;;
9832 esac
9833 ;;
9834 psos*)
9835 # FIXME: insert proper C++ library support
9836 ld_shlibs_CXX=no
9837 ;;
9838 sco*)
9839 archive_cmds_need_lc_CXX=no
9840 case $cc_basename in
9841 CC)
9842 # FIXME: insert proper C++ library support
9843 ld_shlibs_CXX=no
9844 ;;
9845 *)
9846 # FIXME: insert proper C++ library support
9847 ld_shlibs_CXX=no
9848 ;;
9849 esac
9850 ;;
9851 sunos4*)
9852 case $cc_basename in
9853 CC)
9854 # Sun C++ 4.x
9855 # FIXME: insert proper C++ library support
9856 ld_shlibs_CXX=no
9857 ;;
9858 lcc)
9859 # Lucid
9860 # FIXME: insert proper C++ library support
9861 ld_shlibs_CXX=no
9862 ;;
9863 *)
9864 # FIXME: insert proper C++ library support
9865 ld_shlibs_CXX=no
9866 ;;
9867 esac
9868 ;;
9869 solaris*)
9870 case $cc_basename in
9871 CC)
9872 # Sun C++ 4.2, 5.x and Centerline C++
9873 no_undefined_flag_CXX=' -zdefs'
9874 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9875 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9876 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9877
9878 hardcode_libdir_flag_spec_CXX='-R$libdir'
9879 hardcode_shlibpath_var_CXX=no
9880 case $host_os in
9881 solaris2.0-5 | solaris2.0-5.*) ;;
9882 *)
9883 # The C++ compiler is used as linker so we must use $wl
9884 # flag to pass the commands to the underlying system
9885 # linker.
9886 # Supported since Solaris 2.6 (maybe 2.5.1?)
9887 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9888 ;;
9889 esac
9890 link_all_deplibs_CXX=yes
9891
9892 # Commands to make compiler produce verbose output that lists
9893 # what "hidden" libraries, object files and flags are used when
9894 # linking a shared library.
9895 #
9896 # There doesn't appear to be a way to prevent this compiler from
9897 # explicitly linking system object files so we need to strip them
9898 # from the output so that they don't get included in the library
9899 # dependencies.
9900 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9901
9902 # Archives containing C++ object files must be created using
9903 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9904 # necessary to make sure instantiated templates are included
9905 # in the archive.
9906 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9907 ;;
9908 gcx)
9909 # Green Hills C++ Compiler
9910 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9911
9912 # The C++ compiler must be used to create the archive.
9913 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9914 ;;
9915 *)
9916 # GNU C++ compiler with Solaris linker
9917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9918 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9919 if $CC --version | grep -v '^2\.7' > /dev/null; then
9920 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9921 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9922 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9923
9924 # Commands to make compiler produce verbose output that lists
9925 # what "hidden" libraries, object files and flags are used when
9926 # linking a shared library.
9927 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9928 else
9929 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9930 # platform.
9931 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9932 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9933 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9934
9935 # Commands to make compiler produce verbose output that lists
9936 # what "hidden" libraries, object files and flags are used when
9937 # linking a shared library.
9938 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9939 fi
9940
9941 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9942 fi
9943 ;;
9944 esac
9945 ;;
9946 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9947 archive_cmds_need_lc_CXX=no
9948 ;;
9949 tandem*)
9950 case $cc_basename in
9951 NCC)
9952 # NonStop-UX NCC 3.20
9953 # FIXME: insert proper C++ library support
9954 ld_shlibs_CXX=no
9955 ;;
9956 *)
9957 # FIXME: insert proper C++ library support
9958 ld_shlibs_CXX=no
9959 ;;
9960 esac
9961 ;;
9962 vxworks*)
9963 # FIXME: insert proper C++ library support
9964 ld_shlibs_CXX=no
9965 ;;
9966 *)
9967 # FIXME: insert proper C++ library support
9968 ld_shlibs_CXX=no
9969 ;;
9970 esac
9971 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9972 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9973 test "$ld_shlibs_CXX" = no && can_build_shared=no
9974
9975 GCC_CXX="$GXX"
9976 LD_CXX="$LD"
9977
9978 ## CAVEAT EMPTOR:
9979 ## There is no encapsulation within the following macros, do not change
9980 ## the running order or otherwise move them around unless you know exactly
9981 ## what you are doing...
9982
9983 cat > conftest.$ac_ext <<EOF
9984 class Foo
9985 {
9986 public:
9987 Foo (void) { a = 0; }
9988 private:
9989 int a;
9990 };
9991 EOF
9992
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; then
9998 # Parse the compiler output and extract the necessary
9999 # objects, libraries and library flags.
10000
10001 # Sentinel used to keep track of whether or not we are before
10002 # the conftest object file.
10003 pre_test_object_deps_done=no
10004
10005 # The `*' in the case matches for architectures that use `case' in
10006 # $output_verbose_cmd can trigger glob expansion during the loop
10007 # eval without this substitution.
10008 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10009
10010 for p in `eval $output_verbose_link_cmd`; do
10011 case $p in
10012
10013 -L* | -R* | -l*)
10014 # Some compilers place space between "-{L,R}" and the path.
10015 # Remove the space.
10016 if test $p = "-L" \
10017 || test $p = "-R"; then
10018 prev=$p
10019 continue
10020 else
10021 prev=
10022 fi
10023
10024 if test "$pre_test_object_deps_done" = no; then
10025 case $p in
10026 -L* | -R*)
10027 # Internal compiler library paths should come after those
10028 # provided the user. The postdeps already come after the
10029 # user supplied libs so there is no need to process them.
10030 if test -z "$compiler_lib_search_path_CXX"; then
10031 compiler_lib_search_path_CXX="${prev}${p}"
10032 else
10033 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10034 fi
10035 ;;
10036 # The "-l" case would never come before the object being
10037 # linked, so don't bother handling this case.
10038 esac
10039 else
10040 if test -z "$postdeps_CXX"; then
10041 postdeps_CXX="${prev}${p}"
10042 else
10043 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10044 fi
10045 fi
10046 ;;
10047
10048 *.$objext)
10049 # This assumes that the test object file only shows up
10050 # once in the compiler output.
10051 if test "$p" = "conftest.$objext"; then
10052 pre_test_object_deps_done=yes
10053 continue
10054 fi
10055
10056 if test "$pre_test_object_deps_done" = no; then
10057 if test -z "$predep_objects_CXX"; then
10058 predep_objects_CXX="$p"
10059 else
10060 predep_objects_CXX="$predep_objects_CXX $p"
10061 fi
10062 else
10063 if test -z "$postdep_objects_CXX"; then
10064 postdep_objects_CXX="$p"
10065 else
10066 postdep_objects_CXX="$postdep_objects_CXX $p"
10067 fi
10068 fi
10069 ;;
10070
10071 *) ;; # Ignore the rest.
10072
10073 esac
10074 done
10075
10076 # Clean up.
10077 rm -f a.out a.exe
10078 else
10079 echo "libtool.m4: error: problem compiling CXX test program"
10080 fi
10081
10082 $rm -f confest.$objext
10083
10084 case " $postdeps_CXX " in
10085 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10086 esac
10087
10088 lt_prog_compiler_wl_CXX=
10089 lt_prog_compiler_pic_CXX=
10090 lt_prog_compiler_static_CXX=
10091
10092 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10093 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10094
10095 # C++ specific cases for pic, static, wl, etc.
10096 if test "$GXX" = yes; then
10097 lt_prog_compiler_wl_CXX='-Wl,'
10098 lt_prog_compiler_static_CXX='-static'
10099
10100 case $host_os in
10101 aix*)
10102 # All AIX code is PIC.
10103 if test "$host_cpu" = ia64; then
10104 # AIX 5 now supports IA64 processor
10105 lt_prog_compiler_static_CXX='-Bstatic'
10106 fi
10107 ;;
10108 amigaos*)
10109 # FIXME: we need at least 68020 code to build shared libraries, but
10110 # adding the `-m68020' flag to GCC prevents building anything better,
10111 # like `-m68040'.
10112 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10113 ;;
10114 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10115 # PIC is the default for these OSes.
10116 ;;
10117 mingw* | os2* | pw32*)
10118 # This hack is so that the source file can tell whether it is being
10119 # built for inclusion in a dll (and should export symbols for example).
10120 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10121 ;;
10122 darwin* | rhapsody*)
10123 # PIC is the default on this platform
10124 # Common symbols not allowed in MH_DYLIB files
10125 lt_prog_compiler_pic_CXX='-fno-common'
10126 ;;
10127 *djgpp*)
10128 # DJGPP does not support shared libraries at all
10129 lt_prog_compiler_pic_CXX=
10130 ;;
10131 sysv4*MP*)
10132 if test -d /usr/nec; then
10133 lt_prog_compiler_pic_CXX=-Kconform_pic
10134 fi
10135 ;;
10136 hpux*)
10137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10138 # not for PA HP-UX.
10139 case "$host_cpu" in
10140 hppa*64*|ia64*)
10141 ;;
10142 *)
10143 lt_prog_compiler_pic_CXX='-fPIC'
10144 ;;
10145 esac
10146 ;;
10147 *)
10148 lt_prog_compiler_pic_CXX='-fPIC'
10149 ;;
10150 esac
10151 else
10152 case $host_os in
10153 aix4* | aix5*)
10154 # All AIX code is PIC.
10155 if test "$host_cpu" = ia64; then
10156 # AIX 5 now supports IA64 processor
10157 lt_prog_compiler_static_CXX='-Bstatic'
10158 else
10159 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10160 fi
10161 ;;
10162 chorus*)
10163 case $cc_basename in
10164 cxch68)
10165 # Green Hills C++ Compiler
10166 # _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"
10167 ;;
10168 esac
10169 ;;
10170 dgux*)
10171 case $cc_basename in
10172 ec++)
10173 lt_prog_compiler_pic_CXX='-KPIC'
10174 ;;
10175 ghcx)
10176 # Green Hills C++ Compiler
10177 lt_prog_compiler_pic_CXX='-pic'
10178 ;;
10179 *)
10180 ;;
10181 esac
10182 ;;
10183 freebsd* | kfreebsd*-gnu)
10184 # FreeBSD uses GNU C++
10185 ;;
10186 hpux9* | hpux10* | hpux11*)
10187 case $cc_basename in
10188 CC)
10189 lt_prog_compiler_wl_CXX='-Wl,'
10190 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10191 if test "$host_cpu" != ia64; then
10192 lt_prog_compiler_pic_CXX='+Z'
10193 fi
10194 ;;
10195 aCC)
10196 lt_prog_compiler_wl_CXX='-Wl,'
10197 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10198 case "$host_cpu" in
10199 hppa*64*|ia64*)
10200 # +Z the default
10201 ;;
10202 *)
10203 lt_prog_compiler_pic_CXX='+Z'
10204 ;;
10205 esac
10206 ;;
10207 *)
10208 ;;
10209 esac
10210 ;;
10211 irix5* | irix6* | nonstopux*)
10212 case $cc_basename in
10213 CC)
10214 lt_prog_compiler_wl_CXX='-Wl,'
10215 lt_prog_compiler_static_CXX='-non_shared'
10216 # CC pic flag -KPIC is the default.
10217 ;;
10218 *)
10219 ;;
10220 esac
10221 ;;
10222 linux*)
10223 case $cc_basename in
10224 KCC)
10225 # KAI C++ Compiler
10226 lt_prog_compiler_wl_CXX='--backend -Wl,'
10227 lt_prog_compiler_pic_CXX='-fPIC'
10228 ;;
10229 icpc)
10230 # Intel C++
10231 lt_prog_compiler_wl_CXX='-Wl,'
10232 lt_prog_compiler_pic_CXX='-KPIC'
10233 lt_prog_compiler_static_CXX='-static'
10234 ;;
10235 cxx)
10236 # Compaq C++
10237 # Make sure the PIC flag is empty. It appears that all Alpha
10238 # Linux and Compaq Tru64 Unix objects are PIC.
10239 lt_prog_compiler_pic_CXX=
10240 lt_prog_compiler_static_CXX='-non_shared'
10241 ;;
10242 *)
10243 ;;
10244 esac
10245 ;;
10246 lynxos*)
10247 ;;
10248 m88k*)
10249 ;;
10250 mvs*)
10251 case $cc_basename in
10252 cxx)
10253 lt_prog_compiler_pic_CXX='-W c,exportall'
10254 ;;
10255 *)
10256 ;;
10257 esac
10258 ;;
10259 netbsd*)
10260 ;;
10261 osf3* | osf4* | osf5*)
10262 case $cc_basename in
10263 KCC)
10264 lt_prog_compiler_wl_CXX='--backend -Wl,'
10265 ;;
10266 RCC)
10267 # Rational C++ 2.4.1
10268 lt_prog_compiler_pic_CXX='-pic'
10269 ;;
10270 cxx)
10271 # Digital/Compaq C++
10272 lt_prog_compiler_wl_CXX='-Wl,'
10273 # Make sure the PIC flag is empty. It appears that all Alpha
10274 # Linux and Compaq Tru64 Unix objects are PIC.
10275 lt_prog_compiler_pic_CXX=
10276 lt_prog_compiler_static_CXX='-non_shared'
10277 ;;
10278 *)
10279 ;;
10280 esac
10281 ;;
10282 psos*)
10283 ;;
10284 sco*)
10285 case $cc_basename in
10286 CC)
10287 lt_prog_compiler_pic_CXX='-fPIC'
10288 ;;
10289 *)
10290 ;;
10291 esac
10292 ;;
10293 solaris*)
10294 case $cc_basename in
10295 CC)
10296 # Sun C++ 4.2, 5.x and Centerline C++
10297 lt_prog_compiler_pic_CXX='-KPIC'
10298 lt_prog_compiler_static_CXX='-Bstatic'
10299 lt_prog_compiler_wl_CXX='-Qoption ld '
10300 ;;
10301 gcx)
10302 # Green Hills C++ Compiler
10303 lt_prog_compiler_pic_CXX='-PIC'
10304 ;;
10305 *)
10306 ;;
10307 esac
10308 ;;
10309 sunos4*)
10310 case $cc_basename in
10311 CC)
10312 # Sun C++ 4.x
10313 lt_prog_compiler_pic_CXX='-pic'
10314 lt_prog_compiler_static_CXX='-Bstatic'
10315 ;;
10316 lcc)
10317 # Lucid
10318 lt_prog_compiler_pic_CXX='-pic'
10319 ;;
10320 *)
10321 ;;
10322 esac
10323 ;;
10324 tandem*)
10325 case $cc_basename in
10326 NCC)
10327 # NonStop-UX NCC 3.20
10328 lt_prog_compiler_pic_CXX='-KPIC'
10329 ;;
10330 *)
10331 ;;
10332 esac
10333 ;;
10334 unixware*)
10335 ;;
10336 vxworks*)
10337 ;;
10338 *)
10339 lt_prog_compiler_can_build_shared_CXX=no
10340 ;;
10341 esac
10342 fi
10343
10344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10345 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10346
10347 #
10348 # Check to make sure the PIC flag actually works.
10349 #
10350 if test -n "$lt_prog_compiler_pic_CXX"; then
10351
10352 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10353 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10354 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357 lt_prog_compiler_pic_works_CXX=no
10358 ac_outfile=conftest.$ac_objext
10359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10360 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10361 # Insert the option either (1) after the last *FLAGS variable, or
10362 # (2) before a word containing "conftest.", or (3) at the end.
10363 # Note that $ac_compile itself does not contain backslashes and begins
10364 # with a dollar sign (not a hyphen), so the echo should work correctly.
10365 # The option is referenced via a variable to avoid confusing sed.
10366 lt_compile=`echo "$ac_compile" | $SED \
10367 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10369 -e 's:$: $lt_compiler_flag:'`
10370 (eval echo "\"\$as_me:10370: $lt_compile\"" >&5)
10371 (eval "$lt_compile" 2>conftest.err)
10372 ac_status=$?
10373 cat conftest.err >&5
10374 echo "$as_me:10374: \$? = $ac_status" >&5
10375 if (exit $ac_status) && test -s "$ac_outfile"; then
10376 # The compiler can only warn and ignore the option if not recognized
10377 # So say no if there are warnings
10378 if test ! -s conftest.err; then
10379 lt_prog_compiler_pic_works_CXX=yes
10380 fi
10381 fi
10382 $rm conftest*
10383
10384 fi
10385 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10386 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10387
10388 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10389 case $lt_prog_compiler_pic_CXX in
10390 "" | " "*) ;;
10391 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10392 esac
10393 else
10394 lt_prog_compiler_pic_CXX=
10395 lt_prog_compiler_can_build_shared_CXX=no
10396 fi
10397
10398 fi
10399 case "$host_os" in
10400 # For platforms which do not support PIC, -DPIC is meaningless:
10401 *djgpp*)
10402 lt_prog_compiler_pic_CXX=
10403 ;;
10404 *)
10405 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10406 ;;
10407 esac
10408
10409 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 lt_cv_prog_compiler_c_o_CXX=no
10415 $rm -r conftest 2>/dev/null
10416 mkdir conftest
10417 cd conftest
10418 mkdir out
10419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420
10421 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10422 # that will create temporary files in the current directory regardless of
10423 # the output directory. Thus, making CWD read-only will cause this test
10424 # to fail, enabling locking or at least warning the user not to do parallel
10425 # builds.
10426 chmod -w .
10427
10428 lt_compiler_flag="-o out/conftest2.$ac_objext"
10429 # Insert the option either (1) after the last *FLAGS variable, or
10430 # (2) before a word containing "conftest.", or (3) at the end.
10431 # Note that $ac_compile itself does not contain backslashes and begins
10432 # with a dollar sign (not a hyphen), so the echo should work correctly.
10433 lt_compile=`echo "$ac_compile" | $SED \
10434 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10436 -e 's:$: $lt_compiler_flag:'`
10437 (eval echo "\"\$as_me:10437: $lt_compile\"" >&5)
10438 (eval "$lt_compile" 2>out/conftest.err)
10439 ac_status=$?
10440 cat out/conftest.err >&5
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10443 then
10444 # The compiler can only warn and ignore the option if not recognized
10445 # So say no if there are warnings
10446 if test ! -s out/conftest.err; then
10447 lt_cv_prog_compiler_c_o_CXX=yes
10448 fi
10449 fi
10450 chmod u+w .
10451 $rm conftest*
10452 # SGI C++ compiler will create directory out/ii_files/ for
10453 # template instantiation
10454 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10455 $rm out/* && rmdir out
10456 cd ..
10457 rmdir conftest
10458 $rm conftest*
10459
10460 fi
10461 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10462 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10463
10464
10465 hard_links="nottested"
10466 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10467 # do not overwrite the value of need_locks provided by the user
10468 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10469 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10470 hard_links=yes
10471 $rm conftest*
10472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10473 touch conftest.a
10474 ln conftest.a conftest.b 2>&5 || hard_links=no
10475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10476 echo "$as_me:$LINENO: result: $hard_links" >&5
10477 echo "${ECHO_T}$hard_links" >&6
10478 if test "$hard_links" = no; then
10479 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10480 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10481 need_locks=warn
10482 fi
10483 else
10484 need_locks=no
10485 fi
10486
10487 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10488 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10489
10490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10491 case $host_os in
10492 aix4* | aix5*)
10493 # If we're using GNU nm, then we don't want the "-C" option.
10494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10495 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10496 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'
10497 else
10498 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'
10499 fi
10500 ;;
10501 pw32*)
10502 export_symbols_cmds_CXX="$ltdll_cmds"
10503 ;;
10504 cygwin* | mingw*)
10505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10506 ;;
10507 *)
10508 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10509 ;;
10510 esac
10511
10512 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10513 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10514 test "$ld_shlibs_CXX" = no && can_build_shared=no
10515
10516 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10517 if test "$GCC" = yes; then
10518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10519 fi
10520
10521 #
10522 # Do we need to explicitly link libc?
10523 #
10524 case "x$archive_cmds_need_lc_CXX" in
10525 x|xyes)
10526 # Assume -lc should be added
10527 archive_cmds_need_lc_CXX=yes
10528
10529 if test "$enable_shared" = yes && test "$GCC" = yes; then
10530 case $archive_cmds_CXX in
10531 *'~'*)
10532 # FIXME: we may have to deal with multi-command sequences.
10533 ;;
10534 '$CC '*)
10535 # Test whether the compiler implicitly links with -lc since on some
10536 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10537 # to ld, don't add -lc before -lgcc.
10538 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10539 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10540 $rm conftest*
10541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10542
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544 (eval $ac_compile) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } 2>conftest.err; then
10548 soname=conftest
10549 lib=conftest
10550 libobjs=conftest.$ac_objext
10551 deplibs=
10552 wl=$lt_prog_compiler_wl_CXX
10553 compiler_flags=-v
10554 linker_flags=-v
10555 verstring=
10556 output_objdir=.
10557 libname=conftest
10558 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10559 allow_undefined_flag_CXX=
10560 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10561 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }
10565 then
10566 archive_cmds_need_lc_CXX=no
10567 else
10568 archive_cmds_need_lc_CXX=yes
10569 fi
10570 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10571 else
10572 cat conftest.err 1>&5
10573 fi
10574 $rm conftest*
10575 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10576 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10577 ;;
10578 esac
10579 fi
10580 ;;
10581 esac
10582
10583 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10584 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10585 library_names_spec=
10586 libname_spec='lib$name'
10587 soname_spec=
10588 shrext=".so"
10589 postinstall_cmds=
10590 postuninstall_cmds=
10591 finish_cmds=
10592 finish_eval=
10593 shlibpath_var=
10594 shlibpath_overrides_runpath=unknown
10595 version_type=none
10596 dynamic_linker="$host_os ld.so"
10597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10598 if test "$GCC" = yes; then
10599 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10600 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10601 # if the path contains ";" then we assume it to be the separator
10602 # otherwise default to the standard path separator (i.e. ":") - it is
10603 # assumed that no part of a normal pathname contains ";" but that should
10604 # okay in the real world where ";" in dirpaths is itself problematic.
10605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10606 else
10607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10608 fi
10609 else
10610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10611 fi
10612 need_lib_prefix=unknown
10613 hardcode_into_libs=no
10614
10615 # when you set need_version to no, make sure it does not cause -set_version
10616 # flags to be left without arguments
10617 need_version=unknown
10618
10619 case $host_os in
10620 aix3*)
10621 version_type=linux
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var=LIBPATH
10624
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 ;;
10628
10629 aix4* | aix5*)
10630 version_type=linux
10631 need_lib_prefix=no
10632 need_version=no
10633 hardcode_into_libs=yes
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 supports IA64
10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 else
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10644 case $host_os in
10645 aix4 | aix4.[01] | aix4.[01].*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10647 echo ' yes '
10648 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10649 :
10650 else
10651 can_build_shared=no
10652 fi
10653 ;;
10654 esac
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 else
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec='${libname}${release}.a $libname.a'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 fi
10669 shlibpath_var=LIBPATH
10670 fi
10671 ;;
10672
10673 amigaos*)
10674 library_names_spec='$libname.ixlibrary $libname.a'
10675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10676 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'
10677 ;;
10678
10679 beos*)
10680 library_names_spec='${libname}${shared_ext}'
10681 dynamic_linker="$host_os ld.so"
10682 shlibpath_var=LIBRARY_PATH
10683 ;;
10684
10685 bsdi4*)
10686 version_type=linux
10687 need_version=no
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10694 # the default ld.so.conf also contains /usr/contrib/lib and
10695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10696 # libtool to hard-code these into programs
10697 ;;
10698
10699 cygwin* | mingw* | pw32*)
10700 version_type=windows
10701 shrext=".dll"
10702 need_version=no
10703 need_lib_prefix=no
10704
10705 case $GCC,$host_os in
10706 yes,cygwin* | yes,mingw* | yes,pw32*)
10707 library_names_spec='$libname.dll.a'
10708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10709 postinstall_cmds='base_file=`basename \${file}`~
10710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10711 dldir=$destdir/`dirname \$dlpath`~
10712 test -d \$dldir || mkdir -p \$dldir~
10713 $install_prog $dir/$dlname \$dldir/$dlname'
10714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10715 dlpath=$dir/\$dldll~
10716 $rm \$dlpath'
10717 shlibpath_overrides_runpath=yes
10718
10719 case $host_os in
10720 cygwin*)
10721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10724 ;;
10725 mingw*)
10726 # MinGW DLLs use traditional 'lib' prefix
10727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10730 # It is most probably a Windows format PATH printed by
10731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10732 # path with ; separators, and with drive letters. We can handle the
10733 # drive letters (cygwin fileutils understands them), so leave them,
10734 # especially as we might pass files found there to a mingw objdump,
10735 # which wouldn't understand a cygwinified path. Ahh.
10736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10737 else
10738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10739 fi
10740 ;;
10741 pw32*)
10742 # pw32 DLLs use 'pw' prefix rather than 'lib'
10743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10744 ;;
10745 esac
10746 ;;
10747
10748 *)
10749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10750 ;;
10751 esac
10752 dynamic_linker='Win32 ld.exe'
10753 # FIXME: first we should search . and the directory the executable is in
10754 shlibpath_var=PATH
10755 ;;
10756
10757 darwin* | rhapsody*)
10758 dynamic_linker="$host_os dyld"
10759 version_type=darwin
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10763 soname_spec='${libname}${release}${major}$shared_ext'
10764 shlibpath_overrides_runpath=yes
10765 shlibpath_var=DYLD_LIBRARY_PATH
10766 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10767 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10768 if test "$GCC" = yes; then
10769 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"`
10770 else
10771 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10772 fi
10773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10774 ;;
10775
10776 dgux*)
10777 version_type=linux
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 ;;
10784
10785 freebsd1*)
10786 dynamic_linker=no
10787 ;;
10788
10789 kfreebsd*-gnu)
10790 version_type=linux
10791 need_lib_prefix=no
10792 need_version=no
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10798 dynamic_linker='GNU ld.so'
10799 ;;
10800
10801 freebsd*)
10802 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10803 version_type=freebsd-$objformat
10804 case $version_type in
10805 freebsd-elf*)
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10807 need_version=no
10808 need_lib_prefix=no
10809 ;;
10810 freebsd-*)
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10812 need_version=yes
10813 ;;
10814 esac
10815 shlibpath_var=LD_LIBRARY_PATH
10816 case $host_os in
10817 freebsd2*)
10818 shlibpath_overrides_runpath=yes
10819 ;;
10820 freebsd3.01* | freebsdelf3.01*)
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 ;;
10824 *) # from 3.2 on
10825 shlibpath_overrides_runpath=no
10826 hardcode_into_libs=yes
10827 ;;
10828 esac
10829 ;;
10830
10831 gnu*)
10832 version_type=linux
10833 need_lib_prefix=no
10834 need_version=no
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 hardcode_into_libs=yes
10839 ;;
10840
10841 hpux9* | hpux10* | hpux11*)
10842 # Give a soname corresponding to the major version so that dld.sl refuses to
10843 # link against other versions.
10844 version_type=sunos
10845 need_lib_prefix=no
10846 need_version=no
10847 case "$host_cpu" in
10848 ia64*)
10849 shrext='.so'
10850 hardcode_into_libs=yes
10851 dynamic_linker="$host_os dld.so"
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 if test "X$HPUX_IA64_MODE" = X32; then
10857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10858 else
10859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10860 fi
10861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10862 ;;
10863 hppa*64*)
10864 shrext='.sl'
10865 hardcode_into_libs=yes
10866 dynamic_linker="$host_os dld.sl"
10867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10873 ;;
10874 *)
10875 shrext='.sl'
10876 dynamic_linker="$host_os dld.sl"
10877 shlibpath_var=SHLIB_PATH
10878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 ;;
10882 esac
10883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10884 postinstall_cmds='chmod 555 $lib'
10885 ;;
10886
10887 irix5* | irix6* | nonstopux*)
10888 case $host_os in
10889 nonstopux*) version_type=nonstopux ;;
10890 *)
10891 if test "$lt_cv_prog_gnu_ld" = yes; then
10892 version_type=linux
10893 else
10894 version_type=irix
10895 fi ;;
10896 esac
10897 need_lib_prefix=no
10898 need_version=no
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10901 case $host_os in
10902 irix5* | nonstopux*)
10903 libsuff= shlibsuff=
10904 ;;
10905 *)
10906 case $LD in # libtool.m4 will add one of these switches to LD
10907 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10908 libsuff= shlibsuff= libmagic=32-bit;;
10909 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10910 libsuff=32 shlibsuff=N32 libmagic=N32;;
10911 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10912 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10913 *) libsuff= shlibsuff= libmagic=never-match;;
10914 esac
10915 ;;
10916 esac
10917 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10918 shlibpath_overrides_runpath=no
10919 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10920 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10921 hardcode_into_libs=yes
10922 ;;
10923
10924 # No shared lib support for Linux oldld, aout, or coff.
10925 linux*oldld* | linux*aout* | linux*coff*)
10926 dynamic_linker=no
10927 ;;
10928
10929 # This must be Linux ELF.
10930 linux*)
10931 version_type=linux
10932 need_lib_prefix=no
10933 need_version=no
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=no
10939 # This implies no fast_install, which is unacceptable.
10940 # Some rework will be needed to allow for fast_install
10941 # before this can be enabled.
10942 hardcode_into_libs=yes
10943
10944 # We used to test for /lib/ld.so.1 and disable shared libraries on
10945 # powerpc, because MkLinux only supported shared libraries with the
10946 # GNU dynamic linker. Since this was broken with cross compilers,
10947 # most powerpc-linux boxes support dynamic linking these days and
10948 # people can always --disable-shared, the test was removed, and we
10949 # assume the GNU/Linux dynamic linker is in use.
10950 dynamic_linker='GNU/Linux ld.so'
10951 ;;
10952
10953 netbsd*)
10954 version_type=sunos
10955 need_lib_prefix=no
10956 need_version=no
10957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10960 dynamic_linker='NetBSD (a.out) ld.so'
10961 else
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 dynamic_linker='NetBSD ld.elf_so'
10965 fi
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes
10968 hardcode_into_libs=yes
10969 ;;
10970
10971 newsos6)
10972 version_type=linux
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 ;;
10977
10978 nto-qnx*)
10979 version_type=linux
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 ;;
10987
10988 openbsd*)
10989 version_type=sunos
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10996 case $host_os in
10997 openbsd2.[89] | openbsd2.[89].*)
10998 shlibpath_overrides_runpath=no
10999 ;;
11000 *)
11001 shlibpath_overrides_runpath=yes
11002 ;;
11003 esac
11004 else
11005 shlibpath_overrides_runpath=yes
11006 fi
11007 ;;
11008
11009 os2*)
11010 libname_spec='$name'
11011 shrext=".dll"
11012 need_lib_prefix=no
11013 library_names_spec='$libname${shared_ext} $libname.a'
11014 dynamic_linker='OS/2 ld.exe'
11015 shlibpath_var=LIBPATH
11016 ;;
11017
11018 osf3* | osf4* | osf5*)
11019 version_type=osf
11020 need_lib_prefix=no
11021 need_version=no
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11027 ;;
11028
11029 sco3.2v5*)
11030 version_type=osf
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 ;;
11035
11036 solaris*)
11037 version_type=linux
11038 need_lib_prefix=no
11039 need_version=no
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 hardcode_into_libs=yes
11045 # ldd complains unless libraries are executable
11046 postinstall_cmds='chmod +x $lib'
11047 ;;
11048
11049 sunos4*)
11050 version_type=sunos
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 if test "$with_gnu_ld" = yes; then
11056 need_lib_prefix=no
11057 fi
11058 need_version=yes
11059 ;;
11060
11061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11062 version_type=linux
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 case $host_vendor in
11067 sni)
11068 shlibpath_overrides_runpath=no
11069 need_lib_prefix=no
11070 export_dynamic_flag_spec='${wl}-Blargedynsym'
11071 runpath_var=LD_RUN_PATH
11072 ;;
11073 siemens)
11074 need_lib_prefix=no
11075 ;;
11076 motorola)
11077 need_lib_prefix=no
11078 need_version=no
11079 shlibpath_overrides_runpath=no
11080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11081 ;;
11082 esac
11083 ;;
11084
11085 sysv4*MP*)
11086 if test -d /usr/nec ;then
11087 version_type=linux
11088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11089 soname_spec='$libname${shared_ext}.$major'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 fi
11092 ;;
11093
11094 uts4*)
11095 version_type=linux
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 ;;
11100
11101 *)
11102 dynamic_linker=no
11103 ;;
11104 esac
11105 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11106 echo "${ECHO_T}$dynamic_linker" >&6
11107 test "$dynamic_linker" = no && can_build_shared=no
11108
11109 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11110 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11111 hardcode_action_CXX=
11112 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11113 test -n "$runpath_var CXX" || \
11114 test "X$hardcode_automatic_CXX"="Xyes" ; then
11115
11116 # We can hardcode non-existant directories.
11117 if test "$hardcode_direct_CXX" != no &&
11118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11119 # have to relink, otherwise we might link with an installed library
11120 # when we should be linking with a yet-to-be-installed one
11121 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11122 test "$hardcode_minus_L_CXX" != no; then
11123 # Linking always hardcodes the temporary library directory.
11124 hardcode_action_CXX=relink
11125 else
11126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11127 hardcode_action_CXX=immediate
11128 fi
11129 else
11130 # We cannot hardcode anything, or else we can only hardcode existing
11131 # directories.
11132 hardcode_action_CXX=unsupported
11133 fi
11134 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11135 echo "${ECHO_T}$hardcode_action_CXX" >&6
11136
11137 if test "$hardcode_action_CXX" = relink; then
11138 # Fast installation is not supported
11139 enable_fast_install=no
11140 elif test "$shlibpath_overrides_runpath" = yes ||
11141 test "$enable_shared" = no; then
11142 # Fast installation is not necessary
11143 enable_fast_install=needless
11144 fi
11145
11146 striplib=
11147 old_striplib=
11148 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11149 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11150 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11151 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11152 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11153 echo "$as_me:$LINENO: result: yes" >&5
11154 echo "${ECHO_T}yes" >&6
11155 else
11156 # FIXME - insert some real tests, host_os isn't really good enough
11157 case $host_os in
11158 darwin*)
11159 if test -n "$STRIP" ; then
11160 striplib="$STRIP -x"
11161 echo "$as_me:$LINENO: result: yes" >&5
11162 echo "${ECHO_T}yes" >&6
11163 else
11164 echo "$as_me:$LINENO: result: no" >&5
11165 echo "${ECHO_T}no" >&6
11166 fi
11167 ;;
11168 *)
11169 echo "$as_me:$LINENO: result: no" >&5
11170 echo "${ECHO_T}no" >&6
11171 ;;
11172 esac
11173 fi
11174
11175 if test "x$enable_dlopen" != xyes; then
11176 enable_dlopen=unknown
11177 enable_dlopen_self=unknown
11178 enable_dlopen_self_static=unknown
11179 else
11180 lt_cv_dlopen=no
11181 lt_cv_dlopen_libs=
11182
11183 case $host_os in
11184 beos*)
11185 lt_cv_dlopen="load_add_on"
11186 lt_cv_dlopen_libs=
11187 lt_cv_dlopen_self=yes
11188 ;;
11189
11190 mingw* | pw32*)
11191 lt_cv_dlopen="LoadLibrary"
11192 lt_cv_dlopen_libs=
11193 ;;
11194
11195 cygwin*)
11196 lt_cv_dlopen="dlopen"
11197 lt_cv_dlopen_libs=
11198 ;;
11199
11200 darwin*)
11201 # if libdl is installed we need to link against it
11202 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11203 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11204 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 ac_check_lib_save_LIBS=$LIBS
11208 LIBS="-ldl $LIBS"
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 #ifdef __cplusplus
11218 extern "C"
11219 #endif
11220 /* We use char because int might match the return type of a gcc2
11221 builtin and then its argument prototype would still apply. */
11222 char dlopen ();
11223 int
11224 main ()
11225 {
11226 dlopen ();
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_cxx_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_lib_dl_dlopen=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ac_cv_lib_dl_dlopen=no
11259 fi
11260 rm -f conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11265 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11266 if test $ac_cv_lib_dl_dlopen = yes; then
11267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11268 else
11269
11270 lt_cv_dlopen="dyld"
11271 lt_cv_dlopen_libs=
11272 lt_cv_dlopen_self=yes
11273
11274 fi
11275
11276 ;;
11277
11278 *)
11279 echo "$as_me:$LINENO: checking for shl_load" >&5
11280 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11281 if test "${ac_cv_func_shl_load+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11292 #define shl_load innocuous_shl_load
11293
11294 /* System header to define __stub macros and hopefully few prototypes,
11295 which can conflict with char shl_load (); below.
11296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11297 <limits.h> exists even on freestanding compilers. */
11298
11299 #ifdef __STDC__
11300 # include <limits.h>
11301 #else
11302 # include <assert.h>
11303 #endif
11304
11305 #undef shl_load
11306
11307 /* Override any gcc2 internal prototype to avoid an error. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 {
11311 #endif
11312 /* We use char because int might match the return type of a gcc2
11313 builtin and then its argument prototype would still apply. */
11314 char shl_load ();
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11319 choke me
11320 #else
11321 char (*f) () = shl_load;
11322 #endif
11323 #ifdef __cplusplus
11324 }
11325 #endif
11326
11327 int
11328 main ()
11329 {
11330 return f != shl_load;
11331 ;
11332 return 0;
11333 }
11334 _ACEOF
11335 rm -f conftest.$ac_objext conftest$ac_exeext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11337 (eval $ac_link) 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_cxx_werror_flag"
11345 || test ! -s conftest.err'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest$ac_exeext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 ac_cv_func_shl_load=yes
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362 ac_cv_func_shl_load=no
11363 fi
11364 rm -f conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 fi
11367 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11368 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11369 if test $ac_cv_func_shl_load = yes; then
11370 lt_cv_dlopen="shl_load"
11371 else
11372 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11373 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377 ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-ldld $LIBS"
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385
11386 /* Override any gcc2 internal prototype to avoid an error. */
11387 #ifdef __cplusplus
11388 extern "C"
11389 #endif
11390 /* We use char because int might match the return type of a gcc2
11391 builtin and then its argument prototype would still apply. */
11392 char shl_load ();
11393 int
11394 main ()
11395 {
11396 shl_load ();
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_cxx_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_lib_dld_shl_load=yes
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 ac_cv_lib_dld_shl_load=no
11429 fi
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11435 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11436 if test $ac_cv_lib_dld_shl_load = yes; then
11437 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11438 else
11439 echo "$as_me:$LINENO: checking for dlopen" >&5
11440 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11441 if test "${ac_cv_func_dlopen+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11452 #define dlopen innocuous_dlopen
11453
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char dlopen (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11458
11459 #ifdef __STDC__
11460 # include <limits.h>
11461 #else
11462 # include <assert.h>
11463 #endif
11464
11465 #undef dlopen
11466
11467 /* Override any gcc2 internal prototype to avoid an error. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 {
11471 #endif
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11474 char dlopen ();
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11479 choke me
11480 #else
11481 char (*f) () = dlopen;
11482 #endif
11483 #ifdef __cplusplus
11484 }
11485 #endif
11486
11487 int
11488 main ()
11489 {
11490 return f != dlopen;
11491 ;
11492 return 0;
11493 }
11494 _ACEOF
11495 rm -f conftest.$ac_objext conftest$ac_exeext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11497 (eval $ac_link) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_cxx_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_func_dlopen=yes
11518 else
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 ac_cv_func_dlopen=no
11523 fi
11524 rm -f conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 fi
11527 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11528 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11529 if test $ac_cv_func_dlopen = yes; then
11530 lt_cv_dlopen="dlopen"
11531 else
11532 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-ldl $LIBS"
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545
11546 /* Override any gcc2 internal prototype to avoid an error. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11552 char dlopen ();
11553 int
11554 main ()
11555 {
11556 dlopen ();
11557 ;
11558 return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_cxx_werror_flag"
11571 || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_cv_lib_dl_dlopen=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 ac_cv_lib_dl_dlopen=no
11589 fi
11590 rm -f conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11593 fi
11594 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11595 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11596 if test $ac_cv_lib_dl_dlopen = yes; then
11597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11598 else
11599 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11600 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11601 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lsvld $LIBS"
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612
11613 /* Override any gcc2 internal prototype to avoid an error. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char dlopen ();
11620 int
11621 main ()
11622 {
11623 dlopen ();
11624 ;
11625 return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_cxx_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_lib_svld_dlopen=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_cv_lib_svld_dlopen=no
11656 fi
11657 rm -f conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11659 LIBS=$ac_check_lib_save_LIBS
11660 fi
11661 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11662 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11663 if test $ac_cv_lib_svld_dlopen = yes; then
11664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11665 else
11666 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11667 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11668 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671 ac_check_lib_save_LIBS=$LIBS
11672 LIBS="-ldld $LIBS"
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679
11680 /* Override any gcc2 internal prototype to avoid an error. */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 /* We use char because int might match the return type of a gcc2
11685 builtin and then its argument prototype would still apply. */
11686 char dld_link ();
11687 int
11688 main ()
11689 {
11690 dld_link ();
11691 ;
11692 return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_cxx_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest$ac_exeext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 ac_cv_lib_dld_dld_link=yes
11718 else
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 ac_cv_lib_dld_dld_link=no
11723 fi
11724 rm -f conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11727 fi
11728 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11729 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11730 if test $ac_cv_lib_dld_dld_link = yes; then
11731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11732 fi
11733
11734
11735 fi
11736
11737
11738 fi
11739
11740
11741 fi
11742
11743
11744 fi
11745
11746
11747 fi
11748
11749 ;;
11750 esac
11751
11752 if test "x$lt_cv_dlopen" != xno; then
11753 enable_dlopen=yes
11754 else
11755 enable_dlopen=no
11756 fi
11757
11758 case $lt_cv_dlopen in
11759 dlopen)
11760 save_CPPFLAGS="$CPPFLAGS"
11761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11762
11763 save_LDFLAGS="$LDFLAGS"
11764 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11765
11766 save_LIBS="$LIBS"
11767 LIBS="$lt_cv_dlopen_libs $LIBS"
11768
11769 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11770 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11771 if test "${lt_cv_dlopen_self+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774 if test "$cross_compiling" = yes; then :
11775 lt_cv_dlopen_self=cross
11776 else
11777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11778 lt_status=$lt_dlunknown
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11780 "configure"
11781 #include "confdefs.h"
11782
11783 #if HAVE_DLFCN_H
11784 #include <dlfcn.h>
11785 #endif
11786
11787 #include <stdio.h>
11788
11789 #ifdef RTLD_GLOBAL
11790 # define LT_DLGLOBAL RTLD_GLOBAL
11791 #else
11792 # ifdef DL_GLOBAL
11793 # define LT_DLGLOBAL DL_GLOBAL
11794 # else
11795 # define LT_DLGLOBAL 0
11796 # endif
11797 #endif
11798
11799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11800 find out it does not work in some platform. */
11801 #ifndef LT_DLLAZY_OR_NOW
11802 # ifdef RTLD_LAZY
11803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11804 # else
11805 # ifdef DL_LAZY
11806 # define LT_DLLAZY_OR_NOW DL_LAZY
11807 # else
11808 # ifdef RTLD_NOW
11809 # define LT_DLLAZY_OR_NOW RTLD_NOW
11810 # else
11811 # ifdef DL_NOW
11812 # define LT_DLLAZY_OR_NOW DL_NOW
11813 # else
11814 # define LT_DLLAZY_OR_NOW 0
11815 # endif
11816 # endif
11817 # endif
11818 # endif
11819 #endif
11820
11821 #ifdef __cplusplus
11822 extern "C" void exit (int);
11823 #endif
11824
11825 void fnord() { int i=42;}
11826 int main ()
11827 {
11828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11829 int status = $lt_dlunknown;
11830
11831 if (self)
11832 {
11833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11835 /* dlclose (self); */
11836 }
11837
11838 exit (status);
11839 }
11840 EOF
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11846 (./conftest; exit; ) 2>/dev/null
11847 lt_status=$?
11848 case x$lt_status in
11849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11851 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11852 esac
11853 else :
11854 # compilation failed
11855 lt_cv_dlopen_self=no
11856 fi
11857 fi
11858 rm -fr conftest*
11859
11860
11861 fi
11862 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11863 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11864
11865 if test "x$lt_cv_dlopen_self" = xyes; then
11866 LDFLAGS="$LDFLAGS $link_static_flag"
11867 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11868 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11869 if test "${lt_cv_dlopen_self_static+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 if test "$cross_compiling" = yes; then :
11873 lt_cv_dlopen_self_static=cross
11874 else
11875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11876 lt_status=$lt_dlunknown
11877 cat > conftest.$ac_ext <<EOF
11878 #line 11878 "configure"
11879 #include "confdefs.h"
11880
11881 #if HAVE_DLFCN_H
11882 #include <dlfcn.h>
11883 #endif
11884
11885 #include <stdio.h>
11886
11887 #ifdef RTLD_GLOBAL
11888 # define LT_DLGLOBAL RTLD_GLOBAL
11889 #else
11890 # ifdef DL_GLOBAL
11891 # define LT_DLGLOBAL DL_GLOBAL
11892 # else
11893 # define LT_DLGLOBAL 0
11894 # endif
11895 #endif
11896
11897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11898 find out it does not work in some platform. */
11899 #ifndef LT_DLLAZY_OR_NOW
11900 # ifdef RTLD_LAZY
11901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11902 # else
11903 # ifdef DL_LAZY
11904 # define LT_DLLAZY_OR_NOW DL_LAZY
11905 # else
11906 # ifdef RTLD_NOW
11907 # define LT_DLLAZY_OR_NOW RTLD_NOW
11908 # else
11909 # ifdef DL_NOW
11910 # define LT_DLLAZY_OR_NOW DL_NOW
11911 # else
11912 # define LT_DLLAZY_OR_NOW 0
11913 # endif
11914 # endif
11915 # endif
11916 # endif
11917 #endif
11918
11919 #ifdef __cplusplus
11920 extern "C" void exit (int);
11921 #endif
11922
11923 void fnord() { int i=42;}
11924 int main ()
11925 {
11926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11927 int status = $lt_dlunknown;
11928
11929 if (self)
11930 {
11931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11933 /* dlclose (self); */
11934 }
11935
11936 exit (status);
11937 }
11938 EOF
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940 (eval $ac_link) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11944 (./conftest; exit; ) 2>/dev/null
11945 lt_status=$?
11946 case x$lt_status in
11947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11949 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11950 esac
11951 else :
11952 # compilation failed
11953 lt_cv_dlopen_self_static=no
11954 fi
11955 fi
11956 rm -fr conftest*
11957
11958
11959 fi
11960 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11962 fi
11963
11964 CPPFLAGS="$save_CPPFLAGS"
11965 LDFLAGS="$save_LDFLAGS"
11966 LIBS="$save_LIBS"
11967 ;;
11968 esac
11969
11970 case $lt_cv_dlopen_self in
11971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11972 *) enable_dlopen_self=unknown ;;
11973 esac
11974
11975 case $lt_cv_dlopen_self_static in
11976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11977 *) enable_dlopen_self_static=unknown ;;
11978 esac
11979 fi
11980
11981
11982 # The else clause should only fire when bootstrapping the
11983 # libtool distribution, otherwise you forgot to ship ltmain.sh
11984 # with your package, and you will get complaints that there are
11985 # no rules to generate ltmain.sh.
11986 if test -f "$ltmain"; then
11987 # See if we are running on zsh, and set the options which allow our commands through
11988 # without removal of \ escapes.
11989 if test -n "${ZSH_VERSION+set}" ; then
11990 setopt NO_GLOB_SUBST
11991 fi
11992 # Now quote all the things that may contain metacharacters while being
11993 # careful not to overquote the AC_SUBSTed values. We take copies of the
11994 # variables and quote the copies for generation of the libtool script.
11995 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11996 SED SHELL STRIP \
11997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11999 deplibs_check_method reload_flag reload_cmds need_locks \
12000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12001 lt_cv_sys_global_symbol_to_c_name_address \
12002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12003 old_postinstall_cmds old_postuninstall_cmds \
12004 compiler_CXX \
12005 CC_CXX \
12006 LD_CXX \
12007 lt_prog_compiler_wl_CXX \
12008 lt_prog_compiler_pic_CXX \
12009 lt_prog_compiler_static_CXX \
12010 lt_prog_compiler_no_builtin_flag_CXX \
12011 export_dynamic_flag_spec_CXX \
12012 thread_safe_flag_spec_CXX \
12013 whole_archive_flag_spec_CXX \
12014 enable_shared_with_static_runtimes_CXX \
12015 old_archive_cmds_CXX \
12016 old_archive_from_new_cmds_CXX \
12017 predep_objects_CXX \
12018 postdep_objects_CXX \
12019 predeps_CXX \
12020 postdeps_CXX \
12021 compiler_lib_search_path_CXX \
12022 archive_cmds_CXX \
12023 archive_expsym_cmds_CXX \
12024 postinstall_cmds_CXX \
12025 postuninstall_cmds_CXX \
12026 old_archive_from_expsyms_cmds_CXX \
12027 allow_undefined_flag_CXX \
12028 no_undefined_flag_CXX \
12029 export_symbols_cmds_CXX \
12030 hardcode_libdir_flag_spec_CXX \
12031 hardcode_libdir_flag_spec_ld_CXX \
12032 hardcode_libdir_separator_CXX \
12033 hardcode_automatic_CXX \
12034 module_cmds_CXX \
12035 module_expsym_cmds_CXX \
12036 lt_cv_prog_compiler_c_o_CXX \
12037 exclude_expsyms_CXX \
12038 include_expsyms_CXX; do
12039
12040 case $var in
12041 old_archive_cmds_CXX | \
12042 old_archive_from_new_cmds_CXX | \
12043 archive_cmds_CXX | \
12044 archive_expsym_cmds_CXX | \
12045 module_cmds_CXX | \
12046 module_expsym_cmds_CXX | \
12047 old_archive_from_expsyms_cmds_CXX | \
12048 export_symbols_cmds_CXX | \
12049 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12050 postinstall_cmds | postuninstall_cmds | \
12051 old_postinstall_cmds | old_postuninstall_cmds | \
12052 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12053 # Double-quote double-evaled strings.
12054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12055 ;;
12056 *)
12057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12058 ;;
12059 esac
12060 done
12061
12062 case $lt_echo in
12063 *'\$0 --fallback-echo"')
12064 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12065 ;;
12066 esac
12067
12068 cfgfile="$ofile"
12069
12070 cat <<__EOF__ >> "$cfgfile"
12071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12072
12073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12074
12075 # Shell to use when invoking shell scripts.
12076 SHELL=$lt_SHELL
12077
12078 # Whether or not to build shared libraries.
12079 build_libtool_libs=$enable_shared
12080
12081 # Whether or not to build static libraries.
12082 build_old_libs=$enable_static
12083
12084 # Whether or not to add -lc for building shared libraries.
12085 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12086
12087 # Whether or not to disallow shared libs when runtime libs are static
12088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12089
12090 # Whether or not to optimize for fast installation.
12091 fast_install=$enable_fast_install
12092
12093 # The host system.
12094 host_alias=$host_alias
12095 host=$host
12096
12097 # An echo program that does not interpret backslashes.
12098 echo=$lt_echo
12099
12100 # The archiver.
12101 AR=$lt_AR
12102 AR_FLAGS=$lt_AR_FLAGS
12103
12104 # A C compiler.
12105 LTCC=$lt_LTCC
12106
12107 # A language-specific compiler.
12108 CC=$lt_compiler_CXX
12109
12110 # Is the compiler the GNU C compiler?
12111 with_gcc=$GCC_CXX
12112
12113 # An ERE matcher.
12114 EGREP=$lt_EGREP
12115
12116 # The linker used to build libraries.
12117 LD=$lt_LD_CXX
12118
12119 # Whether we need hard or soft links.
12120 LN_S=$lt_LN_S
12121
12122 # A BSD-compatible nm program.
12123 NM=$lt_NM
12124
12125 # A symbol stripping program
12126 STRIP=$lt_STRIP
12127
12128 # Used to examine libraries when file_magic_cmd begins "file"
12129 MAGIC_CMD=$MAGIC_CMD
12130
12131 # Used on cygwin: DLL creation program.
12132 DLLTOOL="$DLLTOOL"
12133
12134 # Used on cygwin: object dumper.
12135 OBJDUMP="$OBJDUMP"
12136
12137 # Used on cygwin: assembler.
12138 AS="$AS"
12139
12140 # The name of the directory that contains temporary libtool files.
12141 objdir=$objdir
12142
12143 # How to create reloadable object files.
12144 reload_flag=$lt_reload_flag
12145 reload_cmds=$lt_reload_cmds
12146
12147 # How to pass a linker flag through the compiler.
12148 wl=$lt_lt_prog_compiler_wl_CXX
12149
12150 # Object file suffix (normally "o").
12151 objext="$ac_objext"
12152
12153 # Old archive suffix (normally "a").
12154 libext="$libext"
12155
12156 # Shared library suffix (normally ".so").
12157 shrext='$shrext'
12158
12159 # Executable file suffix (normally "").
12160 exeext="$exeext"
12161
12162 # Additional compiler flags for building library objects.
12163 pic_flag=$lt_lt_prog_compiler_pic_CXX
12164 pic_mode=$pic_mode
12165
12166 # What is the maximum length of a command?
12167 max_cmd_len=$lt_cv_sys_max_cmd_len
12168
12169 # Does compiler simultaneously support -c and -o options?
12170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12171
12172 # Must we lock files when doing compilation ?
12173 need_locks=$lt_need_locks
12174
12175 # Do we need the lib prefix for modules?
12176 need_lib_prefix=$need_lib_prefix
12177
12178 # Do we need a version for libraries?
12179 need_version=$need_version
12180
12181 # Whether dlopen is supported.
12182 dlopen_support=$enable_dlopen
12183
12184 # Whether dlopen of programs is supported.
12185 dlopen_self=$enable_dlopen_self
12186
12187 # Whether dlopen of statically linked programs is supported.
12188 dlopen_self_static=$enable_dlopen_self_static
12189
12190 # Compiler flag to prevent dynamic linking.
12191 link_static_flag=$lt_lt_prog_compiler_static_CXX
12192
12193 # Compiler flag to turn off builtin functions.
12194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12195
12196 # Compiler flag to allow reflexive dlopens.
12197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12198
12199 # Compiler flag to generate shared objects directly from archives.
12200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12201
12202 # Compiler flag to generate thread-safe objects.
12203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12204
12205 # Library versioning type.
12206 version_type=$version_type
12207
12208 # Format of library name prefix.
12209 libname_spec=$lt_libname_spec
12210
12211 # List of archive names. First name is the real one, the rest are links.
12212 # The last name is the one that the linker finds with -lNAME.
12213 library_names_spec=$lt_library_names_spec
12214
12215 # The coded name of the library, if different from the real name.
12216 soname_spec=$lt_soname_spec
12217
12218 # Commands used to build and install an old-style archive.
12219 RANLIB=$lt_RANLIB
12220 old_archive_cmds=$lt_old_archive_cmds_CXX
12221 old_postinstall_cmds=$lt_old_postinstall_cmds
12222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12223
12224 # Create an old-style archive from a shared archive.
12225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12226
12227 # Create a temporary old-style archive to link instead of a shared archive.
12228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12229
12230 # Commands used to build and install a shared archive.
12231 archive_cmds=$lt_archive_cmds_CXX
12232 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12233 postinstall_cmds=$lt_postinstall_cmds
12234 postuninstall_cmds=$lt_postuninstall_cmds
12235
12236 # Commands used to build a loadable module (assumed same as above if empty)
12237 module_cmds=$lt_module_cmds_CXX
12238 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12239
12240 # Commands to strip libraries.
12241 old_striplib=$lt_old_striplib
12242 striplib=$lt_striplib
12243
12244 # Dependencies to place before the objects being linked to create a
12245 # shared library.
12246 predep_objects=$lt_predep_objects_CXX
12247
12248 # Dependencies to place after the objects being linked to create a
12249 # shared library.
12250 postdep_objects=$lt_postdep_objects_CXX
12251
12252 # Dependencies to place before the objects being linked to create a
12253 # shared library.
12254 predeps=$lt_predeps_CXX
12255
12256 # Dependencies to place after the objects being linked to create a
12257 # shared library.
12258 postdeps=$lt_postdeps_CXX
12259
12260 # The library search path used internally by the compiler when linking
12261 # a shared library.
12262 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12263
12264 # Method to check whether dependent libraries are shared objects.
12265 deplibs_check_method=$lt_deplibs_check_method
12266
12267 # Command to use when deplibs_check_method == file_magic.
12268 file_magic_cmd=$lt_file_magic_cmd
12269
12270 # Flag that allows shared libraries with undefined symbols to be built.
12271 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12272
12273 # Flag that forces no undefined symbols.
12274 no_undefined_flag=$lt_no_undefined_flag_CXX
12275
12276 # Commands used to finish a libtool library installation in a directory.
12277 finish_cmds=$lt_finish_cmds
12278
12279 # Same as above, but a single script fragment to be evaled but not shown.
12280 finish_eval=$lt_finish_eval
12281
12282 # Take the output of nm and produce a listing of raw symbols and C names.
12283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12284
12285 # Transform the output of nm in a proper C declaration
12286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12287
12288 # Transform the output of nm in a C name address pair
12289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12290
12291 # This is the shared library runtime path variable.
12292 runpath_var=$runpath_var
12293
12294 # This is the shared library path variable.
12295 shlibpath_var=$shlibpath_var
12296
12297 # Is shlibpath searched before the hard-coded library search path?
12298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12299
12300 # How to hardcode a shared library path into an executable.
12301 hardcode_action=$hardcode_action_CXX
12302
12303 # Whether we should hardcode library paths into libraries.
12304 hardcode_into_libs=$hardcode_into_libs
12305
12306 # Flag to hardcode \$libdir into a binary during linking.
12307 # This must work even if \$libdir does not exist.
12308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12309
12310 # If ld is used when linking, flag to hardcode \$libdir into
12311 # a binary during linking. This must work even if \$libdir does
12312 # not exist.
12313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12314
12315 # Whether we need a single -rpath flag with a separated argument.
12316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12317
12318 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12319 # resulting binary.
12320 hardcode_direct=$hardcode_direct_CXX
12321
12322 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12323 # resulting binary.
12324 hardcode_minus_L=$hardcode_minus_L_CXX
12325
12326 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12327 # the resulting binary.
12328 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12329
12330 # Set to yes if building a shared library automatically hardcodes DIR into the library
12331 # and all subsequent libraries and executables linked against it.
12332 hardcode_automatic=$hardcode_automatic_CXX
12333
12334 # Variables whose values should be saved in libtool wrapper scripts and
12335 # restored at relink time.
12336 variables_saved_for_relink="$variables_saved_for_relink"
12337
12338 # Whether libtool must link a program against all its dependency libraries.
12339 link_all_deplibs=$link_all_deplibs_CXX
12340
12341 # Compile-time system search path for libraries
12342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12343
12344 # Run-time system search path for libraries
12345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12346
12347 # Fix the shell variable \$srcfile for the compiler.
12348 fix_srcfile_path="$fix_srcfile_path_CXX"
12349
12350 # Set to yes if exported symbols are required.
12351 always_export_symbols=$always_export_symbols_CXX
12352
12353 # The commands to list exported symbols.
12354 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12355
12356 # The commands to extract the exported symbol list from a shared archive.
12357 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12358
12359 # Symbols that should not be listed in the preloaded symbols.
12360 exclude_expsyms=$lt_exclude_expsyms_CXX
12361
12362 # Symbols that must always be exported.
12363 include_expsyms=$lt_include_expsyms_CXX
12364
12365 # ### END LIBTOOL TAG CONFIG: $tagname
12366
12367 __EOF__
12368
12369
12370 else
12371 # If there is no Makefile yet, we rely on a make rule to execute
12372 # `config.status --recheck' to rerun these tests and create the
12373 # libtool script then.
12374 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12375 if test -f "$ltmain_in"; then
12376 test -f Makefile && make "$ltmain"
12377 fi
12378 fi
12379
12380
12381 ac_ext=c
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387 CC=$lt_save_CC
12388 LDCXX=$LD
12389 LD=$lt_save_LD
12390 GCC=$lt_save_GCC
12391 with_gnu_ldcxx=$with_gnu_ld
12392 with_gnu_ld=$lt_save_with_gnu_ld
12393 lt_cv_path_LDCXX=$lt_cv_path_LD
12394 lt_cv_path_LD=$lt_save_path_LD
12395 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12396 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12397
12398 else
12399 tagname=""
12400 fi
12401 ;;
12402
12403 F77)
12404 if test -n "$F77" && test "X$F77" != "Xno"; then
12405
12406 ac_ext=f
12407 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12408 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12410
12411
12412 archive_cmds_need_lc_F77=no
12413 allow_undefined_flag_F77=
12414 always_export_symbols_F77=no
12415 archive_expsym_cmds_F77=
12416 export_dynamic_flag_spec_F77=
12417 hardcode_direct_F77=no
12418 hardcode_libdir_flag_spec_F77=
12419 hardcode_libdir_flag_spec_ld_F77=
12420 hardcode_libdir_separator_F77=
12421 hardcode_minus_L_F77=no
12422 hardcode_automatic_F77=no
12423 module_cmds_F77=
12424 module_expsym_cmds_F77=
12425 link_all_deplibs_F77=unknown
12426 old_archive_cmds_F77=$old_archive_cmds
12427 no_undefined_flag_F77=
12428 whole_archive_flag_spec_F77=
12429 enable_shared_with_static_runtimes_F77=no
12430
12431 # Source file extension for f77 test sources.
12432 ac_ext=f
12433
12434 # Object file extension for compiled f77 test sources.
12435 objext=o
12436 objext_F77=$objext
12437
12438 # Code to be used in simple compile tests
12439 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12440
12441 # Code to be used in simple link tests
12442 lt_simple_link_test_code=" program t\n end\n"
12443
12444 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12445
12446 # If no C compiler was specified, use CC.
12447 LTCC=${LTCC-"$CC"}
12448
12449 # Allow CC to be a program name with arguments.
12450 compiler=$CC
12451
12452
12453 # Allow CC to be a program name with arguments.
12454 lt_save_CC="$CC"
12455 CC=${F77-"f77"}
12456 compiler=$CC
12457 compiler_F77=$CC
12458 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12459
12460 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12461 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12462 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12463 echo "${ECHO_T}$can_build_shared" >&6
12464
12465 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12466 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12467 test "$can_build_shared" = "no" && enable_shared=no
12468
12469 # On AIX, shared libraries and static libraries use the same namespace, and
12470 # are all built from PIC.
12471 case "$host_os" in
12472 aix3*)
12473 test "$enable_shared" = yes && enable_static=no
12474 if test -n "$RANLIB"; then
12475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12476 postinstall_cmds='$RANLIB $lib'
12477 fi
12478 ;;
12479 aix4*)
12480 test "$enable_shared" = yes && enable_static=no
12481 ;;
12482 esac
12483 echo "$as_me:$LINENO: result: $enable_shared" >&5
12484 echo "${ECHO_T}$enable_shared" >&6
12485
12486 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12487 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12488 # Make sure either enable_shared or enable_static is yes.
12489 test "$enable_shared" = yes || enable_static=yes
12490 echo "$as_me:$LINENO: result: $enable_static" >&5
12491 echo "${ECHO_T}$enable_static" >&6
12492
12493 test "$ld_shlibs_F77" = no && can_build_shared=no
12494
12495 GCC_F77="$G77"
12496 LD_F77="$LD"
12497
12498 lt_prog_compiler_wl_F77=
12499 lt_prog_compiler_pic_F77=
12500 lt_prog_compiler_static_F77=
12501
12502 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12503 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12504
12505 if test "$GCC" = yes; then
12506 lt_prog_compiler_wl_F77='-Wl,'
12507 lt_prog_compiler_static_F77='-static'
12508
12509 case $host_os in
12510 aix*)
12511 # All AIX code is PIC.
12512 if test "$host_cpu" = ia64; then
12513 # AIX 5 now supports IA64 processor
12514 lt_prog_compiler_static_F77='-Bstatic'
12515 fi
12516 ;;
12517
12518 amigaos*)
12519 # FIXME: we need at least 68020 code to build shared libraries, but
12520 # adding the `-m68020' flag to GCC prevents building anything better,
12521 # like `-m68040'.
12522 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12523 ;;
12524
12525 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12526 # PIC is the default for these OSes.
12527 ;;
12528
12529 mingw* | pw32* | os2*)
12530 # This hack is so that the source file can tell whether it is being
12531 # built for inclusion in a dll (and should export symbols for example).
12532 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12533 ;;
12534
12535 darwin* | rhapsody*)
12536 # PIC is the default on this platform
12537 # Common symbols not allowed in MH_DYLIB files
12538 lt_prog_compiler_pic_F77='-fno-common'
12539 ;;
12540
12541 msdosdjgpp*)
12542 # Just because we use GCC doesn't mean we suddenly get shared libraries
12543 # on systems that don't support them.
12544 lt_prog_compiler_can_build_shared_F77=no
12545 enable_shared=no
12546 ;;
12547
12548 sysv4*MP*)
12549 if test -d /usr/nec; then
12550 lt_prog_compiler_pic_F77=-Kconform_pic
12551 fi
12552 ;;
12553
12554 hpux*)
12555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12556 # not for PA HP-UX.
12557 case "$host_cpu" in
12558 hppa*64*|ia64*)
12559 # +Z the default
12560 ;;
12561 *)
12562 lt_prog_compiler_pic_F77='-fPIC'
12563 ;;
12564 esac
12565 ;;
12566
12567 *)
12568 lt_prog_compiler_pic_F77='-fPIC'
12569 ;;
12570 esac
12571 else
12572 # PORTME Check for flag to pass linker flags through the system compiler.
12573 case $host_os in
12574 aix*)
12575 lt_prog_compiler_wl_F77='-Wl,'
12576 if test "$host_cpu" = ia64; then
12577 # AIX 5 now supports IA64 processor
12578 lt_prog_compiler_static_F77='-Bstatic'
12579 else
12580 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12581 fi
12582 ;;
12583
12584 mingw* | pw32* | os2*)
12585 # This hack is so that the source file can tell whether it is being
12586 # built for inclusion in a dll (and should export symbols for example).
12587 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12588 ;;
12589
12590 hpux9* | hpux10* | hpux11*)
12591 lt_prog_compiler_wl_F77='-Wl,'
12592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12593 # not for PA HP-UX.
12594 case "$host_cpu" in
12595 hppa*64*|ia64*)
12596 # +Z the default
12597 ;;
12598 *)
12599 lt_prog_compiler_pic_F77='+Z'
12600 ;;
12601 esac
12602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12603 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12604 ;;
12605
12606 irix5* | irix6* | nonstopux*)
12607 lt_prog_compiler_wl_F77='-Wl,'
12608 # PIC (with -KPIC) is the default.
12609 lt_prog_compiler_static_F77='-non_shared'
12610 ;;
12611
12612 newsos6)
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12615 ;;
12616
12617 linux*)
12618 case $CC in
12619 icc* | ecc*)
12620 lt_prog_compiler_wl_F77='-Wl,'
12621 lt_prog_compiler_pic_F77='-KPIC'
12622 lt_prog_compiler_static_F77='-static'
12623 ;;
12624 ccc*)
12625 lt_prog_compiler_wl_F77='-Wl,'
12626 # All Alpha code is PIC.
12627 lt_prog_compiler_static_F77='-non_shared'
12628 ;;
12629 esac
12630 ;;
12631
12632 osf3* | osf4* | osf5*)
12633 lt_prog_compiler_wl_F77='-Wl,'
12634 # All OSF/1 code is PIC.
12635 lt_prog_compiler_static_F77='-non_shared'
12636 ;;
12637
12638 sco3.2v5*)
12639 lt_prog_compiler_pic_F77='-Kpic'
12640 lt_prog_compiler_static_F77='-dn'
12641 ;;
12642
12643 solaris*)
12644 lt_prog_compiler_wl_F77='-Wl,'
12645 lt_prog_compiler_pic_F77='-KPIC'
12646 lt_prog_compiler_static_F77='-Bstatic'
12647 ;;
12648
12649 sunos4*)
12650 lt_prog_compiler_wl_F77='-Qoption ld '
12651 lt_prog_compiler_pic_F77='-PIC'
12652 lt_prog_compiler_static_F77='-Bstatic'
12653 ;;
12654
12655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12656 lt_prog_compiler_wl_F77='-Wl,'
12657 lt_prog_compiler_pic_F77='-KPIC'
12658 lt_prog_compiler_static_F77='-Bstatic'
12659 ;;
12660
12661 sysv4*MP*)
12662 if test -d /usr/nec ;then
12663 lt_prog_compiler_pic_F77='-Kconform_pic'
12664 lt_prog_compiler_static_F77='-Bstatic'
12665 fi
12666 ;;
12667
12668 uts4*)
12669 lt_prog_compiler_pic_F77='-pic'
12670 lt_prog_compiler_static_F77='-Bstatic'
12671 ;;
12672
12673 *)
12674 lt_prog_compiler_can_build_shared_F77=no
12675 ;;
12676 esac
12677 fi
12678
12679 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12680 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12681
12682 #
12683 # Check to make sure the PIC flag actually works.
12684 #
12685 if test -n "$lt_prog_compiler_pic_F77"; then
12686
12687 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12688 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12689 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692 lt_prog_compiler_pic_works_F77=no
12693 ac_outfile=conftest.$ac_objext
12694 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12695 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12696 # Insert the option either (1) after the last *FLAGS variable, or
12697 # (2) before a word containing "conftest.", or (3) at the end.
12698 # Note that $ac_compile itself does not contain backslashes and begins
12699 # with a dollar sign (not a hyphen), so the echo should work correctly.
12700 # The option is referenced via a variable to avoid confusing sed.
12701 lt_compile=`echo "$ac_compile" | $SED \
12702 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12704 -e 's:$: $lt_compiler_flag:'`
12705 (eval echo "\"\$as_me:12705: $lt_compile\"" >&5)
12706 (eval "$lt_compile" 2>conftest.err)
12707 ac_status=$?
12708 cat conftest.err >&5
12709 echo "$as_me:12709: \$? = $ac_status" >&5
12710 if (exit $ac_status) && test -s "$ac_outfile"; then
12711 # The compiler can only warn and ignore the option if not recognized
12712 # So say no if there are warnings
12713 if test ! -s conftest.err; then
12714 lt_prog_compiler_pic_works_F77=yes
12715 fi
12716 fi
12717 $rm conftest*
12718
12719 fi
12720 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12721 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12722
12723 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12724 case $lt_prog_compiler_pic_F77 in
12725 "" | " "*) ;;
12726 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12727 esac
12728 else
12729 lt_prog_compiler_pic_F77=
12730 lt_prog_compiler_can_build_shared_F77=no
12731 fi
12732
12733 fi
12734 case "$host_os" in
12735 # For platforms which do not support PIC, -DPIC is meaningless:
12736 *djgpp*)
12737 lt_prog_compiler_pic_F77=
12738 ;;
12739 *)
12740 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12741 ;;
12742 esac
12743
12744 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12745 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12746 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 lt_cv_prog_compiler_c_o_F77=no
12750 $rm -r conftest 2>/dev/null
12751 mkdir conftest
12752 cd conftest
12753 mkdir out
12754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12755
12756 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12757 # that will create temporary files in the current directory regardless of
12758 # the output directory. Thus, making CWD read-only will cause this test
12759 # to fail, enabling locking or at least warning the user not to do parallel
12760 # builds.
12761 chmod -w .
12762
12763 lt_compiler_flag="-o out/conftest2.$ac_objext"
12764 # Insert the option either (1) after the last *FLAGS variable, or
12765 # (2) before a word containing "conftest.", or (3) at the end.
12766 # Note that $ac_compile itself does not contain backslashes and begins
12767 # with a dollar sign (not a hyphen), so the echo should work correctly.
12768 lt_compile=`echo "$ac_compile" | $SED \
12769 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12771 -e 's:$: $lt_compiler_flag:'`
12772 (eval echo "\"\$as_me:12772: $lt_compile\"" >&5)
12773 (eval "$lt_compile" 2>out/conftest.err)
12774 ac_status=$?
12775 cat out/conftest.err >&5
12776 echo "$as_me:12776: \$? = $ac_status" >&5
12777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12778 then
12779 # The compiler can only warn and ignore the option if not recognized
12780 # So say no if there are warnings
12781 if test ! -s out/conftest.err; then
12782 lt_cv_prog_compiler_c_o_F77=yes
12783 fi
12784 fi
12785 chmod u+w .
12786 $rm conftest*
12787 # SGI C++ compiler will create directory out/ii_files/ for
12788 # template instantiation
12789 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12790 $rm out/* && rmdir out
12791 cd ..
12792 rmdir conftest
12793 $rm conftest*
12794
12795 fi
12796 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12797 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12798
12799
12800 hard_links="nottested"
12801 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12802 # do not overwrite the value of need_locks provided by the user
12803 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12804 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12805 hard_links=yes
12806 $rm conftest*
12807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12808 touch conftest.a
12809 ln conftest.a conftest.b 2>&5 || hard_links=no
12810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12811 echo "$as_me:$LINENO: result: $hard_links" >&5
12812 echo "${ECHO_T}$hard_links" >&6
12813 if test "$hard_links" = no; then
12814 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12815 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12816 need_locks=warn
12817 fi
12818 else
12819 need_locks=no
12820 fi
12821
12822 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12823 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12824
12825 runpath_var=
12826 allow_undefined_flag_F77=
12827 enable_shared_with_static_runtimes_F77=no
12828 archive_cmds_F77=
12829 archive_expsym_cmds_F77=
12830 old_archive_From_new_cmds_F77=
12831 old_archive_from_expsyms_cmds_F77=
12832 export_dynamic_flag_spec_F77=
12833 whole_archive_flag_spec_F77=
12834 thread_safe_flag_spec_F77=
12835 hardcode_libdir_flag_spec_F77=
12836 hardcode_libdir_flag_spec_ld_F77=
12837 hardcode_libdir_separator_F77=
12838 hardcode_direct_F77=no
12839 hardcode_minus_L_F77=no
12840 hardcode_shlibpath_var_F77=unsupported
12841 link_all_deplibs_F77=unknown
12842 hardcode_automatic_F77=no
12843 module_cmds_F77=
12844 module_expsym_cmds_F77=
12845 always_export_symbols_F77=no
12846 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12847 # include_expsyms should be a list of space-separated symbols to be *always*
12848 # included in the symbol list
12849 include_expsyms_F77=
12850 # exclude_expsyms can be an extended regexp of symbols to exclude
12851 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12852 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12853 # as well as any symbol that contains `d'.
12854 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12855 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12856 # platforms (ab)use it in PIC code, but their linkers get confused if
12857 # the symbol is explicitly referenced. Since portable code cannot
12858 # rely on this symbol name, it's probably fine to never include it in
12859 # preloaded symbol tables.
12860 extract_expsyms_cmds=
12861
12862 case $host_os in
12863 cygwin* | mingw* | pw32*)
12864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12865 # When not using gcc, we currently assume that we are using
12866 # Microsoft Visual C++.
12867 if test "$GCC" != yes; then
12868 with_gnu_ld=no
12869 fi
12870 ;;
12871 openbsd*)
12872 with_gnu_ld=no
12873 ;;
12874 esac
12875
12876 ld_shlibs_F77=yes
12877 if test "$with_gnu_ld" = yes; then
12878 # If archive_cmds runs LD, not CC, wlarc should be empty
12879 wlarc='${wl}'
12880
12881 # See if GNU ld supports shared libraries.
12882 case $host_os in
12883 aix3* | aix4* | aix5*)
12884 # On AIX/PPC, the GNU linker is very broken
12885 if test "$host_cpu" != ia64; then
12886 ld_shlibs_F77=no
12887 cat <<EOF 1>&2
12888
12889 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12890 *** to be unable to reliably create shared libraries on AIX.
12891 *** Therefore, libtool is disabling shared libraries support. If you
12892 *** really care for shared libraries, you may want to modify your PATH
12893 *** so that a non-GNU linker is found, and then restart.
12894
12895 EOF
12896 fi
12897 ;;
12898
12899 amigaos*)
12900 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)'
12901 hardcode_libdir_flag_spec_F77='-L$libdir'
12902 hardcode_minus_L_F77=yes
12903
12904 # Samuel A. Falvo II <[email protected]> reports
12905 # that the semantics of dynamic libraries on AmigaOS, at least up
12906 # to version 4, is to share data among multiple programs linked
12907 # with the same dynamic library. Since this doesn't match the
12908 # behavior of shared libraries on other platforms, we can't use
12909 # them.
12910 ld_shlibs_F77=no
12911 ;;
12912
12913 beos*)
12914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12915 allow_undefined_flag_F77=unsupported
12916 # Joseph Beckenbach <[email protected]> says some releases of gcc
12917 # support --undefined. This deserves some investigation. FIXME
12918 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 else
12920 ld_shlibs_F77=no
12921 fi
12922 ;;
12923
12924 cygwin* | mingw* | pw32*)
12925 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12926 # as there is no search path for DLLs.
12927 hardcode_libdir_flag_spec_F77='-L$libdir'
12928 allow_undefined_flag_F77=unsupported
12929 always_export_symbols_F77=no
12930 enable_shared_with_static_runtimes_F77=yes
12931 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12932
12933 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12935 # If the export-symbols file already is a .def file (1st line
12936 # is EXPORTS), use it as is; otherwise, prepend...
12937 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12938 cp $export_symbols $output_objdir/$soname.def;
12939 else
12940 echo EXPORTS > $output_objdir/$soname.def;
12941 cat $export_symbols >> $output_objdir/$soname.def;
12942 fi~
12943 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12944 else
12945 ld_shlibs=no
12946 fi
12947 ;;
12948
12949 netbsd*)
12950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12951 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12952 wlarc=
12953 else
12954 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12955 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12956 fi
12957 ;;
12958
12959 solaris* | sysv5*)
12960 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12961 ld_shlibs_F77=no
12962 cat <<EOF 1>&2
12963
12964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12965 *** create shared libraries on Solaris systems. Therefore, libtool
12966 *** is disabling shared libraries support. We urge you to upgrade GNU
12967 *** binutils to release 2.9.1 or newer. Another option is to modify
12968 *** your PATH or compiler configuration so that the native linker is
12969 *** used, and then restart.
12970
12971 EOF
12972 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12973 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975 else
12976 ld_shlibs_F77=no
12977 fi
12978 ;;
12979
12980 sunos4*)
12981 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12982 wlarc=
12983 hardcode_direct_F77=yes
12984 hardcode_shlibpath_var_F77=no
12985 ;;
12986
12987 linux*)
12988 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12989 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 archive_cmds_F77="$tmp_archive_cmds"
12991 supports_anon_versioning=no
12992 case `$LD -v 2>/dev/null` in
12993 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12996 *\ 2.11.*) ;; # other 2.11 versions
12997 *) supports_anon_versioning=yes ;;
12998 esac
12999 if test $supports_anon_versioning = yes; then
13000 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13002 $echo "local: *; };" >> $output_objdir/$libname.ver~
13003 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13004 else
13005 archive_expsym_cmds_F77="$tmp_archive_cmds"
13006 fi
13007 else
13008 ld_shlibs_F77=no
13009 fi
13010 ;;
13011
13012 *)
13013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13014 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13016 else
13017 ld_shlibs_F77=no
13018 fi
13019 ;;
13020 esac
13021
13022 if test "$ld_shlibs_F77" = yes; then
13023 runpath_var=LD_RUN_PATH
13024 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13025 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13026 # ancient GNU ld didn't support --whole-archive et. al.
13027 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13028 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13029 else
13030 whole_archive_flag_spec_F77=
13031 fi
13032 fi
13033 else
13034 # PORTME fill in a description of your system's linker (not GNU ld)
13035 case $host_os in
13036 aix3*)
13037 allow_undefined_flag_F77=unsupported
13038 always_export_symbols_F77=yes
13039 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'
13040 # Note: this linker hardcodes the directories in LIBPATH if there
13041 # are no directories specified by -L.
13042 hardcode_minus_L_F77=yes
13043 if test "$GCC" = yes && test -z "$link_static_flag"; then
13044 # Neither direct hardcoding nor static linking is supported with a
13045 # broken collect2.
13046 hardcode_direct_F77=unsupported
13047 fi
13048 ;;
13049
13050 aix4* | aix5*)
13051 if test "$host_cpu" = ia64; then
13052 # On IA64, the linker does run time linking by default, so we don't
13053 # have to do anything special.
13054 aix_use_runtimelinking=no
13055 exp_sym_flag='-Bexport'
13056 no_entry_flag=""
13057 else
13058 # If we're using GNU nm, then we don't want the "-C" option.
13059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13060 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13061 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'
13062 else
13063 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'
13064 fi
13065 aix_use_runtimelinking=no
13066
13067 # Test if we are trying to use run time linking or normal
13068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13069 # need to do runtime linking.
13070 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13071 for ld_flag in $LDFLAGS; do
13072 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13073 aix_use_runtimelinking=yes
13074 break
13075 fi
13076 done
13077 esac
13078
13079 exp_sym_flag='-bexport'
13080 no_entry_flag='-bnoentry'
13081 fi
13082
13083 # When large executables or shared objects are built, AIX ld can
13084 # have problems creating the table of contents. If linking a library
13085 # or program results in "error TOC overflow" add -mminimal-toc to
13086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13088
13089 archive_cmds_F77=''
13090 hardcode_direct_F77=yes
13091 hardcode_libdir_separator_F77=':'
13092 link_all_deplibs_F77=yes
13093
13094 if test "$GCC" = yes; then
13095 case $host_os in aix4.012|aix4.012.*)
13096 # We only want to do this on AIX 4.2 and lower, the check
13097 # below for broken collect2 doesn't work under 4.3+
13098 collect2name=`${CC} -print-prog-name=collect2`
13099 if test -f "$collect2name" && \
13100 strings "$collect2name" | grep resolve_lib_name >/dev/null
13101 then
13102 # We have reworked collect2
13103 hardcode_direct_F77=yes
13104 else
13105 # We have old collect2
13106 hardcode_direct_F77=unsupported
13107 # It fails to find uninstalled libraries when the uninstalled
13108 # path is not listed in the libpath. Setting hardcode_minus_L
13109 # to unsupported forces relinking
13110 hardcode_minus_L_F77=yes
13111 hardcode_libdir_flag_spec_F77='-L$libdir'
13112 hardcode_libdir_separator_F77=
13113 fi
13114 esac
13115 shared_flag='-shared'
13116 else
13117 # not using gcc
13118 if test "$host_cpu" = ia64; then
13119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13120 # chokes on -Wl,-G. The following line is correct:
13121 shared_flag='-G'
13122 else
13123 if test "$aix_use_runtimelinking" = yes; then
13124 shared_flag='${wl}-G'
13125 else
13126 shared_flag='${wl}-bM:SRE'
13127 fi
13128 fi
13129 fi
13130
13131 # It seems that -bexpall does not export symbols beginning with
13132 # underscore (_), so it is better to generate a list of symbols to export.
13133 always_export_symbols_F77=yes
13134 if test "$aix_use_runtimelinking" = yes; then
13135 # Warning - without using the other runtime loading flags (-brtl),
13136 # -berok will link without error, but may produce a broken library.
13137 allow_undefined_flag_F77='-berok'
13138 # Determine the default libpath from the value encoded in an empty executable.
13139 cat >conftest.$ac_ext <<_ACEOF
13140 program main
13141
13142 end
13143 _ACEOF
13144 rm -f conftest.$ac_objext conftest$ac_exeext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13146 (eval $ac_link) 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
13153 { ac_try='test -z "$ac_f77_werror_flag"
13154 || test ! -s conftest.err'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; } &&
13160 { ac_try='test -s conftest$ac_exeext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166
13167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13168 }'`
13169 # Check for a 64-bit object if we didn't find anything.
13170 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; }
13171 }'`; fi
13172 else
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176 fi
13177 rm -f conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13180
13181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13182 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13183 else
13184 if test "$host_cpu" = ia64; then
13185 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13186 allow_undefined_flag_F77="-z nodefs"
13187 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13188 else
13189 # Determine the default libpath from the value encoded in an empty executable.
13190 cat >conftest.$ac_ext <<_ACEOF
13191 program main
13192
13193 end
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197 (eval $ac_link) 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_f77_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217
13218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13219 }'`
13220 # Check for a 64-bit object if we didn't find anything.
13221 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; }
13222 }'`; fi
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 fi
13228 rm -f conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13231
13232 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13233 # Warning - without using the other run time loading flags,
13234 # -berok will link without error, but may produce a broken library.
13235 no_undefined_flag_F77=' ${wl}-bernotok'
13236 allow_undefined_flag_F77=' ${wl}-berok'
13237 # -bexpall does not export symbols beginning with underscore (_)
13238 always_export_symbols_F77=yes
13239 # Exported symbols can be pulled into shared objects from archives
13240 whole_archive_flag_spec_F77=' '
13241 archive_cmds_need_lc_F77=yes
13242 # This is similar to how AIX traditionally builds it's shared libraries.
13243 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13244 fi
13245 fi
13246 ;;
13247
13248 amigaos*)
13249 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)'
13250 hardcode_libdir_flag_spec_F77='-L$libdir'
13251 hardcode_minus_L_F77=yes
13252 # see comment about different semantics on the GNU ld section
13253 ld_shlibs_F77=no
13254 ;;
13255
13256 bsdi4*)
13257 export_dynamic_flag_spec_F77=-rdynamic
13258 ;;
13259
13260 cygwin* | mingw* | pw32*)
13261 # When not using gcc, we currently assume that we are using
13262 # Microsoft Visual C++.
13263 # hardcode_libdir_flag_spec is actually meaningless, as there is
13264 # no search path for DLLs.
13265 hardcode_libdir_flag_spec_F77=' '
13266 allow_undefined_flag_F77=unsupported
13267 # Tell ltmain to make .lib files, not .a files.
13268 libext=lib
13269 # Tell ltmain to make .dll files, not .so files.
13270 shrext=".dll"
13271 # FIXME: Setting linknames here is a bad hack.
13272 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13273 # The linker will automatically build a .lib file if we build a DLL.
13274 old_archive_From_new_cmds_F77='true'
13275 # FIXME: Should let the user specify the lib program.
13276 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13277 fix_srcfile_path='`cygpath -w "$srcfile"`'
13278 enable_shared_with_static_runtimes_F77=yes
13279 ;;
13280
13281 darwin* | rhapsody*)
13282 if test "$GXX" = yes ; then
13283 archive_cmds_need_lc_F77=no
13284 case "$host_os" in
13285 rhapsody* | darwin1.[012])
13286 allow_undefined_flag_F77='-undefined suppress'
13287 ;;
13288 *) # Darwin 1.3 on
13289 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13290 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13291 else
13292 case ${MACOSX_DEPLOYMENT_TARGET} in
13293 10.[012])
13294 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13295 ;;
13296 10.*)
13297 allow_undefined_flag_F77='-undefined dynamic_lookup'
13298 ;;
13299 esac
13300 fi
13301 ;;
13302 esac
13303 lt_int_apple_cc_single_mod=no
13304 output_verbose_link_cmd='echo'
13305 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13306 lt_int_apple_cc_single_mod=yes
13307 fi
13308 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13309 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13310 else
13311 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13312 fi
13313 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13315 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13316 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13317 else
13318 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13319 fi
13320 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}'
13321 hardcode_direct_F77=no
13322 hardcode_automatic_F77=yes
13323 hardcode_shlibpath_var_F77=unsupported
13324 whole_archive_flag_spec_F77='-all_load $convenience'
13325 link_all_deplibs_F77=yes
13326 else
13327 ld_shlibs_F77=no
13328 fi
13329 ;;
13330
13331 dgux*)
13332 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13333 hardcode_libdir_flag_spec_F77='-L$libdir'
13334 hardcode_shlibpath_var_F77=no
13335 ;;
13336
13337 freebsd1*)
13338 ld_shlibs_F77=no
13339 ;;
13340
13341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13342 # support. Future versions do this automatically, but an explicit c++rt0.o
13343 # does not break anything, and helps significantly (at the cost of a little
13344 # extra space).
13345 freebsd2.2*)
13346 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13347 hardcode_libdir_flag_spec_F77='-R$libdir'
13348 hardcode_direct_F77=yes
13349 hardcode_shlibpath_var_F77=no
13350 ;;
13351
13352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13353 freebsd2*)
13354 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13355 hardcode_direct_F77=yes
13356 hardcode_minus_L_F77=yes
13357 hardcode_shlibpath_var_F77=no
13358 ;;
13359
13360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13361 freebsd* | kfreebsd*-gnu)
13362 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13363 hardcode_libdir_flag_spec_F77='-R$libdir'
13364 hardcode_direct_F77=yes
13365 hardcode_shlibpath_var_F77=no
13366 ;;
13367
13368 hpux9*)
13369 if test "$GCC" = yes; then
13370 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'
13371 else
13372 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'
13373 fi
13374 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13375 hardcode_libdir_separator_F77=:
13376 hardcode_direct_F77=yes
13377
13378 # hardcode_minus_L: Not really in the search PATH,
13379 # but as the default location of the library.
13380 hardcode_minus_L_F77=yes
13381 export_dynamic_flag_spec_F77='${wl}-E'
13382 ;;
13383
13384 hpux10* | hpux11*)
13385 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13386 case "$host_cpu" in
13387 hppa*64*|ia64*)
13388 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13389 ;;
13390 *)
13391 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13392 ;;
13393 esac
13394 else
13395 case "$host_cpu" in
13396 hppa*64*|ia64*)
13397 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13398 ;;
13399 *)
13400 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13401 ;;
13402 esac
13403 fi
13404 if test "$with_gnu_ld" = no; then
13405 case "$host_cpu" in
13406 hppa*64*)
13407 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13408 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13409 hardcode_libdir_separator_F77=:
13410 hardcode_direct_F77=no
13411 hardcode_shlibpath_var_F77=no
13412 ;;
13413 ia64*)
13414 hardcode_libdir_flag_spec_F77='-L$libdir'
13415 hardcode_direct_F77=no
13416 hardcode_shlibpath_var_F77=no
13417
13418 # hardcode_minus_L: Not really in the search PATH,
13419 # but as the default location of the library.
13420 hardcode_minus_L_F77=yes
13421 ;;
13422 *)
13423 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13424 hardcode_libdir_separator_F77=:
13425 hardcode_direct_F77=yes
13426 export_dynamic_flag_spec_F77='${wl}-E'
13427
13428 # hardcode_minus_L: Not really in the search PATH,
13429 # but as the default location of the library.
13430 hardcode_minus_L_F77=yes
13431 ;;
13432 esac
13433 fi
13434 ;;
13435
13436 irix5* | irix6* | nonstopux*)
13437 if test "$GCC" = yes; then
13438 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'
13439 else
13440 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'
13441 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13442 fi
13443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13444 hardcode_libdir_separator_F77=:
13445 link_all_deplibs_F77=yes
13446 ;;
13447
13448 netbsd*)
13449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13450 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13451 else
13452 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13453 fi
13454 hardcode_libdir_flag_spec_F77='-R$libdir'
13455 hardcode_direct_F77=yes
13456 hardcode_shlibpath_var_F77=no
13457 ;;
13458
13459 newsos6)
13460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13461 hardcode_direct_F77=yes
13462 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13463 hardcode_libdir_separator_F77=:
13464 hardcode_shlibpath_var_F77=no
13465 ;;
13466
13467 openbsd*)
13468 hardcode_direct_F77=yes
13469 hardcode_shlibpath_var_F77=no
13470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13472 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13473 export_dynamic_flag_spec_F77='${wl}-E'
13474 else
13475 case $host_os in
13476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13477 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_libdir_flag_spec_F77='-R$libdir'
13479 ;;
13480 *)
13481 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13482 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13483 ;;
13484 esac
13485 fi
13486 ;;
13487
13488 os2*)
13489 hardcode_libdir_flag_spec_F77='-L$libdir'
13490 hardcode_minus_L_F77=yes
13491 allow_undefined_flag_F77=unsupported
13492 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'
13493 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13494 ;;
13495
13496 osf3*)
13497 if test "$GCC" = yes; then
13498 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13499 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'
13500 else
13501 allow_undefined_flag_F77=' -expect_unresolved \*'
13502 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'
13503 fi
13504 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13505 hardcode_libdir_separator_F77=:
13506 ;;
13507
13508 osf4* | osf5*) # as osf3* with the addition of -msym flag
13509 if test "$GCC" = yes; then
13510 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13511 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'
13512 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13513 else
13514 allow_undefined_flag_F77=' -expect_unresolved \*'
13515 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'
13516 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~
13517 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13518
13519 # Both c and cxx compiler support -rpath directly
13520 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13521 fi
13522 hardcode_libdir_separator_F77=:
13523 ;;
13524
13525 sco3.2v5*)
13526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527 hardcode_shlibpath_var_F77=no
13528 export_dynamic_flag_spec_F77='${wl}-Bexport'
13529 runpath_var=LD_RUN_PATH
13530 hardcode_runpath_var=yes
13531 ;;
13532
13533 solaris*)
13534 no_undefined_flag_F77=' -z text'
13535 if test "$GCC" = yes; then
13536 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13538 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13539 else
13540 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13541 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13542 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13543 fi
13544 hardcode_libdir_flag_spec_F77='-R$libdir'
13545 hardcode_shlibpath_var_F77=no
13546 case $host_os in
13547 solaris2.[0-5] | solaris2.[0-5].*) ;;
13548 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13549 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13550 esac
13551 link_all_deplibs_F77=yes
13552 ;;
13553
13554 sunos4*)
13555 if test "x$host_vendor" = xsequent; then
13556 # Use $CC to link under sequent, because it throws in some extra .o
13557 # files that make .init and .fini sections work.
13558 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13559 else
13560 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13561 fi
13562 hardcode_libdir_flag_spec_F77='-L$libdir'
13563 hardcode_direct_F77=yes
13564 hardcode_minus_L_F77=yes
13565 hardcode_shlibpath_var_F77=no
13566 ;;
13567
13568 sysv4)
13569 case $host_vendor in
13570 sni)
13571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13572 hardcode_direct_F77=yes # is this really true???
13573 ;;
13574 siemens)
13575 ## LD is ld it makes a PLAMLIB
13576 ## CC just makes a GrossModule.
13577 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13578 reload_cmds_F77='$CC -r -o $output$reload_objs'
13579 hardcode_direct_F77=no
13580 ;;
13581 motorola)
13582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13584 ;;
13585 esac
13586 runpath_var='LD_RUN_PATH'
13587 hardcode_shlibpath_var_F77=no
13588 ;;
13589
13590 sysv4.3*)
13591 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592 hardcode_shlibpath_var_F77=no
13593 export_dynamic_flag_spec_F77='-Bexport'
13594 ;;
13595
13596 sysv4*MP*)
13597 if test -d /usr/nec; then
13598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599 hardcode_shlibpath_var_F77=no
13600 runpath_var=LD_RUN_PATH
13601 hardcode_runpath_var=yes
13602 ld_shlibs_F77=yes
13603 fi
13604 ;;
13605
13606 sysv4.2uw2*)
13607 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13608 hardcode_direct_F77=yes
13609 hardcode_minus_L_F77=no
13610 hardcode_shlibpath_var_F77=no
13611 hardcode_runpath_var=yes
13612 runpath_var=LD_RUN_PATH
13613 ;;
13614
13615 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13616 no_undefined_flag_F77='${wl}-z ${wl}text'
13617 if test "$GCC" = yes; then
13618 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13619 else
13620 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13621 fi
13622 runpath_var='LD_RUN_PATH'
13623 hardcode_shlibpath_var_F77=no
13624 ;;
13625
13626 sysv5*)
13627 no_undefined_flag_F77=' -z text'
13628 # $CC -shared without GNU ld will not create a library from C++
13629 # object files and a static libstdc++, better avoid it by now
13630 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13631 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13633 hardcode_libdir_flag_spec_F77=
13634 hardcode_shlibpath_var_F77=no
13635 runpath_var='LD_RUN_PATH'
13636 ;;
13637
13638 uts4*)
13639 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13640 hardcode_libdir_flag_spec_F77='-L$libdir'
13641 hardcode_shlibpath_var_F77=no
13642 ;;
13643
13644 *)
13645 ld_shlibs_F77=no
13646 ;;
13647 esac
13648 fi
13649
13650 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13651 echo "${ECHO_T}$ld_shlibs_F77" >&6
13652 test "$ld_shlibs_F77" = no && can_build_shared=no
13653
13654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13655 if test "$GCC" = yes; then
13656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13657 fi
13658
13659 #
13660 # Do we need to explicitly link libc?
13661 #
13662 case "x$archive_cmds_need_lc_F77" in
13663 x|xyes)
13664 # Assume -lc should be added
13665 archive_cmds_need_lc_F77=yes
13666
13667 if test "$enable_shared" = yes && test "$GCC" = yes; then
13668 case $archive_cmds_F77 in
13669 *'~'*)
13670 # FIXME: we may have to deal with multi-command sequences.
13671 ;;
13672 '$CC '*)
13673 # Test whether the compiler implicitly links with -lc since on some
13674 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13675 # to ld, don't add -lc before -lgcc.
13676 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13677 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13678 $rm conftest*
13679 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13680
13681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13682 (eval $ac_compile) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } 2>conftest.err; then
13686 soname=conftest
13687 lib=conftest
13688 libobjs=conftest.$ac_objext
13689 deplibs=
13690 wl=$lt_prog_compiler_wl_F77
13691 compiler_flags=-v
13692 linker_flags=-v
13693 verstring=
13694 output_objdir=.
13695 libname=conftest
13696 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13697 allow_undefined_flag_F77=
13698 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13699 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }
13703 then
13704 archive_cmds_need_lc_F77=no
13705 else
13706 archive_cmds_need_lc_F77=yes
13707 fi
13708 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13709 else
13710 cat conftest.err 1>&5
13711 fi
13712 $rm conftest*
13713 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13714 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13715 ;;
13716 esac
13717 fi
13718 ;;
13719 esac
13720
13721 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13722 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13723 library_names_spec=
13724 libname_spec='lib$name'
13725 soname_spec=
13726 shrext=".so"
13727 postinstall_cmds=
13728 postuninstall_cmds=
13729 finish_cmds=
13730 finish_eval=
13731 shlibpath_var=
13732 shlibpath_overrides_runpath=unknown
13733 version_type=none
13734 dynamic_linker="$host_os ld.so"
13735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13736 if test "$GCC" = yes; then
13737 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13738 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13739 # if the path contains ";" then we assume it to be the separator
13740 # otherwise default to the standard path separator (i.e. ":") - it is
13741 # assumed that no part of a normal pathname contains ";" but that should
13742 # okay in the real world where ";" in dirpaths is itself problematic.
13743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13744 else
13745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13746 fi
13747 else
13748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13749 fi
13750 need_lib_prefix=unknown
13751 hardcode_into_libs=no
13752
13753 # when you set need_version to no, make sure it does not cause -set_version
13754 # flags to be left without arguments
13755 need_version=unknown
13756
13757 case $host_os in
13758 aix3*)
13759 version_type=linux
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13761 shlibpath_var=LIBPATH
13762
13763 # AIX 3 has no versioning support, so we append a major version to the name.
13764 soname_spec='${libname}${release}${shared_ext}$major'
13765 ;;
13766
13767 aix4* | aix5*)
13768 version_type=linux
13769 need_lib_prefix=no
13770 need_version=no
13771 hardcode_into_libs=yes
13772 if test "$host_cpu" = ia64; then
13773 # AIX 5 supports IA64
13774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13775 shlibpath_var=LD_LIBRARY_PATH
13776 else
13777 # With GCC up to 2.95.x, collect2 would create an import file
13778 # for dependence libraries. The import file would start with
13779 # the line `#! .'. This would cause the generated library to
13780 # depend on `.', always an invalid library. This was fixed in
13781 # development snapshots of GCC prior to 3.0.
13782 case $host_os in
13783 aix4 | aix4.[01] | aix4.[01].*)
13784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13785 echo ' yes '
13786 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13787 :
13788 else
13789 can_build_shared=no
13790 fi
13791 ;;
13792 esac
13793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13794 # soname into executable. Probably we can add versioning support to
13795 # collect2, so additional links can be useful in future.
13796 if test "$aix_use_runtimelinking" = yes; then
13797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13798 # instead of lib<name>.a to let people know that these are not
13799 # typical AIX shared libraries.
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801 else
13802 # We preserve .a as extension for shared libraries through AIX4.2
13803 # and later when we are not doing run time linking.
13804 library_names_spec='${libname}${release}.a $libname.a'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 fi
13807 shlibpath_var=LIBPATH
13808 fi
13809 ;;
13810
13811 amigaos*)
13812 library_names_spec='$libname.ixlibrary $libname.a'
13813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13814 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'
13815 ;;
13816
13817 beos*)
13818 library_names_spec='${libname}${shared_ext}'
13819 dynamic_linker="$host_os ld.so"
13820 shlibpath_var=LIBRARY_PATH
13821 ;;
13822
13823 bsdi4*)
13824 version_type=linux
13825 need_version=no
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13829 shlibpath_var=LD_LIBRARY_PATH
13830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13832 # the default ld.so.conf also contains /usr/contrib/lib and
13833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13834 # libtool to hard-code these into programs
13835 ;;
13836
13837 cygwin* | mingw* | pw32*)
13838 version_type=windows
13839 shrext=".dll"
13840 need_version=no
13841 need_lib_prefix=no
13842
13843 case $GCC,$host_os in
13844 yes,cygwin* | yes,mingw* | yes,pw32*)
13845 library_names_spec='$libname.dll.a'
13846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13847 postinstall_cmds='base_file=`basename \${file}`~
13848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13849 dldir=$destdir/`dirname \$dlpath`~
13850 test -d \$dldir || mkdir -p \$dldir~
13851 $install_prog $dir/$dlname \$dldir/$dlname'
13852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13853 dlpath=$dir/\$dldll~
13854 $rm \$dlpath'
13855 shlibpath_overrides_runpath=yes
13856
13857 case $host_os in
13858 cygwin*)
13859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13862 ;;
13863 mingw*)
13864 # MinGW DLLs use traditional 'lib' prefix
13865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13868 # It is most probably a Windows format PATH printed by
13869 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13870 # path with ; separators, and with drive letters. We can handle the
13871 # drive letters (cygwin fileutils understands them), so leave them,
13872 # especially as we might pass files found there to a mingw objdump,
13873 # which wouldn't understand a cygwinified path. Ahh.
13874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13875 else
13876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13877 fi
13878 ;;
13879 pw32*)
13880 # pw32 DLLs use 'pw' prefix rather than 'lib'
13881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13882 ;;
13883 esac
13884 ;;
13885
13886 *)
13887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13888 ;;
13889 esac
13890 dynamic_linker='Win32 ld.exe'
13891 # FIXME: first we should search . and the directory the executable is in
13892 shlibpath_var=PATH
13893 ;;
13894
13895 darwin* | rhapsody*)
13896 dynamic_linker="$host_os dyld"
13897 version_type=darwin
13898 need_lib_prefix=no
13899 need_version=no
13900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13901 soname_spec='${libname}${release}${major}$shared_ext'
13902 shlibpath_overrides_runpath=yes
13903 shlibpath_var=DYLD_LIBRARY_PATH
13904 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13905 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13906 if test "$GCC" = yes; then
13907 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"`
13908 else
13909 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13910 fi
13911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13912 ;;
13913
13914 dgux*)
13915 version_type=linux
13916 need_lib_prefix=no
13917 need_version=no
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13919 soname_spec='${libname}${release}${shared_ext}$major'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 ;;
13922
13923 freebsd1*)
13924 dynamic_linker=no
13925 ;;
13926
13927 kfreebsd*-gnu)
13928 version_type=linux
13929 need_lib_prefix=no
13930 need_version=no
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 shlibpath_overrides_runpath=no
13935 hardcode_into_libs=yes
13936 dynamic_linker='GNU ld.so'
13937 ;;
13938
13939 freebsd*)
13940 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13941 version_type=freebsd-$objformat
13942 case $version_type in
13943 freebsd-elf*)
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13945 need_version=no
13946 need_lib_prefix=no
13947 ;;
13948 freebsd-*)
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13950 need_version=yes
13951 ;;
13952 esac
13953 shlibpath_var=LD_LIBRARY_PATH
13954 case $host_os in
13955 freebsd2*)
13956 shlibpath_overrides_runpath=yes
13957 ;;
13958 freebsd3.01* | freebsdelf3.01*)
13959 shlibpath_overrides_runpath=yes
13960 hardcode_into_libs=yes
13961 ;;
13962 *) # from 3.2 on
13963 shlibpath_overrides_runpath=no
13964 hardcode_into_libs=yes
13965 ;;
13966 esac
13967 ;;
13968
13969 gnu*)
13970 version_type=linux
13971 need_lib_prefix=no
13972 need_version=no
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13974 soname_spec='${libname}${release}${shared_ext}$major'
13975 shlibpath_var=LD_LIBRARY_PATH
13976 hardcode_into_libs=yes
13977 ;;
13978
13979 hpux9* | hpux10* | hpux11*)
13980 # Give a soname corresponding to the major version so that dld.sl refuses to
13981 # link against other versions.
13982 version_type=sunos
13983 need_lib_prefix=no
13984 need_version=no
13985 case "$host_cpu" in
13986 ia64*)
13987 shrext='.so'
13988 hardcode_into_libs=yes
13989 dynamic_linker="$host_os dld.so"
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 if test "X$HPUX_IA64_MODE" = X32; then
13995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13996 else
13997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13998 fi
13999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14000 ;;
14001 hppa*64*)
14002 shrext='.sl'
14003 hardcode_into_libs=yes
14004 dynamic_linker="$host_os dld.sl"
14005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14011 ;;
14012 *)
14013 shrext='.sl'
14014 dynamic_linker="$host_os dld.sl"
14015 shlibpath_var=SHLIB_PATH
14016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 ;;
14020 esac
14021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14022 postinstall_cmds='chmod 555 $lib'
14023 ;;
14024
14025 irix5* | irix6* | nonstopux*)
14026 case $host_os in
14027 nonstopux*) version_type=nonstopux ;;
14028 *)
14029 if test "$lt_cv_prog_gnu_ld" = yes; then
14030 version_type=linux
14031 else
14032 version_type=irix
14033 fi ;;
14034 esac
14035 need_lib_prefix=no
14036 need_version=no
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14039 case $host_os in
14040 irix5* | nonstopux*)
14041 libsuff= shlibsuff=
14042 ;;
14043 *)
14044 case $LD in # libtool.m4 will add one of these switches to LD
14045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14046 libsuff= shlibsuff= libmagic=32-bit;;
14047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14048 libsuff=32 shlibsuff=N32 libmagic=N32;;
14049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14050 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14051 *) libsuff= shlibsuff= libmagic=never-match;;
14052 esac
14053 ;;
14054 esac
14055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14056 shlibpath_overrides_runpath=no
14057 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14058 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14059 hardcode_into_libs=yes
14060 ;;
14061
14062 # No shared lib support for Linux oldld, aout, or coff.
14063 linux*oldld* | linux*aout* | linux*coff*)
14064 dynamic_linker=no
14065 ;;
14066
14067 # This must be Linux ELF.
14068 linux*)
14069 version_type=linux
14070 need_lib_prefix=no
14071 need_version=no
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=no
14077 # This implies no fast_install, which is unacceptable.
14078 # Some rework will be needed to allow for fast_install
14079 # before this can be enabled.
14080 hardcode_into_libs=yes
14081
14082 # We used to test for /lib/ld.so.1 and disable shared libraries on
14083 # powerpc, because MkLinux only supported shared libraries with the
14084 # GNU dynamic linker. Since this was broken with cross compilers,
14085 # most powerpc-linux boxes support dynamic linking these days and
14086 # people can always --disable-shared, the test was removed, and we
14087 # assume the GNU/Linux dynamic linker is in use.
14088 dynamic_linker='GNU/Linux ld.so'
14089 ;;
14090
14091 netbsd*)
14092 version_type=sunos
14093 need_lib_prefix=no
14094 need_version=no
14095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14098 dynamic_linker='NetBSD (a.out) ld.so'
14099 else
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 dynamic_linker='NetBSD ld.elf_so'
14103 fi
14104 shlibpath_var=LD_LIBRARY_PATH
14105 shlibpath_overrides_runpath=yes
14106 hardcode_into_libs=yes
14107 ;;
14108
14109 newsos6)
14110 version_type=linux
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath=yes
14114 ;;
14115
14116 nto-qnx*)
14117 version_type=linux
14118 need_lib_prefix=no
14119 need_version=no
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 shlibpath_overrides_runpath=yes
14124 ;;
14125
14126 openbsd*)
14127 version_type=sunos
14128 need_lib_prefix=no
14129 need_version=no
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14134 case $host_os in
14135 openbsd2.[89] | openbsd2.[89].*)
14136 shlibpath_overrides_runpath=no
14137 ;;
14138 *)
14139 shlibpath_overrides_runpath=yes
14140 ;;
14141 esac
14142 else
14143 shlibpath_overrides_runpath=yes
14144 fi
14145 ;;
14146
14147 os2*)
14148 libname_spec='$name'
14149 shrext=".dll"
14150 need_lib_prefix=no
14151 library_names_spec='$libname${shared_ext} $libname.a'
14152 dynamic_linker='OS/2 ld.exe'
14153 shlibpath_var=LIBPATH
14154 ;;
14155
14156 osf3* | osf4* | osf5*)
14157 version_type=osf
14158 need_lib_prefix=no
14159 need_version=no
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 shlibpath_var=LD_LIBRARY_PATH
14163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14165 ;;
14166
14167 sco3.2v5*)
14168 version_type=osf
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 ;;
14173
14174 solaris*)
14175 version_type=linux
14176 need_lib_prefix=no
14177 need_version=no
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 shlibpath_overrides_runpath=yes
14182 hardcode_into_libs=yes
14183 # ldd complains unless libraries are executable
14184 postinstall_cmds='chmod +x $lib'
14185 ;;
14186
14187 sunos4*)
14188 version_type=sunos
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14190 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes
14193 if test "$with_gnu_ld" = yes; then
14194 need_lib_prefix=no
14195 fi
14196 need_version=yes
14197 ;;
14198
14199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14200 version_type=linux
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 case $host_vendor in
14205 sni)
14206 shlibpath_overrides_runpath=no
14207 need_lib_prefix=no
14208 export_dynamic_flag_spec='${wl}-Blargedynsym'
14209 runpath_var=LD_RUN_PATH
14210 ;;
14211 siemens)
14212 need_lib_prefix=no
14213 ;;
14214 motorola)
14215 need_lib_prefix=no
14216 need_version=no
14217 shlibpath_overrides_runpath=no
14218 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14219 ;;
14220 esac
14221 ;;
14222
14223 sysv4*MP*)
14224 if test -d /usr/nec ;then
14225 version_type=linux
14226 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14227 soname_spec='$libname${shared_ext}.$major'
14228 shlibpath_var=LD_LIBRARY_PATH
14229 fi
14230 ;;
14231
14232 uts4*)
14233 version_type=linux
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235 soname_spec='${libname}${release}${shared_ext}$major'
14236 shlibpath_var=LD_LIBRARY_PATH
14237 ;;
14238
14239 *)
14240 dynamic_linker=no
14241 ;;
14242 esac
14243 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14244 echo "${ECHO_T}$dynamic_linker" >&6
14245 test "$dynamic_linker" = no && can_build_shared=no
14246
14247 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14248 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14249 hardcode_action_F77=
14250 if test -n "$hardcode_libdir_flag_spec_F77" || \
14251 test -n "$runpath_var F77" || \
14252 test "X$hardcode_automatic_F77"="Xyes" ; then
14253
14254 # We can hardcode non-existant directories.
14255 if test "$hardcode_direct_F77" != no &&
14256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14257 # have to relink, otherwise we might link with an installed library
14258 # when we should be linking with a yet-to-be-installed one
14259 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14260 test "$hardcode_minus_L_F77" != no; then
14261 # Linking always hardcodes the temporary library directory.
14262 hardcode_action_F77=relink
14263 else
14264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14265 hardcode_action_F77=immediate
14266 fi
14267 else
14268 # We cannot hardcode anything, or else we can only hardcode existing
14269 # directories.
14270 hardcode_action_F77=unsupported
14271 fi
14272 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14273 echo "${ECHO_T}$hardcode_action_F77" >&6
14274
14275 if test "$hardcode_action_F77" = relink; then
14276 # Fast installation is not supported
14277 enable_fast_install=no
14278 elif test "$shlibpath_overrides_runpath" = yes ||
14279 test "$enable_shared" = no; then
14280 # Fast installation is not necessary
14281 enable_fast_install=needless
14282 fi
14283
14284 striplib=
14285 old_striplib=
14286 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14287 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14288 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14289 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14290 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14291 echo "$as_me:$LINENO: result: yes" >&5
14292 echo "${ECHO_T}yes" >&6
14293 else
14294 # FIXME - insert some real tests, host_os isn't really good enough
14295 case $host_os in
14296 darwin*)
14297 if test -n "$STRIP" ; then
14298 striplib="$STRIP -x"
14299 echo "$as_me:$LINENO: result: yes" >&5
14300 echo "${ECHO_T}yes" >&6
14301 else
14302 echo "$as_me:$LINENO: result: no" >&5
14303 echo "${ECHO_T}no" >&6
14304 fi
14305 ;;
14306 *)
14307 echo "$as_me:$LINENO: result: no" >&5
14308 echo "${ECHO_T}no" >&6
14309 ;;
14310 esac
14311 fi
14312
14313
14314
14315 # The else clause should only fire when bootstrapping the
14316 # libtool distribution, otherwise you forgot to ship ltmain.sh
14317 # with your package, and you will get complaints that there are
14318 # no rules to generate ltmain.sh.
14319 if test -f "$ltmain"; then
14320 # See if we are running on zsh, and set the options which allow our commands through
14321 # without removal of \ escapes.
14322 if test -n "${ZSH_VERSION+set}" ; then
14323 setopt NO_GLOB_SUBST
14324 fi
14325 # Now quote all the things that may contain metacharacters while being
14326 # careful not to overquote the AC_SUBSTed values. We take copies of the
14327 # variables and quote the copies for generation of the libtool script.
14328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14329 SED SHELL STRIP \
14330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14332 deplibs_check_method reload_flag reload_cmds need_locks \
14333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14334 lt_cv_sys_global_symbol_to_c_name_address \
14335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14336 old_postinstall_cmds old_postuninstall_cmds \
14337 compiler_F77 \
14338 CC_F77 \
14339 LD_F77 \
14340 lt_prog_compiler_wl_F77 \
14341 lt_prog_compiler_pic_F77 \
14342 lt_prog_compiler_static_F77 \
14343 lt_prog_compiler_no_builtin_flag_F77 \
14344 export_dynamic_flag_spec_F77 \
14345 thread_safe_flag_spec_F77 \
14346 whole_archive_flag_spec_F77 \
14347 enable_shared_with_static_runtimes_F77 \
14348 old_archive_cmds_F77 \
14349 old_archive_from_new_cmds_F77 \
14350 predep_objects_F77 \
14351 postdep_objects_F77 \
14352 predeps_F77 \
14353 postdeps_F77 \
14354 compiler_lib_search_path_F77 \
14355 archive_cmds_F77 \
14356 archive_expsym_cmds_F77 \
14357 postinstall_cmds_F77 \
14358 postuninstall_cmds_F77 \
14359 old_archive_from_expsyms_cmds_F77 \
14360 allow_undefined_flag_F77 \
14361 no_undefined_flag_F77 \
14362 export_symbols_cmds_F77 \
14363 hardcode_libdir_flag_spec_F77 \
14364 hardcode_libdir_flag_spec_ld_F77 \
14365 hardcode_libdir_separator_F77 \
14366 hardcode_automatic_F77 \
14367 module_cmds_F77 \
14368 module_expsym_cmds_F77 \
14369 lt_cv_prog_compiler_c_o_F77 \
14370 exclude_expsyms_F77 \
14371 include_expsyms_F77; do
14372
14373 case $var in
14374 old_archive_cmds_F77 | \
14375 old_archive_from_new_cmds_F77 | \
14376 archive_cmds_F77 | \
14377 archive_expsym_cmds_F77 | \
14378 module_cmds_F77 | \
14379 module_expsym_cmds_F77 | \
14380 old_archive_from_expsyms_cmds_F77 | \
14381 export_symbols_cmds_F77 | \
14382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14383 postinstall_cmds | postuninstall_cmds | \
14384 old_postinstall_cmds | old_postuninstall_cmds | \
14385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14386 # Double-quote double-evaled strings.
14387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14388 ;;
14389 *)
14390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14391 ;;
14392 esac
14393 done
14394
14395 case $lt_echo in
14396 *'\$0 --fallback-echo"')
14397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14398 ;;
14399 esac
14400
14401 cfgfile="$ofile"
14402
14403 cat <<__EOF__ >> "$cfgfile"
14404 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14405
14406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14407
14408 # Shell to use when invoking shell scripts.
14409 SHELL=$lt_SHELL
14410
14411 # Whether or not to build shared libraries.
14412 build_libtool_libs=$enable_shared
14413
14414 # Whether or not to build static libraries.
14415 build_old_libs=$enable_static
14416
14417 # Whether or not to add -lc for building shared libraries.
14418 build_libtool_need_lc=$archive_cmds_need_lc_F77
14419
14420 # Whether or not to disallow shared libs when runtime libs are static
14421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14422
14423 # Whether or not to optimize for fast installation.
14424 fast_install=$enable_fast_install
14425
14426 # The host system.
14427 host_alias=$host_alias
14428 host=$host
14429
14430 # An echo program that does not interpret backslashes.
14431 echo=$lt_echo
14432
14433 # The archiver.
14434 AR=$lt_AR
14435 AR_FLAGS=$lt_AR_FLAGS
14436
14437 # A C compiler.
14438 LTCC=$lt_LTCC
14439
14440 # A language-specific compiler.
14441 CC=$lt_compiler_F77
14442
14443 # Is the compiler the GNU C compiler?
14444 with_gcc=$GCC_F77
14445
14446 # An ERE matcher.
14447 EGREP=$lt_EGREP
14448
14449 # The linker used to build libraries.
14450 LD=$lt_LD_F77
14451
14452 # Whether we need hard or soft links.
14453 LN_S=$lt_LN_S
14454
14455 # A BSD-compatible nm program.
14456 NM=$lt_NM
14457
14458 # A symbol stripping program
14459 STRIP=$lt_STRIP
14460
14461 # Used to examine libraries when file_magic_cmd begins "file"
14462 MAGIC_CMD=$MAGIC_CMD
14463
14464 # Used on cygwin: DLL creation program.
14465 DLLTOOL="$DLLTOOL"
14466
14467 # Used on cygwin: object dumper.
14468 OBJDUMP="$OBJDUMP"
14469
14470 # Used on cygwin: assembler.
14471 AS="$AS"
14472
14473 # The name of the directory that contains temporary libtool files.
14474 objdir=$objdir
14475
14476 # How to create reloadable object files.
14477 reload_flag=$lt_reload_flag
14478 reload_cmds=$lt_reload_cmds
14479
14480 # How to pass a linker flag through the compiler.
14481 wl=$lt_lt_prog_compiler_wl_F77
14482
14483 # Object file suffix (normally "o").
14484 objext="$ac_objext"
14485
14486 # Old archive suffix (normally "a").
14487 libext="$libext"
14488
14489 # Shared library suffix (normally ".so").
14490 shrext='$shrext'
14491
14492 # Executable file suffix (normally "").
14493 exeext="$exeext"
14494
14495 # Additional compiler flags for building library objects.
14496 pic_flag=$lt_lt_prog_compiler_pic_F77
14497 pic_mode=$pic_mode
14498
14499 # What is the maximum length of a command?
14500 max_cmd_len=$lt_cv_sys_max_cmd_len
14501
14502 # Does compiler simultaneously support -c and -o options?
14503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14504
14505 # Must we lock files when doing compilation ?
14506 need_locks=$lt_need_locks
14507
14508 # Do we need the lib prefix for modules?
14509 need_lib_prefix=$need_lib_prefix
14510
14511 # Do we need a version for libraries?
14512 need_version=$need_version
14513
14514 # Whether dlopen is supported.
14515 dlopen_support=$enable_dlopen
14516
14517 # Whether dlopen of programs is supported.
14518 dlopen_self=$enable_dlopen_self
14519
14520 # Whether dlopen of statically linked programs is supported.
14521 dlopen_self_static=$enable_dlopen_self_static
14522
14523 # Compiler flag to prevent dynamic linking.
14524 link_static_flag=$lt_lt_prog_compiler_static_F77
14525
14526 # Compiler flag to turn off builtin functions.
14527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14528
14529 # Compiler flag to allow reflexive dlopens.
14530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14531
14532 # Compiler flag to generate shared objects directly from archives.
14533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14534
14535 # Compiler flag to generate thread-safe objects.
14536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14537
14538 # Library versioning type.
14539 version_type=$version_type
14540
14541 # Format of library name prefix.
14542 libname_spec=$lt_libname_spec
14543
14544 # List of archive names. First name is the real one, the rest are links.
14545 # The last name is the one that the linker finds with -lNAME.
14546 library_names_spec=$lt_library_names_spec
14547
14548 # The coded name of the library, if different from the real name.
14549 soname_spec=$lt_soname_spec
14550
14551 # Commands used to build and install an old-style archive.
14552 RANLIB=$lt_RANLIB
14553 old_archive_cmds=$lt_old_archive_cmds_F77
14554 old_postinstall_cmds=$lt_old_postinstall_cmds
14555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14556
14557 # Create an old-style archive from a shared archive.
14558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14559
14560 # Create a temporary old-style archive to link instead of a shared archive.
14561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14562
14563 # Commands used to build and install a shared archive.
14564 archive_cmds=$lt_archive_cmds_F77
14565 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14566 postinstall_cmds=$lt_postinstall_cmds
14567 postuninstall_cmds=$lt_postuninstall_cmds
14568
14569 # Commands used to build a loadable module (assumed same as above if empty)
14570 module_cmds=$lt_module_cmds_F77
14571 module_expsym_cmds=$lt_module_expsym_cmds_F77
14572
14573 # Commands to strip libraries.
14574 old_striplib=$lt_old_striplib
14575 striplib=$lt_striplib
14576
14577 # Dependencies to place before the objects being linked to create a
14578 # shared library.
14579 predep_objects=$lt_predep_objects_F77
14580
14581 # Dependencies to place after the objects being linked to create a
14582 # shared library.
14583 postdep_objects=$lt_postdep_objects_F77
14584
14585 # Dependencies to place before the objects being linked to create a
14586 # shared library.
14587 predeps=$lt_predeps_F77
14588
14589 # Dependencies to place after the objects being linked to create a
14590 # shared library.
14591 postdeps=$lt_postdeps_F77
14592
14593 # The library search path used internally by the compiler when linking
14594 # a shared library.
14595 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14596
14597 # Method to check whether dependent libraries are shared objects.
14598 deplibs_check_method=$lt_deplibs_check_method
14599
14600 # Command to use when deplibs_check_method == file_magic.
14601 file_magic_cmd=$lt_file_magic_cmd
14602
14603 # Flag that allows shared libraries with undefined symbols to be built.
14604 allow_undefined_flag=$lt_allow_undefined_flag_F77
14605
14606 # Flag that forces no undefined symbols.
14607 no_undefined_flag=$lt_no_undefined_flag_F77
14608
14609 # Commands used to finish a libtool library installation in a directory.
14610 finish_cmds=$lt_finish_cmds
14611
14612 # Same as above, but a single script fragment to be evaled but not shown.
14613 finish_eval=$lt_finish_eval
14614
14615 # Take the output of nm and produce a listing of raw symbols and C names.
14616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14617
14618 # Transform the output of nm in a proper C declaration
14619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14620
14621 # Transform the output of nm in a C name address pair
14622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14623
14624 # This is the shared library runtime path variable.
14625 runpath_var=$runpath_var
14626
14627 # This is the shared library path variable.
14628 shlibpath_var=$shlibpath_var
14629
14630 # Is shlibpath searched before the hard-coded library search path?
14631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14632
14633 # How to hardcode a shared library path into an executable.
14634 hardcode_action=$hardcode_action_F77
14635
14636 # Whether we should hardcode library paths into libraries.
14637 hardcode_into_libs=$hardcode_into_libs
14638
14639 # Flag to hardcode \$libdir into a binary during linking.
14640 # This must work even if \$libdir does not exist.
14641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14642
14643 # If ld is used when linking, flag to hardcode \$libdir into
14644 # a binary during linking. This must work even if \$libdir does
14645 # not exist.
14646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14647
14648 # Whether we need a single -rpath flag with a separated argument.
14649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14650
14651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14652 # resulting binary.
14653 hardcode_direct=$hardcode_direct_F77
14654
14655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14656 # resulting binary.
14657 hardcode_minus_L=$hardcode_minus_L_F77
14658
14659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14660 # the resulting binary.
14661 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14662
14663 # Set to yes if building a shared library automatically hardcodes DIR into the library
14664 # and all subsequent libraries and executables linked against it.
14665 hardcode_automatic=$hardcode_automatic_F77
14666
14667 # Variables whose values should be saved in libtool wrapper scripts and
14668 # restored at relink time.
14669 variables_saved_for_relink="$variables_saved_for_relink"
14670
14671 # Whether libtool must link a program against all its dependency libraries.
14672 link_all_deplibs=$link_all_deplibs_F77
14673
14674 # Compile-time system search path for libraries
14675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14676
14677 # Run-time system search path for libraries
14678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14679
14680 # Fix the shell variable \$srcfile for the compiler.
14681 fix_srcfile_path="$fix_srcfile_path_F77"
14682
14683 # Set to yes if exported symbols are required.
14684 always_export_symbols=$always_export_symbols_F77
14685
14686 # The commands to list exported symbols.
14687 export_symbols_cmds=$lt_export_symbols_cmds_F77
14688
14689 # The commands to extract the exported symbol list from a shared archive.
14690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14691
14692 # Symbols that should not be listed in the preloaded symbols.
14693 exclude_expsyms=$lt_exclude_expsyms_F77
14694
14695 # Symbols that must always be exported.
14696 include_expsyms=$lt_include_expsyms_F77
14697
14698 # ### END LIBTOOL TAG CONFIG: $tagname
14699
14700 __EOF__
14701
14702
14703 else
14704 # If there is no Makefile yet, we rely on a make rule to execute
14705 # `config.status --recheck' to rerun these tests and create the
14706 # libtool script then.
14707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14708 if test -f "$ltmain_in"; then
14709 test -f Makefile && make "$ltmain"
14710 fi
14711 fi
14712
14713
14714 ac_ext=c
14715 ac_cpp='$CPP $CPPFLAGS'
14716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14719
14720 CC="$lt_save_CC"
14721
14722 else
14723 tagname=""
14724 fi
14725 ;;
14726
14727 GCJ)
14728 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14729
14730
14731
14732 # Source file extension for Java test sources.
14733 ac_ext=java
14734
14735 # Object file extension for compiled Java test sources.
14736 objext=o
14737 objext_GCJ=$objext
14738
14739 # Code to be used in simple compile tests
14740 lt_simple_compile_test_code="class foo {}\n"
14741
14742 # Code to be used in simple link tests
14743 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14744
14745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14746
14747 # If no C compiler was specified, use CC.
14748 LTCC=${LTCC-"$CC"}
14749
14750 # Allow CC to be a program name with arguments.
14751 compiler=$CC
14752
14753
14754 # Allow CC to be a program name with arguments.
14755 lt_save_CC="$CC"
14756 CC=${GCJ-"gcj"}
14757 compiler=$CC
14758 compiler_GCJ=$CC
14759
14760 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14761 archive_cmds_need_lc_GCJ=no
14762
14763 ## CAVEAT EMPTOR:
14764 ## There is no encapsulation within the following macros, do not change
14765 ## the running order or otherwise move them around unless you know exactly
14766 ## what you are doing...
14767
14768 lt_prog_compiler_no_builtin_flag_GCJ=
14769
14770 if test "$GCC" = yes; then
14771 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14772
14773
14774 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14775 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14776 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779 lt_cv_prog_compiler_rtti_exceptions=no
14780 ac_outfile=conftest.$ac_objext
14781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14782 lt_compiler_flag="-fno-rtti -fno-exceptions"
14783 # Insert the option either (1) after the last *FLAGS variable, or
14784 # (2) before a word containing "conftest.", or (3) at the end.
14785 # Note that $ac_compile itself does not contain backslashes and begins
14786 # with a dollar sign (not a hyphen), so the echo should work correctly.
14787 # The option is referenced via a variable to avoid confusing sed.
14788 lt_compile=`echo "$ac_compile" | $SED \
14789 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14791 -e 's:$: $lt_compiler_flag:'`
14792 (eval echo "\"\$as_me:14792: $lt_compile\"" >&5)
14793 (eval "$lt_compile" 2>conftest.err)
14794 ac_status=$?
14795 cat conftest.err >&5
14796 echo "$as_me:14796: \$? = $ac_status" >&5
14797 if (exit $ac_status) && test -s "$ac_outfile"; then
14798 # The compiler can only warn and ignore the option if not recognized
14799 # So say no if there are warnings
14800 if test ! -s conftest.err; then
14801 lt_cv_prog_compiler_rtti_exceptions=yes
14802 fi
14803 fi
14804 $rm conftest*
14805
14806 fi
14807 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14808 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14809
14810 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14811 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14812 else
14813 :
14814 fi
14815
14816 fi
14817
14818 lt_prog_compiler_wl_GCJ=
14819 lt_prog_compiler_pic_GCJ=
14820 lt_prog_compiler_static_GCJ=
14821
14822 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14823 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14824
14825 if test "$GCC" = yes; then
14826 lt_prog_compiler_wl_GCJ='-Wl,'
14827 lt_prog_compiler_static_GCJ='-static'
14828
14829 case $host_os in
14830 aix*)
14831 # All AIX code is PIC.
14832 if test "$host_cpu" = ia64; then
14833 # AIX 5 now supports IA64 processor
14834 lt_prog_compiler_static_GCJ='-Bstatic'
14835 fi
14836 ;;
14837
14838 amigaos*)
14839 # FIXME: we need at least 68020 code to build shared libraries, but
14840 # adding the `-m68020' flag to GCC prevents building anything better,
14841 # like `-m68040'.
14842 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14843 ;;
14844
14845 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14846 # PIC is the default for these OSes.
14847 ;;
14848
14849 mingw* | pw32* | os2*)
14850 # This hack is so that the source file can tell whether it is being
14851 # built for inclusion in a dll (and should export symbols for example).
14852 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14853 ;;
14854
14855 darwin* | rhapsody*)
14856 # PIC is the default on this platform
14857 # Common symbols not allowed in MH_DYLIB files
14858 lt_prog_compiler_pic_GCJ='-fno-common'
14859 ;;
14860
14861 msdosdjgpp*)
14862 # Just because we use GCC doesn't mean we suddenly get shared libraries
14863 # on systems that don't support them.
14864 lt_prog_compiler_can_build_shared_GCJ=no
14865 enable_shared=no
14866 ;;
14867
14868 sysv4*MP*)
14869 if test -d /usr/nec; then
14870 lt_prog_compiler_pic_GCJ=-Kconform_pic
14871 fi
14872 ;;
14873
14874 hpux*)
14875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14876 # not for PA HP-UX.
14877 case "$host_cpu" in
14878 hppa*64*|ia64*)
14879 # +Z the default
14880 ;;
14881 *)
14882 lt_prog_compiler_pic_GCJ='-fPIC'
14883 ;;
14884 esac
14885 ;;
14886
14887 *)
14888 lt_prog_compiler_pic_GCJ='-fPIC'
14889 ;;
14890 esac
14891 else
14892 # PORTME Check for flag to pass linker flags through the system compiler.
14893 case $host_os in
14894 aix*)
14895 lt_prog_compiler_wl_GCJ='-Wl,'
14896 if test "$host_cpu" = ia64; then
14897 # AIX 5 now supports IA64 processor
14898 lt_prog_compiler_static_GCJ='-Bstatic'
14899 else
14900 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14901 fi
14902 ;;
14903
14904 mingw* | pw32* | os2*)
14905 # This hack is so that the source file can tell whether it is being
14906 # built for inclusion in a dll (and should export symbols for example).
14907 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14908 ;;
14909
14910 hpux9* | hpux10* | hpux11*)
14911 lt_prog_compiler_wl_GCJ='-Wl,'
14912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14913 # not for PA HP-UX.
14914 case "$host_cpu" in
14915 hppa*64*|ia64*)
14916 # +Z the default
14917 ;;
14918 *)
14919 lt_prog_compiler_pic_GCJ='+Z'
14920 ;;
14921 esac
14922 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14923 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14924 ;;
14925
14926 irix5* | irix6* | nonstopux*)
14927 lt_prog_compiler_wl_GCJ='-Wl,'
14928 # PIC (with -KPIC) is the default.
14929 lt_prog_compiler_static_GCJ='-non_shared'
14930 ;;
14931
14932 newsos6)
14933 lt_prog_compiler_pic_GCJ='-KPIC'
14934 lt_prog_compiler_static_GCJ='-Bstatic'
14935 ;;
14936
14937 linux*)
14938 case $CC in
14939 icc* | ecc*)
14940 lt_prog_compiler_wl_GCJ='-Wl,'
14941 lt_prog_compiler_pic_GCJ='-KPIC'
14942 lt_prog_compiler_static_GCJ='-static'
14943 ;;
14944 ccc*)
14945 lt_prog_compiler_wl_GCJ='-Wl,'
14946 # All Alpha code is PIC.
14947 lt_prog_compiler_static_GCJ='-non_shared'
14948 ;;
14949 esac
14950 ;;
14951
14952 osf3* | osf4* | osf5*)
14953 lt_prog_compiler_wl_GCJ='-Wl,'
14954 # All OSF/1 code is PIC.
14955 lt_prog_compiler_static_GCJ='-non_shared'
14956 ;;
14957
14958 sco3.2v5*)
14959 lt_prog_compiler_pic_GCJ='-Kpic'
14960 lt_prog_compiler_static_GCJ='-dn'
14961 ;;
14962
14963 solaris*)
14964 lt_prog_compiler_wl_GCJ='-Wl,'
14965 lt_prog_compiler_pic_GCJ='-KPIC'
14966 lt_prog_compiler_static_GCJ='-Bstatic'
14967 ;;
14968
14969 sunos4*)
14970 lt_prog_compiler_wl_GCJ='-Qoption ld '
14971 lt_prog_compiler_pic_GCJ='-PIC'
14972 lt_prog_compiler_static_GCJ='-Bstatic'
14973 ;;
14974
14975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14976 lt_prog_compiler_wl_GCJ='-Wl,'
14977 lt_prog_compiler_pic_GCJ='-KPIC'
14978 lt_prog_compiler_static_GCJ='-Bstatic'
14979 ;;
14980
14981 sysv4*MP*)
14982 if test -d /usr/nec ;then
14983 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14984 lt_prog_compiler_static_GCJ='-Bstatic'
14985 fi
14986 ;;
14987
14988 uts4*)
14989 lt_prog_compiler_pic_GCJ='-pic'
14990 lt_prog_compiler_static_GCJ='-Bstatic'
14991 ;;
14992
14993 *)
14994 lt_prog_compiler_can_build_shared_GCJ=no
14995 ;;
14996 esac
14997 fi
14998
14999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15000 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15001
15002 #
15003 # Check to make sure the PIC flag actually works.
15004 #
15005 if test -n "$lt_prog_compiler_pic_GCJ"; then
15006
15007 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15008 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15009 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012 lt_prog_compiler_pic_works_GCJ=no
15013 ac_outfile=conftest.$ac_objext
15014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15015 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15016 # Insert the option either (1) after the last *FLAGS variable, or
15017 # (2) before a word containing "conftest.", or (3) at the end.
15018 # Note that $ac_compile itself does not contain backslashes and begins
15019 # with a dollar sign (not a hyphen), so the echo should work correctly.
15020 # The option is referenced via a variable to avoid confusing sed.
15021 lt_compile=`echo "$ac_compile" | $SED \
15022 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024 -e 's:$: $lt_compiler_flag:'`
15025 (eval echo "\"\$as_me:15025: $lt_compile\"" >&5)
15026 (eval "$lt_compile" 2>conftest.err)
15027 ac_status=$?
15028 cat conftest.err >&5
15029 echo "$as_me:15029: \$? = $ac_status" >&5
15030 if (exit $ac_status) && test -s "$ac_outfile"; then
15031 # The compiler can only warn and ignore the option if not recognized
15032 # So say no if there are warnings
15033 if test ! -s conftest.err; then
15034 lt_prog_compiler_pic_works_GCJ=yes
15035 fi
15036 fi
15037 $rm conftest*
15038
15039 fi
15040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15041 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15042
15043 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15044 case $lt_prog_compiler_pic_GCJ in
15045 "" | " "*) ;;
15046 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15047 esac
15048 else
15049 lt_prog_compiler_pic_GCJ=
15050 lt_prog_compiler_can_build_shared_GCJ=no
15051 fi
15052
15053 fi
15054 case "$host_os" in
15055 # For platforms which do not support PIC, -DPIC is meaningless:
15056 *djgpp*)
15057 lt_prog_compiler_pic_GCJ=
15058 ;;
15059 *)
15060 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15061 ;;
15062 esac
15063
15064 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15065 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15066 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 else
15069 lt_cv_prog_compiler_c_o_GCJ=no
15070 $rm -r conftest 2>/dev/null
15071 mkdir conftest
15072 cd conftest
15073 mkdir out
15074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15075
15076 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15077 # that will create temporary files in the current directory regardless of
15078 # the output directory. Thus, making CWD read-only will cause this test
15079 # to fail, enabling locking or at least warning the user not to do parallel
15080 # builds.
15081 chmod -w .
15082
15083 lt_compiler_flag="-o out/conftest2.$ac_objext"
15084 # Insert the option either (1) after the last *FLAGS variable, or
15085 # (2) before a word containing "conftest.", or (3) at the end.
15086 # Note that $ac_compile itself does not contain backslashes and begins
15087 # with a dollar sign (not a hyphen), so the echo should work correctly.
15088 lt_compile=`echo "$ac_compile" | $SED \
15089 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15091 -e 's:$: $lt_compiler_flag:'`
15092 (eval echo "\"\$as_me:15092: $lt_compile\"" >&5)
15093 (eval "$lt_compile" 2>out/conftest.err)
15094 ac_status=$?
15095 cat out/conftest.err >&5
15096 echo "$as_me:15096: \$? = $ac_status" >&5
15097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15098 then
15099 # The compiler can only warn and ignore the option if not recognized
15100 # So say no if there are warnings
15101 if test ! -s out/conftest.err; then
15102 lt_cv_prog_compiler_c_o_GCJ=yes
15103 fi
15104 fi
15105 chmod u+w .
15106 $rm conftest*
15107 # SGI C++ compiler will create directory out/ii_files/ for
15108 # template instantiation
15109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15110 $rm out/* && rmdir out
15111 cd ..
15112 rmdir conftest
15113 $rm conftest*
15114
15115 fi
15116 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15117 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15118
15119
15120 hard_links="nottested"
15121 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15122 # do not overwrite the value of need_locks provided by the user
15123 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15125 hard_links=yes
15126 $rm conftest*
15127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15128 touch conftest.a
15129 ln conftest.a conftest.b 2>&5 || hard_links=no
15130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15131 echo "$as_me:$LINENO: result: $hard_links" >&5
15132 echo "${ECHO_T}$hard_links" >&6
15133 if test "$hard_links" = no; then
15134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15136 need_locks=warn
15137 fi
15138 else
15139 need_locks=no
15140 fi
15141
15142 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15143 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15144
15145 runpath_var=
15146 allow_undefined_flag_GCJ=
15147 enable_shared_with_static_runtimes_GCJ=no
15148 archive_cmds_GCJ=
15149 archive_expsym_cmds_GCJ=
15150 old_archive_From_new_cmds_GCJ=
15151 old_archive_from_expsyms_cmds_GCJ=
15152 export_dynamic_flag_spec_GCJ=
15153 whole_archive_flag_spec_GCJ=
15154 thread_safe_flag_spec_GCJ=
15155 hardcode_libdir_flag_spec_GCJ=
15156 hardcode_libdir_flag_spec_ld_GCJ=
15157 hardcode_libdir_separator_GCJ=
15158 hardcode_direct_GCJ=no
15159 hardcode_minus_L_GCJ=no
15160 hardcode_shlibpath_var_GCJ=unsupported
15161 link_all_deplibs_GCJ=unknown
15162 hardcode_automatic_GCJ=no
15163 module_cmds_GCJ=
15164 module_expsym_cmds_GCJ=
15165 always_export_symbols_GCJ=no
15166 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15167 # include_expsyms should be a list of space-separated symbols to be *always*
15168 # included in the symbol list
15169 include_expsyms_GCJ=
15170 # exclude_expsyms can be an extended regexp of symbols to exclude
15171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15173 # as well as any symbol that contains `d'.
15174 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15176 # platforms (ab)use it in PIC code, but their linkers get confused if
15177 # the symbol is explicitly referenced. Since portable code cannot
15178 # rely on this symbol name, it's probably fine to never include it in
15179 # preloaded symbol tables.
15180 extract_expsyms_cmds=
15181
15182 case $host_os in
15183 cygwin* | mingw* | pw32*)
15184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15185 # When not using gcc, we currently assume that we are using
15186 # Microsoft Visual C++.
15187 if test "$GCC" != yes; then
15188 with_gnu_ld=no
15189 fi
15190 ;;
15191 openbsd*)
15192 with_gnu_ld=no
15193 ;;
15194 esac
15195
15196 ld_shlibs_GCJ=yes
15197 if test "$with_gnu_ld" = yes; then
15198 # If archive_cmds runs LD, not CC, wlarc should be empty
15199 wlarc='${wl}'
15200
15201 # See if GNU ld supports shared libraries.
15202 case $host_os in
15203 aix3* | aix4* | aix5*)
15204 # On AIX/PPC, the GNU linker is very broken
15205 if test "$host_cpu" != ia64; then
15206 ld_shlibs_GCJ=no
15207 cat <<EOF 1>&2
15208
15209 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15210 *** to be unable to reliably create shared libraries on AIX.
15211 *** Therefore, libtool is disabling shared libraries support. If you
15212 *** really care for shared libraries, you may want to modify your PATH
15213 *** so that a non-GNU linker is found, and then restart.
15214
15215 EOF
15216 fi
15217 ;;
15218
15219 amigaos*)
15220 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)'
15221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15222 hardcode_minus_L_GCJ=yes
15223
15224 # Samuel A. Falvo II <[email protected]> reports
15225 # that the semantics of dynamic libraries on AmigaOS, at least up
15226 # to version 4, is to share data among multiple programs linked
15227 # with the same dynamic library. Since this doesn't match the
15228 # behavior of shared libraries on other platforms, we can't use
15229 # them.
15230 ld_shlibs_GCJ=no
15231 ;;
15232
15233 beos*)
15234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15235 allow_undefined_flag_GCJ=unsupported
15236 # Joseph Beckenbach <[email protected]> says some releases of gcc
15237 # support --undefined. This deserves some investigation. FIXME
15238 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15239 else
15240 ld_shlibs_GCJ=no
15241 fi
15242 ;;
15243
15244 cygwin* | mingw* | pw32*)
15245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15246 # as there is no search path for DLLs.
15247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15248 allow_undefined_flag_GCJ=unsupported
15249 always_export_symbols_GCJ=no
15250 enable_shared_with_static_runtimes_GCJ=yes
15251 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15252
15253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15254 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15255 # If the export-symbols file already is a .def file (1st line
15256 # is EXPORTS), use it as is; otherwise, prepend...
15257 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15258 cp $export_symbols $output_objdir/$soname.def;
15259 else
15260 echo EXPORTS > $output_objdir/$soname.def;
15261 cat $export_symbols >> $output_objdir/$soname.def;
15262 fi~
15263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15264 else
15265 ld_shlibs=no
15266 fi
15267 ;;
15268
15269 netbsd*)
15270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15271 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15272 wlarc=
15273 else
15274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15276 fi
15277 ;;
15278
15279 solaris* | sysv5*)
15280 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15281 ld_shlibs_GCJ=no
15282 cat <<EOF 1>&2
15283
15284 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15285 *** create shared libraries on Solaris systems. Therefore, libtool
15286 *** is disabling shared libraries support. We urge you to upgrade GNU
15287 *** binutils to release 2.9.1 or newer. Another option is to modify
15288 *** your PATH or compiler configuration so that the native linker is
15289 *** used, and then restart.
15290
15291 EOF
15292 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15293 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15295 else
15296 ld_shlibs_GCJ=no
15297 fi
15298 ;;
15299
15300 sunos4*)
15301 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15302 wlarc=
15303 hardcode_direct_GCJ=yes
15304 hardcode_shlibpath_var_GCJ=no
15305 ;;
15306
15307 linux*)
15308 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15309 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15310 archive_cmds_GCJ="$tmp_archive_cmds"
15311 supports_anon_versioning=no
15312 case `$LD -v 2>/dev/null` in
15313 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15316 *\ 2.11.*) ;; # other 2.11 versions
15317 *) supports_anon_versioning=yes ;;
15318 esac
15319 if test $supports_anon_versioning = yes; then
15320 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15322 $echo "local: *; };" >> $output_objdir/$libname.ver~
15323 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15324 else
15325 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15326 fi
15327 else
15328 ld_shlibs_GCJ=no
15329 fi
15330 ;;
15331
15332 *)
15333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15334 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15336 else
15337 ld_shlibs_GCJ=no
15338 fi
15339 ;;
15340 esac
15341
15342 if test "$ld_shlibs_GCJ" = yes; then
15343 runpath_var=LD_RUN_PATH
15344 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15345 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15346 # ancient GNU ld didn't support --whole-archive et. al.
15347 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15348 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15349 else
15350 whole_archive_flag_spec_GCJ=
15351 fi
15352 fi
15353 else
15354 # PORTME fill in a description of your system's linker (not GNU ld)
15355 case $host_os in
15356 aix3*)
15357 allow_undefined_flag_GCJ=unsupported
15358 always_export_symbols_GCJ=yes
15359 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'
15360 # Note: this linker hardcodes the directories in LIBPATH if there
15361 # are no directories specified by -L.
15362 hardcode_minus_L_GCJ=yes
15363 if test "$GCC" = yes && test -z "$link_static_flag"; then
15364 # Neither direct hardcoding nor static linking is supported with a
15365 # broken collect2.
15366 hardcode_direct_GCJ=unsupported
15367 fi
15368 ;;
15369
15370 aix4* | aix5*)
15371 if test "$host_cpu" = ia64; then
15372 # On IA64, the linker does run time linking by default, so we don't
15373 # have to do anything special.
15374 aix_use_runtimelinking=no
15375 exp_sym_flag='-Bexport'
15376 no_entry_flag=""
15377 else
15378 # If we're using GNU nm, then we don't want the "-C" option.
15379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15381 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'
15382 else
15383 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'
15384 fi
15385 aix_use_runtimelinking=no
15386
15387 # Test if we are trying to use run time linking or normal
15388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15389 # need to do runtime linking.
15390 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15391 for ld_flag in $LDFLAGS; do
15392 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15393 aix_use_runtimelinking=yes
15394 break
15395 fi
15396 done
15397 esac
15398
15399 exp_sym_flag='-bexport'
15400 no_entry_flag='-bnoentry'
15401 fi
15402
15403 # When large executables or shared objects are built, AIX ld can
15404 # have problems creating the table of contents. If linking a library
15405 # or program results in "error TOC overflow" add -mminimal-toc to
15406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15408
15409 archive_cmds_GCJ=''
15410 hardcode_direct_GCJ=yes
15411 hardcode_libdir_separator_GCJ=':'
15412 link_all_deplibs_GCJ=yes
15413
15414 if test "$GCC" = yes; then
15415 case $host_os in aix4.012|aix4.012.*)
15416 # We only want to do this on AIX 4.2 and lower, the check
15417 # below for broken collect2 doesn't work under 4.3+
15418 collect2name=`${CC} -print-prog-name=collect2`
15419 if test -f "$collect2name" && \
15420 strings "$collect2name" | grep resolve_lib_name >/dev/null
15421 then
15422 # We have reworked collect2
15423 hardcode_direct_GCJ=yes
15424 else
15425 # We have old collect2
15426 hardcode_direct_GCJ=unsupported
15427 # It fails to find uninstalled libraries when the uninstalled
15428 # path is not listed in the libpath. Setting hardcode_minus_L
15429 # to unsupported forces relinking
15430 hardcode_minus_L_GCJ=yes
15431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15432 hardcode_libdir_separator_GCJ=
15433 fi
15434 esac
15435 shared_flag='-shared'
15436 else
15437 # not using gcc
15438 if test "$host_cpu" = ia64; then
15439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15440 # chokes on -Wl,-G. The following line is correct:
15441 shared_flag='-G'
15442 else
15443 if test "$aix_use_runtimelinking" = yes; then
15444 shared_flag='${wl}-G'
15445 else
15446 shared_flag='${wl}-bM:SRE'
15447 fi
15448 fi
15449 fi
15450
15451 # It seems that -bexpall does not export symbols beginning with
15452 # underscore (_), so it is better to generate a list of symbols to export.
15453 always_export_symbols_GCJ=yes
15454 if test "$aix_use_runtimelinking" = yes; then
15455 # Warning - without using the other runtime loading flags (-brtl),
15456 # -berok will link without error, but may produce a broken library.
15457 allow_undefined_flag_GCJ='-berok'
15458 # Determine the default libpath from the value encoded in an empty executable.
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465
15466 int
15467 main ()
15468 {
15469
15470 ;
15471 return 0;
15472 }
15473 _ACEOF
15474 rm -f conftest.$ac_objext conftest$ac_exeext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15476 (eval $ac_link) 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -z "$ac_c_werror_flag"
15484 || test ! -s conftest.err'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest$ac_exeext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496
15497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15498 }'`
15499 # Check for a 64-bit object if we didn't find anything.
15500 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; }
15501 }'`; fi
15502 else
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506 fi
15507 rm -f conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
15509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15510
15511 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15512 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15513 else
15514 if test "$host_cpu" = ia64; then
15515 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15516 allow_undefined_flag_GCJ="-z nodefs"
15517 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15518 else
15519 # Determine the default libpath from the value encoded in an empty executable.
15520 cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h. */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526
15527 int
15528 main ()
15529 {
15530
15531 ;
15532 return 0;
15533 }
15534 _ACEOF
15535 rm -f conftest.$ac_objext conftest$ac_exeext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>conftest.er1
15538 ac_status=$?
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
15544 { ac_try='test -z "$ac_c_werror_flag"
15545 || test ! -s conftest.err'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; } &&
15551 { ac_try='test -s conftest$ac_exeext'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557
15558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15559 }'`
15560 # Check for a 64-bit object if we didn't find anything.
15561 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; }
15562 }'`; fi
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15566
15567 fi
15568 rm -f conftest.err conftest.$ac_objext \
15569 conftest$ac_exeext conftest.$ac_ext
15570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15571
15572 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15573 # Warning - without using the other run time loading flags,
15574 # -berok will link without error, but may produce a broken library.
15575 no_undefined_flag_GCJ=' ${wl}-bernotok'
15576 allow_undefined_flag_GCJ=' ${wl}-berok'
15577 # -bexpall does not export symbols beginning with underscore (_)
15578 always_export_symbols_GCJ=yes
15579 # Exported symbols can be pulled into shared objects from archives
15580 whole_archive_flag_spec_GCJ=' '
15581 archive_cmds_need_lc_GCJ=yes
15582 # This is similar to how AIX traditionally builds it's shared libraries.
15583 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15584 fi
15585 fi
15586 ;;
15587
15588 amigaos*)
15589 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)'
15590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15591 hardcode_minus_L_GCJ=yes
15592 # see comment about different semantics on the GNU ld section
15593 ld_shlibs_GCJ=no
15594 ;;
15595
15596 bsdi4*)
15597 export_dynamic_flag_spec_GCJ=-rdynamic
15598 ;;
15599
15600 cygwin* | mingw* | pw32*)
15601 # When not using gcc, we currently assume that we are using
15602 # Microsoft Visual C++.
15603 # hardcode_libdir_flag_spec is actually meaningless, as there is
15604 # no search path for DLLs.
15605 hardcode_libdir_flag_spec_GCJ=' '
15606 allow_undefined_flag_GCJ=unsupported
15607 # Tell ltmain to make .lib files, not .a files.
15608 libext=lib
15609 # Tell ltmain to make .dll files, not .so files.
15610 shrext=".dll"
15611 # FIXME: Setting linknames here is a bad hack.
15612 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15613 # The linker will automatically build a .lib file if we build a DLL.
15614 old_archive_From_new_cmds_GCJ='true'
15615 # FIXME: Should let the user specify the lib program.
15616 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15617 fix_srcfile_path='`cygpath -w "$srcfile"`'
15618 enable_shared_with_static_runtimes_GCJ=yes
15619 ;;
15620
15621 darwin* | rhapsody*)
15622 if test "$GXX" = yes ; then
15623 archive_cmds_need_lc_GCJ=no
15624 case "$host_os" in
15625 rhapsody* | darwin1.[012])
15626 allow_undefined_flag_GCJ='-undefined suppress'
15627 ;;
15628 *) # Darwin 1.3 on
15629 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15630 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15631 else
15632 case ${MACOSX_DEPLOYMENT_TARGET} in
15633 10.[012])
15634 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15635 ;;
15636 10.*)
15637 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15638 ;;
15639 esac
15640 fi
15641 ;;
15642 esac
15643 lt_int_apple_cc_single_mod=no
15644 output_verbose_link_cmd='echo'
15645 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15646 lt_int_apple_cc_single_mod=yes
15647 fi
15648 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15649 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15650 else
15651 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15652 fi
15653 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15654 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15655 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15656 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15657 else
15658 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15659 fi
15660 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}'
15661 hardcode_direct_GCJ=no
15662 hardcode_automatic_GCJ=yes
15663 hardcode_shlibpath_var_GCJ=unsupported
15664 whole_archive_flag_spec_GCJ='-all_load $convenience'
15665 link_all_deplibs_GCJ=yes
15666 else
15667 ld_shlibs_GCJ=no
15668 fi
15669 ;;
15670
15671 dgux*)
15672 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15674 hardcode_shlibpath_var_GCJ=no
15675 ;;
15676
15677 freebsd1*)
15678 ld_shlibs_GCJ=no
15679 ;;
15680
15681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15682 # support. Future versions do this automatically, but an explicit c++rt0.o
15683 # does not break anything, and helps significantly (at the cost of a little
15684 # extra space).
15685 freebsd2.2*)
15686 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15688 hardcode_direct_GCJ=yes
15689 hardcode_shlibpath_var_GCJ=no
15690 ;;
15691
15692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15693 freebsd2*)
15694 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_direct_GCJ=yes
15696 hardcode_minus_L_GCJ=yes
15697 hardcode_shlibpath_var_GCJ=no
15698 ;;
15699
15700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15701 freebsd* | kfreebsd*-gnu)
15702 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15703 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15704 hardcode_direct_GCJ=yes
15705 hardcode_shlibpath_var_GCJ=no
15706 ;;
15707
15708 hpux9*)
15709 if test "$GCC" = yes; then
15710 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'
15711 else
15712 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'
15713 fi
15714 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15715 hardcode_libdir_separator_GCJ=:
15716 hardcode_direct_GCJ=yes
15717
15718 # hardcode_minus_L: Not really in the search PATH,
15719 # but as the default location of the library.
15720 hardcode_minus_L_GCJ=yes
15721 export_dynamic_flag_spec_GCJ='${wl}-E'
15722 ;;
15723
15724 hpux10* | hpux11*)
15725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15726 case "$host_cpu" in
15727 hppa*64*|ia64*)
15728 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 ;;
15730 *)
15731 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15732 ;;
15733 esac
15734 else
15735 case "$host_cpu" in
15736 hppa*64*|ia64*)
15737 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15738 ;;
15739 *)
15740 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15741 ;;
15742 esac
15743 fi
15744 if test "$with_gnu_ld" = no; then
15745 case "$host_cpu" in
15746 hppa*64*)
15747 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15748 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15749 hardcode_libdir_separator_GCJ=:
15750 hardcode_direct_GCJ=no
15751 hardcode_shlibpath_var_GCJ=no
15752 ;;
15753 ia64*)
15754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15755 hardcode_direct_GCJ=no
15756 hardcode_shlibpath_var_GCJ=no
15757
15758 # hardcode_minus_L: Not really in the search PATH,
15759 # but as the default location of the library.
15760 hardcode_minus_L_GCJ=yes
15761 ;;
15762 *)
15763 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15764 hardcode_libdir_separator_GCJ=:
15765 hardcode_direct_GCJ=yes
15766 export_dynamic_flag_spec_GCJ='${wl}-E'
15767
15768 # hardcode_minus_L: Not really in the search PATH,
15769 # but as the default location of the library.
15770 hardcode_minus_L_GCJ=yes
15771 ;;
15772 esac
15773 fi
15774 ;;
15775
15776 irix5* | irix6* | nonstopux*)
15777 if test "$GCC" = yes; then
15778 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'
15779 else
15780 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'
15781 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15782 fi
15783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15784 hardcode_libdir_separator_GCJ=:
15785 link_all_deplibs_GCJ=yes
15786 ;;
15787
15788 netbsd*)
15789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15790 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15791 else
15792 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15793 fi
15794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15795 hardcode_direct_GCJ=yes
15796 hardcode_shlibpath_var_GCJ=no
15797 ;;
15798
15799 newsos6)
15800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801 hardcode_direct_GCJ=yes
15802 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15803 hardcode_libdir_separator_GCJ=:
15804 hardcode_shlibpath_var_GCJ=no
15805 ;;
15806
15807 openbsd*)
15808 hardcode_direct_GCJ=yes
15809 hardcode_shlibpath_var_GCJ=no
15810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15811 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15813 export_dynamic_flag_spec_GCJ='${wl}-E'
15814 else
15815 case $host_os in
15816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15819 ;;
15820 *)
15821 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15822 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15823 ;;
15824 esac
15825 fi
15826 ;;
15827
15828 os2*)
15829 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15830 hardcode_minus_L_GCJ=yes
15831 allow_undefined_flag_GCJ=unsupported
15832 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'
15833 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15834 ;;
15835
15836 osf3*)
15837 if test "$GCC" = yes; then
15838 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15839 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'
15840 else
15841 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15842 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'
15843 fi
15844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15845 hardcode_libdir_separator_GCJ=:
15846 ;;
15847
15848 osf4* | osf5*) # as osf3* with the addition of -msym flag
15849 if test "$GCC" = yes; then
15850 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15851 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'
15852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15853 else
15854 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15855 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'
15856 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~
15857 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15858
15859 # Both c and cxx compiler support -rpath directly
15860 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15861 fi
15862 hardcode_libdir_separator_GCJ=:
15863 ;;
15864
15865 sco3.2v5*)
15866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_shlibpath_var_GCJ=no
15868 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15869 runpath_var=LD_RUN_PATH
15870 hardcode_runpath_var=yes
15871 ;;
15872
15873 solaris*)
15874 no_undefined_flag_GCJ=' -z text'
15875 if test "$GCC" = yes; then
15876 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15878 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15879 else
15880 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15883 fi
15884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15885 hardcode_shlibpath_var_GCJ=no
15886 case $host_os in
15887 solaris2.[0-5] | solaris2.[0-5].*) ;;
15888 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15889 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15890 esac
15891 link_all_deplibs_GCJ=yes
15892 ;;
15893
15894 sunos4*)
15895 if test "x$host_vendor" = xsequent; then
15896 # Use $CC to link under sequent, because it throws in some extra .o
15897 # files that make .init and .fini sections work.
15898 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15899 else
15900 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15901 fi
15902 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15903 hardcode_direct_GCJ=yes
15904 hardcode_minus_L_GCJ=yes
15905 hardcode_shlibpath_var_GCJ=no
15906 ;;
15907
15908 sysv4)
15909 case $host_vendor in
15910 sni)
15911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 hardcode_direct_GCJ=yes # is this really true???
15913 ;;
15914 siemens)
15915 ## LD is ld it makes a PLAMLIB
15916 ## CC just makes a GrossModule.
15917 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15918 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15919 hardcode_direct_GCJ=no
15920 ;;
15921 motorola)
15922 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15924 ;;
15925 esac
15926 runpath_var='LD_RUN_PATH'
15927 hardcode_shlibpath_var_GCJ=no
15928 ;;
15929
15930 sysv4.3*)
15931 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932 hardcode_shlibpath_var_GCJ=no
15933 export_dynamic_flag_spec_GCJ='-Bexport'
15934 ;;
15935
15936 sysv4*MP*)
15937 if test -d /usr/nec; then
15938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15939 hardcode_shlibpath_var_GCJ=no
15940 runpath_var=LD_RUN_PATH
15941 hardcode_runpath_var=yes
15942 ld_shlibs_GCJ=yes
15943 fi
15944 ;;
15945
15946 sysv4.2uw2*)
15947 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15948 hardcode_direct_GCJ=yes
15949 hardcode_minus_L_GCJ=no
15950 hardcode_shlibpath_var_GCJ=no
15951 hardcode_runpath_var=yes
15952 runpath_var=LD_RUN_PATH
15953 ;;
15954
15955 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15956 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15957 if test "$GCC" = yes; then
15958 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15959 else
15960 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15961 fi
15962 runpath_var='LD_RUN_PATH'
15963 hardcode_shlibpath_var_GCJ=no
15964 ;;
15965
15966 sysv5*)
15967 no_undefined_flag_GCJ=' -z text'
15968 # $CC -shared without GNU ld will not create a library from C++
15969 # object files and a static libstdc++, better avoid it by now
15970 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15971 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15973 hardcode_libdir_flag_spec_GCJ=
15974 hardcode_shlibpath_var_GCJ=no
15975 runpath_var='LD_RUN_PATH'
15976 ;;
15977
15978 uts4*)
15979 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15981 hardcode_shlibpath_var_GCJ=no
15982 ;;
15983
15984 *)
15985 ld_shlibs_GCJ=no
15986 ;;
15987 esac
15988 fi
15989
15990 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15991 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15992 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15993
15994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15995 if test "$GCC" = yes; then
15996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15997 fi
15998
15999 #
16000 # Do we need to explicitly link libc?
16001 #
16002 case "x$archive_cmds_need_lc_GCJ" in
16003 x|xyes)
16004 # Assume -lc should be added
16005 archive_cmds_need_lc_GCJ=yes
16006
16007 if test "$enable_shared" = yes && test "$GCC" = yes; then
16008 case $archive_cmds_GCJ in
16009 *'~'*)
16010 # FIXME: we may have to deal with multi-command sequences.
16011 ;;
16012 '$CC '*)
16013 # Test whether the compiler implicitly links with -lc since on some
16014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16015 # to ld, don't add -lc before -lgcc.
16016 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16018 $rm conftest*
16019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16020
16021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022 (eval $ac_compile) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } 2>conftest.err; then
16026 soname=conftest
16027 lib=conftest
16028 libobjs=conftest.$ac_objext
16029 deplibs=
16030 wl=$lt_prog_compiler_wl_GCJ
16031 compiler_flags=-v
16032 linker_flags=-v
16033 verstring=
16034 output_objdir=.
16035 libname=conftest
16036 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16037 allow_undefined_flag_GCJ=
16038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16039 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }
16043 then
16044 archive_cmds_need_lc_GCJ=no
16045 else
16046 archive_cmds_need_lc_GCJ=yes
16047 fi
16048 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16049 else
16050 cat conftest.err 1>&5
16051 fi
16052 $rm conftest*
16053 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16054 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16055 ;;
16056 esac
16057 fi
16058 ;;
16059 esac
16060
16061 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16063 library_names_spec=
16064 libname_spec='lib$name'
16065 soname_spec=
16066 shrext=".so"
16067 postinstall_cmds=
16068 postuninstall_cmds=
16069 finish_cmds=
16070 finish_eval=
16071 shlibpath_var=
16072 shlibpath_overrides_runpath=unknown
16073 version_type=none
16074 dynamic_linker="$host_os ld.so"
16075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16076 if test "$GCC" = yes; then
16077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16078 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16079 # if the path contains ";" then we assume it to be the separator
16080 # otherwise default to the standard path separator (i.e. ":") - it is
16081 # assumed that no part of a normal pathname contains ";" but that should
16082 # okay in the real world where ";" in dirpaths is itself problematic.
16083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16084 else
16085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16086 fi
16087 else
16088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16089 fi
16090 need_lib_prefix=unknown
16091 hardcode_into_libs=no
16092
16093 # when you set need_version to no, make sure it does not cause -set_version
16094 # flags to be left without arguments
16095 need_version=unknown
16096
16097 case $host_os in
16098 aix3*)
16099 version_type=linux
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16101 shlibpath_var=LIBPATH
16102
16103 # AIX 3 has no versioning support, so we append a major version to the name.
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 ;;
16106
16107 aix4* | aix5*)
16108 version_type=linux
16109 need_lib_prefix=no
16110 need_version=no
16111 hardcode_into_libs=yes
16112 if test "$host_cpu" = ia64; then
16113 # AIX 5 supports IA64
16114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 else
16117 # With GCC up to 2.95.x, collect2 would create an import file
16118 # for dependence libraries. The import file would start with
16119 # the line `#! .'. This would cause the generated library to
16120 # depend on `.', always an invalid library. This was fixed in
16121 # development snapshots of GCC prior to 3.0.
16122 case $host_os in
16123 aix4 | aix4.[01] | aix4.[01].*)
16124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16125 echo ' yes '
16126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16127 :
16128 else
16129 can_build_shared=no
16130 fi
16131 ;;
16132 esac
16133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16134 # soname into executable. Probably we can add versioning support to
16135 # collect2, so additional links can be useful in future.
16136 if test "$aix_use_runtimelinking" = yes; then
16137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16138 # instead of lib<name>.a to let people know that these are not
16139 # typical AIX shared libraries.
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 else
16142 # We preserve .a as extension for shared libraries through AIX4.2
16143 # and later when we are not doing run time linking.
16144 library_names_spec='${libname}${release}.a $libname.a'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 fi
16147 shlibpath_var=LIBPATH
16148 fi
16149 ;;
16150
16151 amigaos*)
16152 library_names_spec='$libname.ixlibrary $libname.a'
16153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16154 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'
16155 ;;
16156
16157 beos*)
16158 library_names_spec='${libname}${shared_ext}'
16159 dynamic_linker="$host_os ld.so"
16160 shlibpath_var=LIBRARY_PATH
16161 ;;
16162
16163 bsdi4*)
16164 version_type=linux
16165 need_version=no
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 soname_spec='${libname}${release}${shared_ext}$major'
16168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16172 # the default ld.so.conf also contains /usr/contrib/lib and
16173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16174 # libtool to hard-code these into programs
16175 ;;
16176
16177 cygwin* | mingw* | pw32*)
16178 version_type=windows
16179 shrext=".dll"
16180 need_version=no
16181 need_lib_prefix=no
16182
16183 case $GCC,$host_os in
16184 yes,cygwin* | yes,mingw* | yes,pw32*)
16185 library_names_spec='$libname.dll.a'
16186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16187 postinstall_cmds='base_file=`basename \${file}`~
16188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16189 dldir=$destdir/`dirname \$dlpath`~
16190 test -d \$dldir || mkdir -p \$dldir~
16191 $install_prog $dir/$dlname \$dldir/$dlname'
16192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16193 dlpath=$dir/\$dldll~
16194 $rm \$dlpath'
16195 shlibpath_overrides_runpath=yes
16196
16197 case $host_os in
16198 cygwin*)
16199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16201 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16202 ;;
16203 mingw*)
16204 # MinGW DLLs use traditional 'lib' prefix
16205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16206 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16207 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16208 # It is most probably a Windows format PATH printed by
16209 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16210 # path with ; separators, and with drive letters. We can handle the
16211 # drive letters (cygwin fileutils understands them), so leave them,
16212 # especially as we might pass files found there to a mingw objdump,
16213 # which wouldn't understand a cygwinified path. Ahh.
16214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16215 else
16216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16217 fi
16218 ;;
16219 pw32*)
16220 # pw32 DLLs use 'pw' prefix rather than 'lib'
16221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16222 ;;
16223 esac
16224 ;;
16225
16226 *)
16227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16228 ;;
16229 esac
16230 dynamic_linker='Win32 ld.exe'
16231 # FIXME: first we should search . and the directory the executable is in
16232 shlibpath_var=PATH
16233 ;;
16234
16235 darwin* | rhapsody*)
16236 dynamic_linker="$host_os dyld"
16237 version_type=darwin
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16241 soname_spec='${libname}${release}${major}$shared_ext'
16242 shlibpath_overrides_runpath=yes
16243 shlibpath_var=DYLD_LIBRARY_PATH
16244 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16245 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16246 if test "$GCC" = yes; then
16247 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"`
16248 else
16249 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16250 fi
16251 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16252 ;;
16253
16254 dgux*)
16255 version_type=linux
16256 need_lib_prefix=no
16257 need_version=no
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LD_LIBRARY_PATH
16261 ;;
16262
16263 freebsd1*)
16264 dynamic_linker=no
16265 ;;
16266
16267 kfreebsd*-gnu)
16268 version_type=linux
16269 need_lib_prefix=no
16270 need_version=no
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16272 soname_spec='${libname}${release}${shared_ext}$major'
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=no
16275 hardcode_into_libs=yes
16276 dynamic_linker='GNU ld.so'
16277 ;;
16278
16279 freebsd*)
16280 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16281 version_type=freebsd-$objformat
16282 case $version_type in
16283 freebsd-elf*)
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16285 need_version=no
16286 need_lib_prefix=no
16287 ;;
16288 freebsd-*)
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16290 need_version=yes
16291 ;;
16292 esac
16293 shlibpath_var=LD_LIBRARY_PATH
16294 case $host_os in
16295 freebsd2*)
16296 shlibpath_overrides_runpath=yes
16297 ;;
16298 freebsd3.01* | freebsdelf3.01*)
16299 shlibpath_overrides_runpath=yes
16300 hardcode_into_libs=yes
16301 ;;
16302 *) # from 3.2 on
16303 shlibpath_overrides_runpath=no
16304 hardcode_into_libs=yes
16305 ;;
16306 esac
16307 ;;
16308
16309 gnu*)
16310 version_type=linux
16311 need_lib_prefix=no
16312 need_version=no
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 hardcode_into_libs=yes
16317 ;;
16318
16319 hpux9* | hpux10* | hpux11*)
16320 # Give a soname corresponding to the major version so that dld.sl refuses to
16321 # link against other versions.
16322 version_type=sunos
16323 need_lib_prefix=no
16324 need_version=no
16325 case "$host_cpu" in
16326 ia64*)
16327 shrext='.so'
16328 hardcode_into_libs=yes
16329 dynamic_linker="$host_os dld.so"
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 if test "X$HPUX_IA64_MODE" = X32; then
16335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16336 else
16337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16338 fi
16339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16340 ;;
16341 hppa*64*)
16342 shrext='.sl'
16343 hardcode_into_libs=yes
16344 dynamic_linker="$host_os dld.sl"
16345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16351 ;;
16352 *)
16353 shrext='.sl'
16354 dynamic_linker="$host_os dld.sl"
16355 shlibpath_var=SHLIB_PATH
16356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 ;;
16360 esac
16361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16362 postinstall_cmds='chmod 555 $lib'
16363 ;;
16364
16365 irix5* | irix6* | nonstopux*)
16366 case $host_os in
16367 nonstopux*) version_type=nonstopux ;;
16368 *)
16369 if test "$lt_cv_prog_gnu_ld" = yes; then
16370 version_type=linux
16371 else
16372 version_type=irix
16373 fi ;;
16374 esac
16375 need_lib_prefix=no
16376 need_version=no
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16379 case $host_os in
16380 irix5* | nonstopux*)
16381 libsuff= shlibsuff=
16382 ;;
16383 *)
16384 case $LD in # libtool.m4 will add one of these switches to LD
16385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16386 libsuff= shlibsuff= libmagic=32-bit;;
16387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16388 libsuff=32 shlibsuff=N32 libmagic=N32;;
16389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16391 *) libsuff= shlibsuff= libmagic=never-match;;
16392 esac
16393 ;;
16394 esac
16395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16396 shlibpath_overrides_runpath=no
16397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16399 hardcode_into_libs=yes
16400 ;;
16401
16402 # No shared lib support for Linux oldld, aout, or coff.
16403 linux*oldld* | linux*aout* | linux*coff*)
16404 dynamic_linker=no
16405 ;;
16406
16407 # This must be Linux ELF.
16408 linux*)
16409 version_type=linux
16410 need_lib_prefix=no
16411 need_version=no
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=no
16417 # This implies no fast_install, which is unacceptable.
16418 # Some rework will be needed to allow for fast_install
16419 # before this can be enabled.
16420 hardcode_into_libs=yes
16421
16422 # We used to test for /lib/ld.so.1 and disable shared libraries on
16423 # powerpc, because MkLinux only supported shared libraries with the
16424 # GNU dynamic linker. Since this was broken with cross compilers,
16425 # most powerpc-linux boxes support dynamic linking these days and
16426 # people can always --disable-shared, the test was removed, and we
16427 # assume the GNU/Linux dynamic linker is in use.
16428 dynamic_linker='GNU/Linux ld.so'
16429 ;;
16430
16431 netbsd*)
16432 version_type=sunos
16433 need_lib_prefix=no
16434 need_version=no
16435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16438 dynamic_linker='NetBSD (a.out) ld.so'
16439 else
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 dynamic_linker='NetBSD ld.elf_so'
16443 fi
16444 shlibpath_var=LD_LIBRARY_PATH
16445 shlibpath_overrides_runpath=yes
16446 hardcode_into_libs=yes
16447 ;;
16448
16449 newsos6)
16450 version_type=linux
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes
16454 ;;
16455
16456 nto-qnx*)
16457 version_type=linux
16458 need_lib_prefix=no
16459 need_version=no
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=yes
16464 ;;
16465
16466 openbsd*)
16467 version_type=sunos
16468 need_lib_prefix=no
16469 need_version=no
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16474 case $host_os in
16475 openbsd2.[89] | openbsd2.[89].*)
16476 shlibpath_overrides_runpath=no
16477 ;;
16478 *)
16479 shlibpath_overrides_runpath=yes
16480 ;;
16481 esac
16482 else
16483 shlibpath_overrides_runpath=yes
16484 fi
16485 ;;
16486
16487 os2*)
16488 libname_spec='$name'
16489 shrext=".dll"
16490 need_lib_prefix=no
16491 library_names_spec='$libname${shared_ext} $libname.a'
16492 dynamic_linker='OS/2 ld.exe'
16493 shlibpath_var=LIBPATH
16494 ;;
16495
16496 osf3* | osf4* | osf5*)
16497 version_type=osf
16498 need_lib_prefix=no
16499 need_version=no
16500 soname_spec='${libname}${release}${shared_ext}$major'
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16505 ;;
16506
16507 sco3.2v5*)
16508 version_type=osf
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 ;;
16513
16514 solaris*)
16515 version_type=linux
16516 need_lib_prefix=no
16517 need_version=no
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 shlibpath_overrides_runpath=yes
16522 hardcode_into_libs=yes
16523 # ldd complains unless libraries are executable
16524 postinstall_cmds='chmod +x $lib'
16525 ;;
16526
16527 sunos4*)
16528 version_type=sunos
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 shlibpath_overrides_runpath=yes
16533 if test "$with_gnu_ld" = yes; then
16534 need_lib_prefix=no
16535 fi
16536 need_version=yes
16537 ;;
16538
16539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16540 version_type=linux
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 case $host_vendor in
16545 sni)
16546 shlibpath_overrides_runpath=no
16547 need_lib_prefix=no
16548 export_dynamic_flag_spec='${wl}-Blargedynsym'
16549 runpath_var=LD_RUN_PATH
16550 ;;
16551 siemens)
16552 need_lib_prefix=no
16553 ;;
16554 motorola)
16555 need_lib_prefix=no
16556 need_version=no
16557 shlibpath_overrides_runpath=no
16558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16559 ;;
16560 esac
16561 ;;
16562
16563 sysv4*MP*)
16564 if test -d /usr/nec ;then
16565 version_type=linux
16566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16567 soname_spec='$libname${shared_ext}.$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 fi
16570 ;;
16571
16572 uts4*)
16573 version_type=linux
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 ;;
16578
16579 *)
16580 dynamic_linker=no
16581 ;;
16582 esac
16583 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16584 echo "${ECHO_T}$dynamic_linker" >&6
16585 test "$dynamic_linker" = no && can_build_shared=no
16586
16587 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16588 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16589 hardcode_action_GCJ=
16590 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16591 test -n "$runpath_var GCJ" || \
16592 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16593
16594 # We can hardcode non-existant directories.
16595 if test "$hardcode_direct_GCJ" != no &&
16596 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16597 # have to relink, otherwise we might link with an installed library
16598 # when we should be linking with a yet-to-be-installed one
16599 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16600 test "$hardcode_minus_L_GCJ" != no; then
16601 # Linking always hardcodes the temporary library directory.
16602 hardcode_action_GCJ=relink
16603 else
16604 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16605 hardcode_action_GCJ=immediate
16606 fi
16607 else
16608 # We cannot hardcode anything, or else we can only hardcode existing
16609 # directories.
16610 hardcode_action_GCJ=unsupported
16611 fi
16612 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16613 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16614
16615 if test "$hardcode_action_GCJ" = relink; then
16616 # Fast installation is not supported
16617 enable_fast_install=no
16618 elif test "$shlibpath_overrides_runpath" = yes ||
16619 test "$enable_shared" = no; then
16620 # Fast installation is not necessary
16621 enable_fast_install=needless
16622 fi
16623
16624 striplib=
16625 old_striplib=
16626 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16627 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16628 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16630 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16631 echo "$as_me:$LINENO: result: yes" >&5
16632 echo "${ECHO_T}yes" >&6
16633 else
16634 # FIXME - insert some real tests, host_os isn't really good enough
16635 case $host_os in
16636 darwin*)
16637 if test -n "$STRIP" ; then
16638 striplib="$STRIP -x"
16639 echo "$as_me:$LINENO: result: yes" >&5
16640 echo "${ECHO_T}yes" >&6
16641 else
16642 echo "$as_me:$LINENO: result: no" >&5
16643 echo "${ECHO_T}no" >&6
16644 fi
16645 ;;
16646 *)
16647 echo "$as_me:$LINENO: result: no" >&5
16648 echo "${ECHO_T}no" >&6
16649 ;;
16650 esac
16651 fi
16652
16653 if test "x$enable_dlopen" != xyes; then
16654 enable_dlopen=unknown
16655 enable_dlopen_self=unknown
16656 enable_dlopen_self_static=unknown
16657 else
16658 lt_cv_dlopen=no
16659 lt_cv_dlopen_libs=
16660
16661 case $host_os in
16662 beos*)
16663 lt_cv_dlopen="load_add_on"
16664 lt_cv_dlopen_libs=
16665 lt_cv_dlopen_self=yes
16666 ;;
16667
16668 mingw* | pw32*)
16669 lt_cv_dlopen="LoadLibrary"
16670 lt_cv_dlopen_libs=
16671 ;;
16672
16673 cygwin*)
16674 lt_cv_dlopen="dlopen"
16675 lt_cv_dlopen_libs=
16676 ;;
16677
16678 darwin*)
16679 # if libdl is installed we need to link against it
16680 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685 ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-ldl $LIBS"
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h. */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693
16694 /* Override any gcc2 internal prototype to avoid an error. */
16695 #ifdef __cplusplus
16696 extern "C"
16697 #endif
16698 /* We use char because int might match the return type of a gcc2
16699 builtin and then its argument prototype would still apply. */
16700 char dlopen ();
16701 int
16702 main ()
16703 {
16704 dlopen ();
16705 ;
16706 return 0;
16707 }
16708 _ACEOF
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16711 (eval $ac_link) 2>conftest.er1
16712 ac_status=$?
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag"
16719 || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_cv_lib_dl_dlopen=yes
16732 else
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_cv_lib_dl_dlopen=no
16737 fi
16738 rm -f conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16741 fi
16742 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16743 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16744 if test $ac_cv_lib_dl_dlopen = yes; then
16745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16746 else
16747
16748 lt_cv_dlopen="dyld"
16749 lt_cv_dlopen_libs=
16750 lt_cv_dlopen_self=yes
16751
16752 fi
16753
16754 ;;
16755
16756 *)
16757 echo "$as_me:$LINENO: checking for shl_load" >&5
16758 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16759 if test "${ac_cv_func_shl_load+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16770 #define shl_load innocuous_shl_load
16771
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char shl_load (); below.
16774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775 <limits.h> exists even on freestanding compilers. */
16776
16777 #ifdef __STDC__
16778 # include <limits.h>
16779 #else
16780 # include <assert.h>
16781 #endif
16782
16783 #undef shl_load
16784
16785 /* Override any gcc2 internal prototype to avoid an error. */
16786 #ifdef __cplusplus
16787 extern "C"
16788 {
16789 #endif
16790 /* We use char because int might match the return type of a gcc2
16791 builtin and then its argument prototype would still apply. */
16792 char shl_load ();
16793 /* The GNU C library defines this for functions which it implements
16794 to always fail with ENOSYS. Some functions are actually named
16795 something starting with __ and the normal name is an alias. */
16796 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16797 choke me
16798 #else
16799 char (*f) () = shl_load;
16800 #endif
16801 #ifdef __cplusplus
16802 }
16803 #endif
16804
16805 int
16806 main ()
16807 {
16808 return f != shl_load;
16809 ;
16810 return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_cv_func_shl_load=yes
16836 else
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840 ac_cv_func_shl_load=no
16841 fi
16842 rm -f conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16844 fi
16845 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16847 if test $ac_cv_func_shl_load = yes; then
16848 lt_cv_dlopen="shl_load"
16849 else
16850 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855 ac_check_lib_save_LIBS=$LIBS
16856 LIBS="-ldld $LIBS"
16857 cat >conftest.$ac_ext <<_ACEOF
16858 /* confdefs.h. */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863
16864 /* Override any gcc2 internal prototype to avoid an error. */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 /* We use char because int might match the return type of a gcc2
16869 builtin and then its argument prototype would still apply. */
16870 char shl_load ();
16871 int
16872 main ()
16873 {
16874 shl_load ();
16875 ;
16876 return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16881 (eval $ac_link) 2>conftest.er1
16882 ac_status=$?
16883 grep -v '^ *+' conftest.er1 >conftest.err
16884 rm -f conftest.er1
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } &&
16888 { ac_try='test -z "$ac_c_werror_flag"
16889 || test ! -s conftest.err'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; } &&
16895 { ac_try='test -s conftest$ac_exeext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 ac_cv_lib_dld_shl_load=yes
16902 else
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ac_cv_lib_dld_shl_load=no
16907 fi
16908 rm -f conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 LIBS=$ac_check_lib_save_LIBS
16911 fi
16912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16913 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16914 if test $ac_cv_lib_dld_shl_load = yes; then
16915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16916 else
16917 echo "$as_me:$LINENO: checking for dlopen" >&5
16918 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16919 if test "${ac_cv_func_dlopen+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16930 #define dlopen innocuous_dlopen
16931
16932 /* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char dlopen (); below.
16934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 <limits.h> exists even on freestanding compilers. */
16936
16937 #ifdef __STDC__
16938 # include <limits.h>
16939 #else
16940 # include <assert.h>
16941 #endif
16942
16943 #undef dlopen
16944
16945 /* Override any gcc2 internal prototype to avoid an error. */
16946 #ifdef __cplusplus
16947 extern "C"
16948 {
16949 #endif
16950 /* We use char because int might match the return type of a gcc2
16951 builtin and then its argument prototype would still apply. */
16952 char dlopen ();
16953 /* The GNU C library defines this for functions which it implements
16954 to always fail with ENOSYS. Some functions are actually named
16955 something starting with __ and the normal name is an alias. */
16956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16957 choke me
16958 #else
16959 char (*f) () = dlopen;
16960 #endif
16961 #ifdef __cplusplus
16962 }
16963 #endif
16964
16965 int
16966 main ()
16967 {
16968 return f != dlopen;
16969 ;
16970 return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975 (eval $ac_link) 2>conftest.er1
16976 ac_status=$?
16977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag"
16983 || test ! -s conftest.err'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest$ac_exeext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_cv_func_dlopen=yes
16996 else
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 ac_cv_func_dlopen=no
17001 fi
17002 rm -f conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17004 fi
17005 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17006 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17007 if test $ac_cv_func_dlopen = yes; then
17008 lt_cv_dlopen="dlopen"
17009 else
17010 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015 ac_check_lib_save_LIBS=$LIBS
17016 LIBS="-ldl $LIBS"
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023
17024 /* Override any gcc2 internal prototype to avoid an error. */
17025 #ifdef __cplusplus
17026 extern "C"
17027 #endif
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17030 char dlopen ();
17031 int
17032 main ()
17033 {
17034 dlopen ();
17035 ;
17036 return 0;
17037 }
17038 _ACEOF
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_lib_dl_dlopen=yes
17062 else
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 ac_cv_lib_dl_dlopen=no
17067 fi
17068 rm -f conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17070 LIBS=$ac_check_lib_save_LIBS
17071 fi
17072 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17073 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17074 if test $ac_cv_lib_dl_dlopen = yes; then
17075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17076 else
17077 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17078 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17079 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082 ac_check_lib_save_LIBS=$LIBS
17083 LIBS="-lsvld $LIBS"
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h. */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090
17091 /* Override any gcc2 internal prototype to avoid an error. */
17092 #ifdef __cplusplus
17093 extern "C"
17094 #endif
17095 /* We use char because int might match the return type of a gcc2
17096 builtin and then its argument prototype would still apply. */
17097 char dlopen ();
17098 int
17099 main ()
17100 {
17101 dlopen ();
17102 ;
17103 return 0;
17104 }
17105 _ACEOF
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108 (eval $ac_link) 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag"
17116 || test ! -s conftest.err'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest$ac_exeext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_lib_svld_dlopen=yes
17129 else
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_cv_lib_svld_dlopen=no
17134 fi
17135 rm -f conftest.err conftest.$ac_objext \
17136 conftest$ac_exeext conftest.$ac_ext
17137 LIBS=$ac_check_lib_save_LIBS
17138 fi
17139 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17140 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17141 if test $ac_cv_lib_svld_dlopen = yes; then
17142 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17143 else
17144 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 ac_check_lib_save_LIBS=$LIBS
17150 LIBS="-ldld $LIBS"
17151 cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h. */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157
17158 /* Override any gcc2 internal prototype to avoid an error. */
17159 #ifdef __cplusplus
17160 extern "C"
17161 #endif
17162 /* We use char because int might match the return type of a gcc2
17163 builtin and then its argument prototype would still apply. */
17164 char dld_link ();
17165 int
17166 main ()
17167 {
17168 dld_link ();
17169 ;
17170 return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175 (eval $ac_link) 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
17182 { ac_try='test -z "$ac_c_werror_flag"
17183 || test ! -s conftest.err'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest$ac_exeext'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_cv_lib_dld_dld_link=yes
17196 else
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 ac_cv_lib_dld_dld_link=no
17201 fi
17202 rm -f conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17204 LIBS=$ac_check_lib_save_LIBS
17205 fi
17206 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17208 if test $ac_cv_lib_dld_dld_link = yes; then
17209 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17210 fi
17211
17212
17213 fi
17214
17215
17216 fi
17217
17218
17219 fi
17220
17221
17222 fi
17223
17224
17225 fi
17226
17227 ;;
17228 esac
17229
17230 if test "x$lt_cv_dlopen" != xno; then
17231 enable_dlopen=yes
17232 else
17233 enable_dlopen=no
17234 fi
17235
17236 case $lt_cv_dlopen in
17237 dlopen)
17238 save_CPPFLAGS="$CPPFLAGS"
17239 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17240
17241 save_LDFLAGS="$LDFLAGS"
17242 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17243
17244 save_LIBS="$LIBS"
17245 LIBS="$lt_cv_dlopen_libs $LIBS"
17246
17247 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17248 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17249 if test "${lt_cv_dlopen_self+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252 if test "$cross_compiling" = yes; then :
17253 lt_cv_dlopen_self=cross
17254 else
17255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17256 lt_status=$lt_dlunknown
17257 cat > conftest.$ac_ext <<EOF
17258 #line 17258 "configure"
17259 #include "confdefs.h"
17260
17261 #if HAVE_DLFCN_H
17262 #include <dlfcn.h>
17263 #endif
17264
17265 #include <stdio.h>
17266
17267 #ifdef RTLD_GLOBAL
17268 # define LT_DLGLOBAL RTLD_GLOBAL
17269 #else
17270 # ifdef DL_GLOBAL
17271 # define LT_DLGLOBAL DL_GLOBAL
17272 # else
17273 # define LT_DLGLOBAL 0
17274 # endif
17275 #endif
17276
17277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17278 find out it does not work in some platform. */
17279 #ifndef LT_DLLAZY_OR_NOW
17280 # ifdef RTLD_LAZY
17281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17282 # else
17283 # ifdef DL_LAZY
17284 # define LT_DLLAZY_OR_NOW DL_LAZY
17285 # else
17286 # ifdef RTLD_NOW
17287 # define LT_DLLAZY_OR_NOW RTLD_NOW
17288 # else
17289 # ifdef DL_NOW
17290 # define LT_DLLAZY_OR_NOW DL_NOW
17291 # else
17292 # define LT_DLLAZY_OR_NOW 0
17293 # endif
17294 # endif
17295 # endif
17296 # endif
17297 #endif
17298
17299 #ifdef __cplusplus
17300 extern "C" void exit (int);
17301 #endif
17302
17303 void fnord() { int i=42;}
17304 int main ()
17305 {
17306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17307 int status = $lt_dlunknown;
17308
17309 if (self)
17310 {
17311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17313 /* dlclose (self); */
17314 }
17315
17316 exit (status);
17317 }
17318 EOF
17319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17320 (eval $ac_link) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17324 (./conftest; exit; ) 2>/dev/null
17325 lt_status=$?
17326 case x$lt_status in
17327 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17328 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17329 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17330 esac
17331 else :
17332 # compilation failed
17333 lt_cv_dlopen_self=no
17334 fi
17335 fi
17336 rm -fr conftest*
17337
17338
17339 fi
17340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17341 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17342
17343 if test "x$lt_cv_dlopen_self" = xyes; then
17344 LDFLAGS="$LDFLAGS $link_static_flag"
17345 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17346 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17347 if test "${lt_cv_dlopen_self_static+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350 if test "$cross_compiling" = yes; then :
17351 lt_cv_dlopen_self_static=cross
17352 else
17353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17354 lt_status=$lt_dlunknown
17355 cat > conftest.$ac_ext <<EOF
17356 #line 17356 "configure"
17357 #include "confdefs.h"
17358
17359 #if HAVE_DLFCN_H
17360 #include <dlfcn.h>
17361 #endif
17362
17363 #include <stdio.h>
17364
17365 #ifdef RTLD_GLOBAL
17366 # define LT_DLGLOBAL RTLD_GLOBAL
17367 #else
17368 # ifdef DL_GLOBAL
17369 # define LT_DLGLOBAL DL_GLOBAL
17370 # else
17371 # define LT_DLGLOBAL 0
17372 # endif
17373 #endif
17374
17375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17376 find out it does not work in some platform. */
17377 #ifndef LT_DLLAZY_OR_NOW
17378 # ifdef RTLD_LAZY
17379 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17380 # else
17381 # ifdef DL_LAZY
17382 # define LT_DLLAZY_OR_NOW DL_LAZY
17383 # else
17384 # ifdef RTLD_NOW
17385 # define LT_DLLAZY_OR_NOW RTLD_NOW
17386 # else
17387 # ifdef DL_NOW
17388 # define LT_DLLAZY_OR_NOW DL_NOW
17389 # else
17390 # define LT_DLLAZY_OR_NOW 0
17391 # endif
17392 # endif
17393 # endif
17394 # endif
17395 #endif
17396
17397 #ifdef __cplusplus
17398 extern "C" void exit (int);
17399 #endif
17400
17401 void fnord() { int i=42;}
17402 int main ()
17403 {
17404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17405 int status = $lt_dlunknown;
17406
17407 if (self)
17408 {
17409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17411 /* dlclose (self); */
17412 }
17413
17414 exit (status);
17415 }
17416 EOF
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17422 (./conftest; exit; ) 2>/dev/null
17423 lt_status=$?
17424 case x$lt_status in
17425 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17426 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17427 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17428 esac
17429 else :
17430 # compilation failed
17431 lt_cv_dlopen_self_static=no
17432 fi
17433 fi
17434 rm -fr conftest*
17435
17436
17437 fi
17438 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17439 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17440 fi
17441
17442 CPPFLAGS="$save_CPPFLAGS"
17443 LDFLAGS="$save_LDFLAGS"
17444 LIBS="$save_LIBS"
17445 ;;
17446 esac
17447
17448 case $lt_cv_dlopen_self in
17449 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17450 *) enable_dlopen_self=unknown ;;
17451 esac
17452
17453 case $lt_cv_dlopen_self_static in
17454 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17455 *) enable_dlopen_self_static=unknown ;;
17456 esac
17457 fi
17458
17459
17460 # The else clause should only fire when bootstrapping the
17461 # libtool distribution, otherwise you forgot to ship ltmain.sh
17462 # with your package, and you will get complaints that there are
17463 # no rules to generate ltmain.sh.
17464 if test -f "$ltmain"; then
17465 # See if we are running on zsh, and set the options which allow our commands through
17466 # without removal of \ escapes.
17467 if test -n "${ZSH_VERSION+set}" ; then
17468 setopt NO_GLOB_SUBST
17469 fi
17470 # Now quote all the things that may contain metacharacters while being
17471 # careful not to overquote the AC_SUBSTed values. We take copies of the
17472 # variables and quote the copies for generation of the libtool script.
17473 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17474 SED SHELL STRIP \
17475 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17476 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17477 deplibs_check_method reload_flag reload_cmds need_locks \
17478 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17479 lt_cv_sys_global_symbol_to_c_name_address \
17480 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17481 old_postinstall_cmds old_postuninstall_cmds \
17482 compiler_GCJ \
17483 CC_GCJ \
17484 LD_GCJ \
17485 lt_prog_compiler_wl_GCJ \
17486 lt_prog_compiler_pic_GCJ \
17487 lt_prog_compiler_static_GCJ \
17488 lt_prog_compiler_no_builtin_flag_GCJ \
17489 export_dynamic_flag_spec_GCJ \
17490 thread_safe_flag_spec_GCJ \
17491 whole_archive_flag_spec_GCJ \
17492 enable_shared_with_static_runtimes_GCJ \
17493 old_archive_cmds_GCJ \
17494 old_archive_from_new_cmds_GCJ \
17495 predep_objects_GCJ \
17496 postdep_objects_GCJ \
17497 predeps_GCJ \
17498 postdeps_GCJ \
17499 compiler_lib_search_path_GCJ \
17500 archive_cmds_GCJ \
17501 archive_expsym_cmds_GCJ \
17502 postinstall_cmds_GCJ \
17503 postuninstall_cmds_GCJ \
17504 old_archive_from_expsyms_cmds_GCJ \
17505 allow_undefined_flag_GCJ \
17506 no_undefined_flag_GCJ \
17507 export_symbols_cmds_GCJ \
17508 hardcode_libdir_flag_spec_GCJ \
17509 hardcode_libdir_flag_spec_ld_GCJ \
17510 hardcode_libdir_separator_GCJ \
17511 hardcode_automatic_GCJ \
17512 module_cmds_GCJ \
17513 module_expsym_cmds_GCJ \
17514 lt_cv_prog_compiler_c_o_GCJ \
17515 exclude_expsyms_GCJ \
17516 include_expsyms_GCJ; do
17517
17518 case $var in
17519 old_archive_cmds_GCJ | \
17520 old_archive_from_new_cmds_GCJ | \
17521 archive_cmds_GCJ | \
17522 archive_expsym_cmds_GCJ | \
17523 module_cmds_GCJ | \
17524 module_expsym_cmds_GCJ | \
17525 old_archive_from_expsyms_cmds_GCJ | \
17526 export_symbols_cmds_GCJ | \
17527 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17528 postinstall_cmds | postuninstall_cmds | \
17529 old_postinstall_cmds | old_postuninstall_cmds | \
17530 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17531 # Double-quote double-evaled strings.
17532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17533 ;;
17534 *)
17535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17536 ;;
17537 esac
17538 done
17539
17540 case $lt_echo in
17541 *'\$0 --fallback-echo"')
17542 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17543 ;;
17544 esac
17545
17546 cfgfile="$ofile"
17547
17548 cat <<__EOF__ >> "$cfgfile"
17549 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17550
17551 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17552
17553 # Shell to use when invoking shell scripts.
17554 SHELL=$lt_SHELL
17555
17556 # Whether or not to build shared libraries.
17557 build_libtool_libs=$enable_shared
17558
17559 # Whether or not to build static libraries.
17560 build_old_libs=$enable_static
17561
17562 # Whether or not to add -lc for building shared libraries.
17563 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17564
17565 # Whether or not to disallow shared libs when runtime libs are static
17566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17567
17568 # Whether or not to optimize for fast installation.
17569 fast_install=$enable_fast_install
17570
17571 # The host system.
17572 host_alias=$host_alias
17573 host=$host
17574
17575 # An echo program that does not interpret backslashes.
17576 echo=$lt_echo
17577
17578 # The archiver.
17579 AR=$lt_AR
17580 AR_FLAGS=$lt_AR_FLAGS
17581
17582 # A C compiler.
17583 LTCC=$lt_LTCC
17584
17585 # A language-specific compiler.
17586 CC=$lt_compiler_GCJ
17587
17588 # Is the compiler the GNU C compiler?
17589 with_gcc=$GCC_GCJ
17590
17591 # An ERE matcher.
17592 EGREP=$lt_EGREP
17593
17594 # The linker used to build libraries.
17595 LD=$lt_LD_GCJ
17596
17597 # Whether we need hard or soft links.
17598 LN_S=$lt_LN_S
17599
17600 # A BSD-compatible nm program.
17601 NM=$lt_NM
17602
17603 # A symbol stripping program
17604 STRIP=$lt_STRIP
17605
17606 # Used to examine libraries when file_magic_cmd begins "file"
17607 MAGIC_CMD=$MAGIC_CMD
17608
17609 # Used on cygwin: DLL creation program.
17610 DLLTOOL="$DLLTOOL"
17611
17612 # Used on cygwin: object dumper.
17613 OBJDUMP="$OBJDUMP"
17614
17615 # Used on cygwin: assembler.
17616 AS="$AS"
17617
17618 # The name of the directory that contains temporary libtool files.
17619 objdir=$objdir
17620
17621 # How to create reloadable object files.
17622 reload_flag=$lt_reload_flag
17623 reload_cmds=$lt_reload_cmds
17624
17625 # How to pass a linker flag through the compiler.
17626 wl=$lt_lt_prog_compiler_wl_GCJ
17627
17628 # Object file suffix (normally "o").
17629 objext="$ac_objext"
17630
17631 # Old archive suffix (normally "a").
17632 libext="$libext"
17633
17634 # Shared library suffix (normally ".so").
17635 shrext='$shrext'
17636
17637 # Executable file suffix (normally "").
17638 exeext="$exeext"
17639
17640 # Additional compiler flags for building library objects.
17641 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17642 pic_mode=$pic_mode
17643
17644 # What is the maximum length of a command?
17645 max_cmd_len=$lt_cv_sys_max_cmd_len
17646
17647 # Does compiler simultaneously support -c and -o options?
17648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17649
17650 # Must we lock files when doing compilation ?
17651 need_locks=$lt_need_locks
17652
17653 # Do we need the lib prefix for modules?
17654 need_lib_prefix=$need_lib_prefix
17655
17656 # Do we need a version for libraries?
17657 need_version=$need_version
17658
17659 # Whether dlopen is supported.
17660 dlopen_support=$enable_dlopen
17661
17662 # Whether dlopen of programs is supported.
17663 dlopen_self=$enable_dlopen_self
17664
17665 # Whether dlopen of statically linked programs is supported.
17666 dlopen_self_static=$enable_dlopen_self_static
17667
17668 # Compiler flag to prevent dynamic linking.
17669 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17670
17671 # Compiler flag to turn off builtin functions.
17672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17673
17674 # Compiler flag to allow reflexive dlopens.
17675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17676
17677 # Compiler flag to generate shared objects directly from archives.
17678 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17679
17680 # Compiler flag to generate thread-safe objects.
17681 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17682
17683 # Library versioning type.
17684 version_type=$version_type
17685
17686 # Format of library name prefix.
17687 libname_spec=$lt_libname_spec
17688
17689 # List of archive names. First name is the real one, the rest are links.
17690 # The last name is the one that the linker finds with -lNAME.
17691 library_names_spec=$lt_library_names_spec
17692
17693 # The coded name of the library, if different from the real name.
17694 soname_spec=$lt_soname_spec
17695
17696 # Commands used to build and install an old-style archive.
17697 RANLIB=$lt_RANLIB
17698 old_archive_cmds=$lt_old_archive_cmds_GCJ
17699 old_postinstall_cmds=$lt_old_postinstall_cmds
17700 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17701
17702 # Create an old-style archive from a shared archive.
17703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17704
17705 # Create a temporary old-style archive to link instead of a shared archive.
17706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17707
17708 # Commands used to build and install a shared archive.
17709 archive_cmds=$lt_archive_cmds_GCJ
17710 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17711 postinstall_cmds=$lt_postinstall_cmds
17712 postuninstall_cmds=$lt_postuninstall_cmds
17713
17714 # Commands used to build a loadable module (assumed same as above if empty)
17715 module_cmds=$lt_module_cmds_GCJ
17716 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17717
17718 # Commands to strip libraries.
17719 old_striplib=$lt_old_striplib
17720 striplib=$lt_striplib
17721
17722 # Dependencies to place before the objects being linked to create a
17723 # shared library.
17724 predep_objects=$lt_predep_objects_GCJ
17725
17726 # Dependencies to place after the objects being linked to create a
17727 # shared library.
17728 postdep_objects=$lt_postdep_objects_GCJ
17729
17730 # Dependencies to place before the objects being linked to create a
17731 # shared library.
17732 predeps=$lt_predeps_GCJ
17733
17734 # Dependencies to place after the objects being linked to create a
17735 # shared library.
17736 postdeps=$lt_postdeps_GCJ
17737
17738 # The library search path used internally by the compiler when linking
17739 # a shared library.
17740 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17741
17742 # Method to check whether dependent libraries are shared objects.
17743 deplibs_check_method=$lt_deplibs_check_method
17744
17745 # Command to use when deplibs_check_method == file_magic.
17746 file_magic_cmd=$lt_file_magic_cmd
17747
17748 # Flag that allows shared libraries with undefined symbols to be built.
17749 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17750
17751 # Flag that forces no undefined symbols.
17752 no_undefined_flag=$lt_no_undefined_flag_GCJ
17753
17754 # Commands used to finish a libtool library installation in a directory.
17755 finish_cmds=$lt_finish_cmds
17756
17757 # Same as above, but a single script fragment to be evaled but not shown.
17758 finish_eval=$lt_finish_eval
17759
17760 # Take the output of nm and produce a listing of raw symbols and C names.
17761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17762
17763 # Transform the output of nm in a proper C declaration
17764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17765
17766 # Transform the output of nm in a C name address pair
17767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17768
17769 # This is the shared library runtime path variable.
17770 runpath_var=$runpath_var
17771
17772 # This is the shared library path variable.
17773 shlibpath_var=$shlibpath_var
17774
17775 # Is shlibpath searched before the hard-coded library search path?
17776 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17777
17778 # How to hardcode a shared library path into an executable.
17779 hardcode_action=$hardcode_action_GCJ
17780
17781 # Whether we should hardcode library paths into libraries.
17782 hardcode_into_libs=$hardcode_into_libs
17783
17784 # Flag to hardcode \$libdir into a binary during linking.
17785 # This must work even if \$libdir does not exist.
17786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17787
17788 # If ld is used when linking, flag to hardcode \$libdir into
17789 # a binary during linking. This must work even if \$libdir does
17790 # not exist.
17791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17792
17793 # Whether we need a single -rpath flag with a separated argument.
17794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17795
17796 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17797 # resulting binary.
17798 hardcode_direct=$hardcode_direct_GCJ
17799
17800 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17801 # resulting binary.
17802 hardcode_minus_L=$hardcode_minus_L_GCJ
17803
17804 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17805 # the resulting binary.
17806 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17807
17808 # Set to yes if building a shared library automatically hardcodes DIR into the library
17809 # and all subsequent libraries and executables linked against it.
17810 hardcode_automatic=$hardcode_automatic_GCJ
17811
17812 # Variables whose values should be saved in libtool wrapper scripts and
17813 # restored at relink time.
17814 variables_saved_for_relink="$variables_saved_for_relink"
17815
17816 # Whether libtool must link a program against all its dependency libraries.
17817 link_all_deplibs=$link_all_deplibs_GCJ
17818
17819 # Compile-time system search path for libraries
17820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17821
17822 # Run-time system search path for libraries
17823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17824
17825 # Fix the shell variable \$srcfile for the compiler.
17826 fix_srcfile_path="$fix_srcfile_path_GCJ"
17827
17828 # Set to yes if exported symbols are required.
17829 always_export_symbols=$always_export_symbols_GCJ
17830
17831 # The commands to list exported symbols.
17832 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17833
17834 # The commands to extract the exported symbol list from a shared archive.
17835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17836
17837 # Symbols that should not be listed in the preloaded symbols.
17838 exclude_expsyms=$lt_exclude_expsyms_GCJ
17839
17840 # Symbols that must always be exported.
17841 include_expsyms=$lt_include_expsyms_GCJ
17842
17843 # ### END LIBTOOL TAG CONFIG: $tagname
17844
17845 __EOF__
17846
17847
17848 else
17849 # If there is no Makefile yet, we rely on a make rule to execute
17850 # `config.status --recheck' to rerun these tests and create the
17851 # libtool script then.
17852 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17853 if test -f "$ltmain_in"; then
17854 test -f Makefile && make "$ltmain"
17855 fi
17856 fi
17857
17858
17859 ac_ext=c
17860 ac_cpp='$CPP $CPPFLAGS'
17861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17864
17865 CC="$lt_save_CC"
17866
17867 else
17868 tagname=""
17869 fi
17870 ;;
17871
17872 RC)
17873
17874
17875
17876 # Source file extension for RC test sources.
17877 ac_ext=rc
17878
17879 # Object file extension for compiled RC test sources.
17880 objext=o
17881 objext_RC=$objext
17882
17883 # Code to be used in simple compile tests
17884 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17885
17886 # Code to be used in simple link tests
17887 lt_simple_link_test_code="$lt_simple_compile_test_code"
17888
17889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17890
17891 # If no C compiler was specified, use CC.
17892 LTCC=${LTCC-"$CC"}
17893
17894 # Allow CC to be a program name with arguments.
17895 compiler=$CC
17896
17897
17898 # Allow CC to be a program name with arguments.
17899 lt_save_CC="$CC"
17900 CC=${RC-"windres"}
17901 compiler=$CC
17902 compiler_RC=$CC
17903 lt_cv_prog_compiler_c_o_RC=yes
17904
17905 # The else clause should only fire when bootstrapping the
17906 # libtool distribution, otherwise you forgot to ship ltmain.sh
17907 # with your package, and you will get complaints that there are
17908 # no rules to generate ltmain.sh.
17909 if test -f "$ltmain"; then
17910 # See if we are running on zsh, and set the options which allow our commands through
17911 # without removal of \ escapes.
17912 if test -n "${ZSH_VERSION+set}" ; then
17913 setopt NO_GLOB_SUBST
17914 fi
17915 # Now quote all the things that may contain metacharacters while being
17916 # careful not to overquote the AC_SUBSTed values. We take copies of the
17917 # variables and quote the copies for generation of the libtool script.
17918 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17919 SED SHELL STRIP \
17920 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17921 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17922 deplibs_check_method reload_flag reload_cmds need_locks \
17923 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17924 lt_cv_sys_global_symbol_to_c_name_address \
17925 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17926 old_postinstall_cmds old_postuninstall_cmds \
17927 compiler_RC \
17928 CC_RC \
17929 LD_RC \
17930 lt_prog_compiler_wl_RC \
17931 lt_prog_compiler_pic_RC \
17932 lt_prog_compiler_static_RC \
17933 lt_prog_compiler_no_builtin_flag_RC \
17934 export_dynamic_flag_spec_RC \
17935 thread_safe_flag_spec_RC \
17936 whole_archive_flag_spec_RC \
17937 enable_shared_with_static_runtimes_RC \
17938 old_archive_cmds_RC \
17939 old_archive_from_new_cmds_RC \
17940 predep_objects_RC \
17941 postdep_objects_RC \
17942 predeps_RC \
17943 postdeps_RC \
17944 compiler_lib_search_path_RC \
17945 archive_cmds_RC \
17946 archive_expsym_cmds_RC \
17947 postinstall_cmds_RC \
17948 postuninstall_cmds_RC \
17949 old_archive_from_expsyms_cmds_RC \
17950 allow_undefined_flag_RC \
17951 no_undefined_flag_RC \
17952 export_symbols_cmds_RC \
17953 hardcode_libdir_flag_spec_RC \
17954 hardcode_libdir_flag_spec_ld_RC \
17955 hardcode_libdir_separator_RC \
17956 hardcode_automatic_RC \
17957 module_cmds_RC \
17958 module_expsym_cmds_RC \
17959 lt_cv_prog_compiler_c_o_RC \
17960 exclude_expsyms_RC \
17961 include_expsyms_RC; do
17962
17963 case $var in
17964 old_archive_cmds_RC | \
17965 old_archive_from_new_cmds_RC | \
17966 archive_cmds_RC | \
17967 archive_expsym_cmds_RC | \
17968 module_cmds_RC | \
17969 module_expsym_cmds_RC | \
17970 old_archive_from_expsyms_cmds_RC | \
17971 export_symbols_cmds_RC | \
17972 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17973 postinstall_cmds | postuninstall_cmds | \
17974 old_postinstall_cmds | old_postuninstall_cmds | \
17975 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17976 # Double-quote double-evaled strings.
17977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17978 ;;
17979 *)
17980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17981 ;;
17982 esac
17983 done
17984
17985 case $lt_echo in
17986 *'\$0 --fallback-echo"')
17987 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17988 ;;
17989 esac
17990
17991 cfgfile="$ofile"
17992
17993 cat <<__EOF__ >> "$cfgfile"
17994 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17995
17996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17997
17998 # Shell to use when invoking shell scripts.
17999 SHELL=$lt_SHELL
18000
18001 # Whether or not to build shared libraries.
18002 build_libtool_libs=$enable_shared
18003
18004 # Whether or not to build static libraries.
18005 build_old_libs=$enable_static
18006
18007 # Whether or not to add -lc for building shared libraries.
18008 build_libtool_need_lc=$archive_cmds_need_lc_RC
18009
18010 # Whether or not to disallow shared libs when runtime libs are static
18011 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18012
18013 # Whether or not to optimize for fast installation.
18014 fast_install=$enable_fast_install
18015
18016 # The host system.
18017 host_alias=$host_alias
18018 host=$host
18019
18020 # An echo program that does not interpret backslashes.
18021 echo=$lt_echo
18022
18023 # The archiver.
18024 AR=$lt_AR
18025 AR_FLAGS=$lt_AR_FLAGS
18026
18027 # A C compiler.
18028 LTCC=$lt_LTCC
18029
18030 # A language-specific compiler.
18031 CC=$lt_compiler_RC
18032
18033 # Is the compiler the GNU C compiler?
18034 with_gcc=$GCC_RC
18035
18036 # An ERE matcher.
18037 EGREP=$lt_EGREP
18038
18039 # The linker used to build libraries.
18040 LD=$lt_LD_RC
18041
18042 # Whether we need hard or soft links.
18043 LN_S=$lt_LN_S
18044
18045 # A BSD-compatible nm program.
18046 NM=$lt_NM
18047
18048 # A symbol stripping program
18049 STRIP=$lt_STRIP
18050
18051 # Used to examine libraries when file_magic_cmd begins "file"
18052 MAGIC_CMD=$MAGIC_CMD
18053
18054 # Used on cygwin: DLL creation program.
18055 DLLTOOL="$DLLTOOL"
18056
18057 # Used on cygwin: object dumper.
18058 OBJDUMP="$OBJDUMP"
18059
18060 # Used on cygwin: assembler.
18061 AS="$AS"
18062
18063 # The name of the directory that contains temporary libtool files.
18064 objdir=$objdir
18065
18066 # How to create reloadable object files.
18067 reload_flag=$lt_reload_flag
18068 reload_cmds=$lt_reload_cmds
18069
18070 # How to pass a linker flag through the compiler.
18071 wl=$lt_lt_prog_compiler_wl_RC
18072
18073 # Object file suffix (normally "o").
18074 objext="$ac_objext"
18075
18076 # Old archive suffix (normally "a").
18077 libext="$libext"
18078
18079 # Shared library suffix (normally ".so").
18080 shrext='$shrext'
18081
18082 # Executable file suffix (normally "").
18083 exeext="$exeext"
18084
18085 # Additional compiler flags for building library objects.
18086 pic_flag=$lt_lt_prog_compiler_pic_RC
18087 pic_mode=$pic_mode
18088
18089 # What is the maximum length of a command?
18090 max_cmd_len=$lt_cv_sys_max_cmd_len
18091
18092 # Does compiler simultaneously support -c and -o options?
18093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18094
18095 # Must we lock files when doing compilation ?
18096 need_locks=$lt_need_locks
18097
18098 # Do we need the lib prefix for modules?
18099 need_lib_prefix=$need_lib_prefix
18100
18101 # Do we need a version for libraries?
18102 need_version=$need_version
18103
18104 # Whether dlopen is supported.
18105 dlopen_support=$enable_dlopen
18106
18107 # Whether dlopen of programs is supported.
18108 dlopen_self=$enable_dlopen_self
18109
18110 # Whether dlopen of statically linked programs is supported.
18111 dlopen_self_static=$enable_dlopen_self_static
18112
18113 # Compiler flag to prevent dynamic linking.
18114 link_static_flag=$lt_lt_prog_compiler_static_RC
18115
18116 # Compiler flag to turn off builtin functions.
18117 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18118
18119 # Compiler flag to allow reflexive dlopens.
18120 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18121
18122 # Compiler flag to generate shared objects directly from archives.
18123 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18124
18125 # Compiler flag to generate thread-safe objects.
18126 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18127
18128 # Library versioning type.
18129 version_type=$version_type
18130
18131 # Format of library name prefix.
18132 libname_spec=$lt_libname_spec
18133
18134 # List of archive names. First name is the real one, the rest are links.
18135 # The last name is the one that the linker finds with -lNAME.
18136 library_names_spec=$lt_library_names_spec
18137
18138 # The coded name of the library, if different from the real name.
18139 soname_spec=$lt_soname_spec
18140
18141 # Commands used to build and install an old-style archive.
18142 RANLIB=$lt_RANLIB
18143 old_archive_cmds=$lt_old_archive_cmds_RC
18144 old_postinstall_cmds=$lt_old_postinstall_cmds
18145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18146
18147 # Create an old-style archive from a shared archive.
18148 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18149
18150 # Create a temporary old-style archive to link instead of a shared archive.
18151 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18152
18153 # Commands used to build and install a shared archive.
18154 archive_cmds=$lt_archive_cmds_RC
18155 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18156 postinstall_cmds=$lt_postinstall_cmds
18157 postuninstall_cmds=$lt_postuninstall_cmds
18158
18159 # Commands used to build a loadable module (assumed same as above if empty)
18160 module_cmds=$lt_module_cmds_RC
18161 module_expsym_cmds=$lt_module_expsym_cmds_RC
18162
18163 # Commands to strip libraries.
18164 old_striplib=$lt_old_striplib
18165 striplib=$lt_striplib
18166
18167 # Dependencies to place before the objects being linked to create a
18168 # shared library.
18169 predep_objects=$lt_predep_objects_RC
18170
18171 # Dependencies to place after the objects being linked to create a
18172 # shared library.
18173 postdep_objects=$lt_postdep_objects_RC
18174
18175 # Dependencies to place before the objects being linked to create a
18176 # shared library.
18177 predeps=$lt_predeps_RC
18178
18179 # Dependencies to place after the objects being linked to create a
18180 # shared library.
18181 postdeps=$lt_postdeps_RC
18182
18183 # The library search path used internally by the compiler when linking
18184 # a shared library.
18185 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18186
18187 # Method to check whether dependent libraries are shared objects.
18188 deplibs_check_method=$lt_deplibs_check_method
18189
18190 # Command to use when deplibs_check_method == file_magic.
18191 file_magic_cmd=$lt_file_magic_cmd
18192
18193 # Flag that allows shared libraries with undefined symbols to be built.
18194 allow_undefined_flag=$lt_allow_undefined_flag_RC
18195
18196 # Flag that forces no undefined symbols.
18197 no_undefined_flag=$lt_no_undefined_flag_RC
18198
18199 # Commands used to finish a libtool library installation in a directory.
18200 finish_cmds=$lt_finish_cmds
18201
18202 # Same as above, but a single script fragment to be evaled but not shown.
18203 finish_eval=$lt_finish_eval
18204
18205 # Take the output of nm and produce a listing of raw symbols and C names.
18206 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18207
18208 # Transform the output of nm in a proper C declaration
18209 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18210
18211 # Transform the output of nm in a C name address pair
18212 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18213
18214 # This is the shared library runtime path variable.
18215 runpath_var=$runpath_var
18216
18217 # This is the shared library path variable.
18218 shlibpath_var=$shlibpath_var
18219
18220 # Is shlibpath searched before the hard-coded library search path?
18221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18222
18223 # How to hardcode a shared library path into an executable.
18224 hardcode_action=$hardcode_action_RC
18225
18226 # Whether we should hardcode library paths into libraries.
18227 hardcode_into_libs=$hardcode_into_libs
18228
18229 # Flag to hardcode \$libdir into a binary during linking.
18230 # This must work even if \$libdir does not exist.
18231 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18232
18233 # If ld is used when linking, flag to hardcode \$libdir into
18234 # a binary during linking. This must work even if \$libdir does
18235 # not exist.
18236 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18237
18238 # Whether we need a single -rpath flag with a separated argument.
18239 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18240
18241 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18242 # resulting binary.
18243 hardcode_direct=$hardcode_direct_RC
18244
18245 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18246 # resulting binary.
18247 hardcode_minus_L=$hardcode_minus_L_RC
18248
18249 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18250 # the resulting binary.
18251 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18252
18253 # Set to yes if building a shared library automatically hardcodes DIR into the library
18254 # and all subsequent libraries and executables linked against it.
18255 hardcode_automatic=$hardcode_automatic_RC
18256
18257 # Variables whose values should be saved in libtool wrapper scripts and
18258 # restored at relink time.
18259 variables_saved_for_relink="$variables_saved_for_relink"
18260
18261 # Whether libtool must link a program against all its dependency libraries.
18262 link_all_deplibs=$link_all_deplibs_RC
18263
18264 # Compile-time system search path for libraries
18265 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18266
18267 # Run-time system search path for libraries
18268 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18269
18270 # Fix the shell variable \$srcfile for the compiler.
18271 fix_srcfile_path="$fix_srcfile_path_RC"
18272
18273 # Set to yes if exported symbols are required.
18274 always_export_symbols=$always_export_symbols_RC
18275
18276 # The commands to list exported symbols.
18277 export_symbols_cmds=$lt_export_symbols_cmds_RC
18278
18279 # The commands to extract the exported symbol list from a shared archive.
18280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18281
18282 # Symbols that should not be listed in the preloaded symbols.
18283 exclude_expsyms=$lt_exclude_expsyms_RC
18284
18285 # Symbols that must always be exported.
18286 include_expsyms=$lt_include_expsyms_RC
18287
18288 # ### END LIBTOOL TAG CONFIG: $tagname
18289
18290 __EOF__
18291
18292
18293 else
18294 # If there is no Makefile yet, we rely on a make rule to execute
18295 # `config.status --recheck' to rerun these tests and create the
18296 # libtool script then.
18297 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18298 if test -f "$ltmain_in"; then
18299 test -f Makefile && make "$ltmain"
18300 fi
18301 fi
18302
18303
18304 ac_ext=c
18305 ac_cpp='$CPP $CPPFLAGS'
18306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18309
18310 CC="$lt_save_CC"
18311
18312 ;;
18313
18314 *)
18315 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18316 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18317 { (exit 1); exit 1; }; }
18318 ;;
18319 esac
18320
18321 # Append the new tag name to the list of available tags.
18322 if test -n "$tagname" ; then
18323 available_tags="$available_tags $tagname"
18324 fi
18325 fi
18326 done
18327 IFS="$lt_save_ifs"
18328
18329 # Now substitute the updated list of available tags.
18330 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18331 mv "${ofile}T" "$ofile"
18332 chmod +x "$ofile"
18333 else
18334 rm -f "${ofile}T"
18335 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18336 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18337 { (exit 1); exit 1; }; }
18338 fi
18339 fi
18340
18341
18342
18343 # This can be used to rebuild libtool when needed
18344 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18345
18346 # Always use our own libtool.
18347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18348
18349 # Prevent multiple expansion
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
18371 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
18372
18373 # Checks for libraries.
18374 if test -f /sw/include/db3/db.h; then
18375 CFLAGS="-I/sw/include/db3 $CFLAGS"
18376 LIBS="-L/sw/lib -ldb-3 $LIBS"
18377 elif test -f /sw/include/db4/db.h; then
18378 CFLAGS="-I/sw/include/db4 $CFLAGS"
18379 LIBS="-L/sw/lib -ldb-4 $LIBS"
18380 else
18381 LIBS="-ldb $LIBS"
18382 fi
18383
18384 # Checks for header files.
18385
18386 # Checks for typedefs, structures, and compiler characteristics.
18387 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18388 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18389 if test "${ac_cv_c_const+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398
18399 int
18400 main ()
18401 {
18402 /* FIXME: Include the comments suggested by Paul. */
18403 #ifndef __cplusplus
18404 /* Ultrix mips cc rejects this. */
18405 typedef int charset[2];
18406 const charset x;
18407 /* SunOS 4.1.1 cc rejects this. */
18408 char const *const *ccp;
18409 char **p;
18410 /* NEC SVR4.0.2 mips cc rejects this. */
18411 struct point {int x, y;};
18412 static struct point const zero = {0,0};
18413 /* AIX XL C 1.02.0.0 rejects this.
18414 It does not let you subtract one const X* pointer from another in
18415 an arm of an if-expression whose if-part is not a constant
18416 expression */
18417 const char *g = "string";
18418 ccp = &g + (g ? g-g : 0);
18419 /* HPUX 7.0 cc rejects these. */
18420 ++ccp;
18421 p = (char**) ccp;
18422 ccp = (char const *const *) p;
18423 { /* SCO 3.2v4 cc rejects this. */
18424 char *t;
18425 char const *s = 0 ? (char *) 0 : (char const *) 0;
18426
18427 *t++ = 0;
18428 }
18429 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18430 int x[] = {25, 17};
18431 const int *foo = &x[0];
18432 ++foo;
18433 }
18434 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18435 typedef const int *iptr;
18436 iptr p = 0;
18437 ++p;
18438 }
18439 { /* AIX XL C 1.02.0.0 rejects this saying
18440 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18441 struct s { int j; const int *ap[3]; };
18442 struct s *b; b->j = 5;
18443 }
18444 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18445 const int foo = 10;
18446 }
18447 #endif
18448
18449 ;
18450 return 0;
18451 }
18452 _ACEOF
18453 rm -f conftest.$ac_objext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18455 (eval $ac_compile) 2>conftest.er1
18456 ac_status=$?
18457 grep -v '^ *+' conftest.er1 >conftest.err
18458 rm -f conftest.er1
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
18462 { ac_try='test -z "$ac_c_werror_flag"
18463 || test ! -s conftest.err'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest.$ac_objext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_c_const=yes
18476 else
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_cv_c_const=no
18481 fi
18482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18483 fi
18484 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18485 echo "${ECHO_T}$ac_cv_c_const" >&6
18486 if test $ac_cv_c_const = no; then
18487
18488 cat >>confdefs.h <<\_ACEOF
18489 #define const
18490 _ACEOF
18491
18492 fi
18493
18494 echo "$as_me:$LINENO: checking for inline" >&5
18495 echo $ECHO_N "checking for inline... $ECHO_C" >&6
18496 if test "${ac_cv_c_inline+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499 ac_cv_c_inline=no
18500 for ac_kw in inline __inline__ __inline; do
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #ifndef __cplusplus
18508 typedef int foo_t;
18509 static $ac_kw foo_t static_foo () {return 0; }
18510 $ac_kw foo_t foo () {return 0; }
18511 #endif
18512
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_c_inline=$ac_kw; break
18537 else
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541 fi
18542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18543 done
18544
18545 fi
18546 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18547 echo "${ECHO_T}$ac_cv_c_inline" >&6
18548
18549
18550 case $ac_cv_c_inline in
18551 inline | yes) ;;
18552 *)
18553 case $ac_cv_c_inline in
18554 no) ac_val=;;
18555 *) ac_val=$ac_cv_c_inline;;
18556 esac
18557 cat >>confdefs.h <<_ACEOF
18558 #ifndef __cplusplus
18559 #define inline $ac_val
18560 #endif
18561 _ACEOF
18562 ;;
18563 esac
18564
18565
18566 # Checks for library functions.
18567 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18568 # for constant arguments. Useless!
18569 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18570 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18571 if test "${ac_cv_working_alloca_h+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h. */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 #include <alloca.h>
18581 int
18582 main ()
18583 {
18584 char *p = (char *) alloca (2 * sizeof (int));
18585 ;
18586 return 0;
18587 }
18588 _ACEOF
18589 rm -f conftest.$ac_objext conftest$ac_exeext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18591 (eval $ac_link) 2>conftest.er1
18592 ac_status=$?
18593 grep -v '^ *+' conftest.er1 >conftest.err
18594 rm -f conftest.er1
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
18598 { ac_try='test -z "$ac_c_werror_flag"
18599 || test ! -s conftest.err'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; } &&
18605 { ac_try='test -s conftest$ac_exeext'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 ac_cv_working_alloca_h=yes
18612 else
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616 ac_cv_working_alloca_h=no
18617 fi
18618 rm -f conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620 fi
18621 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18622 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18623 if test $ac_cv_working_alloca_h = yes; then
18624
18625 cat >>confdefs.h <<\_ACEOF
18626 #define HAVE_ALLOCA_H 1
18627 _ACEOF
18628
18629 fi
18630
18631 echo "$as_me:$LINENO: checking for alloca" >&5
18632 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18633 if test "${ac_cv_func_alloca_works+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #ifdef __GNUC__
18643 # define alloca __builtin_alloca
18644 #else
18645 # ifdef _MSC_VER
18646 # include <malloc.h>
18647 # define alloca _alloca
18648 # else
18649 # if HAVE_ALLOCA_H
18650 # include <alloca.h>
18651 # else
18652 # ifdef _AIX
18653 #pragma alloca
18654 # else
18655 # ifndef alloca /* predefined by HP cc +Olibcalls */
18656 char *alloca ();
18657 # endif
18658 # endif
18659 # endif
18660 # endif
18661 #endif
18662
18663 int
18664 main ()
18665 {
18666 char *p = (char *) alloca (1);
18667 ;
18668 return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18673 (eval $ac_link) 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest$ac_exeext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_cv_func_alloca_works=yes
18694 else
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698 ac_cv_func_alloca_works=no
18699 fi
18700 rm -f conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18702 fi
18703 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18704 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18705
18706 if test $ac_cv_func_alloca_works = yes; then
18707
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_ALLOCA 1
18710 _ACEOF
18711
18712 else
18713 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18714 # that cause trouble. Some versions do not even contain alloca or
18715 # contain a buggy version. If you still want to use their alloca,
18716 # use ar to extract alloca.o from them instead of compiling alloca.c.
18717
18718 ALLOCA=alloca.$ac_objext
18719
18720 cat >>confdefs.h <<\_ACEOF
18721 #define C_ALLOCA 1
18722 _ACEOF
18723
18724
18725 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18726 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18727 if test "${ac_cv_os_cray+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730 cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h. */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 #if defined(CRAY) && ! defined(CRAY2)
18737 webecray
18738 #else
18739 wenotbecray
18740 #endif
18741
18742 _ACEOF
18743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18744 $EGREP "webecray" >/dev/null 2>&1; then
18745 ac_cv_os_cray=yes
18746 else
18747 ac_cv_os_cray=no
18748 fi
18749 rm -f conftest*
18750
18751 fi
18752 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18753 echo "${ECHO_T}$ac_cv_os_cray" >&6
18754 if test $ac_cv_os_cray = yes; then
18755 for ac_func in _getb67 GETB67 getb67; do
18756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18757 echo "$as_me:$LINENO: checking for $ac_func" >&5
18758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18759 if eval "test \"\${$as_ac_var+set}\" = set"; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18770 #define $ac_func innocuous_$ac_func
18771
18772 /* System header to define __stub macros and hopefully few prototypes,
18773 which can conflict with char $ac_func (); below.
18774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18775 <limits.h> exists even on freestanding compilers. */
18776
18777 #ifdef __STDC__
18778 # include <limits.h>
18779 #else
18780 # include <assert.h>
18781 #endif
18782
18783 #undef $ac_func
18784
18785 /* Override any gcc2 internal prototype to avoid an error. */
18786 #ifdef __cplusplus
18787 extern "C"
18788 {
18789 #endif
18790 /* We use char because int might match the return type of a gcc2
18791 builtin and then its argument prototype would still apply. */
18792 char $ac_func ();
18793 /* The GNU C library defines this for functions which it implements
18794 to always fail with ENOSYS. Some functions are actually named
18795 something starting with __ and the normal name is an alias. */
18796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18797 choke me
18798 #else
18799 char (*f) () = $ac_func;
18800 #endif
18801 #ifdef __cplusplus
18802 }
18803 #endif
18804
18805 int
18806 main ()
18807 {
18808 return f != $ac_func;
18809 ;
18810 return 0;
18811 }
18812 _ACEOF
18813 rm -f conftest.$ac_objext conftest$ac_exeext
18814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18815 (eval $ac_link) 2>conftest.er1
18816 ac_status=$?
18817 grep -v '^ *+' conftest.er1 >conftest.err
18818 rm -f conftest.er1
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } &&
18822 { ac_try='test -z "$ac_c_werror_flag"
18823 || test ! -s conftest.err'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; } &&
18829 { ac_try='test -s conftest$ac_exeext'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 eval "$as_ac_var=yes"
18836 else
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18839
18840 eval "$as_ac_var=no"
18841 fi
18842 rm -f conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
18844 fi
18845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18847 if test `eval echo '${'$as_ac_var'}'` = yes; then
18848
18849 cat >>confdefs.h <<_ACEOF
18850 #define CRAY_STACKSEG_END $ac_func
18851 _ACEOF
18852
18853 break
18854 fi
18855
18856 done
18857 fi
18858
18859 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18861 if test "${ac_cv_c_stack_direction+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 else
18864 if test "$cross_compiling" = yes; then
18865 ac_cv_c_stack_direction=0
18866 else
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h. */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 int
18874 find_stack_direction ()
18875 {
18876 static char *addr = 0;
18877 auto char dummy;
18878 if (addr == 0)
18879 {
18880 addr = &dummy;
18881 return find_stack_direction ();
18882 }
18883 else
18884 return (&dummy > addr) ? 1 : -1;
18885 }
18886
18887 int
18888 main ()
18889 {
18890 exit (find_stack_direction () < 0);
18891 }
18892 _ACEOF
18893 rm -f conftest$ac_exeext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18895 (eval $ac_link) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_c_stack_direction=1
18905 else
18906 echo "$as_me: program exited with status $ac_status" >&5
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ( exit $ac_status )
18911 ac_cv_c_stack_direction=-1
18912 fi
18913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18914 fi
18915 fi
18916 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18917 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18918
18919 cat >>confdefs.h <<_ACEOF
18920 #define STACK_DIRECTION $ac_cv_c_stack_direction
18921 _ACEOF
18922
18923
18924 fi
18925
18926 echo "$as_me:$LINENO: checking for working strnlen" >&5
18927 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18928 if test "${ac_cv_func_strnlen_working+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931 if test "$cross_compiling" = yes; then
18932 ac_cv_func_strnlen_working=no
18933 else
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 $ac_includes_default
18941 int
18942 main ()
18943 {
18944
18945 #define S "foobar"
18946 #define S_LEN (sizeof S - 1)
18947
18948 /* At least one implementation is buggy: that of AIX 4.3 would
18949 give strnlen (S, 1) == 3. */
18950
18951 int i;
18952 for (i = 0; i < S_LEN + 1; ++i)
18953 {
18954 int expected = i <= S_LEN ? i : S_LEN;
18955 if (strnlen (S, i) != expected)
18956 exit (1);
18957 }
18958 exit (0);
18959
18960 ;
18961 return 0;
18962 }
18963 _ACEOF
18964 rm -f conftest$ac_exeext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18966 (eval $ac_link) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_func_strnlen_working=yes
18976 else
18977 echo "$as_me: program exited with status $ac_status" >&5
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18980
18981 ( exit $ac_status )
18982 ac_cv_func_strnlen_working=no
18983 fi
18984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18985 fi
18986 fi
18987 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18988 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18989 test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
18990 "strnlen.$ac_objext" | \
18991 *" strnlen.$ac_objext" | \
18992 "strnlen.$ac_objext "* | \
18993 *" strnlen.$ac_objext "* ) ;;
18994 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
18995 esac
18996
18997
18998
18999
19000 for ac_func in strnlen
19001 do
19002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19003 echo "$as_me:$LINENO: checking for $ac_func" >&5
19004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19005 if eval "test \"\${$as_ac_var+set}\" = set"; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h. */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19016 #define $ac_func innocuous_$ac_func
19017
19018 /* System header to define __stub macros and hopefully few prototypes,
19019 which can conflict with char $ac_func (); below.
19020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19021 <limits.h> exists even on freestanding compilers. */
19022
19023 #ifdef __STDC__
19024 # include <limits.h>
19025 #else
19026 # include <assert.h>
19027 #endif
19028
19029 #undef $ac_func
19030
19031 /* Override any gcc2 internal prototype to avoid an error. */
19032 #ifdef __cplusplus
19033 extern "C"
19034 {
19035 #endif
19036 /* We use char because int might match the return type of a gcc2
19037 builtin and then its argument prototype would still apply. */
19038 char $ac_func ();
19039 /* The GNU C library defines this for functions which it implements
19040 to always fail with ENOSYS. Some functions are actually named
19041 something starting with __ and the normal name is an alias. */
19042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19043 choke me
19044 #else
19045 char (*f) () = $ac_func;
19046 #endif
19047 #ifdef __cplusplus
19048 }
19049 #endif
19050
19051 int
19052 main ()
19053 {
19054 return f != $ac_func;
19055 ;
19056 return 0;
19057 }
19058 _ACEOF
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag"
19069 || test ! -s conftest.err'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 eval "$as_ac_var=yes"
19082 else
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 eval "$as_ac_var=no"
19087 fi
19088 rm -f conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19090 fi
19091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19093 if test `eval echo '${'$as_ac_var'}'` = yes; then
19094 cat >>confdefs.h <<_ACEOF
19095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19096 _ACEOF
19097
19098 fi
19099 done
19100
19101
19102 ac_config_files="$ac_config_files Makefile"
19103
19104 cat >confcache <<\_ACEOF
19105 # This file is a shell script that caches the results of configure
19106 # tests run on this system so they can be shared between configure
19107 # scripts and configure runs, see configure's option --config-cache.
19108 # It is not useful on other systems. If it contains results you don't
19109 # want to keep, you may remove or edit it.
19110 #
19111 # config.status only pays attention to the cache file if you give it
19112 # the --recheck option to rerun configure.
19113 #
19114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19116 # following values.
19117
19118 _ACEOF
19119
19120 # The following way of writing the cache mishandles newlines in values,
19121 # but we know of no workaround that is simple, portable, and efficient.
19122 # So, don't put newlines in cache variables' values.
19123 # Ultrix sh set writes to stderr and can't be redirected directly,
19124 # and sets the high bit in the cache file unless we assign to the vars.
19125 {
19126 (set) 2>&1 |
19127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19128 *ac_space=\ *)
19129 # `set' does not quote correctly, so add quotes (double-quote
19130 # substitution turns \\\\ into \\, and sed turns \\ into \).
19131 sed -n \
19132 "s/'/'\\\\''/g;
19133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19134 ;;
19135 *)
19136 # `set' quotes correctly as required by POSIX, so do not add quotes.
19137 sed -n \
19138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19139 ;;
19140 esac;
19141 } |
19142 sed '
19143 t clear
19144 : clear
19145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19146 t end
19147 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19148 : end' >>confcache
19149 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19150 if test -w $cache_file; then
19151 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19152 cat confcache >$cache_file
19153 else
19154 echo "not updating unwritable cache $cache_file"
19155 fi
19156 fi
19157 rm -f confcache
19158
19159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19160 # Let make expand exec_prefix.
19161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19162
19163 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19164 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19165 # trailing colons and then remove the whole line if VPATH becomes empty
19166 # (actually we leave an empty line to preserve line numbers).
19167 if test "x$srcdir" = x.; then
19168 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19169 s/:*\$(srcdir):*/:/;
19170 s/:*\${srcdir}:*/:/;
19171 s/:*@srcdir@:*/:/;
19172 s/^\([^=]*=[ ]*\):*/\1/;
19173 s/:*$//;
19174 s/^[^=]*=[ ]*$//;
19175 }'
19176 fi
19177
19178 DEFS=-DHAVE_CONFIG_H
19179
19180 ac_libobjs=
19181 ac_ltlibobjs=
19182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19183 # 1. Remove the extension, and $U if already installed.
19184 ac_i=`echo "$ac_i" |
19185 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19186 # 2. Add them.
19187 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19188 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19189 done
19190 LIBOBJS=$ac_libobjs
19191
19192 LTLIBOBJS=$ac_ltlibobjs
19193
19194
19195
19196 : ${CONFIG_STATUS=./config.status}
19197 ac_clean_files_save=$ac_clean_files
19198 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19199 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19200 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19201 cat >$CONFIG_STATUS <<_ACEOF
19202 #! $SHELL
19203 # Generated by $as_me.
19204 # Run this file to recreate the current configuration.
19205 # Compiler output produced by configure, useful for debugging
19206 # configure, is in config.log if it exists.
19207
19208 debug=false
19209 ac_cs_recheck=false
19210 ac_cs_silent=false
19211 SHELL=\${CONFIG_SHELL-$SHELL}
19212 _ACEOF
19213
19214 cat >>$CONFIG_STATUS <<\_ACEOF
19215 ## --------------------- ##
19216 ## M4sh Initialization. ##
19217 ## --------------------- ##
19218
19219 # Be Bourne compatible
19220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19221 emulate sh
19222 NULLCMD=:
19223 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19224 # is contrary to our usage. Disable this feature.
19225 alias -g '${1+"$@"}'='"$@"'
19226 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19227 set -o posix
19228 fi
19229 DUALCASE=1; export DUALCASE # for MKS sh
19230
19231 # Support unset when possible.
19232 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19233 as_unset=unset
19234 else
19235 as_unset=false
19236 fi
19237
19238
19239 # Work around bugs in pre-3.0 UWIN ksh.
19240 $as_unset ENV MAIL MAILPATH
19241 PS1='$ '
19242 PS2='> '
19243 PS4='+ '
19244
19245 # NLS nuisances.
19246 for as_var in \
19247 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19248 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19249 LC_TELEPHONE LC_TIME
19250 do
19251 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19252 eval $as_var=C; export $as_var
19253 else
19254 $as_unset $as_var
19255 fi
19256 done
19257
19258 # Required to use basename.
19259 if expr a : '\(a\)' >/dev/null 2>&1; then
19260 as_expr=expr
19261 else
19262 as_expr=false
19263 fi
19264
19265 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19266 as_basename=basename
19267 else
19268 as_basename=false
19269 fi
19270
19271
19272 # Name of the executable.
19273 as_me=`$as_basename "$0" ||
19274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19275 X"$0" : 'X\(//\)$' \| \
19276 X"$0" : 'X\(/\)$' \| \
19277 . : '\(.\)' 2>/dev/null ||
19278 echo X/"$0" |
19279 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19280 /^X\/\(\/\/\)$/{ s//\1/; q; }
19281 /^X\/\(\/\).*/{ s//\1/; q; }
19282 s/.*/./; q'`
19283
19284
19285 # PATH needs CR, and LINENO needs CR and PATH.
19286 # Avoid depending upon Character Ranges.
19287 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19288 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19289 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19290 as_cr_digits='0123456789'
19291 as_cr_alnum=$as_cr_Letters$as_cr_digits
19292
19293 # The user is always right.
19294 if test "${PATH_SEPARATOR+set}" != set; then
19295 echo "#! /bin/sh" >conf$$.sh
19296 echo "exit 0" >>conf$$.sh
19297 chmod +x conf$$.sh
19298 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19299 PATH_SEPARATOR=';'
19300 else
19301 PATH_SEPARATOR=:
19302 fi
19303 rm -f conf$$.sh
19304 fi
19305
19306
19307 as_lineno_1=$LINENO
19308 as_lineno_2=$LINENO
19309 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19310 test "x$as_lineno_1" != "x$as_lineno_2" &&
19311 test "x$as_lineno_3" = "x$as_lineno_2" || {
19312 # Find who we are. Look in the path if we contain no path at all
19313 # relative or not.
19314 case $0 in
19315 *[\\/]* ) as_myself=$0 ;;
19316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19318 do
19319 IFS=$as_save_IFS
19320 test -z "$as_dir" && as_dir=.
19321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19322 done
19323
19324 ;;
19325 esac
19326 # We did not find ourselves, most probably we were run as `sh COMMAND'
19327 # in which case we are not to be found in the path.
19328 if test "x$as_myself" = x; then
19329 as_myself=$0
19330 fi
19331 if test ! -f "$as_myself"; then
19332 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19333 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19334 { (exit 1); exit 1; }; }
19335 fi
19336 case $CONFIG_SHELL in
19337 '')
19338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19340 do
19341 IFS=$as_save_IFS
19342 test -z "$as_dir" && as_dir=.
19343 for as_base in sh bash ksh sh5; do
19344 case $as_dir in
19345 /*)
19346 if ("$as_dir/$as_base" -c '
19347 as_lineno_1=$LINENO
19348 as_lineno_2=$LINENO
19349 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19350 test "x$as_lineno_1" != "x$as_lineno_2" &&
19351 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19352 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19353 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19354 CONFIG_SHELL=$as_dir/$as_base
19355 export CONFIG_SHELL
19356 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19357 fi;;
19358 esac
19359 done
19360 done
19361 ;;
19362 esac
19363
19364 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19365 # uniformly replaced by the line number. The first 'sed' inserts a
19366 # line-number line before each line; the second 'sed' does the real
19367 # work. The second script uses 'N' to pair each line-number line
19368 # with the numbered line, and appends trailing '-' during
19369 # substitution so that $LINENO is not a special case at line end.
19370 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19371 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19372 sed '=' <$as_myself |
19373 sed '
19374 N
19375 s,$,-,
19376 : loop
19377 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19378 t loop
19379 s,-$,,
19380 s,^['$as_cr_digits']*\n,,
19381 ' >$as_me.lineno &&
19382 chmod +x $as_me.lineno ||
19383 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19384 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19385 { (exit 1); exit 1; }; }
19386
19387 # Don't try to exec as it changes $[0], causing all sort of problems
19388 # (the dirname of $[0] is not the place where we might find the
19389 # original and so on. Autoconf is especially sensible to this).
19390 . ./$as_me.lineno
19391 # Exit status is that of the last command.
19392 exit
19393 }
19394
19395
19396 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19397 *c*,-n*) ECHO_N= ECHO_C='
19398 ' ECHO_T=' ' ;;
19399 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19400 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19401 esac
19402
19403 if expr a : '\(a\)' >/dev/null 2>&1; then
19404 as_expr=expr
19405 else
19406 as_expr=false
19407 fi
19408
19409 rm -f conf$$ conf$$.exe conf$$.file
19410 echo >conf$$.file
19411 if ln -s conf$$.file conf$$ 2>/dev/null; then
19412 # We could just check for DJGPP; but this test a) works b) is more generic
19413 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19414 if test -f conf$$.exe; then
19415 # Don't use ln at all; we don't have any links
19416 as_ln_s='cp -p'
19417 else
19418 as_ln_s='ln -s'
19419 fi
19420 elif ln conf$$.file conf$$ 2>/dev/null; then
19421 as_ln_s=ln
19422 else
19423 as_ln_s='cp -p'
19424 fi
19425 rm -f conf$$ conf$$.exe conf$$.file
19426
19427 if mkdir -p . 2>/dev/null; then
19428 as_mkdir_p=:
19429 else
19430 test -d ./-p && rmdir ./-p
19431 as_mkdir_p=false
19432 fi
19433
19434 as_executable_p="test -f"
19435
19436 # Sed expression to map a string onto a valid CPP name.
19437 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19438
19439 # Sed expression to map a string onto a valid variable name.
19440 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19441
19442
19443 # IFS
19444 # We need space, tab and new line, in precisely that order.
19445 as_nl='
19446 '
19447 IFS=" $as_nl"
19448
19449 # CDPATH.
19450 $as_unset CDPATH
19451
19452 exec 6>&1
19453
19454 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19455 # report actual input values of CONFIG_FILES etc. instead of their
19456 # values after options handling. Logging --version etc. is OK.
19457 exec 5>>config.log
19458 {
19459 echo
19460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19461 ## Running $as_me. ##
19462 _ASBOX
19463 } >&5
19464 cat >&5 <<_CSEOF
19465
19466 This file was extended by libchise $as_me 0.3.0, which was
19467 generated by GNU Autoconf 2.59. Invocation command line was
19468
19469 CONFIG_FILES = $CONFIG_FILES
19470 CONFIG_HEADERS = $CONFIG_HEADERS
19471 CONFIG_LINKS = $CONFIG_LINKS
19472 CONFIG_COMMANDS = $CONFIG_COMMANDS
19473 $ $0 $@
19474
19475 _CSEOF
19476 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19477 echo >&5
19478 _ACEOF
19479
19480 # Files that config.status was made for.
19481 if test -n "$ac_config_files"; then
19482 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19483 fi
19484
19485 if test -n "$ac_config_headers"; then
19486 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19487 fi
19488
19489 if test -n "$ac_config_links"; then
19490 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19491 fi
19492
19493 if test -n "$ac_config_commands"; then
19494 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19495 fi
19496
19497 cat >>$CONFIG_STATUS <<\_ACEOF
19498
19499 ac_cs_usage="\
19500 \`$as_me' instantiates files from templates according to the
19501 current configuration.
19502
19503 Usage: $0 [OPTIONS] [FILE]...
19504
19505 -h, --help print this help, then exit
19506 -V, --version print version number, then exit
19507 -q, --quiet do not print progress messages
19508 -d, --debug don't remove temporary files
19509 --recheck update $as_me by reconfiguring in the same conditions
19510 --file=FILE[:TEMPLATE]
19511 instantiate the configuration file FILE
19512 --header=FILE[:TEMPLATE]
19513 instantiate the configuration header FILE
19514
19515 Configuration files:
19516 $config_files
19517
19518 Configuration headers:
19519 $config_headers
19520
19521 Report bugs to <[email protected]>."
19522 _ACEOF
19523
19524 cat >>$CONFIG_STATUS <<_ACEOF
19525 ac_cs_version="\\
19526 libchise config.status 0.3.0
19527 configured by $0, generated by GNU Autoconf 2.59,
19528 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19529
19530 Copyright (C) 2003 Free Software Foundation, Inc.
19531 This config.status script is free software; the Free Software Foundation
19532 gives unlimited permission to copy, distribute and modify it."
19533 srcdir=$srcdir
19534 _ACEOF
19535
19536 cat >>$CONFIG_STATUS <<\_ACEOF
19537 # If no file are specified by the user, then we need to provide default
19538 # value. By we need to know if files were specified by the user.
19539 ac_need_defaults=:
19540 while test $# != 0
19541 do
19542 case $1 in
19543 --*=*)
19544 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19545 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19546 ac_shift=:
19547 ;;
19548 -*)
19549 ac_option=$1
19550 ac_optarg=$2
19551 ac_shift=shift
19552 ;;
19553 *) # This is not an option, so the user has probably given explicit
19554 # arguments.
19555 ac_option=$1
19556 ac_need_defaults=false;;
19557 esac
19558
19559 case $ac_option in
19560 # Handling of the options.
19561 _ACEOF
19562 cat >>$CONFIG_STATUS <<\_ACEOF
19563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19564 ac_cs_recheck=: ;;
19565 --version | --vers* | -V )
19566 echo "$ac_cs_version"; exit 0 ;;
19567 --he | --h)
19568 # Conflict between --help and --header
19569 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19570 Try \`$0 --help' for more information." >&5
19571 echo "$as_me: error: ambiguous option: $1
19572 Try \`$0 --help' for more information." >&2;}
19573 { (exit 1); exit 1; }; };;
19574 --help | --hel | -h )
19575 echo "$ac_cs_usage"; exit 0 ;;
19576 --debug | --d* | -d )
19577 debug=: ;;
19578 --file | --fil | --fi | --f )
19579 $ac_shift
19580 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19581 ac_need_defaults=false;;
19582 --header | --heade | --head | --hea )
19583 $ac_shift
19584 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19585 ac_need_defaults=false;;
19586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19588 ac_cs_silent=: ;;
19589
19590 # This is an error.
19591 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19592 Try \`$0 --help' for more information." >&5
19593 echo "$as_me: error: unrecognized option: $1
19594 Try \`$0 --help' for more information." >&2;}
19595 { (exit 1); exit 1; }; } ;;
19596
19597 *) ac_config_targets="$ac_config_targets $1" ;;
19598
19599 esac
19600 shift
19601 done
19602
19603 ac_configure_extra_args=
19604
19605 if $ac_cs_silent; then
19606 exec 6>/dev/null
19607 ac_configure_extra_args="$ac_configure_extra_args --silent"
19608 fi
19609
19610 _ACEOF
19611 cat >>$CONFIG_STATUS <<_ACEOF
19612 if \$ac_cs_recheck; then
19613 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19614 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19615 fi
19616
19617 _ACEOF
19618
19619
19620
19621
19622
19623 cat >>$CONFIG_STATUS <<\_ACEOF
19624 for ac_config_target in $ac_config_targets
19625 do
19626 case "$ac_config_target" in
19627 # Handling of arguments.
19628 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19629 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19632 { (exit 1); exit 1; }; };;
19633 esac
19634 done
19635
19636 # If the user did not use the arguments to specify the items to instantiate,
19637 # then the envvar interface is used. Set only those that are not.
19638 # We use the long form for the default assignment because of an extremely
19639 # bizarre bug on SunOS 4.1.3.
19640 if $ac_need_defaults; then
19641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19643 fi
19644
19645 # Have a temporary directory for convenience. Make it in the build tree
19646 # simply because there is no reason to put it here, and in addition,
19647 # creating and moving files from /tmp can sometimes cause problems.
19648 # Create a temporary directory, and hook for its removal unless debugging.
19649 $debug ||
19650 {
19651 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19652 trap '{ (exit 1); exit 1; }' 1 2 13 15
19653 }
19654
19655 # Create a (secure) tmp directory for tmp files.
19656
19657 {
19658 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19659 test -n "$tmp" && test -d "$tmp"
19660 } ||
19661 {
19662 tmp=./confstat$$-$RANDOM
19663 (umask 077 && mkdir $tmp)
19664 } ||
19665 {
19666 echo "$me: cannot create a temporary directory in ." >&2
19667 { (exit 1); exit 1; }
19668 }
19669
19670 _ACEOF
19671
19672 cat >>$CONFIG_STATUS <<_ACEOF
19673
19674 #
19675 # CONFIG_FILES section.
19676 #
19677
19678 # No need to generate the scripts if there are no CONFIG_FILES.
19679 # This happens for instance when ./config.status config.h
19680 if test -n "\$CONFIG_FILES"; then
19681 # Protect against being on the right side of a sed subst in config.status.
19682 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19683 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19684 s,@SHELL@,$SHELL,;t t
19685 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19686 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19687 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19688 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19689 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19690 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19691 s,@exec_prefix@,$exec_prefix,;t t
19692 s,@prefix@,$prefix,;t t
19693 s,@program_transform_name@,$program_transform_name,;t t
19694 s,@bindir@,$bindir,;t t
19695 s,@sbindir@,$sbindir,;t t
19696 s,@libexecdir@,$libexecdir,;t t
19697 s,@datadir@,$datadir,;t t
19698 s,@sysconfdir@,$sysconfdir,;t t
19699 s,@sharedstatedir@,$sharedstatedir,;t t
19700 s,@localstatedir@,$localstatedir,;t t
19701 s,@libdir@,$libdir,;t t
19702 s,@includedir@,$includedir,;t t
19703 s,@oldincludedir@,$oldincludedir,;t t
19704 s,@infodir@,$infodir,;t t
19705 s,@mandir@,$mandir,;t t
19706 s,@build_alias@,$build_alias,;t t
19707 s,@host_alias@,$host_alias,;t t
19708 s,@target_alias@,$target_alias,;t t
19709 s,@DEFS@,$DEFS,;t t
19710 s,@ECHO_C@,$ECHO_C,;t t
19711 s,@ECHO_N@,$ECHO_N,;t t
19712 s,@ECHO_T@,$ECHO_T,;t t
19713 s,@LIBS@,$LIBS,;t t
19714 s,@build@,$build,;t t
19715 s,@build_cpu@,$build_cpu,;t t
19716 s,@build_vendor@,$build_vendor,;t t
19717 s,@build_os@,$build_os,;t t
19718 s,@host@,$host,;t t
19719 s,@host_cpu@,$host_cpu,;t t
19720 s,@host_vendor@,$host_vendor,;t t
19721 s,@host_os@,$host_os,;t t
19722 s,@target@,$target,;t t
19723 s,@target_cpu@,$target_cpu,;t t
19724 s,@target_vendor@,$target_vendor,;t t
19725 s,@target_os@,$target_os,;t t
19726 s,@CC@,$CC,;t t
19727 s,@CFLAGS@,$CFLAGS,;t t
19728 s,@LDFLAGS@,$LDFLAGS,;t t
19729 s,@CPPFLAGS@,$CPPFLAGS,;t t
19730 s,@ac_ct_CC@,$ac_ct_CC,;t t
19731 s,@EXEEXT@,$EXEEXT,;t t
19732 s,@OBJEXT@,$OBJEXT,;t t
19733 s,@EGREP@,$EGREP,;t t
19734 s,@LN_S@,$LN_S,;t t
19735 s,@ECHO@,$ECHO,;t t
19736 s,@AR@,$AR,;t t
19737 s,@ac_ct_AR@,$ac_ct_AR,;t t
19738 s,@RANLIB@,$RANLIB,;t t
19739 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19740 s,@STRIP@,$STRIP,;t t
19741 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19742 s,@CPP@,$CPP,;t t
19743 s,@CXX@,$CXX,;t t
19744 s,@CXXFLAGS@,$CXXFLAGS,;t t
19745 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19746 s,@CXXCPP@,$CXXCPP,;t t
19747 s,@F77@,$F77,;t t
19748 s,@FFLAGS@,$FFLAGS,;t t
19749 s,@ac_ct_F77@,$ac_ct_F77,;t t
19750 s,@LIBTOOL@,$LIBTOOL,;t t
19751 s,@ALLOCA@,$ALLOCA,;t t
19752 s,@LIBOBJS@,$LIBOBJS,;t t
19753 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19754 CEOF
19755
19756 _ACEOF
19757
19758 cat >>$CONFIG_STATUS <<\_ACEOF
19759 # Split the substitutions into bite-sized pieces for seds with
19760 # small command number limits, like on Digital OSF/1 and HP-UX.
19761 ac_max_sed_lines=48
19762 ac_sed_frag=1 # Number of current file.
19763 ac_beg=1 # First line for current file.
19764 ac_end=$ac_max_sed_lines # Line after last line for current file.
19765 ac_more_lines=:
19766 ac_sed_cmds=
19767 while $ac_more_lines; do
19768 if test $ac_beg -gt 1; then
19769 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19770 else
19771 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19772 fi
19773 if test ! -s $tmp/subs.frag; then
19774 ac_more_lines=false
19775 else
19776 # The purpose of the label and of the branching condition is to
19777 # speed up the sed processing (if there are no `@' at all, there
19778 # is no need to browse any of the substitutions).
19779 # These are the two extra sed commands mentioned above.
19780 (echo ':t
19781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19782 if test -z "$ac_sed_cmds"; then
19783 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19784 else
19785 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19786 fi
19787 ac_sed_frag=`expr $ac_sed_frag + 1`
19788 ac_beg=$ac_end
19789 ac_end=`expr $ac_end + $ac_max_sed_lines`
19790 fi
19791 done
19792 if test -z "$ac_sed_cmds"; then
19793 ac_sed_cmds=cat
19794 fi
19795 fi # test -n "$CONFIG_FILES"
19796
19797 _ACEOF
19798 cat >>$CONFIG_STATUS <<\_ACEOF
19799 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19801 case $ac_file in
19802 - | *:- | *:-:* ) # input from stdin
19803 cat >$tmp/stdin
19804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19808 * ) ac_file_in=$ac_file.in ;;
19809 esac
19810
19811 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19812 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19814 X"$ac_file" : 'X\(//\)[^/]' \| \
19815 X"$ac_file" : 'X\(//\)$' \| \
19816 X"$ac_file" : 'X\(/\)' \| \
19817 . : '\(.\)' 2>/dev/null ||
19818 echo X"$ac_file" |
19819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19821 /^X\(\/\/\)$/{ s//\1/; q; }
19822 /^X\(\/\).*/{ s//\1/; q; }
19823 s/.*/./; q'`
19824 { if $as_mkdir_p; then
19825 mkdir -p "$ac_dir"
19826 else
19827 as_dir="$ac_dir"
19828 as_dirs=
19829 while test ! -d "$as_dir"; do
19830 as_dirs="$as_dir $as_dirs"
19831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19833 X"$as_dir" : 'X\(//\)[^/]' \| \
19834 X"$as_dir" : 'X\(//\)$' \| \
19835 X"$as_dir" : 'X\(/\)' \| \
19836 . : '\(.\)' 2>/dev/null ||
19837 echo X"$as_dir" |
19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19840 /^X\(\/\/\)$/{ s//\1/; q; }
19841 /^X\(\/\).*/{ s//\1/; q; }
19842 s/.*/./; q'`
19843 done
19844 test ! -n "$as_dirs" || mkdir $as_dirs
19845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19847 { (exit 1); exit 1; }; }; }
19848
19849 ac_builddir=.
19850
19851 if test "$ac_dir" != .; then
19852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19853 # A "../" for each directory in $ac_dir_suffix.
19854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19855 else
19856 ac_dir_suffix= ac_top_builddir=
19857 fi
19858
19859 case $srcdir in
19860 .) # No --srcdir option. We are building in place.
19861 ac_srcdir=.
19862 if test -z "$ac_top_builddir"; then
19863 ac_top_srcdir=.
19864 else
19865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19866 fi ;;
19867 [\\/]* | ?:[\\/]* ) # Absolute path.
19868 ac_srcdir=$srcdir$ac_dir_suffix;
19869 ac_top_srcdir=$srcdir ;;
19870 *) # Relative path.
19871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19873 esac
19874
19875 # Do not use `cd foo && pwd` to compute absolute paths, because
19876 # the directories may not exist.
19877 case `pwd` in
19878 .) ac_abs_builddir="$ac_dir";;
19879 *)
19880 case "$ac_dir" in
19881 .) ac_abs_builddir=`pwd`;;
19882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19884 esac;;
19885 esac
19886 case $ac_abs_builddir in
19887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19888 *)
19889 case ${ac_top_builddir}. in
19890 .) ac_abs_top_builddir=$ac_abs_builddir;;
19891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19893 esac;;
19894 esac
19895 case $ac_abs_builddir in
19896 .) ac_abs_srcdir=$ac_srcdir;;
19897 *)
19898 case $ac_srcdir in
19899 .) ac_abs_srcdir=$ac_abs_builddir;;
19900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19902 esac;;
19903 esac
19904 case $ac_abs_builddir in
19905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19906 *)
19907 case $ac_top_srcdir in
19908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19911 esac;;
19912 esac
19913
19914
19915
19916 if test x"$ac_file" != x-; then
19917 { echo "$as_me:$LINENO: creating $ac_file" >&5
19918 echo "$as_me: creating $ac_file" >&6;}
19919 rm -f "$ac_file"
19920 fi
19921 # Let's still pretend it is `configure' which instantiates (i.e., don't
19922 # use $as_me), people would be surprised to read:
19923 # /* config.h. Generated by config.status. */
19924 if test x"$ac_file" = x-; then
19925 configure_input=
19926 else
19927 configure_input="$ac_file. "
19928 fi
19929 configure_input=$configure_input"Generated from `echo $ac_file_in |
19930 sed 's,.*/,,'` by configure."
19931
19932 # First look for the input files in the build tree, otherwise in the
19933 # src tree.
19934 ac_file_inputs=`IFS=:
19935 for f in $ac_file_in; do
19936 case $f in
19937 -) echo $tmp/stdin ;;
19938 [\\/$]*)
19939 # Absolute (can't be DOS-style, as IFS=:)
19940 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19941 echo "$as_me: error: cannot find input file: $f" >&2;}
19942 { (exit 1); exit 1; }; }
19943 echo "$f";;
19944 *) # Relative
19945 if test -f "$f"; then
19946 # Build tree
19947 echo "$f"
19948 elif test -f "$srcdir/$f"; then
19949 # Source tree
19950 echo "$srcdir/$f"
19951 else
19952 # /dev/null tree
19953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19954 echo "$as_me: error: cannot find input file: $f" >&2;}
19955 { (exit 1); exit 1; }; }
19956 fi;;
19957 esac
19958 done` || { (exit 1); exit 1; }
19959 _ACEOF
19960 cat >>$CONFIG_STATUS <<_ACEOF
19961 sed "$ac_vpsub
19962 $extrasub
19963 _ACEOF
19964 cat >>$CONFIG_STATUS <<\_ACEOF
19965 :t
19966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19967 s,@configure_input@,$configure_input,;t t
19968 s,@srcdir@,$ac_srcdir,;t t
19969 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19970 s,@top_srcdir@,$ac_top_srcdir,;t t
19971 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19972 s,@builddir@,$ac_builddir,;t t
19973 s,@abs_builddir@,$ac_abs_builddir,;t t
19974 s,@top_builddir@,$ac_top_builddir,;t t
19975 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19976 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19977 rm -f $tmp/stdin
19978 if test x"$ac_file" != x-; then
19979 mv $tmp/out $ac_file
19980 else
19981 cat $tmp/out
19982 rm -f $tmp/out
19983 fi
19984
19985 done
19986 _ACEOF
19987 cat >>$CONFIG_STATUS <<\_ACEOF
19988
19989 #
19990 # CONFIG_HEADER section.
19991 #
19992
19993 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19994 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19995 #
19996 # ac_d sets the value in "#define NAME VALUE" lines.
19997 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19998 ac_dB='[ ].*$,\1#\2'
19999 ac_dC=' '
20000 ac_dD=',;t'
20001 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20002 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20003 ac_uB='$,\1#\2define\3'
20004 ac_uC=' '
20005 ac_uD=',;t'
20006
20007 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20009 case $ac_file in
20010 - | *:- | *:-:* ) # input from stdin
20011 cat >$tmp/stdin
20012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20016 * ) ac_file_in=$ac_file.in ;;
20017 esac
20018
20019 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20020 echo "$as_me: creating $ac_file" >&6;}
20021
20022 # First look for the input files in the build tree, otherwise in the
20023 # src tree.
20024 ac_file_inputs=`IFS=:
20025 for f in $ac_file_in; do
20026 case $f in
20027 -) echo $tmp/stdin ;;
20028 [\\/$]*)
20029 # Absolute (can't be DOS-style, as IFS=:)
20030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20031 echo "$as_me: error: cannot find input file: $f" >&2;}
20032 { (exit 1); exit 1; }; }
20033 # Do quote $f, to prevent DOS paths from being IFS'd.
20034 echo "$f";;
20035 *) # Relative
20036 if test -f "$f"; then
20037 # Build tree
20038 echo "$f"
20039 elif test -f "$srcdir/$f"; then
20040 # Source tree
20041 echo "$srcdir/$f"
20042 else
20043 # /dev/null tree
20044 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20045 echo "$as_me: error: cannot find input file: $f" >&2;}
20046 { (exit 1); exit 1; }; }
20047 fi;;
20048 esac
20049 done` || { (exit 1); exit 1; }
20050 # Remove the trailing spaces.
20051 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20052
20053 _ACEOF
20054
20055 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20056 # `conftest.undefs', that substitutes the proper values into
20057 # config.h.in to produce config.h. The first handles `#define'
20058 # templates, and the second `#undef' templates.
20059 # And first: Protect against being on the right side of a sed subst in
20060 # config.status. Protect against being in an unquoted here document
20061 # in config.status.
20062 rm -f conftest.defines conftest.undefs
20063 # Using a here document instead of a string reduces the quoting nightmare.
20064 # Putting comments in sed scripts is not portable.
20065 #
20066 # `end' is used to avoid that the second main sed command (meant for
20067 # 0-ary CPP macros) applies to n-ary macro definitions.
20068 # See the Autoconf documentation for `clear'.
20069 cat >confdef2sed.sed <<\_ACEOF
20070 s/[\\&,]/\\&/g
20071 s,[\\$`],\\&,g
20072 t clear
20073 : clear
20074 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20075 t end
20076 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20077 : end
20078 _ACEOF
20079 # If some macros were called several times there might be several times
20080 # the same #defines, which is useless. Nevertheless, we may not want to
20081 # sort them, since we want the *last* AC-DEFINE to be honored.
20082 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20083 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20084 rm -f confdef2sed.sed
20085
20086 # This sed command replaces #undef with comments. This is necessary, for
20087 # example, in the case of _POSIX_SOURCE, which is predefined and required
20088 # on some systems where configure will not decide to define it.
20089 cat >>conftest.undefs <<\_ACEOF
20090 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20091 _ACEOF
20092
20093 # Break up conftest.defines because some shells have a limit on the size
20094 # of here documents, and old seds have small limits too (100 cmds).
20095 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20096 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20097 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20098 echo ' :' >>$CONFIG_STATUS
20099 rm -f conftest.tail
20100 while grep . conftest.defines >/dev/null
20101 do
20102 # Write a limited-size here document to $tmp/defines.sed.
20103 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20104 # Speed up: don't consider the non `#define' lines.
20105 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20106 # Work around the forget-to-reset-the-flag bug.
20107 echo 't clr' >>$CONFIG_STATUS
20108 echo ': clr' >>$CONFIG_STATUS
20109 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20110 echo 'CEOF
20111 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20112 rm -f $tmp/in
20113 mv $tmp/out $tmp/in
20114 ' >>$CONFIG_STATUS
20115 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20116 rm -f conftest.defines
20117 mv conftest.tail conftest.defines
20118 done
20119 rm -f conftest.defines
20120 echo ' fi # grep' >>$CONFIG_STATUS
20121 echo >>$CONFIG_STATUS
20122
20123 # Break up conftest.undefs because some shells have a limit on the size
20124 # of here documents, and old seds have small limits too (100 cmds).
20125 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20126 rm -f conftest.tail
20127 while grep . conftest.undefs >/dev/null
20128 do
20129 # Write a limited-size here document to $tmp/undefs.sed.
20130 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20131 # Speed up: don't consider the non `#undef'
20132 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20133 # Work around the forget-to-reset-the-flag bug.
20134 echo 't clr' >>$CONFIG_STATUS
20135 echo ': clr' >>$CONFIG_STATUS
20136 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20137 echo 'CEOF
20138 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20139 rm -f $tmp/in
20140 mv $tmp/out $tmp/in
20141 ' >>$CONFIG_STATUS
20142 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20143 rm -f conftest.undefs
20144 mv conftest.tail conftest.undefs
20145 done
20146 rm -f conftest.undefs
20147
20148 cat >>$CONFIG_STATUS <<\_ACEOF
20149 # Let's still pretend it is `configure' which instantiates (i.e., don't
20150 # use $as_me), people would be surprised to read:
20151 # /* config.h. Generated by config.status. */
20152 if test x"$ac_file" = x-; then
20153 echo "/* Generated by configure. */" >$tmp/config.h
20154 else
20155 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20156 fi
20157 cat $tmp/in >>$tmp/config.h
20158 rm -f $tmp/in
20159 if test x"$ac_file" != x-; then
20160 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20161 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20162 echo "$as_me: $ac_file is unchanged" >&6;}
20163 else
20164 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20166 X"$ac_file" : 'X\(//\)[^/]' \| \
20167 X"$ac_file" : 'X\(//\)$' \| \
20168 X"$ac_file" : 'X\(/\)' \| \
20169 . : '\(.\)' 2>/dev/null ||
20170 echo X"$ac_file" |
20171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20173 /^X\(\/\/\)$/{ s//\1/; q; }
20174 /^X\(\/\).*/{ s//\1/; q; }
20175 s/.*/./; q'`
20176 { if $as_mkdir_p; then
20177 mkdir -p "$ac_dir"
20178 else
20179 as_dir="$ac_dir"
20180 as_dirs=
20181 while test ! -d "$as_dir"; do
20182 as_dirs="$as_dir $as_dirs"
20183 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20185 X"$as_dir" : 'X\(//\)[^/]' \| \
20186 X"$as_dir" : 'X\(//\)$' \| \
20187 X"$as_dir" : 'X\(/\)' \| \
20188 . : '\(.\)' 2>/dev/null ||
20189 echo X"$as_dir" |
20190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20192 /^X\(\/\/\)$/{ s//\1/; q; }
20193 /^X\(\/\).*/{ s//\1/; q; }
20194 s/.*/./; q'`
20195 done
20196 test ! -n "$as_dirs" || mkdir $as_dirs
20197 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20198 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20199 { (exit 1); exit 1; }; }; }
20200
20201 rm -f $ac_file
20202 mv $tmp/config.h $ac_file
20203 fi
20204 else
20205 cat $tmp/config.h
20206 rm -f $tmp/config.h
20207 fi
20208 done
20209 _ACEOF
20210
20211 cat >>$CONFIG_STATUS <<\_ACEOF
20212
20213 { (exit 0); exit 0; }
20214 _ACEOF
20215 chmod +x $CONFIG_STATUS
20216 ac_clean_files=$ac_clean_files_save
20217
20218
20219 # configure is writing to config.log, and then calls config.status.
20220 # config.status does its own redirection, appending to config.log.
20221 # Unfortunately, on DOS this fails, as config.log is still kept open
20222 # by configure, so config.status won't be able to write to it; its
20223 # output is simply discarded. So we exec the FD to /dev/null,
20224 # effectively closing config.log, so it can be properly (re)opened and
20225 # appended to by config.status. When coming back to configure, we
20226 # need to make the FD available again.
20227 if test "$no_create" != yes; then
20228 ac_cs_success=:
20229 ac_config_status_args=
20230 test "$silent" = yes &&
20231 ac_config_status_args="$ac_config_status_args --quiet"
20232 exec 5>/dev/null
20233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20234 exec 5>>config.log
20235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20236 # would make configure fail if this is the last instruction.
20237 $ac_cs_success || { (exit 1); exit 1; }
20238 fi
20239