Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for omins 0.2.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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='omins'
425 PACKAGE_TARNAME='omins'
426 PACKAGE_VERSION='0.2.0'
427 PACKAGE_STRING='omins 0.2.0'
428 PACKAGE_BUGREPORT='[email protected]'
429
430 ac_unique_file="src/hz_voct_4200.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS ladspadir 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 omins 0.2.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 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of omins 0.2.0:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=no]
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-debug Enable debugging (false)
1040 --enable-strict Enable strict compiler warnings and errors (false)
1041
1042 Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
1050 --with-ladspa-dir=DIR directory that LADSPA plugins should be installed in
1051 ($libdir/ladspa)
1052
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CPP C preprocessor
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 Report bugs to <[email protected]>.
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086 ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142 esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
1159 cd "$ac_popdir"
1160 done
1161 fi
1162
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1165 cat <<\_ACEOF
1166 omins configure 0.2.0
1167 generated by GNU Autoconf 2.59
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173 exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by omins $as_me 0.2.0, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299 {
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312 }
1313 echo
1314
1315 cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427 else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475 done
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 ac_config_headers="$ac_config_headers config.h"
1519
1520 am__api_version="1.9"
1521 ac_aux_dir=
1522 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1523 if test -f $ac_dir/install-sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 break
1527 elif test -f $ac_dir/install.sh; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 break
1531 elif test -f $ac_dir/shtool; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 break
1535 fi
1536 done
1537 if test -z "$ac_aux_dir"; then
1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1539 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1540 { (exit 1); exit 1; }; }
1541 fi
1542 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545
1546 # Find a good install program. We prefer a C program (faster),
1547 # so one script is as good as another. But avoid the broken or
1548 # incompatible versions:
1549 # SysV /etc/install, /usr/sbin/install
1550 # SunOS /usr/etc/install
1551 # IRIX /sbin/install
1552 # AIX /bin/install
1553 # AmigaOS /C/install, which installs bootblocks on floppy discs
1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1557 # OS/2's system install, which has a completely different semantic
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1561 if test -z "$INSTALL"; then
1562 if test "${ac_cv_path_install+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 # Account for people who put trailing slashes in PATH elements.
1571 case $as_dir/ in
1572 ./ | .// | /cC/* | \
1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575 /usr/ucb/* ) ;;
1576 *)
1577 # OSF1 and SCO ODT 3.0 have their own names for install.
1578 # Don't use installbsd from OSF since it installs stuff as root
1579 # by default.
1580 for ac_prog in ginstall scoinst install; do
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583 if test $ac_prog = install &&
1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 :
1587 elif test $ac_prog = install &&
1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589 # program-specific install script used by HP pwplus--don't use.
1590 :
1591 else
1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593 break 3
1594 fi
1595 fi
1596 done
1597 done
1598 ;;
1599 esac
1600 done
1601
1602
1603 fi
1604 if test "${ac_cv_path_install+set}" = set; then
1605 INSTALL=$ac_cv_path_install
1606 else
1607 # As a last resort, use the slow shell script. We don't cache a
1608 # path for INSTALL within a source directory, because that will
1609 # break other packages using the cache if that directory is
1610 # removed, or if the path is relative.
1611 INSTALL=$ac_install_sh
1612 fi
1613 fi
1614 echo "$as_me:$LINENO: result: $INSTALL" >&5
1615 echo "${ECHO_T}$INSTALL" >&6
1616
1617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618 # It thinks the first close brace ends the variable substitution.
1619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627 # Just in case
1628 sleep 1
1629 echo timestamp > conftest.file
1630 # Do `set' in a subshell so we don't clobber the current shell's
1631 # arguments. Must try -L first in case configure is actually a
1632 # symlink; some systems play weird games with the mod time of symlinks
1633 # (eg FreeBSD returns the mod time of the symlink's containing
1634 # directory).
1635 if (
1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637 if test "$*" = "X"; then
1638 # -L didn't work.
1639 set X `ls -t $srcdir/configure conftest.file`
1640 fi
1641 rm -f conftest.file
1642 if test "$*" != "X $srcdir/configure conftest.file" \
1643 && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645 # If neither matched, then we have a broken ls. This can happen
1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
1647 # broken ls alias from the environment. This has actually
1648 # happened. Such a system could not be considered "sane".
1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&5
1651 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1652 alias in your environment" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 test "$2" = conftest.file
1657 )
1658 then
1659 # Ok.
1660 :
1661 else
1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663 Check your system clock" >&5
1664 echo "$as_me: error: newly created file is older than distributed files!
1665 Check your system clock" >&2;}
1666 { (exit 1); exit 1; }; }
1667 fi
1668 echo "$as_me:$LINENO: result: yes" >&5
1669 echo "${ECHO_T}yes" >&6
1670 test "$program_prefix" != NONE &&
1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672 # Use a double $ so make ignores it.
1673 test "$program_suffix" != NONE &&
1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675 # Double any \ or $. echo might interpret backslashes.
1676 # By default was `s,x,x', remove it if useless.
1677 cat <<\_ACEOF >conftest.sed
1678 s/[\\$]/&&/g;s/;s,x,x,$//
1679 _ACEOF
1680 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681 rm conftest.sed
1682
1683 # expand $ac_aux_dir to an absolute path
1684 am_aux_dir=`cd $ac_aux_dir && pwd`
1685
1686 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1687 # Use eval to expand $SHELL
1688 if eval "$MISSING --run true"; then
1689 am_missing_run="$MISSING --run "
1690 else
1691 am_missing_run=
1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1693 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 fi
1695
1696 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1697 # We used to keeping the `.' as first argument, in order to
1698 # allow $(mkdir_p) to be used without argument. As in
1699 # $(mkdir_p) $(somedir)
1700 # where $(somedir) is conditionally defined. However this is wrong
1701 # for two reasons:
1702 # 1. if the package is installed by a user who cannot write `.'
1703 # make install will fail,
1704 # 2. the above comment should most certainly read
1705 # $(mkdir_p) $(DESTDIR)$(somedir)
1706 # so it does not work when $(somedir) is undefined and
1707 # $(DESTDIR) is not.
1708 # To support the latter case, we have to write
1709 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1710 # so the `.' trick is pointless.
1711 mkdir_p='mkdir -p --'
1712 else
1713 # On NextStep and OpenStep, the `mkdir' command does not
1714 # recognize any option. It will interpret all options as
1715 # directories to create, and then abort because `.' already
1716 # exists.
1717 for d in ./-p ./--version;
1718 do
1719 test -d $d && rmdir $d
1720 done
1721 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1722 if test -f "$ac_aux_dir/mkinstalldirs"; then
1723 mkdir_p='$(mkinstalldirs)'
1724 else
1725 mkdir_p='$(install_sh) -d'
1726 fi
1727 fi
1728
1729 for ac_prog in gawk mawk nawk awk
1730 do
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_AWK+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738 if test -n "$AWK"; then
1739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_AWK="$ac_prog"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752 done
1753 done
1754
1755 fi
1756 fi
1757 AWK=$ac_cv_prog_AWK
1758 if test -n "$AWK"; then
1759 echo "$as_me:$LINENO: result: $AWK" >&5
1760 echo "${ECHO_T}$AWK" >&6
1761 else
1762 echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1764 fi
1765
1766 test -n "$AWK" && break
1767 done
1768
1769 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1771 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1772 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 cat >conftest.make <<\_ACEOF
1776 all:
1777 @echo 'ac_maketemp="$(MAKE)"'
1778 _ACEOF
1779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1780 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1781 if test -n "$ac_maketemp"; then
1782 eval ac_cv_prog_make_${ac_make}_set=yes
1783 else
1784 eval ac_cv_prog_make_${ac_make}_set=no
1785 fi
1786 rm -f conftest.make
1787 fi
1788 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 SET_MAKE=
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1795 SET_MAKE="MAKE=${MAKE-make}"
1796 fi
1797
1798 rm -rf .tst 2>/dev/null
1799 mkdir .tst 2>/dev/null
1800 if test -d .tst; then
1801 am__leading_dot=.
1802 else
1803 am__leading_dot=_
1804 fi
1805 rmdir .tst 2>/dev/null
1806
1807 # test to see if srcdir already configured
1808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809 test -f $srcdir/config.status; then
1810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812 { (exit 1); exit 1; }; }
1813 fi
1814
1815 # test whether we have cygpath
1816 if test -z "$CYGPATH_W"; then
1817 if (cygpath --version) >/dev/null 2>/dev/null; then
1818 CYGPATH_W='cygpath -w'
1819 else
1820 CYGPATH_W=echo
1821 fi
1822 fi
1823
1824
1825 # Define the identity of the package.
1826 PACKAGE='omins'
1827 VERSION='0.2.0'
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE "$PACKAGE"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define VERSION "$VERSION"
1837 _ACEOF
1838
1839 # Some tools Automake needs.
1840
1841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842
1843
1844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845
1846
1847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848
1849
1850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851
1852
1853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854
1855 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856
1857 # Installed binaries are usually stripped using `strip' when the user
1858 # run `make install-strip'. However `strip' might not be the right
1859 # tool to use in cross-compilation environments, therefore Automake
1860 # will honor the `STRIP' environment variable to overrule this program.
1861 if test "$cross_compiling" != no; then
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}strip; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_STRIP+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$STRIP"; then
1871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 STRIP=$ac_cv_prog_STRIP
1890 if test -n "$STRIP"; then
1891 echo "$as_me:$LINENO: result: $STRIP" >&5
1892 echo "${ECHO_T}$STRIP" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898 fi
1899 if test -z "$ac_cv_prog_STRIP"; then
1900 ac_ct_STRIP=$STRIP
1901 # Extract the first word of "strip", so it can be a program name with args.
1902 set dummy strip; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$ac_ct_STRIP"; then
1909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_ac_ct_STRIP="strip"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922 done
1923 done
1924
1925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926 fi
1927 fi
1928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1929 if test -n "$ac_ct_STRIP"; then
1930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1931 echo "${ECHO_T}$ac_ct_STRIP" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 STRIP=$ac_ct_STRIP
1938 else
1939 STRIP="$ac_cv_prog_STRIP"
1940 fi
1941
1942 fi
1943 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944
1945 # We need awk for the "check" target. The system "awk" is bad on
1946 # some platforms.
1947 # Always define AMTAR for backward compatibility.
1948
1949 AMTAR=${AMTAR-"${am_missing_run}tar"}
1950
1951 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1952
1953
1954
1955
1956
1957
1958 # Check whether --enable-static or --disable-static was given.
1959 if test "${enable_static+set}" = set; then
1960 enableval="$enable_static"
1961 p=${PACKAGE-default}
1962 case $enableval in
1963 yes) enable_static=yes ;;
1964 no) enable_static=no ;;
1965 *)
1966 enable_static=no
1967 # Look at the argument we got. We use all the common list separators.
1968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1969 for pkg in $enableval; do
1970 IFS="$lt_save_ifs"
1971 if test "X$pkg" = "X$p"; then
1972 enable_static=yes
1973 fi
1974 done
1975 IFS="$lt_save_ifs"
1976 ;;
1977 esac
1978 else
1979 enable_static=no
1980 fi;
1981
1982
1983
1984 #AC_ENABLE_STATIC(no)
1985 #AC_ENABLE_SHARED(yes)
1986
1987 # Checks for compilers
1988 ac_ext=c
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 break 2
2020 fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 CC=$ac_cv_prog_CC
2027 if test -n "$CC"; then
2028 echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2030 else
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_CC"; then
2037 ac_ct_CC=$CC
2038 # Extract the first word of "gcc", so it can be a program name with args.
2039 set dummy gcc; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045 if test -n "$ac_ct_CC"; then
2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_CC="gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 break 2
2058 fi
2059 done
2060 done
2061
2062 fi
2063 fi
2064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065 if test -n "$ac_ct_CC"; then
2066 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2067 echo "${ECHO_T}$ac_ct_CC" >&6
2068 else
2069 echo "$as_me:$LINENO: result: no" >&5
2070 echo "${ECHO_T}no" >&6
2071 fi
2072
2073 CC=$ac_ct_CC
2074 else
2075 CC="$ac_cv_prog_CC"
2076 fi
2077
2078 if test -z "$CC"; then
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}cc; ac_word=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC="${ac_tool_prefix}cc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2100 fi
2101 done
2102 done
2103
2104 fi
2105 fi
2106 CC=$ac_cv_prog_CC
2107 if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2110 else
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2113 fi
2114
2115 fi
2116 if test -z "$ac_cv_prog_CC"; then
2117 ac_ct_CC=$CC
2118 # Extract the first word of "cc", so it can be a program name with args.
2119 set dummy cc; ac_word=$2
2120 echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135 ac_cv_prog_ac_ct_CC="cc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2138 fi
2139 done
2140 done
2141
2142 fi
2143 fi
2144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145 if test -n "$ac_ct_CC"; then
2146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147 echo "${ECHO_T}$ac_ct_CC" >&6
2148 else
2149 echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6
2151 fi
2152
2153 CC=$ac_ct_CC
2154 else
2155 CC="$ac_cv_prog_CC"
2156 fi
2157
2158 fi
2159 if test -z "$CC"; then
2160 # Extract the first word of "cc", so it can be a program name with args.
2161 set dummy cc; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2169 else
2170 ac_prog_rejected=no
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2179 ac_prog_rejected=yes
2180 continue
2181 fi
2182 ac_cv_prog_CC="cc"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2185 fi
2186 done
2187 done
2188
2189 if test $ac_prog_rejected = yes; then
2190 # We found a bogon in the path, so make sure we never use it.
2191 set dummy $ac_cv_prog_CC
2192 shift
2193 if test $# != 0; then
2194 # We chose a different compiler from the bogus one.
2195 # However, it has the same basename, so the bogon will be chosen
2196 # first if we set CC to just the basename; use the full file name.
2197 shift
2198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2199 fi
2200 fi
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205 echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6
2207 else
2208 echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2210 fi
2211
2212 fi
2213 if test -z "$CC"; then
2214 if test -n "$ac_tool_prefix"; then
2215 for ac_prog in cl
2216 do
2217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245 echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6
2247 else
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252 test -n "$CC" && break
2253 done
2254 fi
2255 if test -z "$CC"; then
2256 ac_ct_CC=$CC
2257 for ac_prog in cl
2258 do
2259 # Extract the first word of "$ac_prog", so it can be a program name with args.
2260 set dummy $ac_prog; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 if test -n "$ac_ct_CC"; then
2267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_ac_ct_CC="$ac_prog"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280 done
2281 done
2282
2283 fi
2284 fi
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6
2289 else
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294 test -n "$ac_ct_CC" && break
2295 done
2296
2297 CC=$ac_ct_CC
2298 fi
2299
2300 fi
2301
2302
2303 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2308
2309 # Provide some information about the compiler.
2310 echo "$as_me:$LINENO:" \
2311 "checking for C compiler version" >&5
2312 ac_compiler=`set X $ac_compile; echo $2`
2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2314 (eval $ac_compiler --version </dev/null >&5) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }
2318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2319 (eval $ac_compiler -v </dev/null >&5) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }
2323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2324 (eval $ac_compiler -V </dev/null >&5) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }
2328
2329 cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h. */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2335
2336 int
2337 main ()
2338 {
2339
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 ac_clean_files_save=$ac_clean_files
2345 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2346 # Try to create an executable without -o first, disregard a.out.
2347 # It will help us diagnose broken compilers, and finding out an intuition
2348 # of exeext.
2349 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2350 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2351 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2353 (eval $ac_link_default) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 # Find the output, starting from the most likely. This scheme is
2358 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2359 # resort.
2360
2361 # Be careful to initialize this variable, since it used to be cached.
2362 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2363 ac_cv_exeext=
2364 # b.out is created by i960 compilers.
2365 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2366 do
2367 test -f "$ac_file" || continue
2368 case $ac_file in
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2370 ;;
2371 conftest.$ac_ext )
2372 # This is the source file.
2373 ;;
2374 [ab].out )
2375 # We found the default executable, but exeext='' is most
2376 # certainly right.
2377 break;;
2378 *.* )
2379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380 # FIXME: I believe we export ac_cv_exeext for Libtool,
2381 # but it would be cool to find out if it's true. Does anybody
2382 # maintain Libtool? --akim.
2383 export ac_cv_exeext
2384 break;;
2385 * )
2386 break;;
2387 esac
2388 done
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&2;}
2397 { (exit 77); exit 77; }; }
2398 fi
2399
2400 ac_exeext=$ac_cv_exeext
2401 echo "$as_me:$LINENO: result: $ac_file" >&5
2402 echo "${ECHO_T}$ac_file" >&6
2403
2404 # Check the compiler produces executables we can run. If not, either
2405 # the compiler is broken, or we cross compile.
2406 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2407 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2408 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2409 # If not cross compiling, check that we can run a simple program.
2410 if test "$cross_compiling" != yes; then
2411 if { ac_try='./$ac_file'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 cross_compiling=no
2418 else
2419 if test "$cross_compiling" = maybe; then
2420 cross_compiling=yes
2421 else
2422 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&2;}
2428 { (exit 1); exit 1; }; }
2429 fi
2430 fi
2431 fi
2432 echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2434
2435 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2436 ac_clean_files=$ac_clean_files_save
2437 # Check the compiler produces executables we can run. If not, either
2438 # the compiler is broken, or we cross compile.
2439 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2440 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2441 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2442 echo "${ECHO_T}$cross_compiling" >&6
2443
2444 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2445 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2452 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2453 # work properly (i.e., refer to `conftest.exe'), while it won't with
2454 # `rm'.
2455 for ac_file in conftest.exe conftest conftest.*; do
2456 test -f "$ac_file" || continue
2457 case $ac_file in
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2459 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460 export ac_cv_exeext
2461 break;;
2462 * ) break;;
2463 esac
2464 done
2465 else
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2471 fi
2472
2473 rm -f conftest$ac_cv_exeext
2474 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2475 echo "${ECHO_T}$ac_cv_exeext" >&6
2476
2477 rm -f conftest.$ac_ext
2478 EXEEXT=$ac_cv_exeext
2479 ac_exeext=$EXEEXT
2480 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2482 if test "${ac_cv_objext+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
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
2492 int
2493 main ()
2494 {
2495
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.o conftest.obj
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; then
2506 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2507 case $ac_file in
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2510 break;;
2511 esac
2512 done
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&2;}
2521 { (exit 1); exit 1; }; }
2522 fi
2523
2524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2525 fi
2526 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2527 echo "${ECHO_T}$ac_cv_objext" >&6
2528 OBJEXT=$ac_cv_objext
2529 ac_objext=$OBJEXT
2530 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2531 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2532 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2541
2542 int
2543 main ()
2544 {
2545 #ifndef __GNUC__
2546 choke me
2547 #endif
2548
2549 ;
2550 return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 ac_compiler_gnu=yes
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 ac_compiler_gnu=no
2580 fi
2581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583
2584 fi
2585 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2587 GCC=`test $ac_compiler_gnu = yes && echo yes`
2588 ac_test_CFLAGS=${CFLAGS+set}
2589 ac_save_CFLAGS=$CFLAGS
2590 CFLAGS="-g"
2591 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602
2603 int
2604 main ()
2605 {
2606
2607 ;
2608 return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_g=yes
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_cv_prog_cc_g=no
2638 fi
2639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640 fi
2641 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643 if test "$ac_test_CFLAGS" = set; then
2644 CFLAGS=$ac_save_CFLAGS
2645 elif test $ac_cv_prog_cc_g = yes; then
2646 if test "$GCC" = yes; then
2647 CFLAGS="-g -O2"
2648 else
2649 CFLAGS="-g"
2650 fi
2651 else
2652 if test "$GCC" = yes; then
2653 CFLAGS="-O2"
2654 else
2655 CFLAGS=
2656 fi
2657 fi
2658 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 ac_cv_prog_cc_stdc=no
2664 ac_save_CC=$CC
2665 cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h. */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2671 #include <stdarg.h>
2672 #include <stdio.h>
2673 #include <sys/types.h>
2674 #include <sys/stat.h>
2675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2676 struct buf { int x; };
2677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678 static char *e (p, i)
2679 char **p;
2680 int i;
2681 {
2682 return p[i];
2683 }
2684 static char *f (char * (*g) (char **, int), char **p, ...)
2685 {
2686 char *s;
2687 va_list v;
2688 va_start (v,p);
2689 s = g (p, va_arg (v,int));
2690 va_end (v);
2691 return s;
2692 }
2693
2694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2695 function prototypes and stuff, but not '\xHH' hex character constants.
2696 These don't provoke an error unfortunately, instead are silently treated
2697 as 'x'. The following induces an error, until -std1 is added to get
2698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2699 array size at least. It's necessary to write '\x00'==0 to get something
2700 that's true only with -std1. */
2701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702
2703 int test (int i, double x);
2704 struct s1 {int (*f) (int a);};
2705 struct s2 {int (*f) (double a);};
2706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707 int argc;
2708 char **argv;
2709 int
2710 main ()
2711 {
2712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 ;
2714 return 0;
2715 }
2716 _ACEOF
2717 # Don't try gcc -ansi; that turns off useful extensions and
2718 # breaks some systems' header files.
2719 # AIX -qlanglvl=ansi
2720 # Ultrix and OSF/1 -std1
2721 # HP-UX 10.20 and later -Ae
2722 # HP-UX older versions -Aa -D_HPUX_SOURCE
2723 # SVR4 -Xc -D__EXTENSIONS__
2724 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2748 ac_cv_prog_cc_stdc=$ac_arg
2749 break
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 fi
2755 rm -f conftest.err conftest.$ac_objext
2756 done
2757 rm -f conftest.$ac_ext conftest.$ac_objext
2758 CC=$ac_save_CC
2759
2760 fi
2761
2762 case "x$ac_cv_prog_cc_stdc" in
2763 x|xno)
2764 echo "$as_me:$LINENO: result: none needed" >&5
2765 echo "${ECHO_T}none needed" >&6 ;;
2766 *)
2767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2769 CC="$CC $ac_cv_prog_cc_stdc" ;;
2770 esac
2771
2772 # Some people use a C++ compiler to compile C. Since we use `exit',
2773 # in C++ we need to declare it. In case someone uses the same compiler
2774 # for both compiling C and C++ we need to have the C++ compiler decide
2775 # the declaration of exit, since it's the most demanding environment.
2776 cat >conftest.$ac_ext <<_ACEOF
2777 #ifndef __cplusplus
2778 choke me
2779 #endif
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2803 '' \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2808 'void exit (int);'
2809 do
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816 $ac_declaration
2817 #include <stdlib.h>
2818 int
2819 main ()
2820 {
2821 exit (42);
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 :
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 continue
2853 fi
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2861 $ac_declaration
2862 int
2863 main ()
2864 {
2865 exit (42);
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 break
2892 else
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 fi
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 done
2899 rm -f conftest*
2900 if test -n "$ac_declaration"; then
2901 echo '#ifdef __cplusplus' >>confdefs.h
2902 echo $ac_declaration >>confdefs.h
2903 echo '#endif' >>confdefs.h
2904 fi
2905
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 fi
2911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_ext=c
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 DEPDIR="${am__leading_dot}deps"
2918
2919 ac_config_commands="$ac_config_commands depfiles"
2920
2921
2922 am_make=${MAKE-make}
2923 cat > confinc << 'END'
2924 am__doit:
2925 @echo done
2926 .PHONY: am__doit
2927 END
2928 # If we don't find an include directive, just comment out the code.
2929 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2930 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2931 am__include="#"
2932 am__quote=
2933 _am_result=none
2934 # First try GNU make style include.
2935 echo "include confinc" > confmf
2936 # We grep out `Entering directory' and `Leaving directory'
2937 # messages which can occur if `w' ends up in MAKEFLAGS.
2938 # In particular we don't look at `^make:' because GNU make might
2939 # be invoked under some other name (usually "gmake"), in which
2940 # case it prints its new name instead of `make'.
2941 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2942 am__include=include
2943 am__quote=
2944 _am_result=GNU
2945 fi
2946 # Now try BSD make style include.
2947 if test "$am__include" = "#"; then
2948 echo '.include "confinc"' > confmf
2949 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2950 am__include=.include
2951 am__quote="\""
2952 _am_result=BSD
2953 fi
2954 fi
2955
2956
2957 echo "$as_me:$LINENO: result: $_am_result" >&5
2958 echo "${ECHO_T}$_am_result" >&6
2959 rm -f confinc confmf
2960
2961 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2962 if test "${enable_dependency_tracking+set}" = set; then
2963 enableval="$enable_dependency_tracking"
2964
2965 fi;
2966 if test "x$enable_dependency_tracking" != xno; then
2967 am_depcomp="$ac_aux_dir/depcomp"
2968 AMDEPBACKSLASH='\'
2969 fi
2970
2971
2972 if test "x$enable_dependency_tracking" != xno; then
2973 AMDEP_TRUE=
2974 AMDEP_FALSE='#'
2975 else
2976 AMDEP_TRUE='#'
2977 AMDEP_FALSE=
2978 fi
2979
2980
2981
2982
2983 depcc="$CC" am_compiler_list=
2984
2985 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2986 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2987 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2991 # We make a subdir and do the tests there. Otherwise we can end up
2992 # making bogus files that we don't know about and never remove. For
2993 # instance it was reported that on HP-UX the gcc test will end up
2994 # making a dummy file named `D' -- because `-MD' means `put the output
2995 # in D'.
2996 mkdir conftest.dir
2997 # Copy depcomp to subdir because otherwise we won't find it if we're
2998 # using a relative directory.
2999 cp "$am_depcomp" conftest.dir
3000 cd conftest.dir
3001 # We will build objects and dependencies in a subdirectory because
3002 # it helps to detect inapplicable dependency modes. For instance
3003 # both Tru64's cc and ICC support -MD to output dependencies as a
3004 # side effect of compilation, but ICC will put the dependencies in
3005 # the current directory while Tru64 will put them in the object
3006 # directory.
3007 mkdir sub
3008
3009 am_cv_CC_dependencies_compiler_type=none
3010 if test "$am_compiler_list" = ""; then
3011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3012 fi
3013 for depmode in $am_compiler_list; do
3014 # Setup a source with many dependencies, because some compilers
3015 # like to wrap large dependency lists on column 80 (with \), and
3016 # we should not choose a depcomp mode which is confused by this.
3017 #
3018 # We need to recreate these files for each test, as the compiler may
3019 # overwrite some of them when testing with obscure command lines.
3020 # This happens at least with the AIX C compiler.
3021 : > sub/conftest.c
3022 for i in 1 2 3 4 5 6; do
3023 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3024 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3025 # Solaris 8's {/usr,}/bin/sh.
3026 touch sub/conftst$i.h
3027 done
3028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3029
3030 case $depmode in
3031 nosideeffect)
3032 # after this tag, mechanisms are not by side-effect, so they'll
3033 # only be used when explicitly requested
3034 if test "x$enable_dependency_tracking" = xyes; then
3035 continue
3036 else
3037 break
3038 fi
3039 ;;
3040 none) break ;;
3041 esac
3042 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3043 # mode. It turns out that the SunPro C++ compiler does not properly
3044 # handle `-M -o', and we need to detect this.
3045 if depmode=$depmode \
3046 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3047 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3049 >/dev/null 2>conftest.err &&
3050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053 # icc doesn't choke on unknown options, it will just issue warnings
3054 # or remarks (even with -Werror). So we grep stderr for any message
3055 # that says an option was ignored or not supported.
3056 # When given -MP, icc 7.0 and 7.1 complain thusly:
3057 # icc: Command line warning: ignoring option '-M'; no argument required
3058 # The diagnosis changed in icc 8.0:
3059 # icc: Command line remark: option '-MP' not supported
3060 if (grep 'ignoring option' conftest.err ||
3061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3062 am_cv_CC_dependencies_compiler_type=$depmode
3063 break
3064 fi
3065 fi
3066 done
3067
3068 cd ..
3069 rm -rf conftest.dir
3070 else
3071 am_cv_CC_dependencies_compiler_type=none
3072 fi
3073
3074 fi
3075 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3076 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3077 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3078
3079
3080
3081 if
3082 test "x$enable_dependency_tracking" != xno \
3083 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3084 am__fastdepCC_TRUE=
3085 am__fastdepCC_FALSE='#'
3086 else
3087 am__fastdepCC_TRUE='#'
3088 am__fastdepCC_FALSE=
3089 fi
3090
3091
3092
3093 # Check whether --enable-shared or --disable-shared was given.
3094 if test "${enable_shared+set}" = set; then
3095 enableval="$enable_shared"
3096 p=${PACKAGE-default}
3097 case $enableval in
3098 yes) enable_shared=yes ;;
3099 no) enable_shared=no ;;
3100 *)
3101 enable_shared=no
3102 # Look at the argument we got. We use all the common list separators.
3103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3104 for pkg in $enableval; do
3105 IFS="$lt_save_ifs"
3106 if test "X$pkg" = "X$p"; then
3107 enable_shared=yes
3108 fi
3109 done
3110 IFS="$lt_save_ifs"
3111 ;;
3112 esac
3113 else
3114 enable_shared=yes
3115 fi;
3116
3117 # Check whether --enable-fast-install or --disable-fast-install was given.
3118 if test "${enable_fast_install+set}" = set; then
3119 enableval="$enable_fast_install"
3120 p=${PACKAGE-default}
3121 case $enableval in
3122 yes) enable_fast_install=yes ;;
3123 no) enable_fast_install=no ;;
3124 *)
3125 enable_fast_install=no
3126 # Look at the argument we got. We use all the common list separators.
3127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3128 for pkg in $enableval; do
3129 IFS="$lt_save_ifs"
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
3132 fi
3133 done
3134 IFS="$lt_save_ifs"
3135 ;;
3136 esac
3137 else
3138 enable_fast_install=yes
3139 fi;
3140
3141 # Make sure we can run config.sub.
3142 $ac_config_sub sun4 >/dev/null 2>&1 ||
3143 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3144 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3145 { (exit 1); exit 1; }; }
3146
3147 echo "$as_me:$LINENO: checking build system type" >&5
3148 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3149 if test "${ac_cv_build+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 ac_cv_build_alias=$build_alias
3153 test -z "$ac_cv_build_alias" &&
3154 ac_cv_build_alias=`$ac_config_guess`
3155 test -z "$ac_cv_build_alias" &&
3156 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3157 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3158 { (exit 1); exit 1; }; }
3159 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3160 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3161 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3162 { (exit 1); exit 1; }; }
3163
3164 fi
3165 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3166 echo "${ECHO_T}$ac_cv_build" >&6
3167 build=$ac_cv_build
3168 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3169 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3170 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3171
3172
3173 echo "$as_me:$LINENO: checking host system type" >&5
3174 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3175 if test "${ac_cv_host+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 ac_cv_host_alias=$host_alias
3179 test -z "$ac_cv_host_alias" &&
3180 ac_cv_host_alias=$ac_cv_build_alias
3181 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3182 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3183 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3184 { (exit 1); exit 1; }; }
3185
3186 fi
3187 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3188 echo "${ECHO_T}$ac_cv_host" >&6
3189 host=$ac_cv_host
3190 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3191 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3192 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3193
3194
3195 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3196 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3197 if test "${lt_cv_path_SED+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 # Loop through the user's path and test for sed and gsed.
3201 # Then use that list of sed's as ones to test for truncation.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for lt_ac_prog in sed gsed; do
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3210 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3211 fi
3212 done
3213 done
3214 done
3215 lt_ac_max=0
3216 lt_ac_count=0
3217 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3218 # along with /bin/sed that truncates output.
3219 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3220 test ! -f $lt_ac_sed && continue
3221 cat /dev/null > conftest.in
3222 lt_ac_count=0
3223 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3224 # Check for GNU sed and select it if it is found.
3225 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3226 lt_cv_path_SED=$lt_ac_sed
3227 break
3228 fi
3229 while true; do
3230 cat conftest.in conftest.in >conftest.tmp
3231 mv conftest.tmp conftest.in
3232 cp conftest.in conftest.nl
3233 echo >>conftest.nl
3234 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3235 cmp -s conftest.out conftest.nl || break
3236 # 10000 chars as input seems more than enough
3237 test $lt_ac_count -gt 10 && break
3238 lt_ac_count=`expr $lt_ac_count + 1`
3239 if test $lt_ac_count -gt $lt_ac_max; then
3240 lt_ac_max=$lt_ac_count
3241 lt_cv_path_SED=$lt_ac_sed
3242 fi
3243 done
3244 done
3245
3246 fi
3247
3248 SED=$lt_cv_path_SED
3249 echo "$as_me:$LINENO: result: $SED" >&5
3250 echo "${ECHO_T}$SED" >&6
3251
3252 echo "$as_me:$LINENO: checking for egrep" >&5
3253 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3254 if test "${ac_cv_prog_egrep+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3258 then ac_cv_prog_egrep='grep -E'
3259 else ac_cv_prog_egrep='egrep'
3260 fi
3261 fi
3262 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3263 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3264 EGREP=$ac_cv_prog_egrep
3265
3266
3267
3268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3269 if test "${with_gnu_ld+set}" = set; then
3270 withval="$with_gnu_ld"
3271 test "$withval" = no || with_gnu_ld=yes
3272 else
3273 with_gnu_ld=no
3274 fi;
3275 ac_prog=ld
3276 if test "$GCC" = yes; then
3277 # Check if gcc -print-prog-name=ld gives a path.
3278 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3280 case $host in
3281 *-*-mingw*)
3282 # gcc leaves a trailing carriage return which upsets mingw
3283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3284 *)
3285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3286 esac
3287 case $ac_prog in
3288 # Accept absolute paths.
3289 [\\/]* | ?:[\\/]*)
3290 re_direlt='/[^/][^/]*/\.\./'
3291 # Canonicalize the pathname of ld
3292 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3294 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3295 done
3296 test -z "$LD" && LD="$ac_prog"
3297 ;;
3298 "")
3299 # If it fails, then pretend we aren't using GCC.
3300 ac_prog=ld
3301 ;;
3302 *)
3303 # If it is relative, then search for the first ld in PATH.
3304 with_gnu_ld=unknown
3305 ;;
3306 esac
3307 elif test "$with_gnu_ld" = yes; then
3308 echo "$as_me:$LINENO: checking for GNU ld" >&5
3309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3310 else
3311 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3313 fi
3314 if test "${lt_cv_path_LD+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -z "$LD"; then
3318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3319 for ac_dir in $PATH; do
3320 IFS="$lt_save_ifs"
3321 test -z "$ac_dir" && ac_dir=.
3322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3323 lt_cv_path_LD="$ac_dir/$ac_prog"
3324 # Check to see if the program is GNU ld. I'd rather use --version,
3325 # but apparently some variants of GNU ld only accept -v.
3326 # Break only if it was the GNU/non-GNU ld that we prefer.
3327 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3328 *GNU* | *'with BFD'*)
3329 test "$with_gnu_ld" != no && break
3330 ;;
3331 *)
3332 test "$with_gnu_ld" != yes && break
3333 ;;
3334 esac
3335 fi
3336 done
3337 IFS="$lt_save_ifs"
3338 else
3339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3340 fi
3341 fi
3342
3343 LD="$lt_cv_path_LD"
3344 if test -n "$LD"; then
3345 echo "$as_me:$LINENO: result: $LD" >&5
3346 echo "${ECHO_T}$LD" >&6
3347 else
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3350 fi
3351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3353 { (exit 1); exit 1; }; }
3354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3360 case `$LD -v 2>&1 </dev/null` in
3361 *GNU* | *'with BFD'*)
3362 lt_cv_prog_gnu_ld=yes
3363 ;;
3364 *)
3365 lt_cv_prog_gnu_ld=no
3366 ;;
3367 esac
3368 fi
3369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3371 with_gnu_ld=$lt_cv_prog_gnu_ld
3372
3373
3374 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3375 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3376 if test "${lt_cv_ld_reload_flag+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 lt_cv_ld_reload_flag='-r'
3380 fi
3381 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3382 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3383 reload_flag=$lt_cv_ld_reload_flag
3384 case $reload_flag in
3385 "" | " "*) ;;
3386 *) reload_flag=" $reload_flag" ;;
3387 esac
3388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3389 case $host_os in
3390 darwin*)
3391 if test "$GCC" = yes; then
3392 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3393 else
3394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3395 fi
3396 ;;
3397 esac
3398
3399 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3400 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3401 if test "${lt_cv_path_NM+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 if test -n "$NM"; then
3405 # Let the user override the test.
3406 lt_cv_path_NM="$NM"
3407 else
3408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3409 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3410 IFS="$lt_save_ifs"
3411 test -z "$ac_dir" && ac_dir=.
3412 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3413 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3414 # Check to see if the nm accepts a BSD-compat flag.
3415 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3416 # nm: unknown option "B" ignored
3417 # Tru64's nm complains that /dev/null is an invalid object file
3418 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3419 */dev/null* | *'Invalid file or object type'*)
3420 lt_cv_path_NM="$tmp_nm -B"
3421 break
3422 ;;
3423 *)
3424 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3425 */dev/null*)
3426 lt_cv_path_NM="$tmp_nm -p"
3427 break
3428 ;;
3429 *)
3430 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3431 continue # so that we can try to find one that supports BSD flags
3432 ;;
3433 esac
3434 esac
3435 fi
3436 done
3437 IFS="$lt_save_ifs"
3438 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3439 fi
3440 fi
3441 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3442 echo "${ECHO_T}$lt_cv_path_NM" >&6
3443 NM="$lt_cv_path_NM"
3444
3445 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3446 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3447 LN_S=$as_ln_s
3448 if test "$LN_S" = "ln -s"; then
3449 echo "$as_me:$LINENO: result: yes" >&5
3450 echo "${ECHO_T}yes" >&6
3451 else
3452 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3453 echo "${ECHO_T}no, using $LN_S" >&6
3454 fi
3455
3456 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3457 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3458 if test "${lt_cv_deplibs_check_method+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 lt_cv_file_magic_cmd='$MAGIC_CMD'
3462 lt_cv_file_magic_test_file=
3463 lt_cv_deplibs_check_method='unknown'
3464 # Need to set the preceding variable on all platforms that support
3465 # interlibrary dependencies.
3466 # 'none' -- dependencies not supported.
3467 # `unknown' -- same as none, but documents that we really don't know.
3468 # 'pass_all' -- all dependencies passed with no checks.
3469 # 'test_compile' -- check by making test program.
3470 # 'file_magic [[regex]]' -- check by looking for files in library path
3471 # which responds to the $file_magic_cmd with a given extended regex.
3472 # If you have `file' or equivalent on your system and you're not sure
3473 # whether `pass_all' will *always* work, you probably want this one.
3474
3475 case $host_os in
3476 aix4* | aix5*)
3477 lt_cv_deplibs_check_method=pass_all
3478 ;;
3479
3480 beos*)
3481 lt_cv_deplibs_check_method=pass_all
3482 ;;
3483
3484 bsdi[45]*)
3485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3486 lt_cv_file_magic_cmd='/usr/bin/file -L'
3487 lt_cv_file_magic_test_file=/shlib/libc.so
3488 ;;
3489
3490 cygwin*)
3491 # func_win32_libid is a shell function defined in ltmain.sh
3492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3493 lt_cv_file_magic_cmd='func_win32_libid'
3494 ;;
3495
3496 mingw* | pw32*)
3497 # Base MSYS/MinGW do not provide the 'file' command needed by
3498 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3499 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3500 lt_cv_file_magic_cmd='$OBJDUMP -f'
3501 ;;
3502
3503 darwin* | rhapsody*)
3504 lt_cv_deplibs_check_method=pass_all
3505 ;;
3506
3507 freebsd* | kfreebsd*-gnu | dragonfly*)
3508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3509 case $host_cpu in
3510 i*86 )
3511 # Not sure whether the presence of OpenBSD here was a mistake.
3512 # Let's accept both of them until this is cleared up.
3513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3514 lt_cv_file_magic_cmd=/usr/bin/file
3515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3516 ;;
3517 esac
3518 else
3519 lt_cv_deplibs_check_method=pass_all
3520 fi
3521 ;;
3522
3523 gnu*)
3524 lt_cv_deplibs_check_method=pass_all
3525 ;;
3526
3527 hpux10.20* | hpux11*)
3528 lt_cv_file_magic_cmd=/usr/bin/file
3529 case $host_cpu in
3530 ia64*)
3531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3533 ;;
3534 hppa*64*)
3535 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]'
3536 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3537 ;;
3538 *)
3539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3540 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3541 ;;
3542 esac
3543 ;;
3544
3545 irix5* | irix6* | nonstopux*)
3546 case $LD in
3547 *-32|*"-32 ") libmagic=32-bit;;
3548 *-n32|*"-n32 ") libmagic=N32;;
3549 *-64|*"-64 ") libmagic=64-bit;;
3550 *) libmagic=never-match;;
3551 esac
3552 lt_cv_deplibs_check_method=pass_all
3553 ;;
3554
3555 # This must be Linux ELF.
3556 linux*)
3557 lt_cv_deplibs_check_method=pass_all
3558 ;;
3559
3560 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3561 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3563 else
3564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3565 fi
3566 ;;
3567
3568 newos6*)
3569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3570 lt_cv_file_magic_cmd=/usr/bin/file
3571 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3572 ;;
3573
3574 nto-qnx*)
3575 lt_cv_deplibs_check_method=unknown
3576 ;;
3577
3578 openbsd*)
3579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3581 else
3582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3583 fi
3584 ;;
3585
3586 osf3* | osf4* | osf5*)
3587 lt_cv_deplibs_check_method=pass_all
3588 ;;
3589
3590 sco3.2v5*)
3591 lt_cv_deplibs_check_method=pass_all
3592 ;;
3593
3594 solaris*)
3595 lt_cv_deplibs_check_method=pass_all
3596 ;;
3597
3598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3599 case $host_vendor in
3600 motorola)
3601 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]'
3602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3603 ;;
3604 ncr)
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607 sequent)
3608 lt_cv_file_magic_cmd='/bin/file'
3609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3610 ;;
3611 sni)
3612 lt_cv_file_magic_cmd='/bin/file'
3613 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3614 lt_cv_file_magic_test_file=/lib/libc.so
3615 ;;
3616 siemens)
3617 lt_cv_deplibs_check_method=pass_all
3618 ;;
3619 esac
3620 ;;
3621
3622 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625 esac
3626
3627 fi
3628 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3629 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3630 file_magic_cmd=$lt_cv_file_magic_cmd
3631 deplibs_check_method=$lt_cv_deplibs_check_method
3632 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3633
3634
3635
3636
3637 # If no C compiler was specified, use CC.
3638 LTCC=${LTCC-"$CC"}
3639
3640 # Allow CC to be a program name with arguments.
3641 compiler=$CC
3642
3643
3644 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3645 if test "${enable_libtool_lock+set}" = set; then
3646 enableval="$enable_libtool_lock"
3647
3648 fi;
3649 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3650
3651 # Some flags need to be propagated to the compiler or linker for good
3652 # libtool support.
3653 case $host in
3654 ia64-*-hpux*)
3655 # Find out which ABI we are using.
3656 echo 'int i;' > conftest.$ac_ext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; then
3662 case `/usr/bin/file conftest.$ac_objext` in
3663 *ELF-32*)
3664 HPUX_IA64_MODE="32"
3665 ;;
3666 *ELF-64*)
3667 HPUX_IA64_MODE="64"
3668 ;;
3669 esac
3670 fi
3671 rm -rf conftest*
3672 ;;
3673 *-*-irix6*)
3674 # Find out which ABI we are using.
3675 echo '#line 3675 "configure"' > conftest.$ac_ext
3676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; then
3681 if test "$lt_cv_prog_gnu_ld" = yes; then
3682 case `/usr/bin/file conftest.$ac_objext` in
3683 *32-bit*)
3684 LD="${LD-ld} -melf32bsmip"
3685 ;;
3686 *N32*)
3687 LD="${LD-ld} -melf32bmipn32"
3688 ;;
3689 *64-bit*)
3690 LD="${LD-ld} -melf64bmip"
3691 ;;
3692 esac
3693 else
3694 case `/usr/bin/file conftest.$ac_objext` in
3695 *32-bit*)
3696 LD="${LD-ld} -32"
3697 ;;
3698 *N32*)
3699 LD="${LD-ld} -n32"
3700 ;;
3701 *64-bit*)
3702 LD="${LD-ld} -64"
3703 ;;
3704 esac
3705 fi
3706 fi
3707 rm -rf conftest*
3708 ;;
3709
3710 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3711 # Find out which ABI we are using.
3712 echo 'int i;' > conftest.$ac_ext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; then
3718 case `/usr/bin/file conftest.o` in
3719 *32-bit*)
3720 case $host in
3721 x86_64-*linux*)
3722 LD="${LD-ld} -m elf_i386"
3723 ;;
3724 ppc64-*linux*|powerpc64-*linux*)
3725 LD="${LD-ld} -m elf32ppclinux"
3726 ;;
3727 s390x-*linux*)
3728 LD="${LD-ld} -m elf_s390"
3729 ;;
3730 sparc64-*linux*)
3731 LD="${LD-ld} -m elf32_sparc"
3732 ;;
3733 esac
3734 ;;
3735 *64-bit*)
3736 case $host in
3737 x86_64-*linux*)
3738 LD="${LD-ld} -m elf_x86_64"
3739 ;;
3740 ppc*-*linux*|powerpc*-*linux*)
3741 LD="${LD-ld} -m elf64ppc"
3742 ;;
3743 s390*-*linux*)
3744 LD="${LD-ld} -m elf64_s390"
3745 ;;
3746 sparc*-*linux*)
3747 LD="${LD-ld} -m elf64_sparc"
3748 ;;
3749 esac
3750 ;;
3751 esac
3752 fi
3753 rm -rf conftest*
3754 ;;
3755
3756 *-*-sco3.2v5*)
3757 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3758 SAVE_CFLAGS="$CFLAGS"
3759 CFLAGS="$CFLAGS -belf"
3760 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3761 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3762 if test "${lt_cv_cc_needs_belf+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 ac_ext=c
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770
3771 cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h. */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3777
3778 int
3779 main ()
3780 {
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.$ac_objext conftest$ac_exeext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3788 (eval $ac_link) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 lt_cv_cc_needs_belf=yes
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 lt_cv_cc_needs_belf=no
3813 fi
3814 rm -f conftest.err conftest.$ac_objext \
3815 conftest$ac_exeext conftest.$ac_ext
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822 fi
3823 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3824 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3825 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3826 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3827 CFLAGS="$SAVE_CFLAGS"
3828 fi
3829 ;;
3830
3831 esac
3832
3833 need_locks="$enable_libtool_lock"
3834
3835
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3842 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3843 # On Suns, sometimes $CPP names a directory.
3844 if test -n "$CPP" && test -d "$CPP"; then
3845 CPP=
3846 fi
3847 if test -z "$CPP"; then
3848 if test "${ac_cv_prog_CPP+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 # Double quotes because CPP needs to be expanded
3852 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3853 do
3854 ac_preproc_ok=false
3855 for ac_c_preproc_warn_flag in '' yes
3856 do
3857 # Use a header file that comes with gcc, so configuring glibc
3858 # with a fresh cross-compiler works.
3859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 # <limits.h> exists even on freestanding compilers.
3861 # On the NeXT, cc -E runs the code through the compiler's parser,
3862 # not just through cpp. "Syntax error" is here to catch this case.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #ifdef __STDC__
3870 # include <limits.h>
3871 #else
3872 # include <assert.h>
3873 #endif
3874 Syntax error
3875 _ACEOF
3876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } >/dev/null; then
3884 if test -s conftest.err; then
3885 ac_cpp_err=$ac_c_preproc_warn_flag
3886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3887 else
3888 ac_cpp_err=
3889 fi
3890 else
3891 ac_cpp_err=yes
3892 fi
3893 if test -z "$ac_cpp_err"; then
3894 :
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 # Broken: fails on valid input.
3900 continue
3901 fi
3902 rm -f conftest.err conftest.$ac_ext
3903
3904 # OK, works on sane cases. Now check whether non-existent headers
3905 # can be detected and how.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 #include <ac_nonexistent.h>
3913 _ACEOF
3914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null; then
3922 if test -s conftest.err; then
3923 ac_cpp_err=$ac_c_preproc_warn_flag
3924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3925 else
3926 ac_cpp_err=
3927 fi
3928 else
3929 ac_cpp_err=yes
3930 fi
3931 if test -z "$ac_cpp_err"; then
3932 # Broken: success on invalid input.
3933 continue
3934 else
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938 # Passes both tests.
3939 ac_preproc_ok=:
3940 break
3941 fi
3942 rm -f conftest.err conftest.$ac_ext
3943
3944 done
3945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3946 rm -f conftest.err conftest.$ac_ext
3947 if $ac_preproc_ok; then
3948 break
3949 fi
3950
3951 done
3952 ac_cv_prog_CPP=$CPP
3953
3954 fi
3955 CPP=$ac_cv_prog_CPP
3956 else
3957 ac_cv_prog_CPP=$CPP
3958 fi
3959 echo "$as_me:$LINENO: result: $CPP" >&5
3960 echo "${ECHO_T}$CPP" >&6
3961 ac_preproc_ok=false
3962 for ac_c_preproc_warn_flag in '' yes
3963 do
3964 # Use a header file that comes with gcc, so configuring glibc
3965 # with a fresh cross-compiler works.
3966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3967 # <limits.h> exists even on freestanding compilers.
3968 # On the NeXT, cc -E runs the code through the compiler's parser,
3969 # not just through cpp. "Syntax error" is here to catch this case.
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 #ifdef __STDC__
3977 # include <limits.h>
3978 #else
3979 # include <assert.h>
3980 #endif
3981 Syntax error
3982 _ACEOF
3983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } >/dev/null; then
3991 if test -s conftest.err; then
3992 ac_cpp_err=$ac_c_preproc_warn_flag
3993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3994 else
3995 ac_cpp_err=
3996 fi
3997 else
3998 ac_cpp_err=yes
3999 fi
4000 if test -z "$ac_cpp_err"; then
4001 :
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 # Broken: fails on valid input.
4007 continue
4008 fi
4009 rm -f conftest.err conftest.$ac_ext
4010
4011 # OK, works on sane cases. Now check whether non-existent headers
4012 # can be detected and how.
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019 #include <ac_nonexistent.h>
4020 _ACEOF
4021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } >/dev/null; then
4029 if test -s conftest.err; then
4030 ac_cpp_err=$ac_c_preproc_warn_flag
4031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4032 else
4033 ac_cpp_err=
4034 fi
4035 else
4036 ac_cpp_err=yes
4037 fi
4038 if test -z "$ac_cpp_err"; then
4039 # Broken: success on invalid input.
4040 continue
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 # Passes both tests.
4046 ac_preproc_ok=:
4047 break
4048 fi
4049 rm -f conftest.err conftest.$ac_ext
4050
4051 done
4052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4053 rm -f conftest.err conftest.$ac_ext
4054 if $ac_preproc_ok; then
4055 :
4056 else
4057 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4058 See \`config.log' for more details." >&5
4059 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4060 See \`config.log' for more details." >&2;}
4061 { (exit 1); exit 1; }; }
4062 fi
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069
4070
4071 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4073 if test "${ac_cv_header_stdc+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 #include <stdlib.h>
4083 #include <stdarg.h>
4084 #include <string.h>
4085 #include <float.h>
4086
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 (eval $ac_try) 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest.$ac_objext'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 (eval $ac_try) 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_cv_header_stdc=yes
4117 else
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121 ac_cv_header_stdc=no
4122 fi
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124
4125 if test $ac_cv_header_stdc = yes; then
4126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 #include <string.h>
4134
4135 _ACEOF
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "memchr" >/dev/null 2>&1; then
4138 :
4139 else
4140 ac_cv_header_stdc=no
4141 fi
4142 rm -f conftest*
4143
4144 fi
4145
4146 if test $ac_cv_header_stdc = yes; then
4147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h. */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 #include <stdlib.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "free" >/dev/null 2>&1; then
4159 :
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4169 if test "$cross_compiling" = yes; then
4170 :
4171 else
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h. */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <ctype.h>
4179 #if ((' ' & 0x0FF) == 0x020)
4180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4182 #else
4183 # define ISLOWER(c) \
4184 (('a' <= (c) && (c) <= 'i') \
4185 || ('j' <= (c) && (c) <= 'r') \
4186 || ('s' <= (c) && (c) <= 'z'))
4187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4188 #endif
4189
4190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4191 int
4192 main ()
4193 {
4194 int i;
4195 for (i = 0; i < 256; i++)
4196 if (XOR (islower (i), ISLOWER (i))
4197 || toupper (i) != TOUPPER (i))
4198 exit(2);
4199 exit (0);
4200 }
4201 _ACEOF
4202 rm -f conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 :
4214 else
4215 echo "$as_me: program exited with status $ac_status" >&5
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ( exit $ac_status )
4220 ac_cv_header_stdc=no
4221 fi
4222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 fi
4225 fi
4226 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4227 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4228 if test $ac_cv_header_stdc = yes; then
4229
4230 cat >>confdefs.h <<\_ACEOF
4231 #define STDC_HEADERS 1
4232 _ACEOF
4233
4234 fi
4235
4236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4247 inttypes.h stdint.h unistd.h
4248 do
4249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4250 echo "$as_me:$LINENO: checking for $ac_header" >&5
4251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 $ac_includes_default
4262
4263 #include <$ac_header>
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 eval "$as_ac_Header=yes"
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 eval "$as_ac_Header=no"
4292 fi
4293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4294 fi
4295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4298 cat >>confdefs.h <<_ACEOF
4299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4300 _ACEOF
4301
4302 fi
4303
4304 done
4305
4306
4307
4308 for ac_header in dlfcn.h
4309 do
4310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4312 echo "$as_me:$LINENO: checking for $ac_header" >&5
4313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 fi
4317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319 else
4320 # Is the header compilable?
4321 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 $ac_includes_default
4330 #include <$ac_header>
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>conftest.er1
4335 ac_status=$?
4336 grep -v '^ *+' conftest.er1 >conftest.err
4337 rm -f conftest.er1
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; } &&
4347 { ac_try='test -s conftest.$ac_objext'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_header_compiler=yes
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 ac_header_compiler=no
4359 fi
4360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4362 echo "${ECHO_T}$ac_header_compiler" >&6
4363
4364 # Is the header present?
4365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <$ac_header>
4374 _ACEOF
4375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null; then
4383 if test -s conftest.err; then
4384 ac_cpp_err=$ac_c_preproc_warn_flag
4385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4386 else
4387 ac_cpp_err=
4388 fi
4389 else
4390 ac_cpp_err=yes
4391 fi
4392 if test -z "$ac_cpp_err"; then
4393 ac_header_preproc=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_header_preproc=no
4399 fi
4400 rm -f conftest.err conftest.$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4402 echo "${ECHO_T}$ac_header_preproc" >&6
4403
4404 # So? What about this header?
4405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4406 yes:no: )
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4411 ac_header_preproc=yes
4412 ;;
4413 no:yes:* )
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4426 (
4427 cat <<\_ASBOX
4428 ## ------------------------------------------- ##
4429 ## Report this to [email protected] ##
4430 ## ------------------------------------------- ##
4431 _ASBOX
4432 ) |
4433 sed "s/^/$as_me: WARNING: /" >&2
4434 ;;
4435 esac
4436 echo "$as_me:$LINENO: checking for $ac_header" >&5
4437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 eval "$as_ac_Header=\$ac_header_preproc"
4442 fi
4443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4445
4446 fi
4447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4448 cat >>confdefs.h <<_ACEOF
4449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4450 _ACEOF
4451
4452 fi
4453
4454 done
4455
4456 ac_ext=cc
4457 ac_cpp='$CXXCPP $CPPFLAGS'
4458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4461 if test -n "$ac_tool_prefix"; then
4462 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4463 do
4464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4466 echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468 if test "${ac_cv_prog_CXX+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 if test -n "$CXX"; then
4472 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485 done
4486 done
4487
4488 fi
4489 fi
4490 CXX=$ac_cv_prog_CXX
4491 if test -n "$CXX"; then
4492 echo "$as_me:$LINENO: result: $CXX" >&5
4493 echo "${ECHO_T}$CXX" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4497 fi
4498
4499 test -n "$CXX" && break
4500 done
4501 fi
4502 if test -z "$CXX"; then
4503 ac_ct_CXX=$CXX
4504 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4505 do
4506 # Extract the first word of "$ac_prog", so it can be a program name with args.
4507 set dummy $ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 if test -n "$ac_ct_CXX"; then
4514 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_ac_ct_CXX="$ac_prog"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4526 fi
4527 done
4528 done
4529
4530 fi
4531 fi
4532 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4533 if test -n "$ac_ct_CXX"; then
4534 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4535 echo "${ECHO_T}$ac_ct_CXX" >&6
4536 else
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539 fi
4540
4541 test -n "$ac_ct_CXX" && break
4542 done
4543 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4544
4545 CXX=$ac_ct_CXX
4546 fi
4547
4548
4549 # Provide some information about the compiler.
4550 echo "$as_me:$LINENO:" \
4551 "checking for C++ compiler version" >&5
4552 ac_compiler=`set X $ac_compile; echo $2`
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4554 (eval $ac_compiler --version </dev/null >&5) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }
4558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4559 (eval $ac_compiler -v </dev/null >&5) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }
4563 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4564 (eval $ac_compiler -V </dev/null >&5) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }
4568
4569 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4570 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4571 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580
4581 int
4582 main ()
4583 {
4584 #ifndef __GNUC__
4585 choke me
4586 #endif
4587
4588 ;
4589 return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_compiler_gnu=yes
4614 else
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_compiler_gnu=no
4619 fi
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4622
4623 fi
4624 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4625 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4626 GXX=`test $ac_compiler_gnu = yes && echo yes`
4627 ac_test_CXXFLAGS=${CXXFLAGS+set}
4628 ac_save_CXXFLAGS=$CXXFLAGS
4629 CXXFLAGS="-g"
4630 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4631 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4632 if test "${ac_cv_prog_cxx_g+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641
4642 int
4643 main ()
4644 {
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_prog_cxx_g=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 ac_cv_prog_cxx_g=no
4677 fi
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679 fi
4680 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4681 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4682 if test "$ac_test_CXXFLAGS" = set; then
4683 CXXFLAGS=$ac_save_CXXFLAGS
4684 elif test $ac_cv_prog_cxx_g = yes; then
4685 if test "$GXX" = yes; then
4686 CXXFLAGS="-g -O2"
4687 else
4688 CXXFLAGS="-g"
4689 fi
4690 else
4691 if test "$GXX" = yes; then
4692 CXXFLAGS="-O2"
4693 else
4694 CXXFLAGS=
4695 fi
4696 fi
4697 for ac_declaration in \
4698 '' \
4699 'extern "C" void std::exit (int) throw (); using std::exit;' \
4700 'extern "C" void std::exit (int); using std::exit;' \
4701 'extern "C" void exit (int) throw ();' \
4702 'extern "C" void exit (int);' \
4703 'void exit (int);'
4704 do
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_declaration
4712 #include <stdlib.h>
4713 int
4714 main ()
4715 {
4716 exit (42);
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 :
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 continue
4748 fi
4749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_declaration
4757 int
4758 main ()
4759 {
4760 exit (42);
4761 ;
4762 return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 break
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 fi
4792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793 done
4794 rm -f conftest*
4795 if test -n "$ac_declaration"; then
4796 echo '#ifdef __cplusplus' >>confdefs.h
4797 echo $ac_declaration >>confdefs.h
4798 echo '#endif' >>confdefs.h
4799 fi
4800
4801 ac_ext=cc
4802 ac_cpp='$CXXCPP $CPPFLAGS'
4803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4806
4807 depcc="$CXX" am_compiler_list=
4808
4809 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4810 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4811 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4815 # We make a subdir and do the tests there. Otherwise we can end up
4816 # making bogus files that we don't know about and never remove. For
4817 # instance it was reported that on HP-UX the gcc test will end up
4818 # making a dummy file named `D' -- because `-MD' means `put the output
4819 # in D'.
4820 mkdir conftest.dir
4821 # Copy depcomp to subdir because otherwise we won't find it if we're
4822 # using a relative directory.
4823 cp "$am_depcomp" conftest.dir
4824 cd conftest.dir
4825 # We will build objects and dependencies in a subdirectory because
4826 # it helps to detect inapplicable dependency modes. For instance
4827 # both Tru64's cc and ICC support -MD to output dependencies as a
4828 # side effect of compilation, but ICC will put the dependencies in
4829 # the current directory while Tru64 will put them in the object
4830 # directory.
4831 mkdir sub
4832
4833 am_cv_CXX_dependencies_compiler_type=none
4834 if test "$am_compiler_list" = ""; then
4835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4836 fi
4837 for depmode in $am_compiler_list; do
4838 # Setup a source with many dependencies, because some compilers
4839 # like to wrap large dependency lists on column 80 (with \), and
4840 # we should not choose a depcomp mode which is confused by this.
4841 #
4842 # We need to recreate these files for each test, as the compiler may
4843 # overwrite some of them when testing with obscure command lines.
4844 # This happens at least with the AIX C compiler.
4845 : > sub/conftest.c
4846 for i in 1 2 3 4 5 6; do
4847 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4848 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4849 # Solaris 8's {/usr,}/bin/sh.
4850 touch sub/conftst$i.h
4851 done
4852 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4853
4854 case $depmode in
4855 nosideeffect)
4856 # after this tag, mechanisms are not by side-effect, so they'll
4857 # only be used when explicitly requested
4858 if test "x$enable_dependency_tracking" = xyes; then
4859 continue
4860 else
4861 break
4862 fi
4863 ;;
4864 none) break ;;
4865 esac
4866 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4867 # mode. It turns out that the SunPro C++ compiler does not properly
4868 # handle `-M -o', and we need to detect this.
4869 if depmode=$depmode \
4870 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4872 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4873 >/dev/null 2>conftest.err &&
4874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4875 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4877 # icc doesn't choke on unknown options, it will just issue warnings
4878 # or remarks (even with -Werror). So we grep stderr for any message
4879 # that says an option was ignored or not supported.
4880 # When given -MP, icc 7.0 and 7.1 complain thusly:
4881 # icc: Command line warning: ignoring option '-M'; no argument required
4882 # The diagnosis changed in icc 8.0:
4883 # icc: Command line remark: option '-MP' not supported
4884 if (grep 'ignoring option' conftest.err ||
4885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4886 am_cv_CXX_dependencies_compiler_type=$depmode
4887 break
4888 fi
4889 fi
4890 done
4891
4892 cd ..
4893 rm -rf conftest.dir
4894 else
4895 am_cv_CXX_dependencies_compiler_type=none
4896 fi
4897
4898 fi
4899 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4900 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4901 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4902
4903
4904
4905 if
4906 test "x$enable_dependency_tracking" != xno \
4907 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4908 am__fastdepCXX_TRUE=
4909 am__fastdepCXX_FALSE='#'
4910 else
4911 am__fastdepCXX_TRUE='#'
4912 am__fastdepCXX_FALSE=
4913 fi
4914
4915
4916
4917
4918 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4919 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4920 (test "X$CXX" != "Xg++"))) ; then
4921 ac_ext=cc
4922 ac_cpp='$CXXCPP $CPPFLAGS'
4923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4926 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4927 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4928 if test -z "$CXXCPP"; then
4929 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 # Double quotes because CXXCPP needs to be expanded
4933 for CXXCPP in "$CXX -E" "/lib/cpp"
4934 do
4935 ac_preproc_ok=false
4936 for ac_cxx_preproc_warn_flag in '' yes
4937 do
4938 # Use a header file that comes with gcc, so configuring glibc
4939 # with a fresh cross-compiler works.
4940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4941 # <limits.h> exists even on freestanding compilers.
4942 # On the NeXT, cc -E runs the code through the compiler's parser,
4943 # not just through cpp. "Syntax error" is here to catch this case.
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h. */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955 Syntax error
4956 _ACEOF
4957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_cxx_preproc_warn_flag
4967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4968 else
4969 ac_cpp_err=
4970 fi
4971 else
4972 ac_cpp_err=yes
4973 fi
4974 if test -z "$ac_cpp_err"; then
4975 :
4976 else
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 # Broken: fails on valid input.
4981 continue
4982 fi
4983 rm -f conftest.err conftest.$ac_ext
4984
4985 # OK, works on sane cases. Now check whether non-existent headers
4986 # can be detected and how.
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h. */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 #include <ac_nonexistent.h>
4994 _ACEOF
4995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } >/dev/null; then
5003 if test -s conftest.err; then
5004 ac_cpp_err=$ac_cxx_preproc_warn_flag
5005 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5006 else
5007 ac_cpp_err=
5008 fi
5009 else
5010 ac_cpp_err=yes
5011 fi
5012 if test -z "$ac_cpp_err"; then
5013 # Broken: success on invalid input.
5014 continue
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 # Passes both tests.
5020 ac_preproc_ok=:
5021 break
5022 fi
5023 rm -f conftest.err conftest.$ac_ext
5024
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then
5029 break
5030 fi
5031
5032 done
5033 ac_cv_prog_CXXCPP=$CXXCPP
5034
5035 fi
5036 CXXCPP=$ac_cv_prog_CXXCPP
5037 else
5038 ac_cv_prog_CXXCPP=$CXXCPP
5039 fi
5040 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5041 echo "${ECHO_T}$CXXCPP" >&6
5042 ac_preproc_ok=false
5043 for ac_cxx_preproc_warn_flag in '' yes
5044 do
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #ifdef __STDC__
5058 # include <limits.h>
5059 #else
5060 # include <assert.h>
5061 #endif
5062 Syntax error
5063 _ACEOF
5064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null; then
5072 if test -s conftest.err; then
5073 ac_cpp_err=$ac_cxx_preproc_warn_flag
5074 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5075 else
5076 ac_cpp_err=
5077 fi
5078 else
5079 ac_cpp_err=yes
5080 fi
5081 if test -z "$ac_cpp_err"; then
5082 :
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 # Broken: fails on valid input.
5088 continue
5089 fi
5090 rm -f conftest.err conftest.$ac_ext
5091
5092 # OK, works on sane cases. Now check whether non-existent headers
5093 # can be detected and how.
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 #include <ac_nonexistent.h>
5101 _ACEOF
5102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } >/dev/null; then
5110 if test -s conftest.err; then
5111 ac_cpp_err=$ac_cxx_preproc_warn_flag
5112 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5113 else
5114 ac_cpp_err=
5115 fi
5116 else
5117 ac_cpp_err=yes
5118 fi
5119 if test -z "$ac_cpp_err"; then
5120 # Broken: success on invalid input.
5121 continue
5122 else
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 # Passes both tests.
5127 ac_preproc_ok=:
5128 break
5129 fi
5130 rm -f conftest.err conftest.$ac_ext
5131
5132 done
5133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5134 rm -f conftest.err conftest.$ac_ext
5135 if $ac_preproc_ok; then
5136 :
5137 else
5138 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139 See \`config.log' for more details." >&5
5140 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5141 See \`config.log' for more details." >&2;}
5142 { (exit 1); exit 1; }; }
5143 fi
5144
5145 ac_ext=cc
5146 ac_cpp='$CXXCPP $CPPFLAGS'
5147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5150
5151 fi
5152
5153
5154 ac_ext=f
5155 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5156 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5158 if test -n "$ac_tool_prefix"; then
5159 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5160 do
5161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163 echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165 if test "${ac_cv_prog_F77+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 if test -n "$F77"; then
5169 ac_cv_prog_F77="$F77" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184
5185 fi
5186 fi
5187 F77=$ac_cv_prog_F77
5188 if test -n "$F77"; then
5189 echo "$as_me:$LINENO: result: $F77" >&5
5190 echo "${ECHO_T}$F77" >&6
5191 else
5192 echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5194 fi
5195
5196 test -n "$F77" && break
5197 done
5198 fi
5199 if test -z "$F77"; then
5200 ac_ct_F77=$F77
5201 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5202 do
5203 # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$ac_ct_F77"; then
5211 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_F77="$ac_prog"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226
5227 fi
5228 fi
5229 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5230 if test -n "$ac_ct_F77"; then
5231 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5232 echo "${ECHO_T}$ac_ct_F77" >&6
5233 else
5234 echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6
5236 fi
5237
5238 test -n "$ac_ct_F77" && break
5239 done
5240
5241 F77=$ac_ct_F77
5242 fi
5243
5244
5245 # Provide some information about the compiler.
5246 echo "$as_me:5246:" \
5247 "checking for Fortran 77 compiler version" >&5
5248 ac_compiler=`set X $ac_compile; echo $2`
5249 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5250 (eval $ac_compiler --version </dev/null >&5) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }
5254 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5255 (eval $ac_compiler -v </dev/null >&5) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5260 (eval $ac_compiler -V </dev/null >&5) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264 rm -f a.out
5265
5266 # If we don't use `.F' as extension, the preprocessor is not run on the
5267 # input file. (Note that this only needs to work for GNU compilers.)
5268 ac_save_ext=$ac_ext
5269 ac_ext=F
5270 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5271 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5272 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 cat >conftest.$ac_ext <<_ACEOF
5276 program main
5277 #ifndef __GNUC__
5278 choke me
5279 #endif
5280
5281 end
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 ac_compiler_gnu=yes
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309 ac_compiler_gnu=no
5310 fi
5311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5312 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5313
5314 fi
5315 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5316 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5317 ac_ext=$ac_save_ext
5318 ac_test_FFLAGS=${FFLAGS+set}
5319 ac_save_FFLAGS=$FFLAGS
5320 FFLAGS=
5321 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5322 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5323 if test "${ac_cv_prog_f77_g+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 FFLAGS=-g
5327 cat >conftest.$ac_ext <<_ACEOF
5328 program main
5329
5330 end
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_prog_f77_g=yes
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ac_cv_prog_f77_g=no
5359 fi
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361
5362 fi
5363 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365 if test "$ac_test_FFLAGS" = set; then
5366 FFLAGS=$ac_save_FFLAGS
5367 elif test $ac_cv_prog_f77_g = yes; then
5368 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5369 FFLAGS="-g -O2"
5370 else
5371 FFLAGS="-g"
5372 fi
5373 else
5374 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5375 FFLAGS="-O2"
5376 else
5377 FFLAGS=
5378 fi
5379 fi
5380
5381 G77=`test $ac_compiler_gnu = yes && echo yes`
5382 ac_ext=c
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389
5390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5391
5392 # find the maximum length of command line arguments
5393 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 i=0
5399 teststring="ABCD"
5400
5401 case $build_os in
5402 msdosdjgpp*)
5403 # On DJGPP, this test can blow up pretty badly due to problems in libc
5404 # (any single argument exceeding 2000 bytes causes a buffer overrun
5405 # during glob expansion). Even if it were fixed, the result of this
5406 # check would be larger than it should be.
5407 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5408 ;;
5409
5410 gnu*)
5411 # Under GNU Hurd, this test is not required because there is
5412 # no limit to the length of command line arguments.
5413 # Libtool will interpret -1 as no limit whatsoever
5414 lt_cv_sys_max_cmd_len=-1;
5415 ;;
5416
5417 cygwin* | mingw*)
5418 # On Win9x/ME, this test blows up -- it succeeds, but takes
5419 # about 5 minutes as the teststring grows exponentially.
5420 # Worse, since 9x/ME are not pre-emptively multitasking,
5421 # you end up with a "frozen" computer, even though with patience
5422 # the test eventually succeeds (with a max line length of 256k).
5423 # Instead, let's just punt: use the minimum linelength reported by
5424 # all of the supported platforms: 8192 (on NT/2K/XP).
5425 lt_cv_sys_max_cmd_len=8192;
5426 ;;
5427
5428 amigaos*)
5429 # On AmigaOS with pdksh, this test takes hours, literally.
5430 # So we just punt and use a minimum line length of 8192.
5431 lt_cv_sys_max_cmd_len=8192;
5432 ;;
5433
5434 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5435 # This has been around since 386BSD, at least. Likely further.
5436 if test -x /sbin/sysctl; then
5437 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5438 elif test -x /usr/sbin/sysctl; then
5439 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5440 else
5441 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5442 fi
5443 # And add a safety zone
5444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5446 ;;
5447 osf*)
5448 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5449 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5450 # nice to cause kernel panics so lets avoid the loop below.
5451 # First set a reasonable default.
5452 lt_cv_sys_max_cmd_len=16384
5453 #
5454 if test -x /sbin/sysconfig; then
5455 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5456 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5457 esac
5458 fi
5459 ;;
5460 *)
5461 # If test is not a shell built-in, we'll probably end up computing a
5462 # maximum length that is only half of the actual maximum length, but
5463 # we can't tell.
5464 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5466 = "XX$teststring") >/dev/null 2>&1 &&
5467 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5468 lt_cv_sys_max_cmd_len=$new_result &&
5469 test $i != 17 # 1/2 MB should be enough
5470 do
5471 i=`expr $i + 1`
5472 teststring=$teststring$teststring
5473 done
5474 teststring=
5475 # Add a significant safety factor because C++ compilers can tack on massive
5476 # amounts of additional arguments before passing them to the linker.
5477 # It appears as though 1/2 is a usable value.
5478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479 ;;
5480 esac
5481
5482 fi
5483
5484 if test -n $lt_cv_sys_max_cmd_len ; then
5485 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5486 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5487 else
5488 echo "$as_me:$LINENO: result: none" >&5
5489 echo "${ECHO_T}none" >&6
5490 fi
5491
5492
5493
5494
5495 # Check for command to grab the raw symbol name followed by C symbol from nm.
5496 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5497 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5498 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501
5502 # These are sane defaults that work on at least a few old systems.
5503 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5504
5505 # Character class describing NM global symbol codes.
5506 symcode='[BCDEGRST]'
5507
5508 # Regexp to match symbols that can be accessed directly from C.
5509 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5510
5511 # Transform an extracted symbol line into a proper C declaration
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
5514 # Transform an extracted symbol line into symbol name and symbol address
5515 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'"
5516
5517 # Define system-specific variables.
5518 case $host_os in
5519 aix*)
5520 symcode='[BCDT]'
5521 ;;
5522 cygwin* | mingw* | pw32*)
5523 symcode='[ABCDGISTW]'
5524 ;;
5525 hpux*) # Its linker distinguishes data from code symbols
5526 if test "$host_cpu" = ia64; then
5527 symcode='[ABCDEGRST]'
5528 fi
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530 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'"
5531 ;;
5532 linux*)
5533 if test "$host_cpu" = ia64; then
5534 symcode='[ABCDGIRSTW]'
5535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536 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'"
5537 fi
5538 ;;
5539 irix* | nonstopux*)
5540 symcode='[BCDEGRST]'
5541 ;;
5542 osf*)
5543 symcode='[BCDEGQRST]'
5544 ;;
5545 solaris* | sysv5*)
5546 symcode='[BDRT]'
5547 ;;
5548 sysv4)
5549 symcode='[DFNSTU]'
5550 ;;
5551 esac
5552
5553 # Handle CRLF in mingw tool chain
5554 opt_cr=
5555 case $build_os in
5556 mingw*)
5557 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5558 ;;
5559 esac
5560
5561 # If we're using GNU nm, then use its standard symbol codes.
5562 case `$NM -V 2>&1` in
5563 *GNU* | *'with BFD'*)
5564 symcode='[ABCDGIRSTW]' ;;
5565 esac
5566
5567 # Try without a prefix undercore, then with it.
5568 for ac_symprfx in "" "_"; do
5569
5570 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5571 symxfrm="\\1 $ac_symprfx\\2 \\2"
5572
5573 # Write the raw and C identifiers.
5574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5575
5576 # Check to see that the pipe works correctly.
5577 pipe_works=no
5578
5579 rm -f conftest*
5580 cat > conftest.$ac_ext <<EOF
5581 #ifdef __cplusplus
5582 extern "C" {
5583 #endif
5584 char nm_test_var;
5585 void nm_test_func(){}
5586 #ifdef __cplusplus
5587 }
5588 #endif
5589 int main(){nm_test_var='a';nm_test_func();return(0);}
5590 EOF
5591
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; then
5597 # Now try to grab the symbols.
5598 nlist=conftest.nm
5599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && test -s "$nlist"; then
5604 # Try sorting and uniquifying the output.
5605 if sort "$nlist" | uniq > "$nlist"T; then
5606 mv -f "$nlist"T "$nlist"
5607 else
5608 rm -f "$nlist"T
5609 fi
5610
5611 # Make sure that we snagged all the symbols we need.
5612 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614 cat <<EOF > conftest.$ac_ext
5615 #ifdef __cplusplus
5616 extern "C" {
5617 #endif
5618
5619 EOF
5620 # Now generate the symbol file.
5621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5622
5623 cat <<EOF >> conftest.$ac_ext
5624 #if defined (__STDC__) && __STDC__
5625 # define lt_ptr_t void *
5626 #else
5627 # define lt_ptr_t char *
5628 # define const
5629 #endif
5630
5631 /* The mapping between symbol names and symbols. */
5632 const struct {
5633 const char *name;
5634 lt_ptr_t address;
5635 }
5636 lt_preloaded_symbols[] =
5637 {
5638 EOF
5639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640 cat <<\EOF >> conftest.$ac_ext
5641 {0, (lt_ptr_t) 0}
5642 };
5643
5644 #ifdef __cplusplus
5645 }
5646 #endif
5647 EOF
5648 # Now try linking the two files.
5649 mv conftest.$ac_objext conftstm.$ac_objext
5650 lt_save_LIBS="$LIBS"
5651 lt_save_CFLAGS="$CFLAGS"
5652 LIBS="conftstm.$ac_objext"
5653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5659 pipe_works=yes
5660 fi
5661 LIBS="$lt_save_LIBS"
5662 CFLAGS="$lt_save_CFLAGS"
5663 else
5664 echo "cannot find nm_test_func in $nlist" >&5
5665 fi
5666 else
5667 echo "cannot find nm_test_var in $nlist" >&5
5668 fi
5669 else
5670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5671 fi
5672 else
5673 echo "$progname: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 fi
5676 rm -f conftest* conftst*
5677
5678 # Do not use the global_symbol_pipe unless it works.
5679 if test "$pipe_works" = yes; then
5680 break
5681 else
5682 lt_cv_sys_global_symbol_pipe=
5683 fi
5684 done
5685
5686 fi
5687
5688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689 lt_cv_sys_global_symbol_to_cdecl=
5690 fi
5691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692 echo "$as_me:$LINENO: result: failed" >&5
5693 echo "${ECHO_T}failed" >&6
5694 else
5695 echo "$as_me:$LINENO: result: ok" >&5
5696 echo "${ECHO_T}ok" >&6
5697 fi
5698
5699 echo "$as_me:$LINENO: checking for objdir" >&5
5700 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701 if test "${lt_cv_objdir+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 rm -f .libs 2>/dev/null
5705 mkdir .libs 2>/dev/null
5706 if test -d .libs; then
5707 lt_cv_objdir=.libs
5708 else
5709 # MS-DOS does not allow filenames that begin with a dot.
5710 lt_cv_objdir=_libs
5711 fi
5712 rmdir .libs 2>/dev/null
5713 fi
5714 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715 echo "${ECHO_T}$lt_cv_objdir" >&6
5716 objdir=$lt_cv_objdir
5717
5718
5719
5720
5721
5722 case $host_os in
5723 aix3*)
5724 # AIX sometimes has problems with the GCC collect2 program. For some
5725 # reason, if we set the COLLECT_NAMES environment variable, the problems
5726 # vanish in a puff of smoke.
5727 if test "X${COLLECT_NAMES+set}" != Xset; then
5728 COLLECT_NAMES=
5729 export COLLECT_NAMES
5730 fi
5731 ;;
5732 esac
5733
5734 # Sed substitution that helps us do robust quoting. It backslashifies
5735 # metacharacters that are still active within double-quoted strings.
5736 Xsed='sed -e 1s/^X//'
5737 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5738
5739 # Same as above, but do not quote variable references.
5740 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5741
5742 # Sed substitution to delay expansion of an escaped shell variable in a
5743 # double_quote_subst'ed string.
5744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5745
5746 # Sed substitution to avoid accidental globbing in evaled expressions
5747 no_glob_subst='s/\*/\\\*/g'
5748
5749 # Constants:
5750 rm="rm -f"
5751
5752 # Global variables:
5753 default_ofile=libtool
5754 can_build_shared=yes
5755
5756 # All known linkers require a `.a' archive for static linking (except MSVC,
5757 # which needs '.lib').
5758 libext=a
5759 ltmain="$ac_aux_dir/ltmain.sh"
5760 ofile="$default_ofile"
5761 with_gnu_ld="$lt_cv_prog_gnu_ld"
5762
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}ar; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_AR+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 if test -n "$AR"; then
5772 ac_cv_prog_AR="$AR" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_AR="${ac_tool_prefix}ar"
5782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785 done
5786 done
5787
5788 fi
5789 fi
5790 AR=$ac_cv_prog_AR
5791 if test -n "$AR"; then
5792 echo "$as_me:$LINENO: result: $AR" >&5
5793 echo "${ECHO_T}$AR" >&6
5794 else
5795 echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799 fi
5800 if test -z "$ac_cv_prog_AR"; then
5801 ac_ct_AR=$AR
5802 # Extract the first word of "ar", so it can be a program name with args.
5803 set dummy ar; ac_word=$2
5804 echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 if test -n "$ac_ct_AR"; then
5810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_AR="ar"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825
5826 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5827 fi
5828 fi
5829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830 if test -n "$ac_ct_AR"; then
5831 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832 echo "${ECHO_T}$ac_ct_AR" >&6
5833 else
5834 echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5836 fi
5837
5838 AR=$ac_ct_AR
5839 else
5840 AR="$ac_cv_prog_AR"
5841 fi
5842
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_RANLIB+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 if test -n "$RANLIB"; then
5852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865 done
5866 done
5867
5868 fi
5869 fi
5870 RANLIB=$ac_cv_prog_RANLIB
5871 if test -n "$RANLIB"; then
5872 echo "$as_me:$LINENO: result: $RANLIB" >&5
5873 echo "${ECHO_T}$RANLIB" >&6
5874 else
5875 echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877 fi
5878
5879 fi
5880 if test -z "$ac_cv_prog_RANLIB"; then
5881 ac_ct_RANLIB=$RANLIB
5882 # Extract the first word of "ranlib", so it can be a program name with args.
5883 set dummy ranlib; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 if test -n "$ac_ct_RANLIB"; then
5890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_ac_ct_RANLIB="ranlib"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903 done
5904 done
5905
5906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5907 fi
5908 fi
5909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910 if test -n "$ac_ct_RANLIB"; then
5911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5913 else
5914 echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5916 fi
5917
5918 RANLIB=$ac_ct_RANLIB
5919 else
5920 RANLIB="$ac_cv_prog_RANLIB"
5921 fi
5922
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_STRIP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 if test -n "$STRIP"; then
5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947
5948 fi
5949 fi
5950 STRIP=$ac_cv_prog_STRIP
5951 if test -n "$STRIP"; then
5952 echo "$as_me:$LINENO: result: $STRIP" >&5
5953 echo "${ECHO_T}$STRIP" >&6
5954 else
5955 echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 fi
5958
5959 fi
5960 if test -z "$ac_cv_prog_STRIP"; then
5961 ac_ct_STRIP=$STRIP
5962 # Extract the first word of "strip", so it can be a program name with args.
5963 set dummy strip; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 if test -n "$ac_ct_STRIP"; then
5970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_STRIP="strip"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983 done
5984 done
5985
5986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5987 fi
5988 fi
5989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990 if test -n "$ac_ct_STRIP"; then
5991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992 echo "${ECHO_T}$ac_ct_STRIP" >&6
5993 else
5994 echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5996 fi
5997
5998 STRIP=$ac_ct_STRIP
5999 else
6000 STRIP="$ac_cv_prog_STRIP"
6001 fi
6002
6003
6004 old_CC="$CC"
6005 old_CFLAGS="$CFLAGS"
6006
6007 # Set sane defaults for various variables
6008 test -z "$AR" && AR=ar
6009 test -z "$AR_FLAGS" && AR_FLAGS=cru
6010 test -z "$AS" && AS=as
6011 test -z "$CC" && CC=cc
6012 test -z "$LTCC" && LTCC=$CC
6013 test -z "$DLLTOOL" && DLLTOOL=dlltool
6014 test -z "$LD" && LD=ld
6015 test -z "$LN_S" && LN_S="ln -s"
6016 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017 test -z "$NM" && NM=nm
6018 test -z "$SED" && SED=sed
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6020 test -z "$RANLIB" && RANLIB=:
6021 test -z "$STRIP" && STRIP=:
6022 test -z "$ac_objext" && ac_objext=o
6023
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6028
6029 if test -n "$RANLIB"; then
6030 case $host_os in
6031 openbsd*)
6032 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6033 ;;
6034 *)
6035 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6036 ;;
6037 esac
6038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6039 fi
6040
6041 for cc_temp in $compiler""; do
6042 case $cc_temp in
6043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6045 \-*) ;;
6046 *) break;;
6047 esac
6048 done
6049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6050
6051
6052 # Only perform the check for file, if the check method requires it
6053 case $deplibs_check_method in
6054 file_magic*)
6055 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6056 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6057 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 case $MAGIC_CMD in
6062 [\\/*] | ?:[\\/]*)
6063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6064 ;;
6065 *)
6066 lt_save_MAGIC_CMD="$MAGIC_CMD"
6067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6069 for ac_dir in $ac_dummy; do
6070 IFS="$lt_save_ifs"
6071 test -z "$ac_dir" && ac_dir=.
6072 if test -f $ac_dir/${ac_tool_prefix}file; then
6073 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6074 if test -n "$file_magic_test_file"; then
6075 case $deplibs_check_method in
6076 "file_magic "*)
6077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6080 $EGREP "$file_magic_regex" > /dev/null; then
6081 :
6082 else
6083 cat <<EOF 1>&2
6084
6085 *** Warning: the command libtool uses to detect shared libraries,
6086 *** $file_magic_cmd, produces output that libtool cannot recognize.
6087 *** The result is that libtool may fail to recognize shared libraries
6088 *** as such. This will affect the creation of libtool libraries that
6089 *** depend on shared libraries, but programs linked with such libtool
6090 *** libraries will work regardless of this problem. Nevertheless, you
6091 *** may want to report the problem to your system manager and/or to
6092 *** [email protected]
6093
6094 EOF
6095 fi ;;
6096 esac
6097 fi
6098 break
6099 fi
6100 done
6101 IFS="$lt_save_ifs"
6102 MAGIC_CMD="$lt_save_MAGIC_CMD"
6103 ;;
6104 esac
6105 fi
6106
6107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108 if test -n "$MAGIC_CMD"; then
6109 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6110 echo "${ECHO_T}$MAGIC_CMD" >&6
6111 else
6112 echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6114 fi
6115
6116 if test -z "$lt_cv_path_MAGIC_CMD"; then
6117 if test -n "$ac_tool_prefix"; then
6118 echo "$as_me:$LINENO: checking for file" >&5
6119 echo $ECHO_N "checking for file... $ECHO_C" >&6
6120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 case $MAGIC_CMD in
6124 [\\/*] | ?:[\\/]*)
6125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6126 ;;
6127 *)
6128 lt_save_MAGIC_CMD="$MAGIC_CMD"
6129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6131 for ac_dir in $ac_dummy; do
6132 IFS="$lt_save_ifs"
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f $ac_dir/file; then
6135 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6136 if test -n "$file_magic_test_file"; then
6137 case $deplibs_check_method in
6138 "file_magic "*)
6139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6142 $EGREP "$file_magic_regex" > /dev/null; then
6143 :
6144 else
6145 cat <<EOF 1>&2
6146
6147 *** Warning: the command libtool uses to detect shared libraries,
6148 *** $file_magic_cmd, produces output that libtool cannot recognize.
6149 *** The result is that libtool may fail to recognize shared libraries
6150 *** as such. This will affect the creation of libtool libraries that
6151 *** depend on shared libraries, but programs linked with such libtool
6152 *** libraries will work regardless of this problem. Nevertheless, you
6153 *** may want to report the problem to your system manager and/or to
6154 *** [email protected]
6155
6156 EOF
6157 fi ;;
6158 esac
6159 fi
6160 break
6161 fi
6162 done
6163 IFS="$lt_save_ifs"
6164 MAGIC_CMD="$lt_save_MAGIC_CMD"
6165 ;;
6166 esac
6167 fi
6168
6169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170 if test -n "$MAGIC_CMD"; then
6171 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6172 echo "${ECHO_T}$MAGIC_CMD" >&6
6173 else
6174 echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6
6176 fi
6177
6178 else
6179 MAGIC_CMD=:
6180 fi
6181 fi
6182
6183 fi
6184 ;;
6185 esac
6186
6187 enable_dlopen=no
6188 enable_win32_dll=no
6189
6190 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6191 if test "${enable_libtool_lock+set}" = set; then
6192 enableval="$enable_libtool_lock"
6193
6194 fi;
6195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6196
6197
6198 # Check whether --with-pic or --without-pic was given.
6199 if test "${with_pic+set}" = set; then
6200 withval="$with_pic"
6201 pic_mode="$withval"
6202 else
6203 pic_mode=default
6204 fi;
6205 test -z "$pic_mode" && pic_mode=default
6206
6207 # Use C for the default configuration in the libtool script
6208 tagname=
6209 lt_save_CC="$CC"
6210 ac_ext=c
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
6216
6217 # Source file extension for C test sources.
6218 ac_ext=c
6219
6220 # Object file extension for compiled C test sources.
6221 objext=o
6222 objext=$objext
6223
6224 # Code to be used in simple compile tests
6225 lt_simple_compile_test_code="int some_variable = 0;\n"
6226
6227 # Code to be used in simple link tests
6228 lt_simple_link_test_code='int main(){return(0);}\n'
6229
6230
6231 # If no C compiler was specified, use CC.
6232 LTCC=${LTCC-"$CC"}
6233
6234 # Allow CC to be a program name with arguments.
6235 compiler=$CC
6236
6237
6238 # save warnings/boilerplate of simple test code
6239 ac_outfile=conftest.$ac_objext
6240 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6242 _lt_compiler_boilerplate=`cat conftest.err`
6243 $rm conftest*
6244
6245 ac_outfile=conftest.$ac_objext
6246 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6248 _lt_linker_boilerplate=`cat conftest.err`
6249 $rm conftest*
6250
6251
6252 #
6253 # Check for any special shared library compilation flags.
6254 #
6255 lt_prog_cc_shlib=
6256 if test "$GCC" = no; then
6257 case $host_os in
6258 sco3.2v5*)
6259 lt_prog_cc_shlib='-belf'
6260 ;;
6261 esac
6262 fi
6263 if test -n "$lt_prog_cc_shlib"; then
6264 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6265 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6266 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6267 else
6268 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6269 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6270 lt_cv_prog_cc_can_build_shared=no
6271 fi
6272 fi
6273
6274
6275 #
6276 # Check to make sure the static flag actually works.
6277 #
6278 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6279 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6280 if test "${lt_prog_compiler_static_works+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 lt_prog_compiler_static_works=no
6284 save_LDFLAGS="$LDFLAGS"
6285 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6286 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6288 # The linker can only warn and ignore the option if not recognized
6289 # So say no if there are warnings
6290 if test -s conftest.err; then
6291 # Append any errors to the config.log.
6292 cat conftest.err 1>&5
6293 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6294 $SED '/^$/d' conftest.err >conftest.er2
6295 if diff conftest.exp conftest.er2 >/dev/null; then
6296 lt_prog_compiler_static_works=yes
6297 fi
6298 else
6299 lt_prog_compiler_static_works=yes
6300 fi
6301 fi
6302 $rm conftest*
6303 LDFLAGS="$save_LDFLAGS"
6304
6305 fi
6306 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6307 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6308
6309 if test x"$lt_prog_compiler_static_works" = xyes; then
6310 :
6311 else
6312 lt_prog_compiler_static=
6313 fi
6314
6315
6316
6317
6318 lt_prog_compiler_no_builtin_flag=
6319
6320 if test "$GCC" = yes; then
6321 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6322
6323
6324 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6325 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 lt_cv_prog_compiler_rtti_exceptions=no
6330 ac_outfile=conftest.$ac_objext
6331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6332 lt_compiler_flag="-fno-rtti -fno-exceptions"
6333 # Insert the option either (1) after the last *FLAGS variable, or
6334 # (2) before a word containing "conftest.", or (3) at the end.
6335 # Note that $ac_compile itself does not contain backslashes and begins
6336 # with a dollar sign (not a hyphen), so the echo should work correctly.
6337 # The option is referenced via a variable to avoid confusing sed.
6338 lt_compile=`echo "$ac_compile" | $SED \
6339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6341 -e 's:$: $lt_compiler_flag:'`
6342 (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
6343 (eval "$lt_compile" 2>conftest.err)
6344 ac_status=$?
6345 cat conftest.err >&5
6346 echo "$as_me:6346: \$? = $ac_status" >&5
6347 if (exit $ac_status) && test -s "$ac_outfile"; then
6348 # The compiler can only warn and ignore the option if not recognized
6349 # So say no if there are warnings other than the usual output.
6350 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6351 $SED '/^$/d' conftest.err >conftest.er2
6352 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6353 lt_cv_prog_compiler_rtti_exceptions=yes
6354 fi
6355 fi
6356 $rm conftest*
6357
6358 fi
6359 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6360 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6361
6362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6364 else
6365 :
6366 fi
6367
6368 fi
6369
6370 lt_prog_compiler_wl=
6371 lt_prog_compiler_pic=
6372 lt_prog_compiler_static=
6373
6374 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6376
6377 if test "$GCC" = yes; then
6378 lt_prog_compiler_wl='-Wl,'
6379 lt_prog_compiler_static='-static'
6380
6381 case $host_os in
6382 aix*)
6383 # All AIX code is PIC.
6384 if test "$host_cpu" = ia64; then
6385 # AIX 5 now supports IA64 processor
6386 lt_prog_compiler_static='-Bstatic'
6387 fi
6388 ;;
6389
6390 amigaos*)
6391 # FIXME: we need at least 68020 code to build shared libraries, but
6392 # adding the `-m68020' flag to GCC prevents building anything better,
6393 # like `-m68040'.
6394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6395 ;;
6396
6397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6398 # PIC is the default for these OSes.
6399 ;;
6400
6401 mingw* | pw32* | os2*)
6402 # This hack is so that the source file can tell whether it is being
6403 # built for inclusion in a dll (and should export symbols for example).
6404 lt_prog_compiler_pic='-DDLL_EXPORT'
6405 ;;
6406
6407 darwin* | rhapsody*)
6408 # PIC is the default on this platform
6409 # Common symbols not allowed in MH_DYLIB files
6410 lt_prog_compiler_pic='-fno-common'
6411 ;;
6412
6413 msdosdjgpp*)
6414 # Just because we use GCC doesn't mean we suddenly get shared libraries
6415 # on systems that don't support them.
6416 lt_prog_compiler_can_build_shared=no
6417 enable_shared=no
6418 ;;
6419
6420 sysv4*MP*)
6421 if test -d /usr/nec; then
6422 lt_prog_compiler_pic=-Kconform_pic
6423 fi
6424 ;;
6425
6426 hpux*)
6427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6428 # not for PA HP-UX.
6429 case $host_cpu in
6430 hppa*64*|ia64*)
6431 # +Z the default
6432 ;;
6433 *)
6434 lt_prog_compiler_pic='-fPIC'
6435 ;;
6436 esac
6437 ;;
6438
6439 *)
6440 lt_prog_compiler_pic='-fPIC'
6441 ;;
6442 esac
6443 else
6444 # PORTME Check for flag to pass linker flags through the system compiler.
6445 case $host_os in
6446 aix*)
6447 lt_prog_compiler_wl='-Wl,'
6448 if test "$host_cpu" = ia64; then
6449 # AIX 5 now supports IA64 processor
6450 lt_prog_compiler_static='-Bstatic'
6451 else
6452 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6453 fi
6454 ;;
6455 darwin*)
6456 # PIC is the default on this platform
6457 # Common symbols not allowed in MH_DYLIB files
6458 case $cc_basename in
6459 xlc*)
6460 lt_prog_compiler_pic='-qnocommon'
6461 lt_prog_compiler_wl='-Wl,'
6462 ;;
6463 esac
6464 ;;
6465
6466 mingw* | pw32* | os2*)
6467 # This hack is so that the source file can tell whether it is being
6468 # built for inclusion in a dll (and should export symbols for example).
6469 lt_prog_compiler_pic='-DDLL_EXPORT'
6470 ;;
6471
6472 hpux9* | hpux10* | hpux11*)
6473 lt_prog_compiler_wl='-Wl,'
6474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6475 # not for PA HP-UX.
6476 case $host_cpu in
6477 hppa*64*|ia64*)
6478 # +Z the default
6479 ;;
6480 *)
6481 lt_prog_compiler_pic='+Z'
6482 ;;
6483 esac
6484 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6485 lt_prog_compiler_static='${wl}-a ${wl}archive'
6486 ;;
6487
6488 irix5* | irix6* | nonstopux*)
6489 lt_prog_compiler_wl='-Wl,'
6490 # PIC (with -KPIC) is the default.
6491 lt_prog_compiler_static='-non_shared'
6492 ;;
6493
6494 newsos6)
6495 lt_prog_compiler_pic='-KPIC'
6496 lt_prog_compiler_static='-Bstatic'
6497 ;;
6498
6499 linux*)
6500 case $cc_basename in
6501 icc* | ecc*)
6502 lt_prog_compiler_wl='-Wl,'
6503 lt_prog_compiler_pic='-KPIC'
6504 lt_prog_compiler_static='-static'
6505 ;;
6506 pgcc* | pgf77* | pgf90* | pgf95*)
6507 # Portland Group compilers (*not* the Pentium gcc compiler,
6508 # which looks to be a dead project)
6509 lt_prog_compiler_wl='-Wl,'
6510 lt_prog_compiler_pic='-fpic'
6511 lt_prog_compiler_static='-Bstatic'
6512 ;;
6513 ccc*)
6514 lt_prog_compiler_wl='-Wl,'
6515 # All Alpha code is PIC.
6516 lt_prog_compiler_static='-non_shared'
6517 ;;
6518 esac
6519 ;;
6520
6521 osf3* | osf4* | osf5*)
6522 lt_prog_compiler_wl='-Wl,'
6523 # All OSF/1 code is PIC.
6524 lt_prog_compiler_static='-non_shared'
6525 ;;
6526
6527 sco3.2v5*)
6528 lt_prog_compiler_pic='-Kpic'
6529 lt_prog_compiler_static='-dn'
6530 ;;
6531
6532 solaris*)
6533 lt_prog_compiler_pic='-KPIC'
6534 lt_prog_compiler_static='-Bstatic'
6535 case $cc_basename in
6536 f77* | f90* | f95*)
6537 lt_prog_compiler_wl='-Qoption ld ';;
6538 *)
6539 lt_prog_compiler_wl='-Wl,';;
6540 esac
6541 ;;
6542
6543 sunos4*)
6544 lt_prog_compiler_wl='-Qoption ld '
6545 lt_prog_compiler_pic='-PIC'
6546 lt_prog_compiler_static='-Bstatic'
6547 ;;
6548
6549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6550 lt_prog_compiler_wl='-Wl,'
6551 lt_prog_compiler_pic='-KPIC'
6552 lt_prog_compiler_static='-Bstatic'
6553 ;;
6554
6555 sysv4*MP*)
6556 if test -d /usr/nec ;then
6557 lt_prog_compiler_pic='-Kconform_pic'
6558 lt_prog_compiler_static='-Bstatic'
6559 fi
6560 ;;
6561
6562 unicos*)
6563 lt_prog_compiler_wl='-Wl,'
6564 lt_prog_compiler_can_build_shared=no
6565 ;;
6566
6567 uts4*)
6568 lt_prog_compiler_pic='-pic'
6569 lt_prog_compiler_static='-Bstatic'
6570 ;;
6571
6572 *)
6573 lt_prog_compiler_can_build_shared=no
6574 ;;
6575 esac
6576 fi
6577
6578 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6579 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6580
6581 #
6582 # Check to make sure the PIC flag actually works.
6583 #
6584 if test -n "$lt_prog_compiler_pic"; then
6585
6586 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6587 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6588 if test "${lt_prog_compiler_pic_works+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 lt_prog_compiler_pic_works=no
6592 ac_outfile=conftest.$ac_objext
6593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6595 # Insert the option either (1) after the last *FLAGS variable, or
6596 # (2) before a word containing "conftest.", or (3) at the end.
6597 # Note that $ac_compile itself does not contain backslashes and begins
6598 # with a dollar sign (not a hyphen), so the echo should work correctly.
6599 # The option is referenced via a variable to avoid confusing sed.
6600 lt_compile=`echo "$ac_compile" | $SED \
6601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603 -e 's:$: $lt_compiler_flag:'`
6604 (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
6605 (eval "$lt_compile" 2>conftest.err)
6606 ac_status=$?
6607 cat conftest.err >&5
6608 echo "$as_me:6608: \$? = $ac_status" >&5
6609 if (exit $ac_status) && test -s "$ac_outfile"; then
6610 # The compiler can only warn and ignore the option if not recognized
6611 # So say no if there are warnings other than the usual output.
6612 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6613 $SED '/^$/d' conftest.err >conftest.er2
6614 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6615 lt_prog_compiler_pic_works=yes
6616 fi
6617 fi
6618 $rm conftest*
6619
6620 fi
6621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6622 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6623
6624 if test x"$lt_prog_compiler_pic_works" = xyes; then
6625 case $lt_prog_compiler_pic in
6626 "" | " "*) ;;
6627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6628 esac
6629 else
6630 lt_prog_compiler_pic=
6631 lt_prog_compiler_can_build_shared=no
6632 fi
6633
6634 fi
6635 case $host_os in
6636 # For platforms which do not support PIC, -DPIC is meaningless:
6637 *djgpp*)
6638 lt_prog_compiler_pic=
6639 ;;
6640 *)
6641 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6642 ;;
6643 esac
6644
6645 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 lt_cv_prog_compiler_c_o=no
6651 $rm -r conftest 2>/dev/null
6652 mkdir conftest
6653 cd conftest
6654 mkdir out
6655 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6656
6657 lt_compiler_flag="-o out/conftest2.$ac_objext"
6658 # Insert the option either (1) after the last *FLAGS variable, or
6659 # (2) before a word containing "conftest.", or (3) at the end.
6660 # Note that $ac_compile itself does not contain backslashes and begins
6661 # with a dollar sign (not a hyphen), so the echo should work correctly.
6662 lt_compile=`echo "$ac_compile" | $SED \
6663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6665 -e 's:$: $lt_compiler_flag:'`
6666 (eval echo "\"\$as_me:6666: $lt_compile\"" >&5)
6667 (eval "$lt_compile" 2>out/conftest.err)
6668 ac_status=$?
6669 cat out/conftest.err >&5
6670 echo "$as_me:6670: \$? = $ac_status" >&5
6671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6672 then
6673 # The compiler can only warn and ignore the option if not recognized
6674 # So say no if there are warnings
6675 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6676 $SED '/^$/d' out/conftest.err >out/conftest.er2
6677 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6678 lt_cv_prog_compiler_c_o=yes
6679 fi
6680 fi
6681 chmod u+w . 2>&5
6682 $rm conftest*
6683 # SGI C++ compiler will create directory out/ii_files/ for
6684 # template instantiation
6685 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6686 $rm out/* && rmdir out
6687 cd ..
6688 rmdir conftest
6689 $rm conftest*
6690
6691 fi
6692 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6694
6695
6696 hard_links="nottested"
6697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6698 # do not overwrite the value of need_locks provided by the user
6699 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6701 hard_links=yes
6702 $rm conftest*
6703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6704 touch conftest.a
6705 ln conftest.a conftest.b 2>&5 || hard_links=no
6706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6707 echo "$as_me:$LINENO: result: $hard_links" >&5
6708 echo "${ECHO_T}$hard_links" >&6
6709 if test "$hard_links" = no; then
6710 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6712 need_locks=warn
6713 fi
6714 else
6715 need_locks=no
6716 fi
6717
6718 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6720
6721 runpath_var=
6722 allow_undefined_flag=
6723 enable_shared_with_static_runtimes=no
6724 archive_cmds=
6725 archive_expsym_cmds=
6726 old_archive_From_new_cmds=
6727 old_archive_from_expsyms_cmds=
6728 export_dynamic_flag_spec=
6729 whole_archive_flag_spec=
6730 thread_safe_flag_spec=
6731 hardcode_libdir_flag_spec=
6732 hardcode_libdir_flag_spec_ld=
6733 hardcode_libdir_separator=
6734 hardcode_direct=no
6735 hardcode_minus_L=no
6736 hardcode_shlibpath_var=unsupported
6737 link_all_deplibs=unknown
6738 hardcode_automatic=no
6739 module_cmds=
6740 module_expsym_cmds=
6741 always_export_symbols=no
6742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6743 # include_expsyms should be a list of space-separated symbols to be *always*
6744 # included in the symbol list
6745 include_expsyms=
6746 # exclude_expsyms can be an extended regexp of symbols to exclude
6747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6749 # as well as any symbol that contains `d'.
6750 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6752 # platforms (ab)use it in PIC code, but their linkers get confused if
6753 # the symbol is explicitly referenced. Since portable code cannot
6754 # rely on this symbol name, it's probably fine to never include it in
6755 # preloaded symbol tables.
6756 extract_expsyms_cmds=
6757 # Just being paranoid about ensuring that cc_basename is set.
6758 for cc_temp in $compiler""; do
6759 case $cc_temp in
6760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6762 \-*) ;;
6763 *) break;;
6764 esac
6765 done
6766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6767
6768 case $host_os in
6769 cygwin* | mingw* | pw32*)
6770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6771 # When not using gcc, we currently assume that we are using
6772 # Microsoft Visual C++.
6773 if test "$GCC" != yes; then
6774 with_gnu_ld=no
6775 fi
6776 ;;
6777 openbsd*)
6778 with_gnu_ld=no
6779 ;;
6780 esac
6781
6782 ld_shlibs=yes
6783 if test "$with_gnu_ld" = yes; then
6784 # If archive_cmds runs LD, not CC, wlarc should be empty
6785 wlarc='${wl}'
6786
6787 # Set some defaults for GNU ld with shared library support. These
6788 # are reset later if shared libraries are not supported. Putting them
6789 # here allows them to be overridden if necessary.
6790 runpath_var=LD_RUN_PATH
6791 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6792 export_dynamic_flag_spec='${wl}--export-dynamic'
6793 # ancient GNU ld didn't support --whole-archive et. al.
6794 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6796 else
6797 whole_archive_flag_spec=
6798 fi
6799 supports_anon_versioning=no
6800 case `$LD -v 2>/dev/null` in
6801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804 *\ 2.11.*) ;; # other 2.11 versions
6805 *) supports_anon_versioning=yes ;;
6806 esac
6807
6808 # See if GNU ld supports shared libraries.
6809 case $host_os in
6810 aix3* | aix4* | aix5*)
6811 # On AIX/PPC, the GNU linker is very broken
6812 if test "$host_cpu" != ia64; then
6813 ld_shlibs=no
6814 cat <<EOF 1>&2
6815
6816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6817 *** to be unable to reliably create shared libraries on AIX.
6818 *** Therefore, libtool is disabling shared libraries support. If you
6819 *** really care for shared libraries, you may want to modify your PATH
6820 *** so that a non-GNU linker is found, and then restart.
6821
6822 EOF
6823 fi
6824 ;;
6825
6826 amigaos*)
6827 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)'
6828 hardcode_libdir_flag_spec='-L$libdir'
6829 hardcode_minus_L=yes
6830
6831 # Samuel A. Falvo II <[email protected]> reports
6832 # that the semantics of dynamic libraries on AmigaOS, at least up
6833 # to version 4, is to share data among multiple programs linked
6834 # with the same dynamic library. Since this doesn't match the
6835 # behavior of shared libraries on other platforms, we can't use
6836 # them.
6837 ld_shlibs=no
6838 ;;
6839
6840 beos*)
6841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6842 allow_undefined_flag=unsupported
6843 # Joseph Beckenbach <[email protected]> says some releases of gcc
6844 # support --undefined. This deserves some investigation. FIXME
6845 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6846 else
6847 ld_shlibs=no
6848 fi
6849 ;;
6850
6851 cygwin* | mingw* | pw32*)
6852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6853 # as there is no search path for DLLs.
6854 hardcode_libdir_flag_spec='-L$libdir'
6855 allow_undefined_flag=unsupported
6856 always_export_symbols=no
6857 enable_shared_with_static_runtimes=yes
6858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6859
6860 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6862 # If the export-symbols file already is a .def file (1st line
6863 # is EXPORTS), use it as is; otherwise, prepend...
6864 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6865 cp $export_symbols $output_objdir/$soname.def;
6866 else
6867 echo EXPORTS > $output_objdir/$soname.def;
6868 cat $export_symbols >> $output_objdir/$soname.def;
6869 fi~
6870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6871 else
6872 ld_shlibs=no
6873 fi
6874 ;;
6875
6876 linux*)
6877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6878 tmp_addflag=
6879 case $cc_basename,$host_cpu in
6880 pgcc*) # Portland Group C compiler
6881 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6882 tmp_addflag=' $pic_flag'
6883 ;;
6884 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6885 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6886 tmp_addflag=' $pic_flag -Mnomain' ;;
6887 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6888 tmp_addflag=' -i_dynamic' ;;
6889 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6890 tmp_addflag=' -i_dynamic -nofor_main' ;;
6891 ifc* | ifort*) # Intel Fortran compiler
6892 tmp_addflag=' -nofor_main' ;;
6893 esac
6894 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6895
6896 if test $supports_anon_versioning = yes; then
6897 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6899 $echo "local: *; };" >> $output_objdir/$libname.ver~
6900 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6901 fi
6902 link_all_deplibs=no
6903 else
6904 ld_shlibs=no
6905 fi
6906 ;;
6907
6908 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6909 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6910 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6911 wlarc=
6912 else
6913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6915 fi
6916 ;;
6917
6918 solaris* | sysv5*)
6919 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6920 ld_shlibs=no
6921 cat <<EOF 1>&2
6922
6923 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6924 *** create shared libraries on Solaris systems. Therefore, libtool
6925 *** is disabling shared libraries support. We urge you to upgrade GNU
6926 *** binutils to release 2.9.1 or newer. Another option is to modify
6927 *** your PATH or compiler configuration so that the native linker is
6928 *** used, and then restart.
6929
6930 EOF
6931 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6934 else
6935 ld_shlibs=no
6936 fi
6937 ;;
6938
6939 sunos4*)
6940 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6941 wlarc=
6942 hardcode_direct=yes
6943 hardcode_shlibpath_var=no
6944 ;;
6945
6946 *)
6947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6949 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6950 else
6951 ld_shlibs=no
6952 fi
6953 ;;
6954 esac
6955
6956 if test "$ld_shlibs" = no; then
6957 runpath_var=
6958 hardcode_libdir_flag_spec=
6959 export_dynamic_flag_spec=
6960 whole_archive_flag_spec=
6961 fi
6962 else
6963 # PORTME fill in a description of your system's linker (not GNU ld)
6964 case $host_os in
6965 aix3*)
6966 allow_undefined_flag=unsupported
6967 always_export_symbols=yes
6968 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'
6969 # Note: this linker hardcodes the directories in LIBPATH if there
6970 # are no directories specified by -L.
6971 hardcode_minus_L=yes
6972 if test "$GCC" = yes && test -z "$link_static_flag"; then
6973 # Neither direct hardcoding nor static linking is supported with a
6974 # broken collect2.
6975 hardcode_direct=unsupported
6976 fi
6977 ;;
6978
6979 aix4* | aix5*)
6980 if test "$host_cpu" = ia64; then
6981 # On IA64, the linker does run time linking by default, so we don't
6982 # have to do anything special.
6983 aix_use_runtimelinking=no
6984 exp_sym_flag='-Bexport'
6985 no_entry_flag=""
6986 else
6987 # If we're using GNU nm, then we don't want the "-C" option.
6988 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6989 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6990 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'
6991 else
6992 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'
6993 fi
6994 aix_use_runtimelinking=no
6995
6996 # Test if we are trying to use run time linking or normal
6997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6998 # need to do runtime linking.
6999 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7000 for ld_flag in $LDFLAGS; do
7001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7002 aix_use_runtimelinking=yes
7003 break
7004 fi
7005 done
7006 esac
7007
7008 exp_sym_flag='-bexport'
7009 no_entry_flag='-bnoentry'
7010 fi
7011
7012 # When large executables or shared objects are built, AIX ld can
7013 # have problems creating the table of contents. If linking a library
7014 # or program results in "error TOC overflow" add -mminimal-toc to
7015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7017
7018 archive_cmds=''
7019 hardcode_direct=yes
7020 hardcode_libdir_separator=':'
7021 link_all_deplibs=yes
7022
7023 if test "$GCC" = yes; then
7024 case $host_os in aix4.[012]|aix4.[012].*)
7025 # We only want to do this on AIX 4.2 and lower, the check
7026 # below for broken collect2 doesn't work under 4.3+
7027 collect2name=`${CC} -print-prog-name=collect2`
7028 if test -f "$collect2name" && \
7029 strings "$collect2name" | grep resolve_lib_name >/dev/null
7030 then
7031 # We have reworked collect2
7032 hardcode_direct=yes
7033 else
7034 # We have old collect2
7035 hardcode_direct=unsupported
7036 # It fails to find uninstalled libraries when the uninstalled
7037 # path is not listed in the libpath. Setting hardcode_minus_L
7038 # to unsupported forces relinking
7039 hardcode_minus_L=yes
7040 hardcode_libdir_flag_spec='-L$libdir'
7041 hardcode_libdir_separator=
7042 fi
7043 esac
7044 shared_flag='-shared'
7045 if test "$aix_use_runtimelinking" = yes; then
7046 shared_flag="$shared_flag "'${wl}-G'
7047 fi
7048 else
7049 # not using gcc
7050 if test "$host_cpu" = ia64; then
7051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7052 # chokes on -Wl,-G. The following line is correct:
7053 shared_flag='-G'
7054 else
7055 if test "$aix_use_runtimelinking" = yes; then
7056 shared_flag='${wl}-G'
7057 else
7058 shared_flag='${wl}-bM:SRE'
7059 fi
7060 fi
7061 fi
7062
7063 # It seems that -bexpall does not export symbols beginning with
7064 # underscore (_), so it is better to generate a list of symbols to export.
7065 always_export_symbols=yes
7066 if test "$aix_use_runtimelinking" = yes; then
7067 # Warning - without using the other runtime loading flags (-brtl),
7068 # -berok will link without error, but may produce a broken library.
7069 allow_undefined_flag='-berok'
7070 # Determine the default libpath from the value encoded in an empty executable.
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077
7078 int
7079 main ()
7080 {
7081
7082 ;
7083 return 0;
7084 }
7085 _ACEOF
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088 (eval $ac_link) 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107
7108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7109 }'`
7110 # Check for a 64-bit object if we didn't find anything.
7111 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; }
7112 }'`; fi
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 fi
7118 rm -f conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7121
7122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7123 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"
7124 else
7125 if test "$host_cpu" = ia64; then
7126 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7127 allow_undefined_flag="-z nodefs"
7128 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"
7129 else
7130 # Determine the default libpath from the value encoded in an empty executable.
7131 cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h. */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137
7138 int
7139 main ()
7140 {
7141
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>conftest.er1
7149 ac_status=$?
7150 grep -v '^ *+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest$ac_exeext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167
7168 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7169 }'`
7170 # Check for a 64-bit object if we didn't find anything.
7171 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; }
7172 }'`; fi
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 fi
7178 rm -f conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7181
7182 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7183 # Warning - without using the other run time loading flags,
7184 # -berok will link without error, but may produce a broken library.
7185 no_undefined_flag=' ${wl}-bernotok'
7186 allow_undefined_flag=' ${wl}-berok'
7187 # -bexpall does not export symbols beginning with underscore (_)
7188 always_export_symbols=yes
7189 # Exported symbols can be pulled into shared objects from archives
7190 whole_archive_flag_spec=' '
7191 archive_cmds_need_lc=yes
7192 # This is similar to how AIX traditionally builds its shared libraries.
7193 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'
7194 fi
7195 fi
7196 ;;
7197
7198 amigaos*)
7199 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)'
7200 hardcode_libdir_flag_spec='-L$libdir'
7201 hardcode_minus_L=yes
7202 # see comment about different semantics on the GNU ld section
7203 ld_shlibs=no
7204 ;;
7205
7206 bsdi[45]*)
7207 export_dynamic_flag_spec=-rdynamic
7208 ;;
7209
7210 cygwin* | mingw* | pw32*)
7211 # When not using gcc, we currently assume that we are using
7212 # Microsoft Visual C++.
7213 # hardcode_libdir_flag_spec is actually meaningless, as there is
7214 # no search path for DLLs.
7215 hardcode_libdir_flag_spec=' '
7216 allow_undefined_flag=unsupported
7217 # Tell ltmain to make .lib files, not .a files.
7218 libext=lib
7219 # Tell ltmain to make .dll files, not .so files.
7220 shrext_cmds=".dll"
7221 # FIXME: Setting linknames here is a bad hack.
7222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7223 # The linker will automatically build a .lib file if we build a DLL.
7224 old_archive_From_new_cmds='true'
7225 # FIXME: Should let the user specify the lib program.
7226 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7227 fix_srcfile_path='`cygpath -w "$srcfile"`'
7228 enable_shared_with_static_runtimes=yes
7229 ;;
7230
7231 darwin* | rhapsody*)
7232 case $host_os in
7233 rhapsody* | darwin1.[012])
7234 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7235 ;;
7236 *) # Darwin 1.3 on
7237 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7238 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7239 else
7240 case ${MACOSX_DEPLOYMENT_TARGET} in
7241 10.[012])
7242 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7243 ;;
7244 10.*)
7245 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7246 ;;
7247 esac
7248 fi
7249 ;;
7250 esac
7251 archive_cmds_need_lc=no
7252 hardcode_direct=no
7253 hardcode_automatic=yes
7254 hardcode_shlibpath_var=unsupported
7255 whole_archive_flag_spec=''
7256 link_all_deplibs=yes
7257 if test "$GCC" = yes ; then
7258 output_verbose_link_cmd='echo'
7259 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7260 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7261 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7262 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}'
7263 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}'
7264 else
7265 case $cc_basename in
7266 xlc*)
7267 output_verbose_link_cmd='echo'
7268 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7269 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7271 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7272 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}'
7273 ;;
7274 *)
7275 ld_shlibs=no
7276 ;;
7277 esac
7278 fi
7279 ;;
7280
7281 dgux*)
7282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7283 hardcode_libdir_flag_spec='-L$libdir'
7284 hardcode_shlibpath_var=no
7285 ;;
7286
7287 freebsd1*)
7288 ld_shlibs=no
7289 ;;
7290
7291 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7292 # support. Future versions do this automatically, but an explicit c++rt0.o
7293 # does not break anything, and helps significantly (at the cost of a little
7294 # extra space).
7295 freebsd2.2*)
7296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7297 hardcode_libdir_flag_spec='-R$libdir'
7298 hardcode_direct=yes
7299 hardcode_shlibpath_var=no
7300 ;;
7301
7302 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7303 freebsd2*)
7304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7305 hardcode_direct=yes
7306 hardcode_minus_L=yes
7307 hardcode_shlibpath_var=no
7308 ;;
7309
7310 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7311 freebsd* | kfreebsd*-gnu | dragonfly*)
7312 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7313 hardcode_libdir_flag_spec='-R$libdir'
7314 hardcode_direct=yes
7315 hardcode_shlibpath_var=no
7316 ;;
7317
7318 hpux9*)
7319 if test "$GCC" = yes; then
7320 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'
7321 else
7322 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'
7323 fi
7324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7325 hardcode_libdir_separator=:
7326 hardcode_direct=yes
7327
7328 # hardcode_minus_L: Not really in the search PATH,
7329 # but as the default location of the library.
7330 hardcode_minus_L=yes
7331 export_dynamic_flag_spec='${wl}-E'
7332 ;;
7333
7334 hpux10* | hpux11*)
7335 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7336 case $host_cpu in
7337 hppa*64*|ia64*)
7338 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 ;;
7340 *)
7341 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7342 ;;
7343 esac
7344 else
7345 case $host_cpu in
7346 hppa*64*|ia64*)
7347 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7348 ;;
7349 *)
7350 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7351 ;;
7352 esac
7353 fi
7354 if test "$with_gnu_ld" = no; then
7355 case $host_cpu in
7356 hppa*64*)
7357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7358 hardcode_libdir_flag_spec_ld='+b $libdir'
7359 hardcode_libdir_separator=:
7360 hardcode_direct=no
7361 hardcode_shlibpath_var=no
7362 ;;
7363 ia64*)
7364 hardcode_libdir_flag_spec='-L$libdir'
7365 hardcode_direct=no
7366 hardcode_shlibpath_var=no
7367
7368 # hardcode_minus_L: Not really in the search PATH,
7369 # but as the default location of the library.
7370 hardcode_minus_L=yes
7371 ;;
7372 *)
7373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7374 hardcode_libdir_separator=:
7375 hardcode_direct=yes
7376 export_dynamic_flag_spec='${wl}-E'
7377
7378 # hardcode_minus_L: Not really in the search PATH,
7379 # but as the default location of the library.
7380 hardcode_minus_L=yes
7381 ;;
7382 esac
7383 fi
7384 ;;
7385
7386 irix5* | irix6* | nonstopux*)
7387 if test "$GCC" = yes; then
7388 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'
7389 else
7390 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'
7391 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7392 fi
7393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7394 hardcode_libdir_separator=:
7395 link_all_deplibs=yes
7396 ;;
7397
7398 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7401 else
7402 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7403 fi
7404 hardcode_libdir_flag_spec='-R$libdir'
7405 hardcode_direct=yes
7406 hardcode_shlibpath_var=no
7407 ;;
7408
7409 newsos6)
7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_direct=yes
7412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7413 hardcode_libdir_separator=:
7414 hardcode_shlibpath_var=no
7415 ;;
7416
7417 openbsd*)
7418 hardcode_direct=yes
7419 hardcode_shlibpath_var=no
7420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7422 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7424 export_dynamic_flag_spec='${wl}-E'
7425 else
7426 case $host_os in
7427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7429 hardcode_libdir_flag_spec='-R$libdir'
7430 ;;
7431 *)
7432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7434 ;;
7435 esac
7436 fi
7437 ;;
7438
7439 os2*)
7440 hardcode_libdir_flag_spec='-L$libdir'
7441 hardcode_minus_L=yes
7442 allow_undefined_flag=unsupported
7443 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'
7444 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7445 ;;
7446
7447 osf3*)
7448 if test "$GCC" = yes; then
7449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7450 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'
7451 else
7452 allow_undefined_flag=' -expect_unresolved \*'
7453 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'
7454 fi
7455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7456 hardcode_libdir_separator=:
7457 ;;
7458
7459 osf4* | osf5*) # as osf3* with the addition of -msym flag
7460 if test "$GCC" = yes; then
7461 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7462 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'
7463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7464 else
7465 allow_undefined_flag=' -expect_unresolved \*'
7466 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'
7467 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7468 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7469
7470 # Both c and cxx compiler support -rpath directly
7471 hardcode_libdir_flag_spec='-rpath $libdir'
7472 fi
7473 hardcode_libdir_separator=:
7474 ;;
7475
7476 sco3.2v5*)
7477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7478 hardcode_shlibpath_var=no
7479 export_dynamic_flag_spec='${wl}-Bexport'
7480 runpath_var=LD_RUN_PATH
7481 hardcode_runpath_var=yes
7482 ;;
7483
7484 solaris*)
7485 no_undefined_flag=' -z text'
7486 if test "$GCC" = yes; then
7487 wlarc='${wl}'
7488 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7489 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7490 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7491 else
7492 wlarc=''
7493 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7494 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7495 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7496 fi
7497 hardcode_libdir_flag_spec='-R$libdir'
7498 hardcode_shlibpath_var=no
7499 case $host_os in
7500 solaris2.[0-5] | solaris2.[0-5].*) ;;
7501 *)
7502 # The compiler driver will combine linker options so we
7503 # cannot just pass the convience library names through
7504 # without $wl, iff we do not link with $LD.
7505 # Luckily, gcc supports the same syntax we need for Sun Studio.
7506 # Supported since Solaris 2.6 (maybe 2.5.1?)
7507 case $wlarc in
7508 '')
7509 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7510 *)
7511 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7512 esac ;;
7513 esac
7514 link_all_deplibs=yes
7515 ;;
7516
7517 sunos4*)
7518 if test "x$host_vendor" = xsequent; then
7519 # Use $CC to link under sequent, because it throws in some extra .o
7520 # files that make .init and .fini sections work.
7521 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7522 else
7523 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7524 fi
7525 hardcode_libdir_flag_spec='-L$libdir'
7526 hardcode_direct=yes
7527 hardcode_minus_L=yes
7528 hardcode_shlibpath_var=no
7529 ;;
7530
7531 sysv4)
7532 case $host_vendor in
7533 sni)
7534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535 hardcode_direct=yes # is this really true???
7536 ;;
7537 siemens)
7538 ## LD is ld it makes a PLAMLIB
7539 ## CC just makes a GrossModule.
7540 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7541 reload_cmds='$CC -r -o $output$reload_objs'
7542 hardcode_direct=no
7543 ;;
7544 motorola)
7545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7547 ;;
7548 esac
7549 runpath_var='LD_RUN_PATH'
7550 hardcode_shlibpath_var=no
7551 ;;
7552
7553 sysv4.3*)
7554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7555 hardcode_shlibpath_var=no
7556 export_dynamic_flag_spec='-Bexport'
7557 ;;
7558
7559 sysv4*MP*)
7560 if test -d /usr/nec; then
7561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7562 hardcode_shlibpath_var=no
7563 runpath_var=LD_RUN_PATH
7564 hardcode_runpath_var=yes
7565 ld_shlibs=yes
7566 fi
7567 ;;
7568
7569 sysv4.2uw2*)
7570 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7571 hardcode_direct=yes
7572 hardcode_minus_L=no
7573 hardcode_shlibpath_var=no
7574 hardcode_runpath_var=yes
7575 runpath_var=LD_RUN_PATH
7576 ;;
7577
7578 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7579 no_undefined_flag='${wl}-z ${wl}text'
7580 if test "$GCC" = yes; then
7581 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7582 else
7583 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7584 fi
7585 runpath_var='LD_RUN_PATH'
7586 hardcode_shlibpath_var=no
7587 ;;
7588
7589 sysv5*)
7590 no_undefined_flag=' -z text'
7591 # $CC -shared without GNU ld will not create a library from C++
7592 # object files and a static libstdc++, better avoid it by now
7593 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7595 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7596 hardcode_libdir_flag_spec=
7597 hardcode_shlibpath_var=no
7598 runpath_var='LD_RUN_PATH'
7599 ;;
7600
7601 uts4*)
7602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7603 hardcode_libdir_flag_spec='-L$libdir'
7604 hardcode_shlibpath_var=no
7605 ;;
7606
7607 *)
7608 ld_shlibs=no
7609 ;;
7610 esac
7611 fi
7612
7613 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7614 echo "${ECHO_T}$ld_shlibs" >&6
7615 test "$ld_shlibs" = no && can_build_shared=no
7616
7617 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7618 if test "$GCC" = yes; then
7619 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7620 fi
7621
7622 #
7623 # Do we need to explicitly link libc?
7624 #
7625 case "x$archive_cmds_need_lc" in
7626 x|xyes)
7627 # Assume -lc should be added
7628 archive_cmds_need_lc=yes
7629
7630 if test "$enable_shared" = yes && test "$GCC" = yes; then
7631 case $archive_cmds in
7632 *'~'*)
7633 # FIXME: we may have to deal with multi-command sequences.
7634 ;;
7635 '$CC '*)
7636 # Test whether the compiler implicitly links with -lc since on some
7637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7638 # to ld, don't add -lc before -lgcc.
7639 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7640 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7641 $rm conftest*
7642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7643
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } 2>conftest.err; then
7649 soname=conftest
7650 lib=conftest
7651 libobjs=conftest.$ac_objext
7652 deplibs=
7653 wl=$lt_prog_compiler_wl
7654 compiler_flags=-v
7655 linker_flags=-v
7656 verstring=
7657 output_objdir=.
7658 libname=conftest
7659 lt_save_allow_undefined_flag=$allow_undefined_flag
7660 allow_undefined_flag=
7661 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7662 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }
7666 then
7667 archive_cmds_need_lc=no
7668 else
7669 archive_cmds_need_lc=yes
7670 fi
7671 allow_undefined_flag=$lt_save_allow_undefined_flag
7672 else
7673 cat conftest.err 1>&5
7674 fi
7675 $rm conftest*
7676 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7677 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7678 ;;
7679 esac
7680 fi
7681 ;;
7682 esac
7683
7684 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7686 library_names_spec=
7687 libname_spec='lib$name'
7688 soname_spec=
7689 shrext_cmds=".so"
7690 postinstall_cmds=
7691 postuninstall_cmds=
7692 finish_cmds=
7693 finish_eval=
7694 shlibpath_var=
7695 shlibpath_overrides_runpath=unknown
7696 version_type=none
7697 dynamic_linker="$host_os ld.so"
7698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7699 if test "$GCC" = yes; then
7700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7701 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7702 # if the path contains ";" then we assume it to be the separator
7703 # otherwise default to the standard path separator (i.e. ":") - it is
7704 # assumed that no part of a normal pathname contains ";" but that should
7705 # okay in the real world where ";" in dirpaths is itself problematic.
7706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7707 else
7708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7709 fi
7710 else
7711 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7712 fi
7713 need_lib_prefix=unknown
7714 hardcode_into_libs=no
7715
7716 # when you set need_version to no, make sure it does not cause -set_version
7717 # flags to be left without arguments
7718 need_version=unknown
7719
7720 case $host_os in
7721 aix3*)
7722 version_type=linux
7723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7724 shlibpath_var=LIBPATH
7725
7726 # AIX 3 has no versioning support, so we append a major version to the name.
7727 soname_spec='${libname}${release}${shared_ext}$major'
7728 ;;
7729
7730 aix4* | aix5*)
7731 version_type=linux
7732 need_lib_prefix=no
7733 need_version=no
7734 hardcode_into_libs=yes
7735 if test "$host_cpu" = ia64; then
7736 # AIX 5 supports IA64
7737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7738 shlibpath_var=LD_LIBRARY_PATH
7739 else
7740 # With GCC up to 2.95.x, collect2 would create an import file
7741 # for dependence libraries. The import file would start with
7742 # the line `#! .'. This would cause the generated library to
7743 # depend on `.', always an invalid library. This was fixed in
7744 # development snapshots of GCC prior to 3.0.
7745 case $host_os in
7746 aix4 | aix4.[01] | aix4.[01].*)
7747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7748 echo ' yes '
7749 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7750 :
7751 else
7752 can_build_shared=no
7753 fi
7754 ;;
7755 esac
7756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7757 # soname into executable. Probably we can add versioning support to
7758 # collect2, so additional links can be useful in future.
7759 if test "$aix_use_runtimelinking" = yes; then
7760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7761 # instead of lib<name>.a to let people know that these are not
7762 # typical AIX shared libraries.
7763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7764 else
7765 # We preserve .a as extension for shared libraries through AIX4.2
7766 # and later when we are not doing run time linking.
7767 library_names_spec='${libname}${release}.a $libname.a'
7768 soname_spec='${libname}${release}${shared_ext}$major'
7769 fi
7770 shlibpath_var=LIBPATH
7771 fi
7772 ;;
7773
7774 amigaos*)
7775 library_names_spec='$libname.ixlibrary $libname.a'
7776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7777 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'
7778 ;;
7779
7780 beos*)
7781 library_names_spec='${libname}${shared_ext}'
7782 dynamic_linker="$host_os ld.so"
7783 shlibpath_var=LIBRARY_PATH
7784 ;;
7785
7786 bsdi[45]*)
7787 version_type=linux
7788 need_version=no
7789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7790 soname_spec='${libname}${release}${shared_ext}$major'
7791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7792 shlibpath_var=LD_LIBRARY_PATH
7793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7795 # the default ld.so.conf also contains /usr/contrib/lib and
7796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7797 # libtool to hard-code these into programs
7798 ;;
7799
7800 cygwin* | mingw* | pw32*)
7801 version_type=windows
7802 shrext_cmds=".dll"
7803 need_version=no
7804 need_lib_prefix=no
7805
7806 case $GCC,$host_os in
7807 yes,cygwin* | yes,mingw* | yes,pw32*)
7808 library_names_spec='$libname.dll.a'
7809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7810 postinstall_cmds='base_file=`basename \${file}`~
7811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7812 dldir=$destdir/`dirname \$dlpath`~
7813 test -d \$dldir || mkdir -p \$dldir~
7814 $install_prog $dir/$dlname \$dldir/$dlname~
7815 chmod a+x \$dldir/$dlname'
7816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7817 dlpath=$dir/\$dldll~
7818 $rm \$dlpath'
7819 shlibpath_overrides_runpath=yes
7820
7821 case $host_os in
7822 cygwin*)
7823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7825 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7826 ;;
7827 mingw*)
7828 # MinGW DLLs use traditional 'lib' prefix
7829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7831 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7832 # It is most probably a Windows format PATH printed by
7833 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7834 # path with ; separators, and with drive letters. We can handle the
7835 # drive letters (cygwin fileutils understands them), so leave them,
7836 # especially as we might pass files found there to a mingw objdump,
7837 # which wouldn't understand a cygwinified path. Ahh.
7838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7839 else
7840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7841 fi
7842 ;;
7843 pw32*)
7844 # pw32 DLLs use 'pw' prefix rather than 'lib'
7845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7846 ;;
7847 esac
7848 ;;
7849
7850 *)
7851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7852 ;;
7853 esac
7854 dynamic_linker='Win32 ld.exe'
7855 # FIXME: first we should search . and the directory the executable is in
7856 shlibpath_var=PATH
7857 ;;
7858
7859 darwin* | rhapsody*)
7860 dynamic_linker="$host_os dyld"
7861 version_type=darwin
7862 need_lib_prefix=no
7863 need_version=no
7864 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7865 soname_spec='${libname}${release}${major}$shared_ext'
7866 shlibpath_overrides_runpath=yes
7867 shlibpath_var=DYLD_LIBRARY_PATH
7868 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7869 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7870 if test "$GCC" = yes; then
7871 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"`
7872 else
7873 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7874 fi
7875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7876 ;;
7877
7878 dgux*)
7879 version_type=linux
7880 need_lib_prefix=no
7881 need_version=no
7882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7883 soname_spec='${libname}${release}${shared_ext}$major'
7884 shlibpath_var=LD_LIBRARY_PATH
7885 ;;
7886
7887 freebsd1*)
7888 dynamic_linker=no
7889 ;;
7890
7891 kfreebsd*-gnu)
7892 version_type=linux
7893 need_lib_prefix=no
7894 need_version=no
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7896 soname_spec='${libname}${release}${shared_ext}$major'
7897 shlibpath_var=LD_LIBRARY_PATH
7898 shlibpath_overrides_runpath=no
7899 hardcode_into_libs=yes
7900 dynamic_linker='GNU ld.so'
7901 ;;
7902
7903 freebsd* | dragonfly*)
7904 # DragonFly does not have aout. When/if they implement a new
7905 # versioning mechanism, adjust this.
7906 if test -x /usr/bin/objformat; then
7907 objformat=`/usr/bin/objformat`
7908 else
7909 case $host_os in
7910 freebsd[123]*) objformat=aout ;;
7911 *) objformat=elf ;;
7912 esac
7913 fi
7914 version_type=freebsd-$objformat
7915 case $version_type in
7916 freebsd-elf*)
7917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7918 need_version=no
7919 need_lib_prefix=no
7920 ;;
7921 freebsd-*)
7922 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7923 need_version=yes
7924 ;;
7925 esac
7926 shlibpath_var=LD_LIBRARY_PATH
7927 case $host_os in
7928 freebsd2*)
7929 shlibpath_overrides_runpath=yes
7930 ;;
7931 freebsd3.[01]* | freebsdelf3.[01]*)
7932 shlibpath_overrides_runpath=yes
7933 hardcode_into_libs=yes
7934 ;;
7935 *) # from 3.2 on
7936 shlibpath_overrides_runpath=no
7937 hardcode_into_libs=yes
7938 ;;
7939 esac
7940 ;;
7941
7942 gnu*)
7943 version_type=linux
7944 need_lib_prefix=no
7945 need_version=no
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 shlibpath_var=LD_LIBRARY_PATH
7949 hardcode_into_libs=yes
7950 ;;
7951
7952 hpux9* | hpux10* | hpux11*)
7953 # Give a soname corresponding to the major version so that dld.sl refuses to
7954 # link against other versions.
7955 version_type=sunos
7956 need_lib_prefix=no
7957 need_version=no
7958 case $host_cpu in
7959 ia64*)
7960 shrext_cmds='.so'
7961 hardcode_into_libs=yes
7962 dynamic_linker="$host_os dld.so"
7963 shlibpath_var=LD_LIBRARY_PATH
7964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 soname_spec='${libname}${release}${shared_ext}$major'
7967 if test "X$HPUX_IA64_MODE" = X32; then
7968 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7969 else
7970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7971 fi
7972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7973 ;;
7974 hppa*64*)
7975 shrext_cmds='.sl'
7976 hardcode_into_libs=yes
7977 dynamic_linker="$host_os dld.sl"
7978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 soname_spec='${libname}${release}${shared_ext}$major'
7982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7984 ;;
7985 *)
7986 shrext_cmds='.sl'
7987 dynamic_linker="$host_os dld.sl"
7988 shlibpath_var=SHLIB_PATH
7989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991 soname_spec='${libname}${release}${shared_ext}$major'
7992 ;;
7993 esac
7994 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7995 postinstall_cmds='chmod 555 $lib'
7996 ;;
7997
7998 irix5* | irix6* | nonstopux*)
7999 case $host_os in
8000 nonstopux*) version_type=nonstopux ;;
8001 *)
8002 if test "$lt_cv_prog_gnu_ld" = yes; then
8003 version_type=linux
8004 else
8005 version_type=irix
8006 fi ;;
8007 esac
8008 need_lib_prefix=no
8009 need_version=no
8010 soname_spec='${libname}${release}${shared_ext}$major'
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8012 case $host_os in
8013 irix5* | nonstopux*)
8014 libsuff= shlibsuff=
8015 ;;
8016 *)
8017 case $LD in # libtool.m4 will add one of these switches to LD
8018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8019 libsuff= shlibsuff= libmagic=32-bit;;
8020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8021 libsuff=32 shlibsuff=N32 libmagic=N32;;
8022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8024 *) libsuff= shlibsuff= libmagic=never-match;;
8025 esac
8026 ;;
8027 esac
8028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8029 shlibpath_overrides_runpath=no
8030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8032 hardcode_into_libs=yes
8033 ;;
8034
8035 # No shared lib support for Linux oldld, aout, or coff.
8036 linux*oldld* | linux*aout* | linux*coff*)
8037 dynamic_linker=no
8038 ;;
8039
8040 # This must be Linux ELF.
8041 linux*)
8042 version_type=linux
8043 need_lib_prefix=no
8044 need_version=no
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 shlibpath_overrides_runpath=no
8050 # This implies no fast_install, which is unacceptable.
8051 # Some rework will be needed to allow for fast_install
8052 # before this can be enabled.
8053 hardcode_into_libs=yes
8054
8055 # Append ld.so.conf contents to the search path
8056 if test -f /etc/ld.so.conf; then
8057 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8059 fi
8060
8061 # We used to test for /lib/ld.so.1 and disable shared libraries on
8062 # powerpc, because MkLinux only supported shared libraries with the
8063 # GNU dynamic linker. Since this was broken with cross compilers,
8064 # most powerpc-linux boxes support dynamic linking these days and
8065 # people can always --disable-shared, the test was removed, and we
8066 # assume the GNU/Linux dynamic linker is in use.
8067 dynamic_linker='GNU/Linux ld.so'
8068 ;;
8069
8070 netbsdelf*-gnu)
8071 version_type=linux
8072 need_lib_prefix=no
8073 need_version=no
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 shlibpath_var=LD_LIBRARY_PATH
8077 shlibpath_overrides_runpath=no
8078 hardcode_into_libs=yes
8079 dynamic_linker='NetBSD ld.elf_so'
8080 ;;
8081
8082 knetbsd*-gnu)
8083 version_type=linux
8084 need_lib_prefix=no
8085 need_version=no
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 shlibpath_var=LD_LIBRARY_PATH
8089 shlibpath_overrides_runpath=no
8090 hardcode_into_libs=yes
8091 dynamic_linker='GNU ld.so'
8092 ;;
8093
8094 netbsd*)
8095 version_type=sunos
8096 need_lib_prefix=no
8097 need_version=no
8098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8101 dynamic_linker='NetBSD (a.out) ld.so'
8102 else
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8105 dynamic_linker='NetBSD ld.elf_so'
8106 fi
8107 shlibpath_var=LD_LIBRARY_PATH
8108 shlibpath_overrides_runpath=yes
8109 hardcode_into_libs=yes
8110 ;;
8111
8112 newsos6)
8113 version_type=linux
8114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8115 shlibpath_var=LD_LIBRARY_PATH
8116 shlibpath_overrides_runpath=yes
8117 ;;
8118
8119 nto-qnx*)
8120 version_type=linux
8121 need_lib_prefix=no
8122 need_version=no
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124 soname_spec='${libname}${release}${shared_ext}$major'
8125 shlibpath_var=LD_LIBRARY_PATH
8126 shlibpath_overrides_runpath=yes
8127 ;;
8128
8129 openbsd*)
8130 version_type=sunos
8131 need_lib_prefix=no
8132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8133 case $host_os in
8134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8135 *) need_version=no ;;
8136 esac
8137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8139 shlibpath_var=LD_LIBRARY_PATH
8140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8141 case $host_os in
8142 openbsd2.[89] | openbsd2.[89].*)
8143 shlibpath_overrides_runpath=no
8144 ;;
8145 *)
8146 shlibpath_overrides_runpath=yes
8147 ;;
8148 esac
8149 else
8150 shlibpath_overrides_runpath=yes
8151 fi
8152 ;;
8153
8154 os2*)
8155 libname_spec='$name'
8156 shrext_cmds=".dll"
8157 need_lib_prefix=no
8158 library_names_spec='$libname${shared_ext} $libname.a'
8159 dynamic_linker='OS/2 ld.exe'
8160 shlibpath_var=LIBPATH
8161 ;;
8162
8163 osf3* | osf4* | osf5*)
8164 version_type=osf
8165 need_lib_prefix=no
8166 need_version=no
8167 soname_spec='${libname}${release}${shared_ext}$major'
8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 shlibpath_var=LD_LIBRARY_PATH
8170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8172 ;;
8173
8174 sco3.2v5*)
8175 version_type=osf
8176 soname_spec='${libname}${release}${shared_ext}$major'
8177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8178 shlibpath_var=LD_LIBRARY_PATH
8179 ;;
8180
8181 solaris*)
8182 version_type=linux
8183 need_lib_prefix=no
8184 need_version=no
8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8186 soname_spec='${libname}${release}${shared_ext}$major'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=yes
8189 hardcode_into_libs=yes
8190 # ldd complains unless libraries are executable
8191 postinstall_cmds='chmod +x $lib'
8192 ;;
8193
8194 sunos4*)
8195 version_type=sunos
8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8198 shlibpath_var=LD_LIBRARY_PATH
8199 shlibpath_overrides_runpath=yes
8200 if test "$with_gnu_ld" = yes; then
8201 need_lib_prefix=no
8202 fi
8203 need_version=yes
8204 ;;
8205
8206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8207 version_type=linux
8208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8209 soname_spec='${libname}${release}${shared_ext}$major'
8210 shlibpath_var=LD_LIBRARY_PATH
8211 case $host_vendor in
8212 sni)
8213 shlibpath_overrides_runpath=no
8214 need_lib_prefix=no
8215 export_dynamic_flag_spec='${wl}-Blargedynsym'
8216 runpath_var=LD_RUN_PATH
8217 ;;
8218 siemens)
8219 need_lib_prefix=no
8220 ;;
8221 motorola)
8222 need_lib_prefix=no
8223 need_version=no
8224 shlibpath_overrides_runpath=no
8225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8226 ;;
8227 esac
8228 ;;
8229
8230 sysv4*MP*)
8231 if test -d /usr/nec ;then
8232 version_type=linux
8233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8234 soname_spec='$libname${shared_ext}.$major'
8235 shlibpath_var=LD_LIBRARY_PATH
8236 fi
8237 ;;
8238
8239 uts4*)
8240 version_type=linux
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8242 soname_spec='${libname}${release}${shared_ext}$major'
8243 shlibpath_var=LD_LIBRARY_PATH
8244 ;;
8245
8246 *)
8247 dynamic_linker=no
8248 ;;
8249 esac
8250 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8251 echo "${ECHO_T}$dynamic_linker" >&6
8252 test "$dynamic_linker" = no && can_build_shared=no
8253
8254 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8256 hardcode_action=
8257 if test -n "$hardcode_libdir_flag_spec" || \
8258 test -n "$runpath_var" || \
8259 test "X$hardcode_automatic" = "Xyes" ; then
8260
8261 # We can hardcode non-existant directories.
8262 if test "$hardcode_direct" != no &&
8263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8264 # have to relink, otherwise we might link with an installed library
8265 # when we should be linking with a yet-to-be-installed one
8266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8267 test "$hardcode_minus_L" != no; then
8268 # Linking always hardcodes the temporary library directory.
8269 hardcode_action=relink
8270 else
8271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8272 hardcode_action=immediate
8273 fi
8274 else
8275 # We cannot hardcode anything, or else we can only hardcode existing
8276 # directories.
8277 hardcode_action=unsupported
8278 fi
8279 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8280 echo "${ECHO_T}$hardcode_action" >&6
8281
8282 if test "$hardcode_action" = relink; then
8283 # Fast installation is not supported
8284 enable_fast_install=no
8285 elif test "$shlibpath_overrides_runpath" = yes ||
8286 test "$enable_shared" = no; then
8287 # Fast installation is not necessary
8288 enable_fast_install=needless
8289 fi
8290
8291 striplib=
8292 old_striplib=
8293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8298 echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8300 else
8301 # FIXME - insert some real tests, host_os isn't really good enough
8302 case $host_os in
8303 darwin*)
8304 if test -n "$STRIP" ; then
8305 striplib="$STRIP -x"
8306 echo "$as_me:$LINENO: result: yes" >&5
8307 echo "${ECHO_T}yes" >&6
8308 else
8309 echo "$as_me:$LINENO: result: no" >&5
8310 echo "${ECHO_T}no" >&6
8311 fi
8312 ;;
8313 *)
8314 echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6
8316 ;;
8317 esac
8318 fi
8319
8320 if test "x$enable_dlopen" != xyes; then
8321 enable_dlopen=unknown
8322 enable_dlopen_self=unknown
8323 enable_dlopen_self_static=unknown
8324 else
8325 lt_cv_dlopen=no
8326 lt_cv_dlopen_libs=
8327
8328 case $host_os in
8329 beos*)
8330 lt_cv_dlopen="load_add_on"
8331 lt_cv_dlopen_libs=
8332 lt_cv_dlopen_self=yes
8333 ;;
8334
8335 mingw* | pw32*)
8336 lt_cv_dlopen="LoadLibrary"
8337 lt_cv_dlopen_libs=
8338 ;;
8339
8340 cygwin*)
8341 lt_cv_dlopen="dlopen"
8342 lt_cv_dlopen_libs=
8343 ;;
8344
8345 darwin*)
8346 # if libdl is installed we need to link against it
8347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-ldl $LIBS"
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360
8361 /* Override any gcc2 internal prototype to avoid an error. */
8362 #ifdef __cplusplus
8363 extern "C"
8364 #endif
8365 /* We use char because int might match the return type of a gcc2
8366 builtin and then its argument prototype would still apply. */
8367 char dlopen ();
8368 int
8369 main ()
8370 {
8371 dlopen ();
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_lib_dl_dlopen=yes
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ac_cv_lib_dl_dlopen=no
8403 fi
8404 rm -f conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8407 fi
8408 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8409 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8410 if test $ac_cv_lib_dl_dlopen = yes; then
8411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8412 else
8413
8414 lt_cv_dlopen="dyld"
8415 lt_cv_dlopen_libs=
8416 lt_cv_dlopen_self=yes
8417
8418 fi
8419
8420 ;;
8421
8422 *)
8423 echo "$as_me:$LINENO: checking for shl_load" >&5
8424 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8425 if test "${ac_cv_func_shl_load+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8436 #define shl_load innocuous_shl_load
8437
8438 /* System header to define __stub macros and hopefully few prototypes,
8439 which can conflict with char shl_load (); below.
8440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441 <limits.h> exists even on freestanding compilers. */
8442
8443 #ifdef __STDC__
8444 # include <limits.h>
8445 #else
8446 # include <assert.h>
8447 #endif
8448
8449 #undef shl_load
8450
8451 /* Override any gcc2 internal prototype to avoid an error. */
8452 #ifdef __cplusplus
8453 extern "C"
8454 {
8455 #endif
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8458 char shl_load ();
8459 /* The GNU C library defines this for functions which it implements
8460 to always fail with ENOSYS. Some functions are actually named
8461 something starting with __ and the normal name is an alias. */
8462 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8463 choke me
8464 #else
8465 char (*f) () = shl_load;
8466 #endif
8467 #ifdef __cplusplus
8468 }
8469 #endif
8470
8471 int
8472 main ()
8473 {
8474 return f != shl_load;
8475 ;
8476 return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_func_shl_load=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_func_shl_load=no
8506 fi
8507 rm -f conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8511 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8512 if test $ac_cv_func_shl_load = yes; then
8513 lt_cv_dlopen="shl_load"
8514 else
8515 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8516 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8517 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-ldld $LIBS"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char shl_load ();
8536 int
8537 main ()
8538 {
8539 shl_load ();
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest$ac_exeext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_lib_dld_shl_load=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 ac_cv_lib_dld_shl_load=no
8571 fi
8572 rm -f conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8577 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8578 if test $ac_cv_lib_dld_shl_load = yes; then
8579 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8580 else
8581 echo "$as_me:$LINENO: checking for dlopen" >&5
8582 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8583 if test "${ac_cv_func_dlopen+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8594 #define dlopen innocuous_dlopen
8595
8596 /* System header to define __stub macros and hopefully few prototypes,
8597 which can conflict with char dlopen (); below.
8598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8599 <limits.h> exists even on freestanding compilers. */
8600
8601 #ifdef __STDC__
8602 # include <limits.h>
8603 #else
8604 # include <assert.h>
8605 #endif
8606
8607 #undef dlopen
8608
8609 /* Override any gcc2 internal prototype to avoid an error. */
8610 #ifdef __cplusplus
8611 extern "C"
8612 {
8613 #endif
8614 /* We use char because int might match the return type of a gcc2
8615 builtin and then its argument prototype would still apply. */
8616 char dlopen ();
8617 /* The GNU C library defines this for functions which it implements
8618 to always fail with ENOSYS. Some functions are actually named
8619 something starting with __ and the normal name is an alias. */
8620 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8621 choke me
8622 #else
8623 char (*f) () = dlopen;
8624 #endif
8625 #ifdef __cplusplus
8626 }
8627 #endif
8628
8629 int
8630 main ()
8631 {
8632 return f != dlopen;
8633 ;
8634 return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest$ac_exeext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_func_dlopen=yes
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 ac_cv_func_dlopen=no
8664 fi
8665 rm -f conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667 fi
8668 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8669 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8670 if test $ac_cv_func_dlopen = yes; then
8671 lt_cv_dlopen="dlopen"
8672 else
8673 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-ldl $LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686
8687 /* Override any gcc2 internal prototype to avoid an error. */
8688 #ifdef __cplusplus
8689 extern "C"
8690 #endif
8691 /* We use char because int might match the return type of a gcc2
8692 builtin and then its argument prototype would still apply. */
8693 char dlopen ();
8694 int
8695 main ()
8696 {
8697 dlopen ();
8698 ;
8699 return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_lib_dl_dlopen=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_cv_lib_dl_dlopen=no
8729 fi
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_lib_save_LIBS
8733 fi
8734 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8735 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8736 if test $ac_cv_lib_dl_dlopen = yes; then
8737 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8738 else
8739 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8740 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8741 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 ac_check_lib_save_LIBS=$LIBS
8745 LIBS="-lsvld $LIBS"
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h. */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752
8753 /* Override any gcc2 internal prototype to avoid an error. */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8759 char dlopen ();
8760 int
8761 main ()
8762 {
8763 dlopen ();
8764 ;
8765 return 0;
8766 }
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_lib_svld_dlopen=yes
8790 else
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 ac_cv_lib_svld_dlopen=no
8795 fi
8796 rm -f conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798 LIBS=$ac_check_lib_save_LIBS
8799 fi
8800 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8801 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8802 if test $ac_cv_lib_svld_dlopen = yes; then
8803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8804 else
8805 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8806 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8807 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 ac_check_lib_save_LIBS=$LIBS
8811 LIBS="-ldld $LIBS"
8812 cat >conftest.$ac_ext <<_ACEOF
8813 /* confdefs.h. */
8814 _ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8818
8819 /* Override any gcc2 internal prototype to avoid an error. */
8820 #ifdef __cplusplus
8821 extern "C"
8822 #endif
8823 /* We use char because int might match the return type of a gcc2
8824 builtin and then its argument prototype would still apply. */
8825 char dld_link ();
8826 int
8827 main ()
8828 {
8829 dld_link ();
8830 ;
8831 return 0;
8832 }
8833 _ACEOF
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>conftest.er1
8837 ac_status=$?
8838 grep -v '^ *+' conftest.er1 >conftest.err
8839 rm -f conftest.er1
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 (eval $ac_try) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest$ac_exeext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 (eval $ac_try) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_lib_dld_dld_link=yes
8856 else
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 ac_cv_lib_dld_dld_link=no
8861 fi
8862 rm -f conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8865 fi
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8867 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8868 if test $ac_cv_lib_dld_dld_link = yes; then
8869 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8870 fi
8871
8872
8873 fi
8874
8875
8876 fi
8877
8878
8879 fi
8880
8881
8882 fi
8883
8884
8885 fi
8886
8887 ;;
8888 esac
8889
8890 if test "x$lt_cv_dlopen" != xno; then
8891 enable_dlopen=yes
8892 else
8893 enable_dlopen=no
8894 fi
8895
8896 case $lt_cv_dlopen in
8897 dlopen)
8898 save_CPPFLAGS="$CPPFLAGS"
8899 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8900
8901 save_LDFLAGS="$LDFLAGS"
8902 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8903
8904 save_LIBS="$LIBS"
8905 LIBS="$lt_cv_dlopen_libs $LIBS"
8906
8907 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8908 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8909 if test "${lt_cv_dlopen_self+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 if test "$cross_compiling" = yes; then :
8913 lt_cv_dlopen_self=cross
8914 else
8915 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8916 lt_status=$lt_dlunknown
8917 cat > conftest.$ac_ext <<EOF
8918 #line 8918 "configure"
8919 #include "confdefs.h"
8920
8921 #if HAVE_DLFCN_H
8922 #include <dlfcn.h>
8923 #endif
8924
8925 #include <stdio.h>
8926
8927 #ifdef RTLD_GLOBAL
8928 # define LT_DLGLOBAL RTLD_GLOBAL
8929 #else
8930 # ifdef DL_GLOBAL
8931 # define LT_DLGLOBAL DL_GLOBAL
8932 # else
8933 # define LT_DLGLOBAL 0
8934 # endif
8935 #endif
8936
8937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8938 find out it does not work in some platform. */
8939 #ifndef LT_DLLAZY_OR_NOW
8940 # ifdef RTLD_LAZY
8941 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8942 # else
8943 # ifdef DL_LAZY
8944 # define LT_DLLAZY_OR_NOW DL_LAZY
8945 # else
8946 # ifdef RTLD_NOW
8947 # define LT_DLLAZY_OR_NOW RTLD_NOW
8948 # else
8949 # ifdef DL_NOW
8950 # define LT_DLLAZY_OR_NOW DL_NOW
8951 # else
8952 # define LT_DLLAZY_OR_NOW 0
8953 # endif
8954 # endif
8955 # endif
8956 # endif
8957 #endif
8958
8959 #ifdef __cplusplus
8960 extern "C" void exit (int);
8961 #endif
8962
8963 void fnord() { int i=42;}
8964 int main ()
8965 {
8966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8967 int status = $lt_dlunknown;
8968
8969 if (self)
8970 {
8971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8972 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8973 /* dlclose (self); */
8974 }
8975
8976 exit (status);
8977 }
8978 EOF
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8984 (./conftest; exit; ) >&5 2>/dev/null
8985 lt_status=$?
8986 case x$lt_status in
8987 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8988 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8989 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8990 esac
8991 else :
8992 # compilation failed
8993 lt_cv_dlopen_self=no
8994 fi
8995 fi
8996 rm -fr conftest*
8997
8998
8999 fi
9000 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9001 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9002
9003 if test "x$lt_cv_dlopen_self" = xyes; then
9004 LDFLAGS="$LDFLAGS $link_static_flag"
9005 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9006 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9007 if test "${lt_cv_dlopen_self_static+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 if test "$cross_compiling" = yes; then :
9011 lt_cv_dlopen_self_static=cross
9012 else
9013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9014 lt_status=$lt_dlunknown
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9016 "configure"
9017 #include "confdefs.h"
9018
9019 #if HAVE_DLFCN_H
9020 #include <dlfcn.h>
9021 #endif
9022
9023 #include <stdio.h>
9024
9025 #ifdef RTLD_GLOBAL
9026 # define LT_DLGLOBAL RTLD_GLOBAL
9027 #else
9028 # ifdef DL_GLOBAL
9029 # define LT_DLGLOBAL DL_GLOBAL
9030 # else
9031 # define LT_DLGLOBAL 0
9032 # endif
9033 #endif
9034
9035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9036 find out it does not work in some platform. */
9037 #ifndef LT_DLLAZY_OR_NOW
9038 # ifdef RTLD_LAZY
9039 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9040 # else
9041 # ifdef DL_LAZY
9042 # define LT_DLLAZY_OR_NOW DL_LAZY
9043 # else
9044 # ifdef RTLD_NOW
9045 # define LT_DLLAZY_OR_NOW RTLD_NOW
9046 # else
9047 # ifdef DL_NOW
9048 # define LT_DLLAZY_OR_NOW DL_NOW
9049 # else
9050 # define LT_DLLAZY_OR_NOW 0
9051 # endif
9052 # endif
9053 # endif
9054 # endif
9055 #endif
9056
9057 #ifdef __cplusplus
9058 extern "C" void exit (int);
9059 #endif
9060
9061 void fnord() { int i=42;}
9062 int main ()
9063 {
9064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9065 int status = $lt_dlunknown;
9066
9067 if (self)
9068 {
9069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9070 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9071 /* dlclose (self); */
9072 }
9073
9074 exit (status);
9075 }
9076 EOF
9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078 (eval $ac_link) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9082 (./conftest; exit; ) >&5 2>/dev/null
9083 lt_status=$?
9084 case x$lt_status in
9085 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9086 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9087 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9088 esac
9089 else :
9090 # compilation failed
9091 lt_cv_dlopen_self_static=no
9092 fi
9093 fi
9094 rm -fr conftest*
9095
9096
9097 fi
9098 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9099 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9100 fi
9101
9102 CPPFLAGS="$save_CPPFLAGS"
9103 LDFLAGS="$save_LDFLAGS"
9104 LIBS="$save_LIBS"
9105 ;;
9106 esac
9107
9108 case $lt_cv_dlopen_self in
9109 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9110 *) enable_dlopen_self=unknown ;;
9111 esac
9112
9113 case $lt_cv_dlopen_self_static in
9114 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9115 *) enable_dlopen_self_static=unknown ;;
9116 esac
9117 fi
9118
9119
9120 # Report which librarie types wil actually be built
9121 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9122 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9123 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9124 echo "${ECHO_T}$can_build_shared" >&6
9125
9126 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9127 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9128 test "$can_build_shared" = "no" && enable_shared=no
9129
9130 # On AIX, shared libraries and static libraries use the same namespace, and
9131 # are all built from PIC.
9132 case $host_os in
9133 aix3*)
9134 test "$enable_shared" = yes && enable_static=no
9135 if test -n "$RANLIB"; then
9136 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9137 postinstall_cmds='$RANLIB $lib'
9138 fi
9139 ;;
9140
9141 aix4* | aix5*)
9142 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9143 test "$enable_shared" = yes && enable_static=no
9144 fi
9145 ;;
9146 esac
9147 echo "$as_me:$LINENO: result: $enable_shared" >&5
9148 echo "${ECHO_T}$enable_shared" >&6
9149
9150 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9151 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9152 # Make sure either enable_shared or enable_static is yes.
9153 test "$enable_shared" = yes || enable_static=yes
9154 echo "$as_me:$LINENO: result: $enable_static" >&5
9155 echo "${ECHO_T}$enable_static" >&6
9156
9157 # The else clause should only fire when bootstrapping the
9158 # libtool distribution, otherwise you forgot to ship ltmain.sh
9159 # with your package, and you will get complaints that there are
9160 # no rules to generate ltmain.sh.
9161 if test -f "$ltmain"; then
9162 # See if we are running on zsh, and set the options which allow our commands through
9163 # without removal of \ escapes.
9164 if test -n "${ZSH_VERSION+set}" ; then
9165 setopt NO_GLOB_SUBST
9166 fi
9167 # Now quote all the things that may contain metacharacters while being
9168 # careful not to overquote the AC_SUBSTed values. We take copies of the
9169 # variables and quote the copies for generation of the libtool script.
9170 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9171 SED SHELL STRIP \
9172 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9173 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9174 deplibs_check_method reload_flag reload_cmds need_locks \
9175 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9176 lt_cv_sys_global_symbol_to_c_name_address \
9177 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9178 old_postinstall_cmds old_postuninstall_cmds \
9179 compiler \
9180 CC \
9181 LD \
9182 lt_prog_compiler_wl \
9183 lt_prog_compiler_pic \
9184 lt_prog_compiler_static \
9185 lt_prog_compiler_no_builtin_flag \
9186 export_dynamic_flag_spec \
9187 thread_safe_flag_spec \
9188 whole_archive_flag_spec \
9189 enable_shared_with_static_runtimes \
9190 old_archive_cmds \
9191 old_archive_from_new_cmds \
9192 predep_objects \
9193 postdep_objects \
9194 predeps \
9195 postdeps \
9196 compiler_lib_search_path \
9197 archive_cmds \
9198 archive_expsym_cmds \
9199 postinstall_cmds \
9200 postuninstall_cmds \
9201 old_archive_from_expsyms_cmds \
9202 allow_undefined_flag \
9203 no_undefined_flag \
9204 export_symbols_cmds \
9205 hardcode_libdir_flag_spec \
9206 hardcode_libdir_flag_spec_ld \
9207 hardcode_libdir_separator \
9208 hardcode_automatic \
9209 module_cmds \
9210 module_expsym_cmds \
9211 lt_cv_prog_compiler_c_o \
9212 exclude_expsyms \
9213 include_expsyms; do
9214
9215 case $var in
9216 old_archive_cmds | \
9217 old_archive_from_new_cmds | \
9218 archive_cmds | \
9219 archive_expsym_cmds | \
9220 module_cmds | \
9221 module_expsym_cmds | \
9222 old_archive_from_expsyms_cmds | \
9223 export_symbols_cmds | \
9224 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9225 postinstall_cmds | postuninstall_cmds | \
9226 old_postinstall_cmds | old_postuninstall_cmds | \
9227 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9228 # Double-quote double-evaled strings.
9229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9230 ;;
9231 *)
9232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9233 ;;
9234 esac
9235 done
9236
9237 case $lt_echo in
9238 *'\$0 --fallback-echo"')
9239 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9240 ;;
9241 esac
9242
9243 cfgfile="${ofile}T"
9244 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9245 $rm -f "$cfgfile"
9246 { echo "$as_me:$LINENO: creating $ofile" >&5
9247 echo "$as_me: creating $ofile" >&6;}
9248
9249 cat <<__EOF__ >> "$cfgfile"
9250 #! $SHELL
9251
9252 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9253 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9254 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9255 #
9256 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9257 # Free Software Foundation, Inc.
9258 #
9259 # This file is part of GNU Libtool:
9260 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9261 #
9262 # This program is free software; you can redistribute it and/or modify
9263 # it under the terms of the GNU General Public License as published by
9264 # the Free Software Foundation; either version 2 of the License, or
9265 # (at your option) any later version.
9266 #
9267 # This program is distributed in the hope that it will be useful, but
9268 # WITHOUT ANY WARRANTY; without even the implied warranty of
9269 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9270 # General Public License for more details.
9271 #
9272 # You should have received a copy of the GNU General Public License
9273 # along with this program; if not, write to the Free Software
9274 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9275 #
9276 # As a special exception to the GNU General Public License, if you
9277 # distribute this file as part of a program that contains a
9278 # configuration script generated by Autoconf, you may include it under
9279 # the same distribution terms that you use for the rest of that program.
9280
9281 # A sed program that does not truncate output.
9282 SED=$lt_SED
9283
9284 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9285 Xsed="$SED -e 1s/^X//"
9286
9287 # The HP-UX ksh and POSIX shell print the target directory to stdout
9288 # if CDPATH is set.
9289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9290
9291 # The names of the tagged configurations supported by this script.
9292 available_tags=
9293
9294 # ### BEGIN LIBTOOL CONFIG
9295
9296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9297
9298 # Shell to use when invoking shell scripts.
9299 SHELL=$lt_SHELL
9300
9301 # Whether or not to build shared libraries.
9302 build_libtool_libs=$enable_shared
9303
9304 # Whether or not to build static libraries.
9305 build_old_libs=$enable_static
9306
9307 # Whether or not to add -lc for building shared libraries.
9308 build_libtool_need_lc=$archive_cmds_need_lc
9309
9310 # Whether or not to disallow shared libs when runtime libs are static
9311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9312
9313 # Whether or not to optimize for fast installation.
9314 fast_install=$enable_fast_install
9315
9316 # The host system.
9317 host_alias=$host_alias
9318 host=$host
9319 host_os=$host_os
9320
9321 # The build system.
9322 build_alias=$build_alias
9323 build=$build
9324 build_os=$build_os
9325
9326 # An echo program that does not interpret backslashes.
9327 echo=$lt_echo
9328
9329 # The archiver.
9330 AR=$lt_AR
9331 AR_FLAGS=$lt_AR_FLAGS
9332
9333 # A C compiler.
9334 LTCC=$lt_LTCC
9335
9336 # A language-specific compiler.
9337 CC=$lt_compiler
9338
9339 # Is the compiler the GNU C compiler?
9340 with_gcc=$GCC
9341
9342 # An ERE matcher.
9343 EGREP=$lt_EGREP
9344
9345 # The linker used to build libraries.
9346 LD=$lt_LD
9347
9348 # Whether we need hard or soft links.
9349 LN_S=$lt_LN_S
9350
9351 # A BSD-compatible nm program.
9352 NM=$lt_NM
9353
9354 # A symbol stripping program
9355 STRIP=$lt_STRIP
9356
9357 # Used to examine libraries when file_magic_cmd begins "file"
9358 MAGIC_CMD=$MAGIC_CMD
9359
9360 # Used on cygwin: DLL creation program.
9361 DLLTOOL="$DLLTOOL"
9362
9363 # Used on cygwin: object dumper.
9364 OBJDUMP="$OBJDUMP"
9365
9366 # Used on cygwin: assembler.
9367 AS="$AS"
9368
9369 # The name of the directory that contains temporary libtool files.
9370 objdir=$objdir
9371
9372 # How to create reloadable object files.
9373 reload_flag=$lt_reload_flag
9374 reload_cmds=$lt_reload_cmds
9375
9376 # How to pass a linker flag through the compiler.
9377 wl=$lt_lt_prog_compiler_wl
9378
9379 # Object file suffix (normally "o").
9380 objext="$ac_objext"
9381
9382 # Old archive suffix (normally "a").
9383 libext="$libext"
9384
9385 # Shared library suffix (normally ".so").
9386 shrext_cmds='$shrext_cmds'
9387
9388 # Executable file suffix (normally "").
9389 exeext="$exeext"
9390
9391 # Additional compiler flags for building library objects.
9392 pic_flag=$lt_lt_prog_compiler_pic
9393 pic_mode=$pic_mode
9394
9395 # What is the maximum length of a command?
9396 max_cmd_len=$lt_cv_sys_max_cmd_len
9397
9398 # Does compiler simultaneously support -c and -o options?
9399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9400
9401 # Must we lock files when doing compilation?
9402 need_locks=$lt_need_locks
9403
9404 # Do we need the lib prefix for modules?
9405 need_lib_prefix=$need_lib_prefix
9406
9407 # Do we need a version for libraries?
9408 need_version=$need_version
9409
9410 # Whether dlopen is supported.
9411 dlopen_support=$enable_dlopen
9412
9413 # Whether dlopen of programs is supported.
9414 dlopen_self=$enable_dlopen_self
9415
9416 # Whether dlopen of statically linked programs is supported.
9417 dlopen_self_static=$enable_dlopen_self_static
9418
9419 # Compiler flag to prevent dynamic linking.
9420 link_static_flag=$lt_lt_prog_compiler_static
9421
9422 # Compiler flag to turn off builtin functions.
9423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9424
9425 # Compiler flag to allow reflexive dlopens.
9426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9427
9428 # Compiler flag to generate shared objects directly from archives.
9429 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9430
9431 # Compiler flag to generate thread-safe objects.
9432 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9433
9434 # Library versioning type.
9435 version_type=$version_type
9436
9437 # Format of library name prefix.
9438 libname_spec=$lt_libname_spec
9439
9440 # List of archive names. First name is the real one, the rest are links.
9441 # The last name is the one that the linker finds with -lNAME.
9442 library_names_spec=$lt_library_names_spec
9443
9444 # The coded name of the library, if different from the real name.
9445 soname_spec=$lt_soname_spec
9446
9447 # Commands used to build and install an old-style archive.
9448 RANLIB=$lt_RANLIB
9449 old_archive_cmds=$lt_old_archive_cmds
9450 old_postinstall_cmds=$lt_old_postinstall_cmds
9451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9452
9453 # Create an old-style archive from a shared archive.
9454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9455
9456 # Create a temporary old-style archive to link instead of a shared archive.
9457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9458
9459 # Commands used to build and install a shared archive.
9460 archive_cmds=$lt_archive_cmds
9461 archive_expsym_cmds=$lt_archive_expsym_cmds
9462 postinstall_cmds=$lt_postinstall_cmds
9463 postuninstall_cmds=$lt_postuninstall_cmds
9464
9465 # Commands used to build a loadable module (assumed same as above if empty)
9466 module_cmds=$lt_module_cmds
9467 module_expsym_cmds=$lt_module_expsym_cmds
9468
9469 # Commands to strip libraries.
9470 old_striplib=$lt_old_striplib
9471 striplib=$lt_striplib
9472
9473 # Dependencies to place before the objects being linked to create a
9474 # shared library.
9475 predep_objects=$lt_predep_objects
9476
9477 # Dependencies to place after the objects being linked to create a
9478 # shared library.
9479 postdep_objects=$lt_postdep_objects
9480
9481 # Dependencies to place before the objects being linked to create a
9482 # shared library.
9483 predeps=$lt_predeps
9484
9485 # Dependencies to place after the objects being linked to create a
9486 # shared library.
9487 postdeps=$lt_postdeps
9488
9489 # The library search path used internally by the compiler when linking
9490 # a shared library.
9491 compiler_lib_search_path=$lt_compiler_lib_search_path
9492
9493 # Method to check whether dependent libraries are shared objects.
9494 deplibs_check_method=$lt_deplibs_check_method
9495
9496 # Command to use when deplibs_check_method == file_magic.
9497 file_magic_cmd=$lt_file_magic_cmd
9498
9499 # Flag that allows shared libraries with undefined symbols to be built.
9500 allow_undefined_flag=$lt_allow_undefined_flag
9501
9502 # Flag that forces no undefined symbols.
9503 no_undefined_flag=$lt_no_undefined_flag
9504
9505 # Commands used to finish a libtool library installation in a directory.
9506 finish_cmds=$lt_finish_cmds
9507
9508 # Same as above, but a single script fragment to be evaled but not shown.
9509 finish_eval=$lt_finish_eval
9510
9511 # Take the output of nm and produce a listing of raw symbols and C names.
9512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9513
9514 # Transform the output of nm in a proper C declaration
9515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9516
9517 # Transform the output of nm in a C name address pair
9518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9519
9520 # This is the shared library runtime path variable.
9521 runpath_var=$runpath_var
9522
9523 # This is the shared library path variable.
9524 shlibpath_var=$shlibpath_var
9525
9526 # Is shlibpath searched before the hard-coded library search path?
9527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9528
9529 # How to hardcode a shared library path into an executable.
9530 hardcode_action=$hardcode_action
9531
9532 # Whether we should hardcode library paths into libraries.
9533 hardcode_into_libs=$hardcode_into_libs
9534
9535 # Flag to hardcode \$libdir into a binary during linking.
9536 # This must work even if \$libdir does not exist.
9537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9538
9539 # If ld is used when linking, flag to hardcode \$libdir into
9540 # a binary during linking. This must work even if \$libdir does
9541 # not exist.
9542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9543
9544 # Whether we need a single -rpath flag with a separated argument.
9545 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9546
9547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9548 # resulting binary.
9549 hardcode_direct=$hardcode_direct
9550
9551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9552 # resulting binary.
9553 hardcode_minus_L=$hardcode_minus_L
9554
9555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9556 # the resulting binary.
9557 hardcode_shlibpath_var=$hardcode_shlibpath_var
9558
9559 # Set to yes if building a shared library automatically hardcodes DIR into the library
9560 # and all subsequent libraries and executables linked against it.
9561 hardcode_automatic=$hardcode_automatic
9562
9563 # Variables whose values should be saved in libtool wrapper scripts and
9564 # restored at relink time.
9565 variables_saved_for_relink="$variables_saved_for_relink"
9566
9567 # Whether libtool must link a program against all its dependency libraries.
9568 link_all_deplibs=$link_all_deplibs
9569
9570 # Compile-time system search path for libraries
9571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9572
9573 # Run-time system search path for libraries
9574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9575
9576 # Fix the shell variable \$srcfile for the compiler.
9577 fix_srcfile_path="$fix_srcfile_path"
9578
9579 # Set to yes if exported symbols are required.
9580 always_export_symbols=$always_export_symbols
9581
9582 # The commands to list exported symbols.
9583 export_symbols_cmds=$lt_export_symbols_cmds
9584
9585 # The commands to extract the exported symbol list from a shared archive.
9586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9587
9588 # Symbols that should not be listed in the preloaded symbols.
9589 exclude_expsyms=$lt_exclude_expsyms
9590
9591 # Symbols that must always be exported.
9592 include_expsyms=$lt_include_expsyms
9593
9594 # ### END LIBTOOL CONFIG
9595
9596 __EOF__
9597
9598
9599 case $host_os in
9600 aix3*)
9601 cat <<\EOF >> "$cfgfile"
9602
9603 # AIX sometimes has problems with the GCC collect2 program. For some
9604 # reason, if we set the COLLECT_NAMES environment variable, the problems
9605 # vanish in a puff of smoke.
9606 if test "X${COLLECT_NAMES+set}" != Xset; then
9607 COLLECT_NAMES=
9608 export COLLECT_NAMES
9609 fi
9610 EOF
9611 ;;
9612 esac
9613
9614 # We use sed instead of cat because bash on DJGPP gets confused if
9615 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9616 # text mode, it properly converts lines to CR/LF. This bash problem
9617 # is reportedly fixed, but why not run on old versions too?
9618 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9619
9620 mv -f "$cfgfile" "$ofile" || \
9621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9622 chmod +x "$ofile"
9623
9624 else
9625 # If there is no Makefile yet, we rely on a make rule to execute
9626 # `config.status --recheck' to rerun these tests and create the
9627 # libtool script then.
9628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9629 if test -f "$ltmain_in"; then
9630 test -f Makefile && make "$ltmain"
9631 fi
9632 fi
9633
9634
9635 ac_ext=c
9636 ac_cpp='$CPP $CPPFLAGS'
9637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9640
9641 CC="$lt_save_CC"
9642
9643
9644 # Check whether --with-tags or --without-tags was given.
9645 if test "${with_tags+set}" = set; then
9646 withval="$with_tags"
9647 tagnames="$withval"
9648 fi;
9649
9650 if test -f "$ltmain" && test -n "$tagnames"; then
9651 if test ! -f "${ofile}"; then
9652 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9653 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9654 fi
9655
9656 if test -z "$LTCC"; then
9657 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9658 if test -z "$LTCC"; then
9659 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9660 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9661 else
9662 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9663 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9664 fi
9665 fi
9666
9667 # Extract list of available tagged configurations in $ofile.
9668 # Note that this assumes the entire list is on one line.
9669 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9670
9671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9672 for tagname in $tagnames; do
9673 IFS="$lt_save_ifs"
9674 # Check whether tagname contains only valid characters
9675 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9676 "") ;;
9677 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9678 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9679 { (exit 1); exit 1; }; }
9680 ;;
9681 esac
9682
9683 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9684 then
9685 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9686 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9687 { (exit 1); exit 1; }; }
9688 fi
9689
9690 # Update the list of available tags.
9691 if test -n "$tagname"; then
9692 echo appending configuration tag \"$tagname\" to $ofile
9693
9694 case $tagname in
9695 CXX)
9696 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9697 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9698 (test "X$CXX" != "Xg++"))) ; then
9699 ac_ext=cc
9700 ac_cpp='$CXXCPP $CPPFLAGS'
9701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9704
9705
9706
9707
9708 archive_cmds_need_lc_CXX=no
9709 allow_undefined_flag_CXX=
9710 always_export_symbols_CXX=no
9711 archive_expsym_cmds_CXX=
9712 export_dynamic_flag_spec_CXX=
9713 hardcode_direct_CXX=no
9714 hardcode_libdir_flag_spec_CXX=
9715 hardcode_libdir_flag_spec_ld_CXX=
9716 hardcode_libdir_separator_CXX=
9717 hardcode_minus_L_CXX=no
9718 hardcode_automatic_CXX=no
9719 module_cmds_CXX=
9720 module_expsym_cmds_CXX=
9721 link_all_deplibs_CXX=unknown
9722 old_archive_cmds_CXX=$old_archive_cmds
9723 no_undefined_flag_CXX=
9724 whole_archive_flag_spec_CXX=
9725 enable_shared_with_static_runtimes_CXX=no
9726
9727 # Dependencies to place before and after the object being linked:
9728 predep_objects_CXX=
9729 postdep_objects_CXX=
9730 predeps_CXX=
9731 postdeps_CXX=
9732 compiler_lib_search_path_CXX=
9733
9734 # Source file extension for C++ test sources.
9735 ac_ext=cpp
9736
9737 # Object file extension for compiled C++ test sources.
9738 objext=o
9739 objext_CXX=$objext
9740
9741 # Code to be used in simple compile tests
9742 lt_simple_compile_test_code="int some_variable = 0;\n"
9743
9744 # Code to be used in simple link tests
9745 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9746
9747 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9748
9749 # If no C compiler was specified, use CC.
9750 LTCC=${LTCC-"$CC"}
9751
9752 # Allow CC to be a program name with arguments.
9753 compiler=$CC
9754
9755
9756 # save warnings/boilerplate of simple test code
9757 ac_outfile=conftest.$ac_objext
9758 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9760 _lt_compiler_boilerplate=`cat conftest.err`
9761 $rm conftest*
9762
9763 ac_outfile=conftest.$ac_objext
9764 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9766 _lt_linker_boilerplate=`cat conftest.err`
9767 $rm conftest*
9768
9769
9770 # Allow CC to be a program name with arguments.
9771 lt_save_CC=$CC
9772 lt_save_LD=$LD
9773 lt_save_GCC=$GCC
9774 GCC=$GXX
9775 lt_save_with_gnu_ld=$with_gnu_ld
9776 lt_save_path_LD=$lt_cv_path_LD
9777 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9778 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9779 else
9780 unset lt_cv_prog_gnu_ld
9781 fi
9782 if test -n "${lt_cv_path_LDCXX+set}"; then
9783 lt_cv_path_LD=$lt_cv_path_LDCXX
9784 else
9785 unset lt_cv_path_LD
9786 fi
9787 test -z "${LDCXX+set}" || LD=$LDCXX
9788 CC=${CXX-"c++"}
9789 compiler=$CC
9790 compiler_CXX=$CC
9791 for cc_temp in $compiler""; do
9792 case $cc_temp in
9793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9795 \-*) ;;
9796 *) break;;
9797 esac
9798 done
9799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9800
9801
9802 # We don't want -fno-exception wen compiling C++ code, so set the
9803 # no_builtin_flag separately
9804 if test "$GXX" = yes; then
9805 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9806 else
9807 lt_prog_compiler_no_builtin_flag_CXX=
9808 fi
9809
9810 if test "$GXX" = yes; then
9811 # Set up default GNU C++ configuration
9812
9813
9814 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9815 if test "${with_gnu_ld+set}" = set; then
9816 withval="$with_gnu_ld"
9817 test "$withval" = no || with_gnu_ld=yes
9818 else
9819 with_gnu_ld=no
9820 fi;
9821 ac_prog=ld
9822 if test "$GCC" = yes; then
9823 # Check if gcc -print-prog-name=ld gives a path.
9824 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9825 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9826 case $host in
9827 *-*-mingw*)
9828 # gcc leaves a trailing carriage return which upsets mingw
9829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9830 *)
9831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9832 esac
9833 case $ac_prog in
9834 # Accept absolute paths.
9835 [\\/]* | ?:[\\/]*)
9836 re_direlt='/[^/][^/]*/\.\./'
9837 # Canonicalize the pathname of ld
9838 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9839 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9840 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9841 done
9842 test -z "$LD" && LD="$ac_prog"
9843 ;;
9844 "")
9845 # If it fails, then pretend we aren't using GCC.
9846 ac_prog=ld
9847 ;;
9848 *)
9849 # If it is relative, then search for the first ld in PATH.
9850 with_gnu_ld=unknown
9851 ;;
9852 esac
9853 elif test "$with_gnu_ld" = yes; then
9854 echo "$as_me:$LINENO: checking for GNU ld" >&5
9855 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9856 else
9857 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9858 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9859 fi
9860 if test "${lt_cv_path_LD+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 if test -z "$LD"; then
9864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9865 for ac_dir in $PATH; do
9866 IFS="$lt_save_ifs"
9867 test -z "$ac_dir" && ac_dir=.
9868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9869 lt_cv_path_LD="$ac_dir/$ac_prog"
9870 # Check to see if the program is GNU ld. I'd rather use --version,
9871 # but apparently some variants of GNU ld only accept -v.
9872 # Break only if it was the GNU/non-GNU ld that we prefer.
9873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9874 *GNU* | *'with BFD'*)
9875 test "$with_gnu_ld" != no && break
9876 ;;
9877 *)
9878 test "$with_gnu_ld" != yes && break
9879 ;;
9880 esac
9881 fi
9882 done
9883 IFS="$lt_save_ifs"
9884 else
9885 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9886 fi
9887 fi
9888
9889 LD="$lt_cv_path_LD"
9890 if test -n "$LD"; then
9891 echo "$as_me:$LINENO: result: $LD" >&5
9892 echo "${ECHO_T}$LD" >&6
9893 else
9894 echo "$as_me:$LINENO: result: no" >&5
9895 echo "${ECHO_T}no" >&6
9896 fi
9897 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9898 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9899 { (exit 1); exit 1; }; }
9900 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9901 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9902 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9906 case `$LD -v 2>&1 </dev/null` in
9907 *GNU* | *'with BFD'*)
9908 lt_cv_prog_gnu_ld=yes
9909 ;;
9910 *)
9911 lt_cv_prog_gnu_ld=no
9912 ;;
9913 esac
9914 fi
9915 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9916 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9917 with_gnu_ld=$lt_cv_prog_gnu_ld
9918
9919
9920
9921 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9922 # archiving commands below assume that GNU ld is being used.
9923 if test "$with_gnu_ld" = yes; then
9924 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925 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'
9926
9927 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9928 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9929
9930 # If archive_cmds runs LD, not CC, wlarc should be empty
9931 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9932 # investigate it a little bit more. (MM)
9933 wlarc='${wl}'
9934
9935 # ancient GNU ld didn't support --whole-archive et. al.
9936 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9937 grep 'no-whole-archive' > /dev/null; then
9938 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9939 else
9940 whole_archive_flag_spec_CXX=
9941 fi
9942 else
9943 with_gnu_ld=no
9944 wlarc=
9945
9946 # A generic and very simple default shared library creation
9947 # command for GNU C++ for the case where it uses the native
9948 # linker, instead of GNU ld. If possible, this setting should
9949 # overridden to take advantage of the native linker features on
9950 # the platform it is being used on.
9951 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9952 fi
9953
9954 # Commands to make compiler produce verbose output that lists
9955 # what "hidden" libraries, object files and flags are used when
9956 # linking a shared library.
9957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9958
9959 else
9960 GXX=no
9961 with_gnu_ld=no
9962 wlarc=
9963 fi
9964
9965 # PORTME: fill in a description of your system's C++ link characteristics
9966 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9967 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9968 ld_shlibs_CXX=yes
9969 case $host_os in
9970 aix3*)
9971 # FIXME: insert proper C++ library support
9972 ld_shlibs_CXX=no
9973 ;;
9974 aix4* | aix5*)
9975 if test "$host_cpu" = ia64; then
9976 # On IA64, the linker does run time linking by default, so we don't
9977 # have to do anything special.
9978 aix_use_runtimelinking=no
9979 exp_sym_flag='-Bexport'
9980 no_entry_flag=""
9981 else
9982 aix_use_runtimelinking=no
9983
9984 # Test if we are trying to use run time linking or normal
9985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9986 # need to do runtime linking.
9987 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9988 for ld_flag in $LDFLAGS; do
9989 case $ld_flag in
9990 *-brtl*)
9991 aix_use_runtimelinking=yes
9992 break
9993 ;;
9994 esac
9995 done
9996 esac
9997
9998 exp_sym_flag='-bexport'
9999 no_entry_flag='-bnoentry'
10000 fi
10001
10002 # When large executables or shared objects are built, AIX ld can
10003 # have problems creating the table of contents. If linking a library
10004 # or program results in "error TOC overflow" add -mminimal-toc to
10005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10007
10008 archive_cmds_CXX=''
10009 hardcode_direct_CXX=yes
10010 hardcode_libdir_separator_CXX=':'
10011 link_all_deplibs_CXX=yes
10012
10013 if test "$GXX" = yes; then
10014 case $host_os in aix4.[012]|aix4.[012].*)
10015 # We only want to do this on AIX 4.2 and lower, the check
10016 # below for broken collect2 doesn't work under 4.3+
10017 collect2name=`${CC} -print-prog-name=collect2`
10018 if test -f "$collect2name" && \
10019 strings "$collect2name" | grep resolve_lib_name >/dev/null
10020 then
10021 # We have reworked collect2
10022 hardcode_direct_CXX=yes
10023 else
10024 # We have old collect2
10025 hardcode_direct_CXX=unsupported
10026 # It fails to find uninstalled libraries when the uninstalled
10027 # path is not listed in the libpath. Setting hardcode_minus_L
10028 # to unsupported forces relinking
10029 hardcode_minus_L_CXX=yes
10030 hardcode_libdir_flag_spec_CXX='-L$libdir'
10031 hardcode_libdir_separator_CXX=
10032 fi
10033 esac
10034 shared_flag='-shared'
10035 if test "$aix_use_runtimelinking" = yes; then
10036 shared_flag="$shared_flag "'${wl}-G'
10037 fi
10038 else
10039 # not using gcc
10040 if test "$host_cpu" = ia64; then
10041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10042 # chokes on -Wl,-G. The following line is correct:
10043 shared_flag='-G'
10044 else
10045 if test "$aix_use_runtimelinking" = yes; then
10046 shared_flag='${wl}-G'
10047 else
10048 shared_flag='${wl}-bM:SRE'
10049 fi
10050 fi
10051 fi
10052
10053 # It seems that -bexpall does not export symbols beginning with
10054 # underscore (_), so it is better to generate a list of symbols to export.
10055 always_export_symbols_CXX=yes
10056 if test "$aix_use_runtimelinking" = yes; then
10057 # Warning - without using the other runtime loading flags (-brtl),
10058 # -berok will link without error, but may produce a broken library.
10059 allow_undefined_flag_CXX='-berok'
10060 # Determine the default libpath from the value encoded in an empty executable.
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067
10068 int
10069 main ()
10070 {
10071
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext conftest$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097
10098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10099 }'`
10100 # Check for a 64-bit object if we didn't find anything.
10101 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; }
10102 }'`; fi
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 fi
10108 rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10111
10112 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10113
10114 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"
10115 else
10116 if test "$host_cpu" = ia64; then
10117 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10118 allow_undefined_flag_CXX="-z nodefs"
10119 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"
10120 else
10121 # Determine the default libpath from the value encoded in an empty executable.
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128
10129 int
10130 main ()
10131 {
10132
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158
10159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10160 }'`
10161 # Check for a 64-bit object if we didn't find anything.
10162 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; }
10163 }'`; fi
10164 else
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 fi
10169 rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10172
10173 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10174 # Warning - without using the other run time loading flags,
10175 # -berok will link without error, but may produce a broken library.
10176 no_undefined_flag_CXX=' ${wl}-bernotok'
10177 allow_undefined_flag_CXX=' ${wl}-berok'
10178 # -bexpall does not export symbols beginning with underscore (_)
10179 always_export_symbols_CXX=yes
10180 # Exported symbols can be pulled into shared objects from archives
10181 whole_archive_flag_spec_CXX=' '
10182 archive_cmds_need_lc_CXX=yes
10183 # This is similar to how AIX traditionally builds its shared libraries.
10184 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'
10185 fi
10186 fi
10187 ;;
10188 chorus*)
10189 case $cc_basename in
10190 *)
10191 # FIXME: insert proper C++ library support
10192 ld_shlibs_CXX=no
10193 ;;
10194 esac
10195 ;;
10196
10197
10198 cygwin* | mingw* | pw32*)
10199 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10200 # as there is no search path for DLLs.
10201 hardcode_libdir_flag_spec_CXX='-L$libdir'
10202 allow_undefined_flag_CXX=unsupported
10203 always_export_symbols_CXX=no
10204 enable_shared_with_static_runtimes_CXX=yes
10205
10206 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10207 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'
10208 # If the export-symbols file already is a .def file (1st line
10209 # is EXPORTS), use it as is; otherwise, prepend...
10210 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10211 cp $export_symbols $output_objdir/$soname.def;
10212 else
10213 echo EXPORTS > $output_objdir/$soname.def;
10214 cat $export_symbols >> $output_objdir/$soname.def;
10215 fi~
10216 $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'
10217 else
10218 ld_shlibs_CXX=no
10219 fi
10220 ;;
10221 darwin* | rhapsody*)
10222 case $host_os in
10223 rhapsody* | darwin1.[012])
10224 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10225 ;;
10226 *) # Darwin 1.3 on
10227 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10228 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10229 else
10230 case ${MACOSX_DEPLOYMENT_TARGET} in
10231 10.[012])
10232 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10233 ;;
10234 10.*)
10235 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10236 ;;
10237 esac
10238 fi
10239 ;;
10240 esac
10241 archive_cmds_need_lc_CXX=no
10242 hardcode_direct_CXX=no
10243 hardcode_automatic_CXX=yes
10244 hardcode_shlibpath_var_CXX=unsupported
10245 whole_archive_flag_spec_CXX=''
10246 link_all_deplibs_CXX=yes
10247
10248 if test "$GXX" = yes ; then
10249 lt_int_apple_cc_single_mod=no
10250 output_verbose_link_cmd='echo'
10251 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10252 lt_int_apple_cc_single_mod=yes
10253 fi
10254 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10255 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10256 else
10257 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10258 fi
10259 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10261 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10262 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}'
10263 else
10264 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10265 fi
10266 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}'
10267 else
10268 case $cc_basename in
10269 xlc*)
10270 output_verbose_link_cmd='echo'
10271 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10272 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10274 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10275 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}'
10276 ;;
10277 *)
10278 ld_shlibs_CXX=no
10279 ;;
10280 esac
10281 fi
10282 ;;
10283
10284 dgux*)
10285 case $cc_basename in
10286 ec++*)
10287 # FIXME: insert proper C++ library support
10288 ld_shlibs_CXX=no
10289 ;;
10290 ghcx*)
10291 # Green Hills C++ Compiler
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 ;;
10295 *)
10296 # FIXME: insert proper C++ library support
10297 ld_shlibs_CXX=no
10298 ;;
10299 esac
10300 ;;
10301 freebsd[12]*)
10302 # C++ shared libraries reported to be fairly broken before switch to ELF
10303 ld_shlibs_CXX=no
10304 ;;
10305 freebsd-elf*)
10306 archive_cmds_need_lc_CXX=no
10307 ;;
10308 freebsd* | kfreebsd*-gnu | dragonfly*)
10309 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10310 # conventions
10311 ld_shlibs_CXX=yes
10312 ;;
10313 gnu*)
10314 ;;
10315 hpux9*)
10316 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10317 hardcode_libdir_separator_CXX=:
10318 export_dynamic_flag_spec_CXX='${wl}-E'
10319 hardcode_direct_CXX=yes
10320 hardcode_minus_L_CXX=yes # Not in the search PATH,
10321 # but as the default
10322 # location of the library.
10323
10324 case $cc_basename in
10325 CC*)
10326 # FIXME: insert proper C++ library support
10327 ld_shlibs_CXX=no
10328 ;;
10329 aCC*)
10330 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'
10331 # Commands to make compiler produce verbose output that lists
10332 # what "hidden" libraries, object files and flags are used when
10333 # linking a shared library.
10334 #
10335 # There doesn't appear to be a way to prevent this compiler from
10336 # explicitly linking system object files so we need to strip them
10337 # from the output so that they don't get included in the library
10338 # dependencies.
10339 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'
10340 ;;
10341 *)
10342 if test "$GXX" = yes; then
10343 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'
10344 else
10345 # FIXME: insert proper C++ library support
10346 ld_shlibs_CXX=no
10347 fi
10348 ;;
10349 esac
10350 ;;
10351 hpux10*|hpux11*)
10352 if test $with_gnu_ld = no; then
10353 case $host_cpu in
10354 hppa*64*)
10355 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10356 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10357 hardcode_libdir_separator_CXX=:
10358 ;;
10359 ia64*)
10360 hardcode_libdir_flag_spec_CXX='-L$libdir'
10361 ;;
10362 *)
10363 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10364 hardcode_libdir_separator_CXX=:
10365 export_dynamic_flag_spec_CXX='${wl}-E'
10366 ;;
10367 esac
10368 fi
10369 case $host_cpu in
10370 hppa*64*)
10371 hardcode_direct_CXX=no
10372 hardcode_shlibpath_var_CXX=no
10373 ;;
10374 ia64*)
10375 hardcode_direct_CXX=no
10376 hardcode_shlibpath_var_CXX=no
10377 hardcode_minus_L_CXX=yes # Not in the search PATH,
10378 # but as the default
10379 # location of the library.
10380 ;;
10381 *)
10382 hardcode_direct_CXX=yes
10383 hardcode_minus_L_CXX=yes # Not in the search PATH,
10384 # but as the default
10385 # location of the library.
10386 ;;
10387 esac
10388
10389 case $cc_basename in
10390 CC*)
10391 # FIXME: insert proper C++ library support
10392 ld_shlibs_CXX=no
10393 ;;
10394 aCC*)
10395 case $host_cpu in
10396 hppa*64*|ia64*)
10397 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10398 ;;
10399 *)
10400 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10401 ;;
10402 esac
10403 # Commands to make compiler produce verbose output that lists
10404 # what "hidden" libraries, object files and flags are used when
10405 # linking a shared library.
10406 #
10407 # There doesn't appear to be a way to prevent this compiler from
10408 # explicitly linking system object files so we need to strip them
10409 # from the output so that they don't get included in the library
10410 # dependencies.
10411 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'
10412 ;;
10413 *)
10414 if test "$GXX" = yes; then
10415 if test $with_gnu_ld = no; then
10416 case $host_cpu in
10417 ia64*|hppa*64*)
10418 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10419 ;;
10420 *)
10421 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'
10422 ;;
10423 esac
10424 fi
10425 else
10426 # FIXME: insert proper C++ library support
10427 ld_shlibs_CXX=no
10428 fi
10429 ;;
10430 esac
10431 ;;
10432 irix5* | irix6*)
10433 case $cc_basename in
10434 CC*)
10435 # SGI C++
10436 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10437
10438 # Archives containing C++ object files must be created using
10439 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10440 # necessary to make sure instantiated templates are included
10441 # in the archive.
10442 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10443 ;;
10444 *)
10445 if test "$GXX" = yes; then
10446 if test "$with_gnu_ld" = no; then
10447 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10448 else
10449 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'
10450 fi
10451 fi
10452 link_all_deplibs_CXX=yes
10453 ;;
10454 esac
10455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10456 hardcode_libdir_separator_CXX=:
10457 ;;
10458 linux*)
10459 case $cc_basename in
10460 KCC*)
10461 # Kuck and Associates, Inc. (KAI) C++ Compiler
10462
10463 # KCC will only create a shared library if the output file
10464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10465 # to its proper name (with version) after linking.
10466 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'
10467 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'
10468 # Commands to make compiler produce verbose output that lists
10469 # what "hidden" libraries, object files and flags are used when
10470 # linking a shared library.
10471 #
10472 # There doesn't appear to be a way to prevent this compiler from
10473 # explicitly linking system object files so we need to strip them
10474 # from the output so that they don't get included in the library
10475 # dependencies.
10476 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'
10477
10478 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10480
10481 # Archives containing C++ object files must be created using
10482 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10483 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10484 ;;
10485 icpc*)
10486 # Intel C++
10487 with_gnu_ld=yes
10488 # version 8.0 and above of icpc choke on multiply defined symbols
10489 # if we add $predep_objects and $postdep_objects, however 7.1 and
10490 # earlier do not add the objects themselves.
10491 case `$CC -V 2>&1` in
10492 *"Version 7."*)
10493 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10494 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'
10495 ;;
10496 *) # Version 8.0 or newer
10497 tmp_idyn=
10498 case $host_cpu in
10499 ia64*) tmp_idyn=' -i_dynamic';;
10500 esac
10501 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10502 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10503 ;;
10504 esac
10505 archive_cmds_need_lc_CXX=no
10506 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10508 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10509 ;;
10510 pgCC*)
10511 # Portland Group C++ compiler
10512 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10513 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10514
10515 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10517 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10518 ;;
10519 cxx*)
10520 # Compaq C++
10521 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522 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'
10523
10524 runpath_var=LD_RUN_PATH
10525 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10526 hardcode_libdir_separator_CXX=:
10527
10528 # Commands to make compiler produce verbose output that lists
10529 # what "hidden" libraries, object files and flags are used when
10530 # linking a shared library.
10531 #
10532 # There doesn't appear to be a way to prevent this compiler from
10533 # explicitly linking system object files so we need to strip them
10534 # from the output so that they don't get included in the library
10535 # dependencies.
10536 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'
10537 ;;
10538 esac
10539 ;;
10540 lynxos*)
10541 # FIXME: insert proper C++ library support
10542 ld_shlibs_CXX=no
10543 ;;
10544 m88k*)
10545 # FIXME: insert proper C++ library support
10546 ld_shlibs_CXX=no
10547 ;;
10548 mvs*)
10549 case $cc_basename in
10550 cxx*)
10551 # FIXME: insert proper C++ library support
10552 ld_shlibs_CXX=no
10553 ;;
10554 *)
10555 # FIXME: insert proper C++ library support
10556 ld_shlibs_CXX=no
10557 ;;
10558 esac
10559 ;;
10560 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10562 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10563 wlarc=
10564 hardcode_libdir_flag_spec_CXX='-R$libdir'
10565 hardcode_direct_CXX=yes
10566 hardcode_shlibpath_var_CXX=no
10567 fi
10568 # Workaround some broken pre-1.5 toolchains
10569 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10570 ;;
10571 openbsd2*)
10572 # C++ shared libraries are fairly broken
10573 ld_shlibs_CXX=no
10574 ;;
10575 openbsd*)
10576 hardcode_direct_CXX=yes
10577 hardcode_shlibpath_var_CXX=no
10578 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10581 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10582 export_dynamic_flag_spec_CXX='${wl}-E'
10583 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10584 fi
10585 output_verbose_link_cmd='echo'
10586 ;;
10587 osf3*)
10588 case $cc_basename in
10589 KCC*)
10590 # Kuck and Associates, Inc. (KAI) C++ Compiler
10591
10592 # KCC will only create a shared library if the output file
10593 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10594 # to its proper name (with version) after linking.
10595 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'
10596
10597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10598 hardcode_libdir_separator_CXX=:
10599
10600 # Archives containing C++ object files must be created using
10601 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10602 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10603
10604 ;;
10605 RCC*)
10606 # Rational C++ 2.4.1
10607 # FIXME: insert proper C++ library support
10608 ld_shlibs_CXX=no
10609 ;;
10610 cxx*)
10611 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10612 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10613
10614 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10615 hardcode_libdir_separator_CXX=:
10616
10617 # Commands to make compiler produce verbose output that lists
10618 # what "hidden" libraries, object files and flags are used when
10619 # linking a shared library.
10620 #
10621 # There doesn't appear to be a way to prevent this compiler from
10622 # explicitly linking system object files so we need to strip them
10623 # from the output so that they don't get included in the library
10624 # dependencies.
10625 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'
10626 ;;
10627 *)
10628 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10629 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10630 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10631
10632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10633 hardcode_libdir_separator_CXX=:
10634
10635 # Commands to make compiler produce verbose output that lists
10636 # what "hidden" libraries, object files and flags are used when
10637 # linking a shared library.
10638 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10639
10640 else
10641 # FIXME: insert proper C++ library support
10642 ld_shlibs_CXX=no
10643 fi
10644 ;;
10645 esac
10646 ;;
10647 osf4* | osf5*)
10648 case $cc_basename in
10649 KCC*)
10650 # Kuck and Associates, Inc. (KAI) C++ Compiler
10651
10652 # KCC will only create a shared library if the output file
10653 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10654 # to its proper name (with version) after linking.
10655 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'
10656
10657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10658 hardcode_libdir_separator_CXX=:
10659
10660 # Archives containing C++ object files must be created using
10661 # the KAI C++ compiler.
10662 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10663 ;;
10664 RCC*)
10665 # Rational C++ 2.4.1
10666 # FIXME: insert proper C++ library support
10667 ld_shlibs_CXX=no
10668 ;;
10669 cxx*)
10670 allow_undefined_flag_CXX=' -expect_unresolved \*'
10671 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10672 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10673 echo "-hidden">> $lib.exp~
10674 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10675 $rm $lib.exp'
10676
10677 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10678 hardcode_libdir_separator_CXX=:
10679
10680 # Commands to make compiler produce verbose output that lists
10681 # what "hidden" libraries, object files and flags are used when
10682 # linking a shared library.
10683 #
10684 # There doesn't appear to be a way to prevent this compiler from
10685 # explicitly linking system object files so we need to strip them
10686 # from the output so that they don't get included in the library
10687 # dependencies.
10688 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'
10689 ;;
10690 *)
10691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10692 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10693 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10694
10695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10696 hardcode_libdir_separator_CXX=:
10697
10698 # Commands to make compiler produce verbose output that lists
10699 # what "hidden" libraries, object files and flags are used when
10700 # linking a shared library.
10701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10702
10703 else
10704 # FIXME: insert proper C++ library support
10705 ld_shlibs_CXX=no
10706 fi
10707 ;;
10708 esac
10709 ;;
10710 psos*)
10711 # FIXME: insert proper C++ library support
10712 ld_shlibs_CXX=no
10713 ;;
10714 sco*)
10715 archive_cmds_need_lc_CXX=no
10716 case $cc_basename in
10717 CC*)
10718 # FIXME: insert proper C++ library support
10719 ld_shlibs_CXX=no
10720 ;;
10721 *)
10722 # FIXME: insert proper C++ library support
10723 ld_shlibs_CXX=no
10724 ;;
10725 esac
10726 ;;
10727 sunos4*)
10728 case $cc_basename in
10729 CC*)
10730 # Sun C++ 4.x
10731 # FIXME: insert proper C++ library support
10732 ld_shlibs_CXX=no
10733 ;;
10734 lcc*)
10735 # Lucid
10736 # FIXME: insert proper C++ library support
10737 ld_shlibs_CXX=no
10738 ;;
10739 *)
10740 # FIXME: insert proper C++ library support
10741 ld_shlibs_CXX=no
10742 ;;
10743 esac
10744 ;;
10745 solaris*)
10746 case $cc_basename in
10747 CC*)
10748 # Sun C++ 4.2, 5.x and Centerline C++
10749 archive_cmds_need_lc_CXX=yes
10750 no_undefined_flag_CXX=' -zdefs'
10751 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10752 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10753 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10754
10755 hardcode_libdir_flag_spec_CXX='-R$libdir'
10756 hardcode_shlibpath_var_CXX=no
10757 case $host_os in
10758 solaris2.[0-5] | solaris2.[0-5].*) ;;
10759 *)
10760 # The C++ compiler is used as linker so we must use $wl
10761 # flag to pass the commands to the underlying system
10762 # linker. We must also pass each convience library through
10763 # to the system linker between allextract/defaultextract.
10764 # The C++ compiler will combine linker options so we
10765 # cannot just pass the convience library names through
10766 # without $wl.
10767 # Supported since Solaris 2.6 (maybe 2.5.1?)
10768 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10769 ;;
10770 esac
10771 link_all_deplibs_CXX=yes
10772
10773 output_verbose_link_cmd='echo'
10774
10775 # Archives containing C++ object files must be created using
10776 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10777 # necessary to make sure instantiated templates are included
10778 # in the archive.
10779 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10780 ;;
10781 gcx*)
10782 # Green Hills C++ Compiler
10783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10784
10785 # The C++ compiler must be used to create the archive.
10786 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10787 ;;
10788 *)
10789 # GNU C++ compiler with Solaris linker
10790 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10791 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10792 if $CC --version | grep -v '^2\.7' > /dev/null; then
10793 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10794 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10795 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10796
10797 # Commands to make compiler produce verbose output that lists
10798 # what "hidden" libraries, object files and flags are used when
10799 # linking a shared library.
10800 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10801 else
10802 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10803 # platform.
10804 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10805 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10806 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10807
10808 # Commands to make compiler produce verbose output that lists
10809 # what "hidden" libraries, object files and flags are used when
10810 # linking a shared library.
10811 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10812 fi
10813
10814 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10815 fi
10816 ;;
10817 esac
10818 ;;
10819 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10820 archive_cmds_need_lc_CXX=no
10821 ;;
10822 tandem*)
10823 case $cc_basename in
10824 NCC*)
10825 # NonStop-UX NCC 3.20
10826 # FIXME: insert proper C++ library support
10827 ld_shlibs_CXX=no
10828 ;;
10829 *)
10830 # FIXME: insert proper C++ library support
10831 ld_shlibs_CXX=no
10832 ;;
10833 esac
10834 ;;
10835 vxworks*)
10836 # FIXME: insert proper C++ library support
10837 ld_shlibs_CXX=no
10838 ;;
10839 *)
10840 # FIXME: insert proper C++ library support
10841 ld_shlibs_CXX=no
10842 ;;
10843 esac
10844 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10845 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10846 test "$ld_shlibs_CXX" = no && can_build_shared=no
10847
10848 GCC_CXX="$GXX"
10849 LD_CXX="$LD"
10850
10851
10852 cat > conftest.$ac_ext <<EOF
10853 class Foo
10854 {
10855 public:
10856 Foo (void) { a = 0; }
10857 private:
10858 int a;
10859 };
10860 EOF
10861
10862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10863 (eval $ac_compile) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; then
10867 # Parse the compiler output and extract the necessary
10868 # objects, libraries and library flags.
10869
10870 # Sentinel used to keep track of whether or not we are before
10871 # the conftest object file.
10872 pre_test_object_deps_done=no
10873
10874 # The `*' in the case matches for architectures that use `case' in
10875 # $output_verbose_cmd can trigger glob expansion during the loop
10876 # eval without this substitution.
10877 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10878
10879 for p in `eval $output_verbose_link_cmd`; do
10880 case $p in
10881
10882 -L* | -R* | -l*)
10883 # Some compilers place space between "-{L,R}" and the path.
10884 # Remove the space.
10885 if test $p = "-L" \
10886 || test $p = "-R"; then
10887 prev=$p
10888 continue
10889 else
10890 prev=
10891 fi
10892
10893 if test "$pre_test_object_deps_done" = no; then
10894 case $p in
10895 -L* | -R*)
10896 # Internal compiler library paths should come after those
10897 # provided the user. The postdeps already come after the
10898 # user supplied libs so there is no need to process them.
10899 if test -z "$compiler_lib_search_path_CXX"; then
10900 compiler_lib_search_path_CXX="${prev}${p}"
10901 else
10902 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10903 fi
10904 ;;
10905 # The "-l" case would never come before the object being
10906 # linked, so don't bother handling this case.
10907 esac
10908 else
10909 if test -z "$postdeps_CXX"; then
10910 postdeps_CXX="${prev}${p}"
10911 else
10912 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10913 fi
10914 fi
10915 ;;
10916
10917 *.$objext)
10918 # This assumes that the test object file only shows up
10919 # once in the compiler output.
10920 if test "$p" = "conftest.$objext"; then
10921 pre_test_object_deps_done=yes
10922 continue
10923 fi
10924
10925 if test "$pre_test_object_deps_done" = no; then
10926 if test -z "$predep_objects_CXX"; then
10927 predep_objects_CXX="$p"
10928 else
10929 predep_objects_CXX="$predep_objects_CXX $p"
10930 fi
10931 else
10932 if test -z "$postdep_objects_CXX"; then
10933 postdep_objects_CXX="$p"
10934 else
10935 postdep_objects_CXX="$postdep_objects_CXX $p"
10936 fi
10937 fi
10938 ;;
10939
10940 *) ;; # Ignore the rest.
10941
10942 esac
10943 done
10944
10945 # Clean up.
10946 rm -f a.out a.exe
10947 else
10948 echo "libtool.m4: error: problem compiling CXX test program"
10949 fi
10950
10951 $rm -f confest.$objext
10952
10953 # PORTME: override above test on systems where it is broken
10954 case $host_os in
10955 solaris*)
10956 case $cc_basename in
10957 CC*)
10958 # Adding this requires a known-good setup of shared libraries for
10959 # Sun compiler versions before 5.6, else PIC objects from an old
10960 # archive will be linked into the output, leading to subtle bugs.
10961 postdeps_CXX='-lCstd -lCrun'
10962 ;;
10963 esac
10964 esac
10965
10966
10967 case " $postdeps_CXX " in
10968 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10969 esac
10970
10971 lt_prog_compiler_wl_CXX=
10972 lt_prog_compiler_pic_CXX=
10973 lt_prog_compiler_static_CXX=
10974
10975 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10976 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10977
10978 # C++ specific cases for pic, static, wl, etc.
10979 if test "$GXX" = yes; then
10980 lt_prog_compiler_wl_CXX='-Wl,'
10981 lt_prog_compiler_static_CXX='-static'
10982
10983 case $host_os in
10984 aix*)
10985 # All AIX code is PIC.
10986 if test "$host_cpu" = ia64; then
10987 # AIX 5 now supports IA64 processor
10988 lt_prog_compiler_static_CXX='-Bstatic'
10989 fi
10990 ;;
10991 amigaos*)
10992 # FIXME: we need at least 68020 code to build shared libraries, but
10993 # adding the `-m68020' flag to GCC prevents building anything better,
10994 # like `-m68040'.
10995 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10996 ;;
10997 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10998 # PIC is the default for these OSes.
10999 ;;
11000 mingw* | os2* | pw32*)
11001 # This hack is so that the source file can tell whether it is being
11002 # built for inclusion in a dll (and should export symbols for example).
11003 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11004 ;;
11005 darwin* | rhapsody*)
11006 # PIC is the default on this platform
11007 # Common symbols not allowed in MH_DYLIB files
11008 lt_prog_compiler_pic_CXX='-fno-common'
11009 ;;
11010 *djgpp*)
11011 # DJGPP does not support shared libraries at all
11012 lt_prog_compiler_pic_CXX=
11013 ;;
11014 sysv4*MP*)
11015 if test -d /usr/nec; then
11016 lt_prog_compiler_pic_CXX=-Kconform_pic
11017 fi
11018 ;;
11019 hpux*)
11020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11021 # not for PA HP-UX.
11022 case $host_cpu in
11023 hppa*64*|ia64*)
11024 ;;
11025 *)
11026 lt_prog_compiler_pic_CXX='-fPIC'
11027 ;;
11028 esac
11029 ;;
11030 *)
11031 lt_prog_compiler_pic_CXX='-fPIC'
11032 ;;
11033 esac
11034 else
11035 case $host_os in
11036 aix4* | aix5*)
11037 # All AIX code is PIC.
11038 if test "$host_cpu" = ia64; then
11039 # AIX 5 now supports IA64 processor
11040 lt_prog_compiler_static_CXX='-Bstatic'
11041 else
11042 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11043 fi
11044 ;;
11045 chorus*)
11046 case $cc_basename in
11047 cxch68*)
11048 # Green Hills C++ Compiler
11049 # _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"
11050 ;;
11051 esac
11052 ;;
11053 darwin*)
11054 # PIC is the default on this platform
11055 # Common symbols not allowed in MH_DYLIB files
11056 case $cc_basename in
11057 xlc*)
11058 lt_prog_compiler_pic_CXX='-qnocommon'
11059 lt_prog_compiler_wl_CXX='-Wl,'
11060 ;;
11061 esac
11062 ;;
11063 dgux*)
11064 case $cc_basename in
11065 ec++*)
11066 lt_prog_compiler_pic_CXX='-KPIC'
11067 ;;
11068 ghcx*)
11069 # Green Hills C++ Compiler
11070 lt_prog_compiler_pic_CXX='-pic'
11071 ;;
11072 *)
11073 ;;
11074 esac
11075 ;;
11076 freebsd* | kfreebsd*-gnu | dragonfly*)
11077 # FreeBSD uses GNU C++
11078 ;;
11079 hpux9* | hpux10* | hpux11*)
11080 case $cc_basename in
11081 CC*)
11082 lt_prog_compiler_wl_CXX='-Wl,'
11083 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11084 if test "$host_cpu" != ia64; then
11085 lt_prog_compiler_pic_CXX='+Z'
11086 fi
11087 ;;
11088 aCC*)
11089 lt_prog_compiler_wl_CXX='-Wl,'
11090 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11091 case $host_cpu in
11092 hppa*64*|ia64*)
11093 # +Z the default
11094 ;;
11095 *)
11096 lt_prog_compiler_pic_CXX='+Z'
11097 ;;
11098 esac
11099 ;;
11100 *)
11101 ;;
11102 esac
11103 ;;
11104 irix5* | irix6* | nonstopux*)
11105 case $cc_basename in
11106 CC*)
11107 lt_prog_compiler_wl_CXX='-Wl,'
11108 lt_prog_compiler_static_CXX='-non_shared'
11109 # CC pic flag -KPIC is the default.
11110 ;;
11111 *)
11112 ;;
11113 esac
11114 ;;
11115 linux*)
11116 case $cc_basename in
11117 KCC*)
11118 # KAI C++ Compiler
11119 lt_prog_compiler_wl_CXX='--backend -Wl,'
11120 lt_prog_compiler_pic_CXX='-fPIC'
11121 ;;
11122 icpc* | ecpc*)
11123 # Intel C++
11124 lt_prog_compiler_wl_CXX='-Wl,'
11125 lt_prog_compiler_pic_CXX='-KPIC'
11126 lt_prog_compiler_static_CXX='-static'
11127 ;;
11128 pgCC*)
11129 # Portland Group C++ compiler.
11130 lt_prog_compiler_wl_CXX='-Wl,'
11131 lt_prog_compiler_pic_CXX='-fpic'
11132 lt_prog_compiler_static_CXX='-Bstatic'
11133 ;;
11134 cxx*)
11135 # Compaq C++
11136 # Make sure the PIC flag is empty. It appears that all Alpha
11137 # Linux and Compaq Tru64 Unix objects are PIC.
11138 lt_prog_compiler_pic_CXX=
11139 lt_prog_compiler_static_CXX='-non_shared'
11140 ;;
11141 *)
11142 ;;
11143 esac
11144 ;;
11145 lynxos*)
11146 ;;
11147 m88k*)
11148 ;;
11149 mvs*)
11150 case $cc_basename in
11151 cxx*)
11152 lt_prog_compiler_pic_CXX='-W c,exportall'
11153 ;;
11154 *)
11155 ;;
11156 esac
11157 ;;
11158 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11159 ;;
11160 osf3* | osf4* | osf5*)
11161 case $cc_basename in
11162 KCC*)
11163 lt_prog_compiler_wl_CXX='--backend -Wl,'
11164 ;;
11165 RCC*)
11166 # Rational C++ 2.4.1
11167 lt_prog_compiler_pic_CXX='-pic'
11168 ;;
11169 cxx*)
11170 # Digital/Compaq C++
11171 lt_prog_compiler_wl_CXX='-Wl,'
11172 # Make sure the PIC flag is empty. It appears that all Alpha
11173 # Linux and Compaq Tru64 Unix objects are PIC.
11174 lt_prog_compiler_pic_CXX=
11175 lt_prog_compiler_static_CXX='-non_shared'
11176 ;;
11177 *)
11178 ;;
11179 esac
11180 ;;
11181 psos*)
11182 ;;
11183 sco*)
11184 case $cc_basename in
11185 CC*)
11186 lt_prog_compiler_pic_CXX='-fPIC'
11187 ;;
11188 *)
11189 ;;
11190 esac
11191 ;;
11192 solaris*)
11193 case $cc_basename in
11194 CC*)
11195 # Sun C++ 4.2, 5.x and Centerline C++
11196 lt_prog_compiler_pic_CXX='-KPIC'
11197 lt_prog_compiler_static_CXX='-Bstatic'
11198 lt_prog_compiler_wl_CXX='-Qoption ld '
11199 ;;
11200 gcx*)
11201 # Green Hills C++ Compiler
11202 lt_prog_compiler_pic_CXX='-PIC'
11203 ;;
11204 *)
11205 ;;
11206 esac
11207 ;;
11208 sunos4*)
11209 case $cc_basename in
11210 CC*)
11211 # Sun C++ 4.x
11212 lt_prog_compiler_pic_CXX='-pic'
11213 lt_prog_compiler_static_CXX='-Bstatic'
11214 ;;
11215 lcc*)
11216 # Lucid
11217 lt_prog_compiler_pic_CXX='-pic'
11218 ;;
11219 *)
11220 ;;
11221 esac
11222 ;;
11223 tandem*)
11224 case $cc_basename in
11225 NCC*)
11226 # NonStop-UX NCC 3.20
11227 lt_prog_compiler_pic_CXX='-KPIC'
11228 ;;
11229 *)
11230 ;;
11231 esac
11232 ;;
11233 unixware*)
11234 ;;
11235 vxworks*)
11236 ;;
11237 *)
11238 lt_prog_compiler_can_build_shared_CXX=no
11239 ;;
11240 esac
11241 fi
11242
11243 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11244 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11245
11246 #
11247 # Check to make sure the PIC flag actually works.
11248 #
11249 if test -n "$lt_prog_compiler_pic_CXX"; then
11250
11251 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11252 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11253 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 lt_prog_compiler_pic_works_CXX=no
11257 ac_outfile=conftest.$ac_objext
11258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11259 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11260 # Insert the option either (1) after the last *FLAGS variable, or
11261 # (2) before a word containing "conftest.", or (3) at the end.
11262 # Note that $ac_compile itself does not contain backslashes and begins
11263 # with a dollar sign (not a hyphen), so the echo should work correctly.
11264 # The option is referenced via a variable to avoid confusing sed.
11265 lt_compile=`echo "$ac_compile" | $SED \
11266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11268 -e 's:$: $lt_compiler_flag:'`
11269 (eval echo "\"\$as_me:11269: $lt_compile\"" >&5)
11270 (eval "$lt_compile" 2>conftest.err)
11271 ac_status=$?
11272 cat conftest.err >&5
11273 echo "$as_me:11273: \$? = $ac_status" >&5
11274 if (exit $ac_status) && test -s "$ac_outfile"; then
11275 # The compiler can only warn and ignore the option if not recognized
11276 # So say no if there are warnings other than the usual output.
11277 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11278 $SED '/^$/d' conftest.err >conftest.er2
11279 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11280 lt_prog_compiler_pic_works_CXX=yes
11281 fi
11282 fi
11283 $rm conftest*
11284
11285 fi
11286 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11287 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11288
11289 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11290 case $lt_prog_compiler_pic_CXX in
11291 "" | " "*) ;;
11292 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11293 esac
11294 else
11295 lt_prog_compiler_pic_CXX=
11296 lt_prog_compiler_can_build_shared_CXX=no
11297 fi
11298
11299 fi
11300 case $host_os in
11301 # For platforms which do not support PIC, -DPIC is meaningless:
11302 *djgpp*)
11303 lt_prog_compiler_pic_CXX=
11304 ;;
11305 *)
11306 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11307 ;;
11308 esac
11309
11310 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11311 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11312 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315 lt_cv_prog_compiler_c_o_CXX=no
11316 $rm -r conftest 2>/dev/null
11317 mkdir conftest
11318 cd conftest
11319 mkdir out
11320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11321
11322 lt_compiler_flag="-o out/conftest2.$ac_objext"
11323 # Insert the option either (1) after the last *FLAGS variable, or
11324 # (2) before a word containing "conftest.", or (3) at the end.
11325 # Note that $ac_compile itself does not contain backslashes and begins
11326 # with a dollar sign (not a hyphen), so the echo should work correctly.
11327 lt_compile=`echo "$ac_compile" | $SED \
11328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11330 -e 's:$: $lt_compiler_flag:'`
11331 (eval echo "\"\$as_me:11331: $lt_compile\"" >&5)
11332 (eval "$lt_compile" 2>out/conftest.err)
11333 ac_status=$?
11334 cat out/conftest.err >&5
11335 echo "$as_me:11335: \$? = $ac_status" >&5
11336 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11337 then
11338 # The compiler can only warn and ignore the option if not recognized
11339 # So say no if there are warnings
11340 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11341 $SED '/^$/d' out/conftest.err >out/conftest.er2
11342 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11343 lt_cv_prog_compiler_c_o_CXX=yes
11344 fi
11345 fi
11346 chmod u+w . 2>&5
11347 $rm conftest*
11348 # SGI C++ compiler will create directory out/ii_files/ for
11349 # template instantiation
11350 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11351 $rm out/* && rmdir out
11352 cd ..
11353 rmdir conftest
11354 $rm conftest*
11355
11356 fi
11357 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11358 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11359
11360
11361 hard_links="nottested"
11362 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11363 # do not overwrite the value of need_locks provided by the user
11364 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11365 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11366 hard_links=yes
11367 $rm conftest*
11368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11369 touch conftest.a
11370 ln conftest.a conftest.b 2>&5 || hard_links=no
11371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11372 echo "$as_me:$LINENO: result: $hard_links" >&5
11373 echo "${ECHO_T}$hard_links" >&6
11374 if test "$hard_links" = no; then
11375 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11376 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11377 need_locks=warn
11378 fi
11379 else
11380 need_locks=no
11381 fi
11382
11383 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11384 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11385
11386 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11387 case $host_os in
11388 aix4* | aix5*)
11389 # If we're using GNU nm, then we don't want the "-C" option.
11390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11391 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11392 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'
11393 else
11394 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'
11395 fi
11396 ;;
11397 pw32*)
11398 export_symbols_cmds_CXX="$ltdll_cmds"
11399 ;;
11400 cygwin* | mingw*)
11401 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11402 ;;
11403 linux*)
11404 link_all_deplibs_CXX=no
11405 ;;
11406 *)
11407 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11408 ;;
11409 esac
11410
11411 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11412 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11413 test "$ld_shlibs_CXX" = no && can_build_shared=no
11414
11415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11416 if test "$GCC" = yes; then
11417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11418 fi
11419
11420 #
11421 # Do we need to explicitly link libc?
11422 #
11423 case "x$archive_cmds_need_lc_CXX" in
11424 x|xyes)
11425 # Assume -lc should be added
11426 archive_cmds_need_lc_CXX=yes
11427
11428 if test "$enable_shared" = yes && test "$GCC" = yes; then
11429 case $archive_cmds_CXX in
11430 *'~'*)
11431 # FIXME: we may have to deal with multi-command sequences.
11432 ;;
11433 '$CC '*)
11434 # Test whether the compiler implicitly links with -lc since on some
11435 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11436 # to ld, don't add -lc before -lgcc.
11437 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11438 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11439 $rm conftest*
11440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11441
11442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11443 (eval $ac_compile) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } 2>conftest.err; then
11447 soname=conftest
11448 lib=conftest
11449 libobjs=conftest.$ac_objext
11450 deplibs=
11451 wl=$lt_prog_compiler_wl_CXX
11452 compiler_flags=-v
11453 linker_flags=-v
11454 verstring=
11455 output_objdir=.
11456 libname=conftest
11457 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11458 allow_undefined_flag_CXX=
11459 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11460 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }
11464 then
11465 archive_cmds_need_lc_CXX=no
11466 else
11467 archive_cmds_need_lc_CXX=yes
11468 fi
11469 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11470 else
11471 cat conftest.err 1>&5
11472 fi
11473 $rm conftest*
11474 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11475 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11476 ;;
11477 esac
11478 fi
11479 ;;
11480 esac
11481
11482 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11483 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11484 library_names_spec=
11485 libname_spec='lib$name'
11486 soname_spec=
11487 shrext_cmds=".so"
11488 postinstall_cmds=
11489 postuninstall_cmds=
11490 finish_cmds=
11491 finish_eval=
11492 shlibpath_var=
11493 shlibpath_overrides_runpath=unknown
11494 version_type=none
11495 dynamic_linker="$host_os ld.so"
11496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11497 if test "$GCC" = yes; then
11498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11499 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11500 # if the path contains ";" then we assume it to be the separator
11501 # otherwise default to the standard path separator (i.e. ":") - it is
11502 # assumed that no part of a normal pathname contains ";" but that should
11503 # okay in the real world where ";" in dirpaths is itself problematic.
11504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11505 else
11506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11507 fi
11508 else
11509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11510 fi
11511 need_lib_prefix=unknown
11512 hardcode_into_libs=no
11513
11514 # when you set need_version to no, make sure it does not cause -set_version
11515 # flags to be left without arguments
11516 need_version=unknown
11517
11518 case $host_os in
11519 aix3*)
11520 version_type=linux
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11522 shlibpath_var=LIBPATH
11523
11524 # AIX 3 has no versioning support, so we append a major version to the name.
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 ;;
11527
11528 aix4* | aix5*)
11529 version_type=linux
11530 need_lib_prefix=no
11531 need_version=no
11532 hardcode_into_libs=yes
11533 if test "$host_cpu" = ia64; then
11534 # AIX 5 supports IA64
11535 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 else
11538 # With GCC up to 2.95.x, collect2 would create an import file
11539 # for dependence libraries. The import file would start with
11540 # the line `#! .'. This would cause the generated library to
11541 # depend on `.', always an invalid library. This was fixed in
11542 # development snapshots of GCC prior to 3.0.
11543 case $host_os in
11544 aix4 | aix4.[01] | aix4.[01].*)
11545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11546 echo ' yes '
11547 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11548 :
11549 else
11550 can_build_shared=no
11551 fi
11552 ;;
11553 esac
11554 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11555 # soname into executable. Probably we can add versioning support to
11556 # collect2, so additional links can be useful in future.
11557 if test "$aix_use_runtimelinking" = yes; then
11558 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11559 # instead of lib<name>.a to let people know that these are not
11560 # typical AIX shared libraries.
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 else
11563 # We preserve .a as extension for shared libraries through AIX4.2
11564 # and later when we are not doing run time linking.
11565 library_names_spec='${libname}${release}.a $libname.a'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 fi
11568 shlibpath_var=LIBPATH
11569 fi
11570 ;;
11571
11572 amigaos*)
11573 library_names_spec='$libname.ixlibrary $libname.a'
11574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11575 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'
11576 ;;
11577
11578 beos*)
11579 library_names_spec='${libname}${shared_ext}'
11580 dynamic_linker="$host_os ld.so"
11581 shlibpath_var=LIBRARY_PATH
11582 ;;
11583
11584 bsdi[45]*)
11585 version_type=linux
11586 need_version=no
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11593 # the default ld.so.conf also contains /usr/contrib/lib and
11594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11595 # libtool to hard-code these into programs
11596 ;;
11597
11598 cygwin* | mingw* | pw32*)
11599 version_type=windows
11600 shrext_cmds=".dll"
11601 need_version=no
11602 need_lib_prefix=no
11603
11604 case $GCC,$host_os in
11605 yes,cygwin* | yes,mingw* | yes,pw32*)
11606 library_names_spec='$libname.dll.a'
11607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11608 postinstall_cmds='base_file=`basename \${file}`~
11609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11610 dldir=$destdir/`dirname \$dlpath`~
11611 test -d \$dldir || mkdir -p \$dldir~
11612 $install_prog $dir/$dlname \$dldir/$dlname~
11613 chmod a+x \$dldir/$dlname'
11614 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11615 dlpath=$dir/\$dldll~
11616 $rm \$dlpath'
11617 shlibpath_overrides_runpath=yes
11618
11619 case $host_os in
11620 cygwin*)
11621 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11622 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11623 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11624 ;;
11625 mingw*)
11626 # MinGW DLLs use traditional 'lib' prefix
11627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11628 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11629 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11630 # It is most probably a Windows format PATH printed by
11631 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11632 # path with ; separators, and with drive letters. We can handle the
11633 # drive letters (cygwin fileutils understands them), so leave them,
11634 # especially as we might pass files found there to a mingw objdump,
11635 # which wouldn't understand a cygwinified path. Ahh.
11636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11637 else
11638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11639 fi
11640 ;;
11641 pw32*)
11642 # pw32 DLLs use 'pw' prefix rather than 'lib'
11643 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11644 ;;
11645 esac
11646 ;;
11647
11648 *)
11649 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11650 ;;
11651 esac
11652 dynamic_linker='Win32 ld.exe'
11653 # FIXME: first we should search . and the directory the executable is in
11654 shlibpath_var=PATH
11655 ;;
11656
11657 darwin* | rhapsody*)
11658 dynamic_linker="$host_os dyld"
11659 version_type=darwin
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11663 soname_spec='${libname}${release}${major}$shared_ext'
11664 shlibpath_overrides_runpath=yes
11665 shlibpath_var=DYLD_LIBRARY_PATH
11666 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11667 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11668 if test "$GCC" = yes; then
11669 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"`
11670 else
11671 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11672 fi
11673 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11674 ;;
11675
11676 dgux*)
11677 version_type=linux
11678 need_lib_prefix=no
11679 need_version=no
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11681 soname_spec='${libname}${release}${shared_ext}$major'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 ;;
11684
11685 freebsd1*)
11686 dynamic_linker=no
11687 ;;
11688
11689 kfreebsd*-gnu)
11690 version_type=linux
11691 need_lib_prefix=no
11692 need_version=no
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 shlibpath_overrides_runpath=no
11697 hardcode_into_libs=yes
11698 dynamic_linker='GNU ld.so'
11699 ;;
11700
11701 freebsd* | dragonfly*)
11702 # DragonFly does not have aout. When/if they implement a new
11703 # versioning mechanism, adjust this.
11704 if test -x /usr/bin/objformat; then
11705 objformat=`/usr/bin/objformat`
11706 else
11707 case $host_os in
11708 freebsd[123]*) objformat=aout ;;
11709 *) objformat=elf ;;
11710 esac
11711 fi
11712 version_type=freebsd-$objformat
11713 case $version_type in
11714 freebsd-elf*)
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11716 need_version=no
11717 need_lib_prefix=no
11718 ;;
11719 freebsd-*)
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11721 need_version=yes
11722 ;;
11723 esac
11724 shlibpath_var=LD_LIBRARY_PATH
11725 case $host_os in
11726 freebsd2*)
11727 shlibpath_overrides_runpath=yes
11728 ;;
11729 freebsd3.[01]* | freebsdelf3.[01]*)
11730 shlibpath_overrides_runpath=yes
11731 hardcode_into_libs=yes
11732 ;;
11733 *) # from 3.2 on
11734 shlibpath_overrides_runpath=no
11735 hardcode_into_libs=yes
11736 ;;
11737 esac
11738 ;;
11739
11740 gnu*)
11741 version_type=linux
11742 need_lib_prefix=no
11743 need_version=no
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 hardcode_into_libs=yes
11748 ;;
11749
11750 hpux9* | hpux10* | hpux11*)
11751 # Give a soname corresponding to the major version so that dld.sl refuses to
11752 # link against other versions.
11753 version_type=sunos
11754 need_lib_prefix=no
11755 need_version=no
11756 case $host_cpu in
11757 ia64*)
11758 shrext_cmds='.so'
11759 hardcode_into_libs=yes
11760 dynamic_linker="$host_os dld.so"
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 if test "X$HPUX_IA64_MODE" = X32; then
11766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11767 else
11768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11769 fi
11770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11771 ;;
11772 hppa*64*)
11773 shrext_cmds='.sl'
11774 hardcode_into_libs=yes
11775 dynamic_linker="$host_os dld.sl"
11776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11782 ;;
11783 *)
11784 shrext_cmds='.sl'
11785 dynamic_linker="$host_os dld.sl"
11786 shlibpath_var=SHLIB_PATH
11787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 ;;
11791 esac
11792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11793 postinstall_cmds='chmod 555 $lib'
11794 ;;
11795
11796 irix5* | irix6* | nonstopux*)
11797 case $host_os in
11798 nonstopux*) version_type=nonstopux ;;
11799 *)
11800 if test "$lt_cv_prog_gnu_ld" = yes; then
11801 version_type=linux
11802 else
11803 version_type=irix
11804 fi ;;
11805 esac
11806 need_lib_prefix=no
11807 need_version=no
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11810 case $host_os in
11811 irix5* | nonstopux*)
11812 libsuff= shlibsuff=
11813 ;;
11814 *)
11815 case $LD in # libtool.m4 will add one of these switches to LD
11816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11817 libsuff= shlibsuff= libmagic=32-bit;;
11818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11819 libsuff=32 shlibsuff=N32 libmagic=N32;;
11820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11822 *) libsuff= shlibsuff= libmagic=never-match;;
11823 esac
11824 ;;
11825 esac
11826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11827 shlibpath_overrides_runpath=no
11828 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11829 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11830 hardcode_into_libs=yes
11831 ;;
11832
11833 # No shared lib support for Linux oldld, aout, or coff.
11834 linux*oldld* | linux*aout* | linux*coff*)
11835 dynamic_linker=no
11836 ;;
11837
11838 # This must be Linux ELF.
11839 linux*)
11840 version_type=linux
11841 need_lib_prefix=no
11842 need_version=no
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 soname_spec='${libname}${release}${shared_ext}$major'
11845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=no
11848 # This implies no fast_install, which is unacceptable.
11849 # Some rework will be needed to allow for fast_install
11850 # before this can be enabled.
11851 hardcode_into_libs=yes
11852
11853 # Append ld.so.conf contents to the search path
11854 if test -f /etc/ld.so.conf; then
11855 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11857 fi
11858
11859 # We used to test for /lib/ld.so.1 and disable shared libraries on
11860 # powerpc, because MkLinux only supported shared libraries with the
11861 # GNU dynamic linker. Since this was broken with cross compilers,
11862 # most powerpc-linux boxes support dynamic linking these days and
11863 # people can always --disable-shared, the test was removed, and we
11864 # assume the GNU/Linux dynamic linker is in use.
11865 dynamic_linker='GNU/Linux ld.so'
11866 ;;
11867
11868 netbsdelf*-gnu)
11869 version_type=linux
11870 need_lib_prefix=no
11871 need_version=no
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=no
11876 hardcode_into_libs=yes
11877 dynamic_linker='NetBSD ld.elf_so'
11878 ;;
11879
11880 knetbsd*-gnu)
11881 version_type=linux
11882 need_lib_prefix=no
11883 need_version=no
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 shlibpath_var=LD_LIBRARY_PATH
11887 shlibpath_overrides_runpath=no
11888 hardcode_into_libs=yes
11889 dynamic_linker='GNU ld.so'
11890 ;;
11891
11892 netbsd*)
11893 version_type=sunos
11894 need_lib_prefix=no
11895 need_version=no
11896 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11899 dynamic_linker='NetBSD (a.out) ld.so'
11900 else
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11902 soname_spec='${libname}${release}${shared_ext}$major'
11903 dynamic_linker='NetBSD ld.elf_so'
11904 fi
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=yes
11907 hardcode_into_libs=yes
11908 ;;
11909
11910 newsos6)
11911 version_type=linux
11912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=yes
11915 ;;
11916
11917 nto-qnx*)
11918 version_type=linux
11919 need_lib_prefix=no
11920 need_version=no
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922 soname_spec='${libname}${release}${shared_ext}$major'
11923 shlibpath_var=LD_LIBRARY_PATH
11924 shlibpath_overrides_runpath=yes
11925 ;;
11926
11927 openbsd*)
11928 version_type=sunos
11929 need_lib_prefix=no
11930 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11931 case $host_os in
11932 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11933 *) need_version=no ;;
11934 esac
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11939 case $host_os in
11940 openbsd2.[89] | openbsd2.[89].*)
11941 shlibpath_overrides_runpath=no
11942 ;;
11943 *)
11944 shlibpath_overrides_runpath=yes
11945 ;;
11946 esac
11947 else
11948 shlibpath_overrides_runpath=yes
11949 fi
11950 ;;
11951
11952 os2*)
11953 libname_spec='$name'
11954 shrext_cmds=".dll"
11955 need_lib_prefix=no
11956 library_names_spec='$libname${shared_ext} $libname.a'
11957 dynamic_linker='OS/2 ld.exe'
11958 shlibpath_var=LIBPATH
11959 ;;
11960
11961 osf3* | osf4* | osf5*)
11962 version_type=osf
11963 need_lib_prefix=no
11964 need_version=no
11965 soname_spec='${libname}${release}${shared_ext}$major'
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 shlibpath_var=LD_LIBRARY_PATH
11968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11970 ;;
11971
11972 sco3.2v5*)
11973 version_type=osf
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 ;;
11978
11979 solaris*)
11980 version_type=linux
11981 need_lib_prefix=no
11982 need_version=no
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 shlibpath_var=LD_LIBRARY_PATH
11986 shlibpath_overrides_runpath=yes
11987 hardcode_into_libs=yes
11988 # ldd complains unless libraries are executable
11989 postinstall_cmds='chmod +x $lib'
11990 ;;
11991
11992 sunos4*)
11993 version_type=sunos
11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 shlibpath_overrides_runpath=yes
11998 if test "$with_gnu_ld" = yes; then
11999 need_lib_prefix=no
12000 fi
12001 need_version=yes
12002 ;;
12003
12004 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12005 version_type=linux
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 case $host_vendor in
12010 sni)
12011 shlibpath_overrides_runpath=no
12012 need_lib_prefix=no
12013 export_dynamic_flag_spec='${wl}-Blargedynsym'
12014 runpath_var=LD_RUN_PATH
12015 ;;
12016 siemens)
12017 need_lib_prefix=no
12018 ;;
12019 motorola)
12020 need_lib_prefix=no
12021 need_version=no
12022 shlibpath_overrides_runpath=no
12023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12024 ;;
12025 esac
12026 ;;
12027
12028 sysv4*MP*)
12029 if test -d /usr/nec ;then
12030 version_type=linux
12031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12032 soname_spec='$libname${shared_ext}.$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 fi
12035 ;;
12036
12037 uts4*)
12038 version_type=linux
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 ;;
12043
12044 *)
12045 dynamic_linker=no
12046 ;;
12047 esac
12048 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12049 echo "${ECHO_T}$dynamic_linker" >&6
12050 test "$dynamic_linker" = no && can_build_shared=no
12051
12052 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12053 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12054 hardcode_action_CXX=
12055 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12056 test -n "$runpath_var_CXX" || \
12057 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12058
12059 # We can hardcode non-existant directories.
12060 if test "$hardcode_direct_CXX" != no &&
12061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12062 # have to relink, otherwise we might link with an installed library
12063 # when we should be linking with a yet-to-be-installed one
12064 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12065 test "$hardcode_minus_L_CXX" != no; then
12066 # Linking always hardcodes the temporary library directory.
12067 hardcode_action_CXX=relink
12068 else
12069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12070 hardcode_action_CXX=immediate
12071 fi
12072 else
12073 # We cannot hardcode anything, or else we can only hardcode existing
12074 # directories.
12075 hardcode_action_CXX=unsupported
12076 fi
12077 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12078 echo "${ECHO_T}$hardcode_action_CXX" >&6
12079
12080 if test "$hardcode_action_CXX" = relink; then
12081 # Fast installation is not supported
12082 enable_fast_install=no
12083 elif test "$shlibpath_overrides_runpath" = yes ||
12084 test "$enable_shared" = no; then
12085 # Fast installation is not necessary
12086 enable_fast_install=needless
12087 fi
12088
12089 striplib=
12090 old_striplib=
12091 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12092 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12093 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12094 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12095 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12096 echo "$as_me:$LINENO: result: yes" >&5
12097 echo "${ECHO_T}yes" >&6
12098 else
12099 # FIXME - insert some real tests, host_os isn't really good enough
12100 case $host_os in
12101 darwin*)
12102 if test -n "$STRIP" ; then
12103 striplib="$STRIP -x"
12104 echo "$as_me:$LINENO: result: yes" >&5
12105 echo "${ECHO_T}yes" >&6
12106 else
12107 echo "$as_me:$LINENO: result: no" >&5
12108 echo "${ECHO_T}no" >&6
12109 fi
12110 ;;
12111 *)
12112 echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6
12114 ;;
12115 esac
12116 fi
12117
12118 if test "x$enable_dlopen" != xyes; then
12119 enable_dlopen=unknown
12120 enable_dlopen_self=unknown
12121 enable_dlopen_self_static=unknown
12122 else
12123 lt_cv_dlopen=no
12124 lt_cv_dlopen_libs=
12125
12126 case $host_os in
12127 beos*)
12128 lt_cv_dlopen="load_add_on"
12129 lt_cv_dlopen_libs=
12130 lt_cv_dlopen_self=yes
12131 ;;
12132
12133 mingw* | pw32*)
12134 lt_cv_dlopen="LoadLibrary"
12135 lt_cv_dlopen_libs=
12136 ;;
12137
12138 cygwin*)
12139 lt_cv_dlopen="dlopen"
12140 lt_cv_dlopen_libs=
12141 ;;
12142
12143 darwin*)
12144 # if libdl is installed we need to link against it
12145 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12146 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-ldl $LIBS"
12152 cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h. */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158
12159 /* Override any gcc2 internal prototype to avoid an error. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 /* We use char because int might match the return type of a gcc2
12164 builtin and then its argument prototype would still apply. */
12165 char dlopen ();
12166 int
12167 main ()
12168 {
12169 dlopen ();
12170 ;
12171 return 0;
12172 }
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176 (eval $ac_link) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest$ac_exeext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_cv_lib_dl_dlopen=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 ac_cv_lib_dl_dlopen=no
12201 fi
12202 rm -f conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12208 if test $ac_cv_lib_dl_dlopen = yes; then
12209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12210 else
12211
12212 lt_cv_dlopen="dyld"
12213 lt_cv_dlopen_libs=
12214 lt_cv_dlopen_self=yes
12215
12216 fi
12217
12218 ;;
12219
12220 *)
12221 echo "$as_me:$LINENO: checking for shl_load" >&5
12222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12223 if test "${ac_cv_func_shl_load+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12234 #define shl_load innocuous_shl_load
12235
12236 /* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char shl_load (); below.
12238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239 <limits.h> exists even on freestanding compilers. */
12240
12241 #ifdef __STDC__
12242 # include <limits.h>
12243 #else
12244 # include <assert.h>
12245 #endif
12246
12247 #undef shl_load
12248
12249 /* Override any gcc2 internal prototype to avoid an error. */
12250 #ifdef __cplusplus
12251 extern "C"
12252 {
12253 #endif
12254 /* We use char because int might match the return type of a gcc2
12255 builtin and then its argument prototype would still apply. */
12256 char shl_load ();
12257 /* The GNU C library defines this for functions which it implements
12258 to always fail with ENOSYS. Some functions are actually named
12259 something starting with __ and the normal name is an alias. */
12260 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12261 choke me
12262 #else
12263 char (*f) () = shl_load;
12264 #endif
12265 #ifdef __cplusplus
12266 }
12267 #endif
12268
12269 int
12270 main ()
12271 {
12272 return f != shl_load;
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest$ac_exeext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 ac_cv_func_shl_load=yes
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303 ac_cv_func_shl_load=no
12304 fi
12305 rm -f conftest.err conftest.$ac_objext \
12306 conftest$ac_exeext conftest.$ac_ext
12307 fi
12308 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12309 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12310 if test $ac_cv_func_shl_load = yes; then
12311 lt_cv_dlopen="shl_load"
12312 else
12313 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldld $LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326
12327 /* Override any gcc2 internal prototype to avoid an error. */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char shl_load ();
12334 int
12335 main ()
12336 {
12337 shl_load ();
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_lib_dld_shl_load=yes
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_lib_dld_shl_load=no
12369 fi
12370 rm -f conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12373 fi
12374 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12375 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12376 if test $ac_cv_lib_dld_shl_load = yes; then
12377 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12378 else
12379 echo "$as_me:$LINENO: checking for dlopen" >&5
12380 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12381 if test "${ac_cv_func_dlopen+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12392 #define dlopen innocuous_dlopen
12393
12394 /* System header to define __stub macros and hopefully few prototypes,
12395 which can conflict with char dlopen (); below.
12396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12397 <limits.h> exists even on freestanding compilers. */
12398
12399 #ifdef __STDC__
12400 # include <limits.h>
12401 #else
12402 # include <assert.h>
12403 #endif
12404
12405 #undef dlopen
12406
12407 /* Override any gcc2 internal prototype to avoid an error. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 {
12411 #endif
12412 /* We use char because int might match the return type of a gcc2
12413 builtin and then its argument prototype would still apply. */
12414 char dlopen ();
12415 /* The GNU C library defines this for functions which it implements
12416 to always fail with ENOSYS. Some functions are actually named
12417 something starting with __ and the normal name is an alias. */
12418 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12419 choke me
12420 #else
12421 char (*f) () = dlopen;
12422 #endif
12423 #ifdef __cplusplus
12424 }
12425 #endif
12426
12427 int
12428 main ()
12429 {
12430 return f != dlopen;
12431 ;
12432 return 0;
12433 }
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest$ac_exeext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_func_dlopen=yes
12457 else
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461 ac_cv_func_dlopen=no
12462 fi
12463 rm -f conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 fi
12466 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12467 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12468 if test $ac_cv_func_dlopen = yes; then
12469 lt_cv_dlopen="dlopen"
12470 else
12471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12472 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-ldl $LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484
12485 /* Override any gcc2 internal prototype to avoid an error. */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 /* We use char because int might match the return type of a gcc2
12490 builtin and then its argument prototype would still apply. */
12491 char dlopen ();
12492 int
12493 main ()
12494 {
12495 dlopen ();
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 ac_cv_lib_dl_dlopen=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 ac_cv_lib_dl_dlopen=no
12527 fi
12528 rm -f conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 LIBS=$ac_check_lib_save_LIBS
12531 fi
12532 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12533 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12534 if test $ac_cv_lib_dl_dlopen = yes; then
12535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12536 else
12537 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12538 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12539 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12542 ac_check_lib_save_LIBS=$LIBS
12543 LIBS="-lsvld $LIBS"
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550
12551 /* Override any gcc2 internal prototype to avoid an error. */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 /* We use char because int might match the return type of a gcc2
12556 builtin and then its argument prototype would still apply. */
12557 char dlopen ();
12558 int
12559 main ()
12560 {
12561 dlopen ();
12562 ;
12563 return 0;
12564 }
12565 _ACEOF
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_cv_lib_svld_dlopen=yes
12588 else
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 ac_cv_lib_svld_dlopen=no
12593 fi
12594 rm -f conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596 LIBS=$ac_check_lib_save_LIBS
12597 fi
12598 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12599 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12600 if test $ac_cv_lib_svld_dlopen = yes; then
12601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12602 else
12603 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12604 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12605 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 ac_check_lib_save_LIBS=$LIBS
12609 LIBS="-ldld $LIBS"
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616
12617 /* Override any gcc2 internal prototype to avoid an error. */
12618 #ifdef __cplusplus
12619 extern "C"
12620 #endif
12621 /* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12623 char dld_link ();
12624 int
12625 main ()
12626 {
12627 dld_link ();
12628 ;
12629 return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_lib_dld_dld_link=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 ac_cv_lib_dld_dld_link=no
12659 fi
12660 rm -f conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 LIBS=$ac_check_lib_save_LIBS
12663 fi
12664 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12665 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12666 if test $ac_cv_lib_dld_dld_link = yes; then
12667 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12668 fi
12669
12670
12671 fi
12672
12673
12674 fi
12675
12676
12677 fi
12678
12679
12680 fi
12681
12682
12683 fi
12684
12685 ;;
12686 esac
12687
12688 if test "x$lt_cv_dlopen" != xno; then
12689 enable_dlopen=yes
12690 else
12691 enable_dlopen=no
12692 fi
12693
12694 case $lt_cv_dlopen in
12695 dlopen)
12696 save_CPPFLAGS="$CPPFLAGS"
12697 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12698
12699 save_LDFLAGS="$LDFLAGS"
12700 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12701
12702 save_LIBS="$LIBS"
12703 LIBS="$lt_cv_dlopen_libs $LIBS"
12704
12705 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12706 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12707 if test "${lt_cv_dlopen_self+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710 if test "$cross_compiling" = yes; then :
12711 lt_cv_dlopen_self=cross
12712 else
12713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12714 lt_status=$lt_dlunknown
12715 cat > conftest.$ac_ext <<EOF
12716 #line 12716 "configure"
12717 #include "confdefs.h"
12718
12719 #if HAVE_DLFCN_H
12720 #include <dlfcn.h>
12721 #endif
12722
12723 #include <stdio.h>
12724
12725 #ifdef RTLD_GLOBAL
12726 # define LT_DLGLOBAL RTLD_GLOBAL
12727 #else
12728 # ifdef DL_GLOBAL
12729 # define LT_DLGLOBAL DL_GLOBAL
12730 # else
12731 # define LT_DLGLOBAL 0
12732 # endif
12733 #endif
12734
12735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12736 find out it does not work in some platform. */
12737 #ifndef LT_DLLAZY_OR_NOW
12738 # ifdef RTLD_LAZY
12739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12740 # else
12741 # ifdef DL_LAZY
12742 # define LT_DLLAZY_OR_NOW DL_LAZY
12743 # else
12744 # ifdef RTLD_NOW
12745 # define LT_DLLAZY_OR_NOW RTLD_NOW
12746 # else
12747 # ifdef DL_NOW
12748 # define LT_DLLAZY_OR_NOW DL_NOW
12749 # else
12750 # define LT_DLLAZY_OR_NOW 0
12751 # endif
12752 # endif
12753 # endif
12754 # endif
12755 #endif
12756
12757 #ifdef __cplusplus
12758 extern "C" void exit (int);
12759 #endif
12760
12761 void fnord() { int i=42;}
12762 int main ()
12763 {
12764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12765 int status = $lt_dlunknown;
12766
12767 if (self)
12768 {
12769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12770 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12771 /* dlclose (self); */
12772 }
12773
12774 exit (status);
12775 }
12776 EOF
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778 (eval $ac_link) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12782 (./conftest; exit; ) >&5 2>/dev/null
12783 lt_status=$?
12784 case x$lt_status in
12785 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12786 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12787 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12788 esac
12789 else :
12790 # compilation failed
12791 lt_cv_dlopen_self=no
12792 fi
12793 fi
12794 rm -fr conftest*
12795
12796
12797 fi
12798 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12799 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12800
12801 if test "x$lt_cv_dlopen_self" = xyes; then
12802 LDFLAGS="$LDFLAGS $link_static_flag"
12803 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12804 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12805 if test "${lt_cv_dlopen_self_static+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808 if test "$cross_compiling" = yes; then :
12809 lt_cv_dlopen_self_static=cross
12810 else
12811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12812 lt_status=$lt_dlunknown
12813 cat > conftest.$ac_ext <<EOF
12814 #line 12814 "configure"
12815 #include "confdefs.h"
12816
12817 #if HAVE_DLFCN_H
12818 #include <dlfcn.h>
12819 #endif
12820
12821 #include <stdio.h>
12822
12823 #ifdef RTLD_GLOBAL
12824 # define LT_DLGLOBAL RTLD_GLOBAL
12825 #else
12826 # ifdef DL_GLOBAL
12827 # define LT_DLGLOBAL DL_GLOBAL
12828 # else
12829 # define LT_DLGLOBAL 0
12830 # endif
12831 #endif
12832
12833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12834 find out it does not work in some platform. */
12835 #ifndef LT_DLLAZY_OR_NOW
12836 # ifdef RTLD_LAZY
12837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12838 # else
12839 # ifdef DL_LAZY
12840 # define LT_DLLAZY_OR_NOW DL_LAZY
12841 # else
12842 # ifdef RTLD_NOW
12843 # define LT_DLLAZY_OR_NOW RTLD_NOW
12844 # else
12845 # ifdef DL_NOW
12846 # define LT_DLLAZY_OR_NOW DL_NOW
12847 # else
12848 # define LT_DLLAZY_OR_NOW 0
12849 # endif
12850 # endif
12851 # endif
12852 # endif
12853 #endif
12854
12855 #ifdef __cplusplus
12856 extern "C" void exit (int);
12857 #endif
12858
12859 void fnord() { int i=42;}
12860 int main ()
12861 {
12862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12863 int status = $lt_dlunknown;
12864
12865 if (self)
12866 {
12867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12869 /* dlclose (self); */
12870 }
12871
12872 exit (status);
12873 }
12874 EOF
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12880 (./conftest; exit; ) >&5 2>/dev/null
12881 lt_status=$?
12882 case x$lt_status in
12883 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12884 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12885 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12886 esac
12887 else :
12888 # compilation failed
12889 lt_cv_dlopen_self_static=no
12890 fi
12891 fi
12892 rm -fr conftest*
12893
12894
12895 fi
12896 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12897 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12898 fi
12899
12900 CPPFLAGS="$save_CPPFLAGS"
12901 LDFLAGS="$save_LDFLAGS"
12902 LIBS="$save_LIBS"
12903 ;;
12904 esac
12905
12906 case $lt_cv_dlopen_self in
12907 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12908 *) enable_dlopen_self=unknown ;;
12909 esac
12910
12911 case $lt_cv_dlopen_self_static in
12912 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12913 *) enable_dlopen_self_static=unknown ;;
12914 esac
12915 fi
12916
12917
12918 # The else clause should only fire when bootstrapping the
12919 # libtool distribution, otherwise you forgot to ship ltmain.sh
12920 # with your package, and you will get complaints that there are
12921 # no rules to generate ltmain.sh.
12922 if test -f "$ltmain"; then
12923 # See if we are running on zsh, and set the options which allow our commands through
12924 # without removal of \ escapes.
12925 if test -n "${ZSH_VERSION+set}" ; then
12926 setopt NO_GLOB_SUBST
12927 fi
12928 # Now quote all the things that may contain metacharacters while being
12929 # careful not to overquote the AC_SUBSTed values. We take copies of the
12930 # variables and quote the copies for generation of the libtool script.
12931 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12932 SED SHELL STRIP \
12933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12935 deplibs_check_method reload_flag reload_cmds need_locks \
12936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12937 lt_cv_sys_global_symbol_to_c_name_address \
12938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12939 old_postinstall_cmds old_postuninstall_cmds \
12940 compiler_CXX \
12941 CC_CXX \
12942 LD_CXX \
12943 lt_prog_compiler_wl_CXX \
12944 lt_prog_compiler_pic_CXX \
12945 lt_prog_compiler_static_CXX \
12946 lt_prog_compiler_no_builtin_flag_CXX \
12947 export_dynamic_flag_spec_CXX \
12948 thread_safe_flag_spec_CXX \
12949 whole_archive_flag_spec_CXX \
12950 enable_shared_with_static_runtimes_CXX \
12951 old_archive_cmds_CXX \
12952 old_archive_from_new_cmds_CXX \
12953 predep_objects_CXX \
12954 postdep_objects_CXX \
12955 predeps_CXX \
12956 postdeps_CXX \
12957 compiler_lib_search_path_CXX \
12958 archive_cmds_CXX \
12959 archive_expsym_cmds_CXX \
12960 postinstall_cmds_CXX \
12961 postuninstall_cmds_CXX \
12962 old_archive_from_expsyms_cmds_CXX \
12963 allow_undefined_flag_CXX \
12964 no_undefined_flag_CXX \
12965 export_symbols_cmds_CXX \
12966 hardcode_libdir_flag_spec_CXX \
12967 hardcode_libdir_flag_spec_ld_CXX \
12968 hardcode_libdir_separator_CXX \
12969 hardcode_automatic_CXX \
12970 module_cmds_CXX \
12971 module_expsym_cmds_CXX \
12972 lt_cv_prog_compiler_c_o_CXX \
12973 exclude_expsyms_CXX \
12974 include_expsyms_CXX; do
12975
12976 case $var in
12977 old_archive_cmds_CXX | \
12978 old_archive_from_new_cmds_CXX | \
12979 archive_cmds_CXX | \
12980 archive_expsym_cmds_CXX | \
12981 module_cmds_CXX | \
12982 module_expsym_cmds_CXX | \
12983 old_archive_from_expsyms_cmds_CXX | \
12984 export_symbols_cmds_CXX | \
12985 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12986 postinstall_cmds | postuninstall_cmds | \
12987 old_postinstall_cmds | old_postuninstall_cmds | \
12988 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12989 # Double-quote double-evaled strings.
12990 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12991 ;;
12992 *)
12993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12994 ;;
12995 esac
12996 done
12997
12998 case $lt_echo in
12999 *'\$0 --fallback-echo"')
13000 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13001 ;;
13002 esac
13003
13004 cfgfile="$ofile"
13005
13006 cat <<__EOF__ >> "$cfgfile"
13007 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13008
13009 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13010
13011 # Shell to use when invoking shell scripts.
13012 SHELL=$lt_SHELL
13013
13014 # Whether or not to build shared libraries.
13015 build_libtool_libs=$enable_shared
13016
13017 # Whether or not to build static libraries.
13018 build_old_libs=$enable_static
13019
13020 # Whether or not to add -lc for building shared libraries.
13021 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13022
13023 # Whether or not to disallow shared libs when runtime libs are static
13024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13025
13026 # Whether or not to optimize for fast installation.
13027 fast_install=$enable_fast_install
13028
13029 # The host system.
13030 host_alias=$host_alias
13031 host=$host
13032 host_os=$host_os
13033
13034 # The build system.
13035 build_alias=$build_alias
13036 build=$build
13037 build_os=$build_os
13038
13039 # An echo program that does not interpret backslashes.
13040 echo=$lt_echo
13041
13042 # The archiver.
13043 AR=$lt_AR
13044 AR_FLAGS=$lt_AR_FLAGS
13045
13046 # A C compiler.
13047 LTCC=$lt_LTCC
13048
13049 # A language-specific compiler.
13050 CC=$lt_compiler_CXX
13051
13052 # Is the compiler the GNU C compiler?
13053 with_gcc=$GCC_CXX
13054
13055 # An ERE matcher.
13056 EGREP=$lt_EGREP
13057
13058 # The linker used to build libraries.
13059 LD=$lt_LD_CXX
13060
13061 # Whether we need hard or soft links.
13062 LN_S=$lt_LN_S
13063
13064 # A BSD-compatible nm program.
13065 NM=$lt_NM
13066
13067 # A symbol stripping program
13068 STRIP=$lt_STRIP
13069
13070 # Used to examine libraries when file_magic_cmd begins "file"
13071 MAGIC_CMD=$MAGIC_CMD
13072
13073 # Used on cygwin: DLL creation program.
13074 DLLTOOL="$DLLTOOL"
13075
13076 # Used on cygwin: object dumper.
13077 OBJDUMP="$OBJDUMP"
13078
13079 # Used on cygwin: assembler.
13080 AS="$AS"
13081
13082 # The name of the directory that contains temporary libtool files.
13083 objdir=$objdir
13084
13085 # How to create reloadable object files.
13086 reload_flag=$lt_reload_flag
13087 reload_cmds=$lt_reload_cmds
13088
13089 # How to pass a linker flag through the compiler.
13090 wl=$lt_lt_prog_compiler_wl_CXX
13091
13092 # Object file suffix (normally "o").
13093 objext="$ac_objext"
13094
13095 # Old archive suffix (normally "a").
13096 libext="$libext"
13097
13098 # Shared library suffix (normally ".so").
13099 shrext_cmds='$shrext_cmds'
13100
13101 # Executable file suffix (normally "").
13102 exeext="$exeext"
13103
13104 # Additional compiler flags for building library objects.
13105 pic_flag=$lt_lt_prog_compiler_pic_CXX
13106 pic_mode=$pic_mode
13107
13108 # What is the maximum length of a command?
13109 max_cmd_len=$lt_cv_sys_max_cmd_len
13110
13111 # Does compiler simultaneously support -c and -o options?
13112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13113
13114 # Must we lock files when doing compilation?
13115 need_locks=$lt_need_locks
13116
13117 # Do we need the lib prefix for modules?
13118 need_lib_prefix=$need_lib_prefix
13119
13120 # Do we need a version for libraries?
13121 need_version=$need_version
13122
13123 # Whether dlopen is supported.
13124 dlopen_support=$enable_dlopen
13125
13126 # Whether dlopen of programs is supported.
13127 dlopen_self=$enable_dlopen_self
13128
13129 # Whether dlopen of statically linked programs is supported.
13130 dlopen_self_static=$enable_dlopen_self_static
13131
13132 # Compiler flag to prevent dynamic linking.
13133 link_static_flag=$lt_lt_prog_compiler_static_CXX
13134
13135 # Compiler flag to turn off builtin functions.
13136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13137
13138 # Compiler flag to allow reflexive dlopens.
13139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13140
13141 # Compiler flag to generate shared objects directly from archives.
13142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13143
13144 # Compiler flag to generate thread-safe objects.
13145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13146
13147 # Library versioning type.
13148 version_type=$version_type
13149
13150 # Format of library name prefix.
13151 libname_spec=$lt_libname_spec
13152
13153 # List of archive names. First name is the real one, the rest are links.
13154 # The last name is the one that the linker finds with -lNAME.
13155 library_names_spec=$lt_library_names_spec
13156
13157 # The coded name of the library, if different from the real name.
13158 soname_spec=$lt_soname_spec
13159
13160 # Commands used to build and install an old-style archive.
13161 RANLIB=$lt_RANLIB
13162 old_archive_cmds=$lt_old_archive_cmds_CXX
13163 old_postinstall_cmds=$lt_old_postinstall_cmds
13164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13165
13166 # Create an old-style archive from a shared archive.
13167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13168
13169 # Create a temporary old-style archive to link instead of a shared archive.
13170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13171
13172 # Commands used to build and install a shared archive.
13173 archive_cmds=$lt_archive_cmds_CXX
13174 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13175 postinstall_cmds=$lt_postinstall_cmds
13176 postuninstall_cmds=$lt_postuninstall_cmds
13177
13178 # Commands used to build a loadable module (assumed same as above if empty)
13179 module_cmds=$lt_module_cmds_CXX
13180 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13181
13182 # Commands to strip libraries.
13183 old_striplib=$lt_old_striplib
13184 striplib=$lt_striplib
13185
13186 # Dependencies to place before the objects being linked to create a
13187 # shared library.
13188 predep_objects=$lt_predep_objects_CXX
13189
13190 # Dependencies to place after the objects being linked to create a
13191 # shared library.
13192 postdep_objects=$lt_postdep_objects_CXX
13193
13194 # Dependencies to place before the objects being linked to create a
13195 # shared library.
13196 predeps=$lt_predeps_CXX
13197
13198 # Dependencies to place after the objects being linked to create a
13199 # shared library.
13200 postdeps=$lt_postdeps_CXX
13201
13202 # The library search path used internally by the compiler when linking
13203 # a shared library.
13204 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13205
13206 # Method to check whether dependent libraries are shared objects.
13207 deplibs_check_method=$lt_deplibs_check_method
13208
13209 # Command to use when deplibs_check_method == file_magic.
13210 file_magic_cmd=$lt_file_magic_cmd
13211
13212 # Flag that allows shared libraries with undefined symbols to be built.
13213 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13214
13215 # Flag that forces no undefined symbols.
13216 no_undefined_flag=$lt_no_undefined_flag_CXX
13217
13218 # Commands used to finish a libtool library installation in a directory.
13219 finish_cmds=$lt_finish_cmds
13220
13221 # Same as above, but a single script fragment to be evaled but not shown.
13222 finish_eval=$lt_finish_eval
13223
13224 # Take the output of nm and produce a listing of raw symbols and C names.
13225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13226
13227 # Transform the output of nm in a proper C declaration
13228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13229
13230 # Transform the output of nm in a C name address pair
13231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13232
13233 # This is the shared library runtime path variable.
13234 runpath_var=$runpath_var
13235
13236 # This is the shared library path variable.
13237 shlibpath_var=$shlibpath_var
13238
13239 # Is shlibpath searched before the hard-coded library search path?
13240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13241
13242 # How to hardcode a shared library path into an executable.
13243 hardcode_action=$hardcode_action_CXX
13244
13245 # Whether we should hardcode library paths into libraries.
13246 hardcode_into_libs=$hardcode_into_libs
13247
13248 # Flag to hardcode \$libdir into a binary during linking.
13249 # This must work even if \$libdir does not exist.
13250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13251
13252 # If ld is used when linking, flag to hardcode \$libdir into
13253 # a binary during linking. This must work even if \$libdir does
13254 # not exist.
13255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13256
13257 # Whether we need a single -rpath flag with a separated argument.
13258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13259
13260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13261 # resulting binary.
13262 hardcode_direct=$hardcode_direct_CXX
13263
13264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13265 # resulting binary.
13266 hardcode_minus_L=$hardcode_minus_L_CXX
13267
13268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13269 # the resulting binary.
13270 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13271
13272 # Set to yes if building a shared library automatically hardcodes DIR into the library
13273 # and all subsequent libraries and executables linked against it.
13274 hardcode_automatic=$hardcode_automatic_CXX
13275
13276 # Variables whose values should be saved in libtool wrapper scripts and
13277 # restored at relink time.
13278 variables_saved_for_relink="$variables_saved_for_relink"
13279
13280 # Whether libtool must link a program against all its dependency libraries.
13281 link_all_deplibs=$link_all_deplibs_CXX
13282
13283 # Compile-time system search path for libraries
13284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13285
13286 # Run-time system search path for libraries
13287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13288
13289 # Fix the shell variable \$srcfile for the compiler.
13290 fix_srcfile_path="$fix_srcfile_path_CXX"
13291
13292 # Set to yes if exported symbols are required.
13293 always_export_symbols=$always_export_symbols_CXX
13294
13295 # The commands to list exported symbols.
13296 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13297
13298 # The commands to extract the exported symbol list from a shared archive.
13299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13300
13301 # Symbols that should not be listed in the preloaded symbols.
13302 exclude_expsyms=$lt_exclude_expsyms_CXX
13303
13304 # Symbols that must always be exported.
13305 include_expsyms=$lt_include_expsyms_CXX
13306
13307 # ### END LIBTOOL TAG CONFIG: $tagname
13308
13309 __EOF__
13310
13311
13312 else
13313 # If there is no Makefile yet, we rely on a make rule to execute
13314 # `config.status --recheck' to rerun these tests and create the
13315 # libtool script then.
13316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13317 if test -f "$ltmain_in"; then
13318 test -f Makefile && make "$ltmain"
13319 fi
13320 fi
13321
13322
13323 ac_ext=c
13324 ac_cpp='$CPP $CPPFLAGS'
13325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13328
13329 CC=$lt_save_CC
13330 LDCXX=$LD
13331 LD=$lt_save_LD
13332 GCC=$lt_save_GCC
13333 with_gnu_ldcxx=$with_gnu_ld
13334 with_gnu_ld=$lt_save_with_gnu_ld
13335 lt_cv_path_LDCXX=$lt_cv_path_LD
13336 lt_cv_path_LD=$lt_save_path_LD
13337 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13338 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13339
13340 else
13341 tagname=""
13342 fi
13343 ;;
13344
13345 F77)
13346 if test -n "$F77" && test "X$F77" != "Xno"; then
13347
13348 ac_ext=f
13349 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13350 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13351 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13352
13353
13354 archive_cmds_need_lc_F77=no
13355 allow_undefined_flag_F77=
13356 always_export_symbols_F77=no
13357 archive_expsym_cmds_F77=
13358 export_dynamic_flag_spec_F77=
13359 hardcode_direct_F77=no
13360 hardcode_libdir_flag_spec_F77=
13361 hardcode_libdir_flag_spec_ld_F77=
13362 hardcode_libdir_separator_F77=
13363 hardcode_minus_L_F77=no
13364 hardcode_automatic_F77=no
13365 module_cmds_F77=
13366 module_expsym_cmds_F77=
13367 link_all_deplibs_F77=unknown
13368 old_archive_cmds_F77=$old_archive_cmds
13369 no_undefined_flag_F77=
13370 whole_archive_flag_spec_F77=
13371 enable_shared_with_static_runtimes_F77=no
13372
13373 # Source file extension for f77 test sources.
13374 ac_ext=f
13375
13376 # Object file extension for compiled f77 test sources.
13377 objext=o
13378 objext_F77=$objext
13379
13380 # Code to be used in simple compile tests
13381 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13382
13383 # Code to be used in simple link tests
13384 lt_simple_link_test_code=" program t\n end\n"
13385
13386 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13387
13388 # If no C compiler was specified, use CC.
13389 LTCC=${LTCC-"$CC"}
13390
13391 # Allow CC to be a program name with arguments.
13392 compiler=$CC
13393
13394
13395 # save warnings/boilerplate of simple test code
13396 ac_outfile=conftest.$ac_objext
13397 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13398 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13399 _lt_compiler_boilerplate=`cat conftest.err`
13400 $rm conftest*
13401
13402 ac_outfile=conftest.$ac_objext
13403 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13404 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13405 _lt_linker_boilerplate=`cat conftest.err`
13406 $rm conftest*
13407
13408
13409 # Allow CC to be a program name with arguments.
13410 lt_save_CC="$CC"
13411 CC=${F77-"f77"}
13412 compiler=$CC
13413 compiler_F77=$CC
13414 for cc_temp in $compiler""; do
13415 case $cc_temp in
13416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13418 \-*) ;;
13419 *) break;;
13420 esac
13421 done
13422 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13423
13424
13425 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13426 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13427 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13428 echo "${ECHO_T}$can_build_shared" >&6
13429
13430 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13431 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13432 test "$can_build_shared" = "no" && enable_shared=no
13433
13434 # On AIX, shared libraries and static libraries use the same namespace, and
13435 # are all built from PIC.
13436 case $host_os in
13437 aix3*)
13438 test "$enable_shared" = yes && enable_static=no
13439 if test -n "$RANLIB"; then
13440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13441 postinstall_cmds='$RANLIB $lib'
13442 fi
13443 ;;
13444 aix4* | aix5*)
13445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13446 test "$enable_shared" = yes && enable_static=no
13447 fi
13448 ;;
13449 esac
13450 echo "$as_me:$LINENO: result: $enable_shared" >&5
13451 echo "${ECHO_T}$enable_shared" >&6
13452
13453 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13454 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13455 # Make sure either enable_shared or enable_static is yes.
13456 test "$enable_shared" = yes || enable_static=yes
13457 echo "$as_me:$LINENO: result: $enable_static" >&5
13458 echo "${ECHO_T}$enable_static" >&6
13459
13460 test "$ld_shlibs_F77" = no && can_build_shared=no
13461
13462 GCC_F77="$G77"
13463 LD_F77="$LD"
13464
13465 lt_prog_compiler_wl_F77=
13466 lt_prog_compiler_pic_F77=
13467 lt_prog_compiler_static_F77=
13468
13469 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13470 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13471
13472 if test "$GCC" = yes; then
13473 lt_prog_compiler_wl_F77='-Wl,'
13474 lt_prog_compiler_static_F77='-static'
13475
13476 case $host_os in
13477 aix*)
13478 # All AIX code is PIC.
13479 if test "$host_cpu" = ia64; then
13480 # AIX 5 now supports IA64 processor
13481 lt_prog_compiler_static_F77='-Bstatic'
13482 fi
13483 ;;
13484
13485 amigaos*)
13486 # FIXME: we need at least 68020 code to build shared libraries, but
13487 # adding the `-m68020' flag to GCC prevents building anything better,
13488 # like `-m68040'.
13489 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13490 ;;
13491
13492 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13493 # PIC is the default for these OSes.
13494 ;;
13495
13496 mingw* | pw32* | os2*)
13497 # This hack is so that the source file can tell whether it is being
13498 # built for inclusion in a dll (and should export symbols for example).
13499 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13500 ;;
13501
13502 darwin* | rhapsody*)
13503 # PIC is the default on this platform
13504 # Common symbols not allowed in MH_DYLIB files
13505 lt_prog_compiler_pic_F77='-fno-common'
13506 ;;
13507
13508 msdosdjgpp*)
13509 # Just because we use GCC doesn't mean we suddenly get shared libraries
13510 # on systems that don't support them.
13511 lt_prog_compiler_can_build_shared_F77=no
13512 enable_shared=no
13513 ;;
13514
13515 sysv4*MP*)
13516 if test -d /usr/nec; then
13517 lt_prog_compiler_pic_F77=-Kconform_pic
13518 fi
13519 ;;
13520
13521 hpux*)
13522 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13523 # not for PA HP-UX.
13524 case $host_cpu in
13525 hppa*64*|ia64*)
13526 # +Z the default
13527 ;;
13528 *)
13529 lt_prog_compiler_pic_F77='-fPIC'
13530 ;;
13531 esac
13532 ;;
13533
13534 *)
13535 lt_prog_compiler_pic_F77='-fPIC'
13536 ;;
13537 esac
13538 else
13539 # PORTME Check for flag to pass linker flags through the system compiler.
13540 case $host_os in
13541 aix*)
13542 lt_prog_compiler_wl_F77='-Wl,'
13543 if test "$host_cpu" = ia64; then
13544 # AIX 5 now supports IA64 processor
13545 lt_prog_compiler_static_F77='-Bstatic'
13546 else
13547 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13548 fi
13549 ;;
13550 darwin*)
13551 # PIC is the default on this platform
13552 # Common symbols not allowed in MH_DYLIB files
13553 case $cc_basename in
13554 xlc*)
13555 lt_prog_compiler_pic_F77='-qnocommon'
13556 lt_prog_compiler_wl_F77='-Wl,'
13557 ;;
13558 esac
13559 ;;
13560
13561 mingw* | pw32* | os2*)
13562 # This hack is so that the source file can tell whether it is being
13563 # built for inclusion in a dll (and should export symbols for example).
13564 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13565 ;;
13566
13567 hpux9* | hpux10* | hpux11*)
13568 lt_prog_compiler_wl_F77='-Wl,'
13569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13570 # not for PA HP-UX.
13571 case $host_cpu in
13572 hppa*64*|ia64*)
13573 # +Z the default
13574 ;;
13575 *)
13576 lt_prog_compiler_pic_F77='+Z'
13577 ;;
13578 esac
13579 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13580 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13581 ;;
13582
13583 irix5* | irix6* | nonstopux*)
13584 lt_prog_compiler_wl_F77='-Wl,'
13585 # PIC (with -KPIC) is the default.
13586 lt_prog_compiler_static_F77='-non_shared'
13587 ;;
13588
13589 newsos6)
13590 lt_prog_compiler_pic_F77='-KPIC'
13591 lt_prog_compiler_static_F77='-Bstatic'
13592 ;;
13593
13594 linux*)
13595 case $cc_basename in
13596 icc* | ecc*)
13597 lt_prog_compiler_wl_F77='-Wl,'
13598 lt_prog_compiler_pic_F77='-KPIC'
13599 lt_prog_compiler_static_F77='-static'
13600 ;;
13601 pgcc* | pgf77* | pgf90* | pgf95*)
13602 # Portland Group compilers (*not* the Pentium gcc compiler,
13603 # which looks to be a dead project)
13604 lt_prog_compiler_wl_F77='-Wl,'
13605 lt_prog_compiler_pic_F77='-fpic'
13606 lt_prog_compiler_static_F77='-Bstatic'
13607 ;;
13608 ccc*)
13609 lt_prog_compiler_wl_F77='-Wl,'
13610 # All Alpha code is PIC.
13611 lt_prog_compiler_static_F77='-non_shared'
13612 ;;
13613 esac
13614 ;;
13615
13616 osf3* | osf4* | osf5*)
13617 lt_prog_compiler_wl_F77='-Wl,'
13618 # All OSF/1 code is PIC.
13619 lt_prog_compiler_static_F77='-non_shared'
13620 ;;
13621
13622 sco3.2v5*)
13623 lt_prog_compiler_pic_F77='-Kpic'
13624 lt_prog_compiler_static_F77='-dn'
13625 ;;
13626
13627 solaris*)
13628 lt_prog_compiler_pic_F77='-KPIC'
13629 lt_prog_compiler_static_F77='-Bstatic'
13630 case $cc_basename in
13631 f77* | f90* | f95*)
13632 lt_prog_compiler_wl_F77='-Qoption ld ';;
13633 *)
13634 lt_prog_compiler_wl_F77='-Wl,';;
13635 esac
13636 ;;
13637
13638 sunos4*)
13639 lt_prog_compiler_wl_F77='-Qoption ld '
13640 lt_prog_compiler_pic_F77='-PIC'
13641 lt_prog_compiler_static_F77='-Bstatic'
13642 ;;
13643
13644 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13645 lt_prog_compiler_wl_F77='-Wl,'
13646 lt_prog_compiler_pic_F77='-KPIC'
13647 lt_prog_compiler_static_F77='-Bstatic'
13648 ;;
13649
13650 sysv4*MP*)
13651 if test -d /usr/nec ;then
13652 lt_prog_compiler_pic_F77='-Kconform_pic'
13653 lt_prog_compiler_static_F77='-Bstatic'
13654 fi
13655 ;;
13656
13657 unicos*)
13658 lt_prog_compiler_wl_F77='-Wl,'
13659 lt_prog_compiler_can_build_shared_F77=no
13660 ;;
13661
13662 uts4*)
13663 lt_prog_compiler_pic_F77='-pic'
13664 lt_prog_compiler_static_F77='-Bstatic'
13665 ;;
13666
13667 *)
13668 lt_prog_compiler_can_build_shared_F77=no
13669 ;;
13670 esac
13671 fi
13672
13673 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13674 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13675
13676 #
13677 # Check to make sure the PIC flag actually works.
13678 #
13679 if test -n "$lt_prog_compiler_pic_F77"; then
13680
13681 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13682 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13683 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686 lt_prog_compiler_pic_works_F77=no
13687 ac_outfile=conftest.$ac_objext
13688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13689 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13690 # Insert the option either (1) after the last *FLAGS variable, or
13691 # (2) before a word containing "conftest.", or (3) at the end.
13692 # Note that $ac_compile itself does not contain backslashes and begins
13693 # with a dollar sign (not a hyphen), so the echo should work correctly.
13694 # The option is referenced via a variable to avoid confusing sed.
13695 lt_compile=`echo "$ac_compile" | $SED \
13696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13698 -e 's:$: $lt_compiler_flag:'`
13699 (eval echo "\"\$as_me:13699: $lt_compile\"" >&5)
13700 (eval "$lt_compile" 2>conftest.err)
13701 ac_status=$?
13702 cat conftest.err >&5
13703 echo "$as_me:13703: \$? = $ac_status" >&5
13704 if (exit $ac_status) && test -s "$ac_outfile"; then
13705 # The compiler can only warn and ignore the option if not recognized
13706 # So say no if there are warnings other than the usual output.
13707 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13708 $SED '/^$/d' conftest.err >conftest.er2
13709 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13710 lt_prog_compiler_pic_works_F77=yes
13711 fi
13712 fi
13713 $rm conftest*
13714
13715 fi
13716 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13717 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13718
13719 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13720 case $lt_prog_compiler_pic_F77 in
13721 "" | " "*) ;;
13722 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13723 esac
13724 else
13725 lt_prog_compiler_pic_F77=
13726 lt_prog_compiler_can_build_shared_F77=no
13727 fi
13728
13729 fi
13730 case $host_os in
13731 # For platforms which do not support PIC, -DPIC is meaningless:
13732 *djgpp*)
13733 lt_prog_compiler_pic_F77=
13734 ;;
13735 *)
13736 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13737 ;;
13738 esac
13739
13740 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13741 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13742 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745 lt_cv_prog_compiler_c_o_F77=no
13746 $rm -r conftest 2>/dev/null
13747 mkdir conftest
13748 cd conftest
13749 mkdir out
13750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13751
13752 lt_compiler_flag="-o out/conftest2.$ac_objext"
13753 # Insert the option either (1) after the last *FLAGS variable, or
13754 # (2) before a word containing "conftest.", or (3) at the end.
13755 # Note that $ac_compile itself does not contain backslashes and begins
13756 # with a dollar sign (not a hyphen), so the echo should work correctly.
13757 lt_compile=`echo "$ac_compile" | $SED \
13758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13760 -e 's:$: $lt_compiler_flag:'`
13761 (eval echo "\"\$as_me:13761: $lt_compile\"" >&5)
13762 (eval "$lt_compile" 2>out/conftest.err)
13763 ac_status=$?
13764 cat out/conftest.err >&5
13765 echo "$as_me:13765: \$? = $ac_status" >&5
13766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13767 then
13768 # The compiler can only warn and ignore the option if not recognized
13769 # So say no if there are warnings
13770 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13771 $SED '/^$/d' out/conftest.err >out/conftest.er2
13772 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13773 lt_cv_prog_compiler_c_o_F77=yes
13774 fi
13775 fi
13776 chmod u+w . 2>&5
13777 $rm conftest*
13778 # SGI C++ compiler will create directory out/ii_files/ for
13779 # template instantiation
13780 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13781 $rm out/* && rmdir out
13782 cd ..
13783 rmdir conftest
13784 $rm conftest*
13785
13786 fi
13787 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13788 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13789
13790
13791 hard_links="nottested"
13792 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13793 # do not overwrite the value of need_locks provided by the user
13794 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13795 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13796 hard_links=yes
13797 $rm conftest*
13798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13799 touch conftest.a
13800 ln conftest.a conftest.b 2>&5 || hard_links=no
13801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13802 echo "$as_me:$LINENO: result: $hard_links" >&5
13803 echo "${ECHO_T}$hard_links" >&6
13804 if test "$hard_links" = no; then
13805 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13806 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13807 need_locks=warn
13808 fi
13809 else
13810 need_locks=no
13811 fi
13812
13813 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13814 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13815
13816 runpath_var=
13817 allow_undefined_flag_F77=
13818 enable_shared_with_static_runtimes_F77=no
13819 archive_cmds_F77=
13820 archive_expsym_cmds_F77=
13821 old_archive_From_new_cmds_F77=
13822 old_archive_from_expsyms_cmds_F77=
13823 export_dynamic_flag_spec_F77=
13824 whole_archive_flag_spec_F77=
13825 thread_safe_flag_spec_F77=
13826 hardcode_libdir_flag_spec_F77=
13827 hardcode_libdir_flag_spec_ld_F77=
13828 hardcode_libdir_separator_F77=
13829 hardcode_direct_F77=no
13830 hardcode_minus_L_F77=no
13831 hardcode_shlibpath_var_F77=unsupported
13832 link_all_deplibs_F77=unknown
13833 hardcode_automatic_F77=no
13834 module_cmds_F77=
13835 module_expsym_cmds_F77=
13836 always_export_symbols_F77=no
13837 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13838 # include_expsyms should be a list of space-separated symbols to be *always*
13839 # included in the symbol list
13840 include_expsyms_F77=
13841 # exclude_expsyms can be an extended regexp of symbols to exclude
13842 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13843 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13844 # as well as any symbol that contains `d'.
13845 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13846 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13847 # platforms (ab)use it in PIC code, but their linkers get confused if
13848 # the symbol is explicitly referenced. Since portable code cannot
13849 # rely on this symbol name, it's probably fine to never include it in
13850 # preloaded symbol tables.
13851 extract_expsyms_cmds=
13852 # Just being paranoid about ensuring that cc_basename is set.
13853 for cc_temp in $compiler""; do
13854 case $cc_temp in
13855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13857 \-*) ;;
13858 *) break;;
13859 esac
13860 done
13861 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13862
13863 case $host_os in
13864 cygwin* | mingw* | pw32*)
13865 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13866 # When not using gcc, we currently assume that we are using
13867 # Microsoft Visual C++.
13868 if test "$GCC" != yes; then
13869 with_gnu_ld=no
13870 fi
13871 ;;
13872 openbsd*)
13873 with_gnu_ld=no
13874 ;;
13875 esac
13876
13877 ld_shlibs_F77=yes
13878 if test "$with_gnu_ld" = yes; then
13879 # If archive_cmds runs LD, not CC, wlarc should be empty
13880 wlarc='${wl}'
13881
13882 # Set some defaults for GNU ld with shared library support. These
13883 # are reset later if shared libraries are not supported. Putting them
13884 # here allows them to be overridden if necessary.
13885 runpath_var=LD_RUN_PATH
13886 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13887 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13888 # ancient GNU ld didn't support --whole-archive et. al.
13889 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13890 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13891 else
13892 whole_archive_flag_spec_F77=
13893 fi
13894 supports_anon_versioning=no
13895 case `$LD -v 2>/dev/null` in
13896 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13897 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13898 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13899 *\ 2.11.*) ;; # other 2.11 versions
13900 *) supports_anon_versioning=yes ;;
13901 esac
13902
13903 # See if GNU ld supports shared libraries.
13904 case $host_os in
13905 aix3* | aix4* | aix5*)
13906 # On AIX/PPC, the GNU linker is very broken
13907 if test "$host_cpu" != ia64; then
13908 ld_shlibs_F77=no
13909 cat <<EOF 1>&2
13910
13911 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13912 *** to be unable to reliably create shared libraries on AIX.
13913 *** Therefore, libtool is disabling shared libraries support. If you
13914 *** really care for shared libraries, you may want to modify your PATH
13915 *** so that a non-GNU linker is found, and then restart.
13916
13917 EOF
13918 fi
13919 ;;
13920
13921 amigaos*)
13922 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)'
13923 hardcode_libdir_flag_spec_F77='-L$libdir'
13924 hardcode_minus_L_F77=yes
13925
13926 # Samuel A. Falvo II <[email protected]> reports
13927 # that the semantics of dynamic libraries on AmigaOS, at least up
13928 # to version 4, is to share data among multiple programs linked
13929 # with the same dynamic library. Since this doesn't match the
13930 # behavior of shared libraries on other platforms, we can't use
13931 # them.
13932 ld_shlibs_F77=no
13933 ;;
13934
13935 beos*)
13936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13937 allow_undefined_flag_F77=unsupported
13938 # Joseph Beckenbach <[email protected]> says some releases of gcc
13939 # support --undefined. This deserves some investigation. FIXME
13940 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13941 else
13942 ld_shlibs_F77=no
13943 fi
13944 ;;
13945
13946 cygwin* | mingw* | pw32*)
13947 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13948 # as there is no search path for DLLs.
13949 hardcode_libdir_flag_spec_F77='-L$libdir'
13950 allow_undefined_flag_F77=unsupported
13951 always_export_symbols_F77=no
13952 enable_shared_with_static_runtimes_F77=yes
13953 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13954
13955 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13956 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13957 # If the export-symbols file already is a .def file (1st line
13958 # is EXPORTS), use it as is; otherwise, prepend...
13959 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13960 cp $export_symbols $output_objdir/$soname.def;
13961 else
13962 echo EXPORTS > $output_objdir/$soname.def;
13963 cat $export_symbols >> $output_objdir/$soname.def;
13964 fi~
13965 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13966 else
13967 ld_shlibs_F77=no
13968 fi
13969 ;;
13970
13971 linux*)
13972 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13973 tmp_addflag=
13974 case $cc_basename,$host_cpu in
13975 pgcc*) # Portland Group C compiler
13976 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13977 tmp_addflag=' $pic_flag'
13978 ;;
13979 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13980 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13981 tmp_addflag=' $pic_flag -Mnomain' ;;
13982 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13983 tmp_addflag=' -i_dynamic' ;;
13984 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13985 tmp_addflag=' -i_dynamic -nofor_main' ;;
13986 ifc* | ifort*) # Intel Fortran compiler
13987 tmp_addflag=' -nofor_main' ;;
13988 esac
13989 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990
13991 if test $supports_anon_versioning = yes; then
13992 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13994 $echo "local: *; };" >> $output_objdir/$libname.ver~
13995 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13996 fi
13997 link_all_deplibs_F77=no
13998 else
13999 ld_shlibs_F77=no
14000 fi
14001 ;;
14002
14003 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14005 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14006 wlarc=
14007 else
14008 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14009 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14010 fi
14011 ;;
14012
14013 solaris* | sysv5*)
14014 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14015 ld_shlibs_F77=no
14016 cat <<EOF 1>&2
14017
14018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14019 *** create shared libraries on Solaris systems. Therefore, libtool
14020 *** is disabling shared libraries support. We urge you to upgrade GNU
14021 *** binutils to release 2.9.1 or newer. Another option is to modify
14022 *** your PATH or compiler configuration so that the native linker is
14023 *** used, and then restart.
14024
14025 EOF
14026 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14027 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14028 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14029 else
14030 ld_shlibs_F77=no
14031 fi
14032 ;;
14033
14034 sunos4*)
14035 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14036 wlarc=
14037 hardcode_direct_F77=yes
14038 hardcode_shlibpath_var_F77=no
14039 ;;
14040
14041 *)
14042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14043 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14044 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14045 else
14046 ld_shlibs_F77=no
14047 fi
14048 ;;
14049 esac
14050
14051 if test "$ld_shlibs_F77" = no; then
14052 runpath_var=
14053 hardcode_libdir_flag_spec_F77=
14054 export_dynamic_flag_spec_F77=
14055 whole_archive_flag_spec_F77=
14056 fi
14057 else
14058 # PORTME fill in a description of your system's linker (not GNU ld)
14059 case $host_os in
14060 aix3*)
14061 allow_undefined_flag_F77=unsupported
14062 always_export_symbols_F77=yes
14063 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'
14064 # Note: this linker hardcodes the directories in LIBPATH if there
14065 # are no directories specified by -L.
14066 hardcode_minus_L_F77=yes
14067 if test "$GCC" = yes && test -z "$link_static_flag"; then
14068 # Neither direct hardcoding nor static linking is supported with a
14069 # broken collect2.
14070 hardcode_direct_F77=unsupported
14071 fi
14072 ;;
14073
14074 aix4* | aix5*)
14075 if test "$host_cpu" = ia64; then
14076 # On IA64, the linker does run time linking by default, so we don't
14077 # have to do anything special.
14078 aix_use_runtimelinking=no
14079 exp_sym_flag='-Bexport'
14080 no_entry_flag=""
14081 else
14082 # If we're using GNU nm, then we don't want the "-C" option.
14083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14084 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14085 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'
14086 else
14087 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'
14088 fi
14089 aix_use_runtimelinking=no
14090
14091 # Test if we are trying to use run time linking or normal
14092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14093 # need to do runtime linking.
14094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14095 for ld_flag in $LDFLAGS; do
14096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14097 aix_use_runtimelinking=yes
14098 break
14099 fi
14100 done
14101 esac
14102
14103 exp_sym_flag='-bexport'
14104 no_entry_flag='-bnoentry'
14105 fi
14106
14107 # When large executables or shared objects are built, AIX ld can
14108 # have problems creating the table of contents. If linking a library
14109 # or program results in "error TOC overflow" add -mminimal-toc to
14110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14112
14113 archive_cmds_F77=''
14114 hardcode_direct_F77=yes
14115 hardcode_libdir_separator_F77=':'
14116 link_all_deplibs_F77=yes
14117
14118 if test "$GCC" = yes; then
14119 case $host_os in aix4.[012]|aix4.[012].*)
14120 # We only want to do this on AIX 4.2 and lower, the check
14121 # below for broken collect2 doesn't work under 4.3+
14122 collect2name=`${CC} -print-prog-name=collect2`
14123 if test -f "$collect2name" && \
14124 strings "$collect2name" | grep resolve_lib_name >/dev/null
14125 then
14126 # We have reworked collect2
14127 hardcode_direct_F77=yes
14128 else
14129 # We have old collect2
14130 hardcode_direct_F77=unsupported
14131 # It fails to find uninstalled libraries when the uninstalled
14132 # path is not listed in the libpath. Setting hardcode_minus_L
14133 # to unsupported forces relinking
14134 hardcode_minus_L_F77=yes
14135 hardcode_libdir_flag_spec_F77='-L$libdir'
14136 hardcode_libdir_separator_F77=
14137 fi
14138 esac
14139 shared_flag='-shared'
14140 if test "$aix_use_runtimelinking" = yes; then
14141 shared_flag="$shared_flag "'${wl}-G'
14142 fi
14143 else
14144 # not using gcc
14145 if test "$host_cpu" = ia64; then
14146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14147 # chokes on -Wl,-G. The following line is correct:
14148 shared_flag='-G'
14149 else
14150 if test "$aix_use_runtimelinking" = yes; then
14151 shared_flag='${wl}-G'
14152 else
14153 shared_flag='${wl}-bM:SRE'
14154 fi
14155 fi
14156 fi
14157
14158 # It seems that -bexpall does not export symbols beginning with
14159 # underscore (_), so it is better to generate a list of symbols to export.
14160 always_export_symbols_F77=yes
14161 if test "$aix_use_runtimelinking" = yes; then
14162 # Warning - without using the other runtime loading flags (-brtl),
14163 # -berok will link without error, but may produce a broken library.
14164 allow_undefined_flag_F77='-berok'
14165 # Determine the default libpath from the value encoded in an empty executable.
14166 cat >conftest.$ac_ext <<_ACEOF
14167 program main
14168
14169 end
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest$ac_exeext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192
14193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14194 }'`
14195 # Check for a 64-bit object if we didn't find anything.
14196 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; }
14197 }'`; fi
14198 else
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14201
14202 fi
14203 rm -f conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14206
14207 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14208 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"
14209 else
14210 if test "$host_cpu" = ia64; then
14211 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14212 allow_undefined_flag_F77="-z nodefs"
14213 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"
14214 else
14215 # Determine the default libpath from the value encoded in an empty executable.
14216 cat >conftest.$ac_ext <<_ACEOF
14217 program main
14218
14219 end
14220 _ACEOF
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14223 (eval $ac_link) 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest$ac_exeext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242
14243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14244 }'`
14245 # Check for a 64-bit object if we didn't find anything.
14246 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; }
14247 }'`; fi
14248 else
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252 fi
14253 rm -f conftest.err conftest.$ac_objext \
14254 conftest$ac_exeext conftest.$ac_ext
14255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14256
14257 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14258 # Warning - without using the other run time loading flags,
14259 # -berok will link without error, but may produce a broken library.
14260 no_undefined_flag_F77=' ${wl}-bernotok'
14261 allow_undefined_flag_F77=' ${wl}-berok'
14262 # -bexpall does not export symbols beginning with underscore (_)
14263 always_export_symbols_F77=yes
14264 # Exported symbols can be pulled into shared objects from archives
14265 whole_archive_flag_spec_F77=' '
14266 archive_cmds_need_lc_F77=yes
14267 # This is similar to how AIX traditionally builds its shared libraries.
14268 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'
14269 fi
14270 fi
14271 ;;
14272
14273 amigaos*)
14274 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)'
14275 hardcode_libdir_flag_spec_F77='-L$libdir'
14276 hardcode_minus_L_F77=yes
14277 # see comment about different semantics on the GNU ld section
14278 ld_shlibs_F77=no
14279 ;;
14280
14281 bsdi[45]*)
14282 export_dynamic_flag_spec_F77=-rdynamic
14283 ;;
14284
14285 cygwin* | mingw* | pw32*)
14286 # When not using gcc, we currently assume that we are using
14287 # Microsoft Visual C++.
14288 # hardcode_libdir_flag_spec is actually meaningless, as there is
14289 # no search path for DLLs.
14290 hardcode_libdir_flag_spec_F77=' '
14291 allow_undefined_flag_F77=unsupported
14292 # Tell ltmain to make .lib files, not .a files.
14293 libext=lib
14294 # Tell ltmain to make .dll files, not .so files.
14295 shrext_cmds=".dll"
14296 # FIXME: Setting linknames here is a bad hack.
14297 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14298 # The linker will automatically build a .lib file if we build a DLL.
14299 old_archive_From_new_cmds_F77='true'
14300 # FIXME: Should let the user specify the lib program.
14301 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14302 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14303 enable_shared_with_static_runtimes_F77=yes
14304 ;;
14305
14306 darwin* | rhapsody*)
14307 case $host_os in
14308 rhapsody* | darwin1.[012])
14309 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14310 ;;
14311 *) # Darwin 1.3 on
14312 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14313 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14314 else
14315 case ${MACOSX_DEPLOYMENT_TARGET} in
14316 10.[012])
14317 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14318 ;;
14319 10.*)
14320 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14321 ;;
14322 esac
14323 fi
14324 ;;
14325 esac
14326 archive_cmds_need_lc_F77=no
14327 hardcode_direct_F77=no
14328 hardcode_automatic_F77=yes
14329 hardcode_shlibpath_var_F77=unsupported
14330 whole_archive_flag_spec_F77=''
14331 link_all_deplibs_F77=yes
14332 if test "$GCC" = yes ; then
14333 output_verbose_link_cmd='echo'
14334 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14335 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14337 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14338 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}'
14339 else
14340 case $cc_basename in
14341 xlc*)
14342 output_verbose_link_cmd='echo'
14343 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14344 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14346 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14347 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}'
14348 ;;
14349 *)
14350 ld_shlibs_F77=no
14351 ;;
14352 esac
14353 fi
14354 ;;
14355
14356 dgux*)
14357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_libdir_flag_spec_F77='-L$libdir'
14359 hardcode_shlibpath_var_F77=no
14360 ;;
14361
14362 freebsd1*)
14363 ld_shlibs_F77=no
14364 ;;
14365
14366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14367 # support. Future versions do this automatically, but an explicit c++rt0.o
14368 # does not break anything, and helps significantly (at the cost of a little
14369 # extra space).
14370 freebsd2.2*)
14371 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14372 hardcode_libdir_flag_spec_F77='-R$libdir'
14373 hardcode_direct_F77=yes
14374 hardcode_shlibpath_var_F77=no
14375 ;;
14376
14377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14378 freebsd2*)
14379 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14380 hardcode_direct_F77=yes
14381 hardcode_minus_L_F77=yes
14382 hardcode_shlibpath_var_F77=no
14383 ;;
14384
14385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14386 freebsd* | kfreebsd*-gnu | dragonfly*)
14387 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14388 hardcode_libdir_flag_spec_F77='-R$libdir'
14389 hardcode_direct_F77=yes
14390 hardcode_shlibpath_var_F77=no
14391 ;;
14392
14393 hpux9*)
14394 if test "$GCC" = yes; then
14395 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'
14396 else
14397 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'
14398 fi
14399 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14400 hardcode_libdir_separator_F77=:
14401 hardcode_direct_F77=yes
14402
14403 # hardcode_minus_L: Not really in the search PATH,
14404 # but as the default location of the library.
14405 hardcode_minus_L_F77=yes
14406 export_dynamic_flag_spec_F77='${wl}-E'
14407 ;;
14408
14409 hpux10* | hpux11*)
14410 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14411 case $host_cpu in
14412 hppa*64*|ia64*)
14413 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14414 ;;
14415 *)
14416 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14417 ;;
14418 esac
14419 else
14420 case $host_cpu in
14421 hppa*64*|ia64*)
14422 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14423 ;;
14424 *)
14425 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14426 ;;
14427 esac
14428 fi
14429 if test "$with_gnu_ld" = no; then
14430 case $host_cpu in
14431 hppa*64*)
14432 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14433 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14434 hardcode_libdir_separator_F77=:
14435 hardcode_direct_F77=no
14436 hardcode_shlibpath_var_F77=no
14437 ;;
14438 ia64*)
14439 hardcode_libdir_flag_spec_F77='-L$libdir'
14440 hardcode_direct_F77=no
14441 hardcode_shlibpath_var_F77=no
14442
14443 # hardcode_minus_L: Not really in the search PATH,
14444 # but as the default location of the library.
14445 hardcode_minus_L_F77=yes
14446 ;;
14447 *)
14448 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14449 hardcode_libdir_separator_F77=:
14450 hardcode_direct_F77=yes
14451 export_dynamic_flag_spec_F77='${wl}-E'
14452
14453 # hardcode_minus_L: Not really in the search PATH,
14454 # but as the default location of the library.
14455 hardcode_minus_L_F77=yes
14456 ;;
14457 esac
14458 fi
14459 ;;
14460
14461 irix5* | irix6* | nonstopux*)
14462 if test "$GCC" = yes; then
14463 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'
14464 else
14465 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'
14466 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14467 fi
14468 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14469 hardcode_libdir_separator_F77=:
14470 link_all_deplibs_F77=yes
14471 ;;
14472
14473 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14475 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14476 else
14477 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14478 fi
14479 hardcode_libdir_flag_spec_F77='-R$libdir'
14480 hardcode_direct_F77=yes
14481 hardcode_shlibpath_var_F77=no
14482 ;;
14483
14484 newsos6)
14485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14486 hardcode_direct_F77=yes
14487 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14488 hardcode_libdir_separator_F77=:
14489 hardcode_shlibpath_var_F77=no
14490 ;;
14491
14492 openbsd*)
14493 hardcode_direct_F77=yes
14494 hardcode_shlibpath_var_F77=no
14495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14496 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14497 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14498 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14499 export_dynamic_flag_spec_F77='${wl}-E'
14500 else
14501 case $host_os in
14502 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14503 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14504 hardcode_libdir_flag_spec_F77='-R$libdir'
14505 ;;
14506 *)
14507 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14508 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14509 ;;
14510 esac
14511 fi
14512 ;;
14513
14514 os2*)
14515 hardcode_libdir_flag_spec_F77='-L$libdir'
14516 hardcode_minus_L_F77=yes
14517 allow_undefined_flag_F77=unsupported
14518 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'
14519 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14520 ;;
14521
14522 osf3*)
14523 if test "$GCC" = yes; then
14524 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14525 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'
14526 else
14527 allow_undefined_flag_F77=' -expect_unresolved \*'
14528 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'
14529 fi
14530 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14531 hardcode_libdir_separator_F77=:
14532 ;;
14533
14534 osf4* | osf5*) # as osf3* with the addition of -msym flag
14535 if test "$GCC" = yes; then
14536 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14537 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'
14538 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14539 else
14540 allow_undefined_flag_F77=' -expect_unresolved \*'
14541 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'
14542 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~
14543 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14544
14545 # Both c and cxx compiler support -rpath directly
14546 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14547 fi
14548 hardcode_libdir_separator_F77=:
14549 ;;
14550
14551 sco3.2v5*)
14552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14553 hardcode_shlibpath_var_F77=no
14554 export_dynamic_flag_spec_F77='${wl}-Bexport'
14555 runpath_var=LD_RUN_PATH
14556 hardcode_runpath_var=yes
14557 ;;
14558
14559 solaris*)
14560 no_undefined_flag_F77=' -z text'
14561 if test "$GCC" = yes; then
14562 wlarc='${wl}'
14563 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14564 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14565 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14566 else
14567 wlarc=''
14568 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14569 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14571 fi
14572 hardcode_libdir_flag_spec_F77='-R$libdir'
14573 hardcode_shlibpath_var_F77=no
14574 case $host_os in
14575 solaris2.[0-5] | solaris2.[0-5].*) ;;
14576 *)
14577 # The compiler driver will combine linker options so we
14578 # cannot just pass the convience library names through
14579 # without $wl, iff we do not link with $LD.
14580 # Luckily, gcc supports the same syntax we need for Sun Studio.
14581 # Supported since Solaris 2.6 (maybe 2.5.1?)
14582 case $wlarc in
14583 '')
14584 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14585 *)
14586 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14587 esac ;;
14588 esac
14589 link_all_deplibs_F77=yes
14590 ;;
14591
14592 sunos4*)
14593 if test "x$host_vendor" = xsequent; then
14594 # Use $CC to link under sequent, because it throws in some extra .o
14595 # files that make .init and .fini sections work.
14596 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14597 else
14598 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14599 fi
14600 hardcode_libdir_flag_spec_F77='-L$libdir'
14601 hardcode_direct_F77=yes
14602 hardcode_minus_L_F77=yes
14603 hardcode_shlibpath_var_F77=no
14604 ;;
14605
14606 sysv4)
14607 case $host_vendor in
14608 sni)
14609 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14610 hardcode_direct_F77=yes # is this really true???
14611 ;;
14612 siemens)
14613 ## LD is ld it makes a PLAMLIB
14614 ## CC just makes a GrossModule.
14615 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14616 reload_cmds_F77='$CC -r -o $output$reload_objs'
14617 hardcode_direct_F77=no
14618 ;;
14619 motorola)
14620 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14621 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14622 ;;
14623 esac
14624 runpath_var='LD_RUN_PATH'
14625 hardcode_shlibpath_var_F77=no
14626 ;;
14627
14628 sysv4.3*)
14629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14630 hardcode_shlibpath_var_F77=no
14631 export_dynamic_flag_spec_F77='-Bexport'
14632 ;;
14633
14634 sysv4*MP*)
14635 if test -d /usr/nec; then
14636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14637 hardcode_shlibpath_var_F77=no
14638 runpath_var=LD_RUN_PATH
14639 hardcode_runpath_var=yes
14640 ld_shlibs_F77=yes
14641 fi
14642 ;;
14643
14644 sysv4.2uw2*)
14645 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14646 hardcode_direct_F77=yes
14647 hardcode_minus_L_F77=no
14648 hardcode_shlibpath_var_F77=no
14649 hardcode_runpath_var=yes
14650 runpath_var=LD_RUN_PATH
14651 ;;
14652
14653 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14654 no_undefined_flag_F77='${wl}-z ${wl}text'
14655 if test "$GCC" = yes; then
14656 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 else
14658 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 fi
14660 runpath_var='LD_RUN_PATH'
14661 hardcode_shlibpath_var_F77=no
14662 ;;
14663
14664 sysv5*)
14665 no_undefined_flag_F77=' -z text'
14666 # $CC -shared without GNU ld will not create a library from C++
14667 # object files and a static libstdc++, better avoid it by now
14668 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14670 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14671 hardcode_libdir_flag_spec_F77=
14672 hardcode_shlibpath_var_F77=no
14673 runpath_var='LD_RUN_PATH'
14674 ;;
14675
14676 uts4*)
14677 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14678 hardcode_libdir_flag_spec_F77='-L$libdir'
14679 hardcode_shlibpath_var_F77=no
14680 ;;
14681
14682 *)
14683 ld_shlibs_F77=no
14684 ;;
14685 esac
14686 fi
14687
14688 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14689 echo "${ECHO_T}$ld_shlibs_F77" >&6
14690 test "$ld_shlibs_F77" = no && can_build_shared=no
14691
14692 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14693 if test "$GCC" = yes; then
14694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14695 fi
14696
14697 #
14698 # Do we need to explicitly link libc?
14699 #
14700 case "x$archive_cmds_need_lc_F77" in
14701 x|xyes)
14702 # Assume -lc should be added
14703 archive_cmds_need_lc_F77=yes
14704
14705 if test "$enable_shared" = yes && test "$GCC" = yes; then
14706 case $archive_cmds_F77 in
14707 *'~'*)
14708 # FIXME: we may have to deal with multi-command sequences.
14709 ;;
14710 '$CC '*)
14711 # Test whether the compiler implicitly links with -lc since on some
14712 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14713 # to ld, don't add -lc before -lgcc.
14714 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14715 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14716 $rm conftest*
14717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14718
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } 2>conftest.err; then
14724 soname=conftest
14725 lib=conftest
14726 libobjs=conftest.$ac_objext
14727 deplibs=
14728 wl=$lt_prog_compiler_wl_F77
14729 compiler_flags=-v
14730 linker_flags=-v
14731 verstring=
14732 output_objdir=.
14733 libname=conftest
14734 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14735 allow_undefined_flag_F77=
14736 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14737 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }
14741 then
14742 archive_cmds_need_lc_F77=no
14743 else
14744 archive_cmds_need_lc_F77=yes
14745 fi
14746 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14747 else
14748 cat conftest.err 1>&5
14749 fi
14750 $rm conftest*
14751 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14752 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14753 ;;
14754 esac
14755 fi
14756 ;;
14757 esac
14758
14759 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14760 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14761 library_names_spec=
14762 libname_spec='lib$name'
14763 soname_spec=
14764 shrext_cmds=".so"
14765 postinstall_cmds=
14766 postuninstall_cmds=
14767 finish_cmds=
14768 finish_eval=
14769 shlibpath_var=
14770 shlibpath_overrides_runpath=unknown
14771 version_type=none
14772 dynamic_linker="$host_os ld.so"
14773 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14774 if test "$GCC" = yes; then
14775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14776 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14777 # if the path contains ";" then we assume it to be the separator
14778 # otherwise default to the standard path separator (i.e. ":") - it is
14779 # assumed that no part of a normal pathname contains ";" but that should
14780 # okay in the real world where ";" in dirpaths is itself problematic.
14781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14782 else
14783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14784 fi
14785 else
14786 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14787 fi
14788 need_lib_prefix=unknown
14789 hardcode_into_libs=no
14790
14791 # when you set need_version to no, make sure it does not cause -set_version
14792 # flags to be left without arguments
14793 need_version=unknown
14794
14795 case $host_os in
14796 aix3*)
14797 version_type=linux
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14799 shlibpath_var=LIBPATH
14800
14801 # AIX 3 has no versioning support, so we append a major version to the name.
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 ;;
14804
14805 aix4* | aix5*)
14806 version_type=linux
14807 need_lib_prefix=no
14808 need_version=no
14809 hardcode_into_libs=yes
14810 if test "$host_cpu" = ia64; then
14811 # AIX 5 supports IA64
14812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 else
14815 # With GCC up to 2.95.x, collect2 would create an import file
14816 # for dependence libraries. The import file would start with
14817 # the line `#! .'. This would cause the generated library to
14818 # depend on `.', always an invalid library. This was fixed in
14819 # development snapshots of GCC prior to 3.0.
14820 case $host_os in
14821 aix4 | aix4.[01] | aix4.[01].*)
14822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14823 echo ' yes '
14824 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14825 :
14826 else
14827 can_build_shared=no
14828 fi
14829 ;;
14830 esac
14831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14832 # soname into executable. Probably we can add versioning support to
14833 # collect2, so additional links can be useful in future.
14834 if test "$aix_use_runtimelinking" = yes; then
14835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14836 # instead of lib<name>.a to let people know that these are not
14837 # typical AIX shared libraries.
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 else
14840 # We preserve .a as extension for shared libraries through AIX4.2
14841 # and later when we are not doing run time linking.
14842 library_names_spec='${libname}${release}.a $libname.a'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 fi
14845 shlibpath_var=LIBPATH
14846 fi
14847 ;;
14848
14849 amigaos*)
14850 library_names_spec='$libname.ixlibrary $libname.a'
14851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14852 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'
14853 ;;
14854
14855 beos*)
14856 library_names_spec='${libname}${shared_ext}'
14857 dynamic_linker="$host_os ld.so"
14858 shlibpath_var=LIBRARY_PATH
14859 ;;
14860
14861 bsdi[45]*)
14862 version_type=linux
14863 need_version=no
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14869 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14870 # the default ld.so.conf also contains /usr/contrib/lib and
14871 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14872 # libtool to hard-code these into programs
14873 ;;
14874
14875 cygwin* | mingw* | pw32*)
14876 version_type=windows
14877 shrext_cmds=".dll"
14878 need_version=no
14879 need_lib_prefix=no
14880
14881 case $GCC,$host_os in
14882 yes,cygwin* | yes,mingw* | yes,pw32*)
14883 library_names_spec='$libname.dll.a'
14884 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14885 postinstall_cmds='base_file=`basename \${file}`~
14886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14887 dldir=$destdir/`dirname \$dlpath`~
14888 test -d \$dldir || mkdir -p \$dldir~
14889 $install_prog $dir/$dlname \$dldir/$dlname~
14890 chmod a+x \$dldir/$dlname'
14891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14892 dlpath=$dir/\$dldll~
14893 $rm \$dlpath'
14894 shlibpath_overrides_runpath=yes
14895
14896 case $host_os in
14897 cygwin*)
14898 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14899 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14900 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14901 ;;
14902 mingw*)
14903 # MinGW DLLs use traditional 'lib' prefix
14904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14905 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14906 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14907 # It is most probably a Windows format PATH printed by
14908 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14909 # path with ; separators, and with drive letters. We can handle the
14910 # drive letters (cygwin fileutils understands them), so leave them,
14911 # especially as we might pass files found there to a mingw objdump,
14912 # which wouldn't understand a cygwinified path. Ahh.
14913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14914 else
14915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14916 fi
14917 ;;
14918 pw32*)
14919 # pw32 DLLs use 'pw' prefix rather than 'lib'
14920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14921 ;;
14922 esac
14923 ;;
14924
14925 *)
14926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14927 ;;
14928 esac
14929 dynamic_linker='Win32 ld.exe'
14930 # FIXME: first we should search . and the directory the executable is in
14931 shlibpath_var=PATH
14932 ;;
14933
14934 darwin* | rhapsody*)
14935 dynamic_linker="$host_os dyld"
14936 version_type=darwin
14937 need_lib_prefix=no
14938 need_version=no
14939 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14940 soname_spec='${libname}${release}${major}$shared_ext'
14941 shlibpath_overrides_runpath=yes
14942 shlibpath_var=DYLD_LIBRARY_PATH
14943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14944 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14945 if test "$GCC" = yes; then
14946 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"`
14947 else
14948 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14949 fi
14950 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14951 ;;
14952
14953 dgux*)
14954 version_type=linux
14955 need_lib_prefix=no
14956 need_version=no
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 ;;
14961
14962 freebsd1*)
14963 dynamic_linker=no
14964 ;;
14965
14966 kfreebsd*-gnu)
14967 version_type=linux
14968 need_lib_prefix=no
14969 need_version=no
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 shlibpath_var=LD_LIBRARY_PATH
14973 shlibpath_overrides_runpath=no
14974 hardcode_into_libs=yes
14975 dynamic_linker='GNU ld.so'
14976 ;;
14977
14978 freebsd* | dragonfly*)
14979 # DragonFly does not have aout. When/if they implement a new
14980 # versioning mechanism, adjust this.
14981 if test -x /usr/bin/objformat; then
14982 objformat=`/usr/bin/objformat`
14983 else
14984 case $host_os in
14985 freebsd[123]*) objformat=aout ;;
14986 *) objformat=elf ;;
14987 esac
14988 fi
14989 version_type=freebsd-$objformat
14990 case $version_type in
14991 freebsd-elf*)
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14993 need_version=no
14994 need_lib_prefix=no
14995 ;;
14996 freebsd-*)
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14998 need_version=yes
14999 ;;
15000 esac
15001 shlibpath_var=LD_LIBRARY_PATH
15002 case $host_os in
15003 freebsd2*)
15004 shlibpath_overrides_runpath=yes
15005 ;;
15006 freebsd3.[01]* | freebsdelf3.[01]*)
15007 shlibpath_overrides_runpath=yes
15008 hardcode_into_libs=yes
15009 ;;
15010 *) # from 3.2 on
15011 shlibpath_overrides_runpath=no
15012 hardcode_into_libs=yes
15013 ;;
15014 esac
15015 ;;
15016
15017 gnu*)
15018 version_type=linux
15019 need_lib_prefix=no
15020 need_version=no
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 hardcode_into_libs=yes
15025 ;;
15026
15027 hpux9* | hpux10* | hpux11*)
15028 # Give a soname corresponding to the major version so that dld.sl refuses to
15029 # link against other versions.
15030 version_type=sunos
15031 need_lib_prefix=no
15032 need_version=no
15033 case $host_cpu in
15034 ia64*)
15035 shrext_cmds='.so'
15036 hardcode_into_libs=yes
15037 dynamic_linker="$host_os dld.so"
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 if test "X$HPUX_IA64_MODE" = X32; then
15043 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15044 else
15045 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15046 fi
15047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15048 ;;
15049 hppa*64*)
15050 shrext_cmds='.sl'
15051 hardcode_into_libs=yes
15052 dynamic_linker="$host_os dld.sl"
15053 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15059 ;;
15060 *)
15061 shrext_cmds='.sl'
15062 dynamic_linker="$host_os dld.sl"
15063 shlibpath_var=SHLIB_PATH
15064 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 ;;
15068 esac
15069 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15070 postinstall_cmds='chmod 555 $lib'
15071 ;;
15072
15073 irix5* | irix6* | nonstopux*)
15074 case $host_os in
15075 nonstopux*) version_type=nonstopux ;;
15076 *)
15077 if test "$lt_cv_prog_gnu_ld" = yes; then
15078 version_type=linux
15079 else
15080 version_type=irix
15081 fi ;;
15082 esac
15083 need_lib_prefix=no
15084 need_version=no
15085 soname_spec='${libname}${release}${shared_ext}$major'
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15087 case $host_os in
15088 irix5* | nonstopux*)
15089 libsuff= shlibsuff=
15090 ;;
15091 *)
15092 case $LD in # libtool.m4 will add one of these switches to LD
15093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15094 libsuff= shlibsuff= libmagic=32-bit;;
15095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15096 libsuff=32 shlibsuff=N32 libmagic=N32;;
15097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15099 *) libsuff= shlibsuff= libmagic=never-match;;
15100 esac
15101 ;;
15102 esac
15103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15104 shlibpath_overrides_runpath=no
15105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15107 hardcode_into_libs=yes
15108 ;;
15109
15110 # No shared lib support for Linux oldld, aout, or coff.
15111 linux*oldld* | linux*aout* | linux*coff*)
15112 dynamic_linker=no
15113 ;;
15114
15115 # This must be Linux ELF.
15116 linux*)
15117 version_type=linux
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=no
15125 # This implies no fast_install, which is unacceptable.
15126 # Some rework will be needed to allow for fast_install
15127 # before this can be enabled.
15128 hardcode_into_libs=yes
15129
15130 # Append ld.so.conf contents to the search path
15131 if test -f /etc/ld.so.conf; then
15132 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15134 fi
15135
15136 # We used to test for /lib/ld.so.1 and disable shared libraries on
15137 # powerpc, because MkLinux only supported shared libraries with the
15138 # GNU dynamic linker. Since this was broken with cross compilers,
15139 # most powerpc-linux boxes support dynamic linking these days and
15140 # people can always --disable-shared, the test was removed, and we
15141 # assume the GNU/Linux dynamic linker is in use.
15142 dynamic_linker='GNU/Linux ld.so'
15143 ;;
15144
15145 netbsdelf*-gnu)
15146 version_type=linux
15147 need_lib_prefix=no
15148 need_version=no
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=no
15153 hardcode_into_libs=yes
15154 dynamic_linker='NetBSD ld.elf_so'
15155 ;;
15156
15157 knetbsd*-gnu)
15158 version_type=linux
15159 need_lib_prefix=no
15160 need_version=no
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=no
15165 hardcode_into_libs=yes
15166 dynamic_linker='GNU ld.so'
15167 ;;
15168
15169 netbsd*)
15170 version_type=sunos
15171 need_lib_prefix=no
15172 need_version=no
15173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15176 dynamic_linker='NetBSD (a.out) ld.so'
15177 else
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 dynamic_linker='NetBSD ld.elf_so'
15181 fi
15182 shlibpath_var=LD_LIBRARY_PATH
15183 shlibpath_overrides_runpath=yes
15184 hardcode_into_libs=yes
15185 ;;
15186
15187 newsos6)
15188 version_type=linux
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath=yes
15192 ;;
15193
15194 nto-qnx*)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 ;;
15203
15204 openbsd*)
15205 version_type=sunos
15206 need_lib_prefix=no
15207 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15208 case $host_os in
15209 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15210 *) need_version=no ;;
15211 esac
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15216 case $host_os in
15217 openbsd2.[89] | openbsd2.[89].*)
15218 shlibpath_overrides_runpath=no
15219 ;;
15220 *)
15221 shlibpath_overrides_runpath=yes
15222 ;;
15223 esac
15224 else
15225 shlibpath_overrides_runpath=yes
15226 fi
15227 ;;
15228
15229 os2*)
15230 libname_spec='$name'
15231 shrext_cmds=".dll"
15232 need_lib_prefix=no
15233 library_names_spec='$libname${shared_ext} $libname.a'
15234 dynamic_linker='OS/2 ld.exe'
15235 shlibpath_var=LIBPATH
15236 ;;
15237
15238 osf3* | osf4* | osf5*)
15239 version_type=osf
15240 need_lib_prefix=no
15241 need_version=no
15242 soname_spec='${libname}${release}${shared_ext}$major'
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15246 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15247 ;;
15248
15249 sco3.2v5*)
15250 version_type=osf
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 shlibpath_var=LD_LIBRARY_PATH
15254 ;;
15255
15256 solaris*)
15257 version_type=linux
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 shlibpath_overrides_runpath=yes
15264 hardcode_into_libs=yes
15265 # ldd complains unless libraries are executable
15266 postinstall_cmds='chmod +x $lib'
15267 ;;
15268
15269 sunos4*)
15270 version_type=sunos
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15272 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 shlibpath_overrides_runpath=yes
15275 if test "$with_gnu_ld" = yes; then
15276 need_lib_prefix=no
15277 fi
15278 need_version=yes
15279 ;;
15280
15281 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15282 version_type=linux
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 case $host_vendor in
15287 sni)
15288 shlibpath_overrides_runpath=no
15289 need_lib_prefix=no
15290 export_dynamic_flag_spec='${wl}-Blargedynsym'
15291 runpath_var=LD_RUN_PATH
15292 ;;
15293 siemens)
15294 need_lib_prefix=no
15295 ;;
15296 motorola)
15297 need_lib_prefix=no
15298 need_version=no
15299 shlibpath_overrides_runpath=no
15300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15301 ;;
15302 esac
15303 ;;
15304
15305 sysv4*MP*)
15306 if test -d /usr/nec ;then
15307 version_type=linux
15308 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15309 soname_spec='$libname${shared_ext}.$major'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 fi
15312 ;;
15313
15314 uts4*)
15315 version_type=linux
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 ;;
15320
15321 *)
15322 dynamic_linker=no
15323 ;;
15324 esac
15325 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15326 echo "${ECHO_T}$dynamic_linker" >&6
15327 test "$dynamic_linker" = no && can_build_shared=no
15328
15329 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15330 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15331 hardcode_action_F77=
15332 if test -n "$hardcode_libdir_flag_spec_F77" || \
15333 test -n "$runpath_var_F77" || \
15334 test "X$hardcode_automatic_F77" = "Xyes" ; then
15335
15336 # We can hardcode non-existant directories.
15337 if test "$hardcode_direct_F77" != no &&
15338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15339 # have to relink, otherwise we might link with an installed library
15340 # when we should be linking with a yet-to-be-installed one
15341 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15342 test "$hardcode_minus_L_F77" != no; then
15343 # Linking always hardcodes the temporary library directory.
15344 hardcode_action_F77=relink
15345 else
15346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15347 hardcode_action_F77=immediate
15348 fi
15349 else
15350 # We cannot hardcode anything, or else we can only hardcode existing
15351 # directories.
15352 hardcode_action_F77=unsupported
15353 fi
15354 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15355 echo "${ECHO_T}$hardcode_action_F77" >&6
15356
15357 if test "$hardcode_action_F77" = relink; then
15358 # Fast installation is not supported
15359 enable_fast_install=no
15360 elif test "$shlibpath_overrides_runpath" = yes ||
15361 test "$enable_shared" = no; then
15362 # Fast installation is not necessary
15363 enable_fast_install=needless
15364 fi
15365
15366 striplib=
15367 old_striplib=
15368 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15369 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15370 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15373 echo "$as_me:$LINENO: result: yes" >&5
15374 echo "${ECHO_T}yes" >&6
15375 else
15376 # FIXME - insert some real tests, host_os isn't really good enough
15377 case $host_os in
15378 darwin*)
15379 if test -n "$STRIP" ; then
15380 striplib="$STRIP -x"
15381 echo "$as_me:$LINENO: result: yes" >&5
15382 echo "${ECHO_T}yes" >&6
15383 else
15384 echo "$as_me:$LINENO: result: no" >&5
15385 echo "${ECHO_T}no" >&6
15386 fi
15387 ;;
15388 *)
15389 echo "$as_me:$LINENO: result: no" >&5
15390 echo "${ECHO_T}no" >&6
15391 ;;
15392 esac
15393 fi
15394
15395
15396
15397 # The else clause should only fire when bootstrapping the
15398 # libtool distribution, otherwise you forgot to ship ltmain.sh
15399 # with your package, and you will get complaints that there are
15400 # no rules to generate ltmain.sh.
15401 if test -f "$ltmain"; then
15402 # See if we are running on zsh, and set the options which allow our commands through
15403 # without removal of \ escapes.
15404 if test -n "${ZSH_VERSION+set}" ; then
15405 setopt NO_GLOB_SUBST
15406 fi
15407 # Now quote all the things that may contain metacharacters while being
15408 # careful not to overquote the AC_SUBSTed values. We take copies of the
15409 # variables and quote the copies for generation of the libtool script.
15410 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15411 SED SHELL STRIP \
15412 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15413 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15414 deplibs_check_method reload_flag reload_cmds need_locks \
15415 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15416 lt_cv_sys_global_symbol_to_c_name_address \
15417 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15418 old_postinstall_cmds old_postuninstall_cmds \
15419 compiler_F77 \
15420 CC_F77 \
15421 LD_F77 \
15422 lt_prog_compiler_wl_F77 \
15423 lt_prog_compiler_pic_F77 \
15424 lt_prog_compiler_static_F77 \
15425 lt_prog_compiler_no_builtin_flag_F77 \
15426 export_dynamic_flag_spec_F77 \
15427 thread_safe_flag_spec_F77 \
15428 whole_archive_flag_spec_F77 \
15429 enable_shared_with_static_runtimes_F77 \
15430 old_archive_cmds_F77 \
15431 old_archive_from_new_cmds_F77 \
15432 predep_objects_F77 \
15433 postdep_objects_F77 \
15434 predeps_F77 \
15435 postdeps_F77 \
15436 compiler_lib_search_path_F77 \
15437 archive_cmds_F77 \
15438 archive_expsym_cmds_F77 \
15439 postinstall_cmds_F77 \
15440 postuninstall_cmds_F77 \
15441 old_archive_from_expsyms_cmds_F77 \
15442 allow_undefined_flag_F77 \
15443 no_undefined_flag_F77 \
15444 export_symbols_cmds_F77 \
15445 hardcode_libdir_flag_spec_F77 \
15446 hardcode_libdir_flag_spec_ld_F77 \
15447 hardcode_libdir_separator_F77 \
15448 hardcode_automatic_F77 \
15449 module_cmds_F77 \
15450 module_expsym_cmds_F77 \
15451 lt_cv_prog_compiler_c_o_F77 \
15452 exclude_expsyms_F77 \
15453 include_expsyms_F77; do
15454
15455 case $var in
15456 old_archive_cmds_F77 | \
15457 old_archive_from_new_cmds_F77 | \
15458 archive_cmds_F77 | \
15459 archive_expsym_cmds_F77 | \
15460 module_cmds_F77 | \
15461 module_expsym_cmds_F77 | \
15462 old_archive_from_expsyms_cmds_F77 | \
15463 export_symbols_cmds_F77 | \
15464 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15465 postinstall_cmds | postuninstall_cmds | \
15466 old_postinstall_cmds | old_postuninstall_cmds | \
15467 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15468 # Double-quote double-evaled strings.
15469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15470 ;;
15471 *)
15472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15473 ;;
15474 esac
15475 done
15476
15477 case $lt_echo in
15478 *'\$0 --fallback-echo"')
15479 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15480 ;;
15481 esac
15482
15483 cfgfile="$ofile"
15484
15485 cat <<__EOF__ >> "$cfgfile"
15486 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15487
15488 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15489
15490 # Shell to use when invoking shell scripts.
15491 SHELL=$lt_SHELL
15492
15493 # Whether or not to build shared libraries.
15494 build_libtool_libs=$enable_shared
15495
15496 # Whether or not to build static libraries.
15497 build_old_libs=$enable_static
15498
15499 # Whether or not to add -lc for building shared libraries.
15500 build_libtool_need_lc=$archive_cmds_need_lc_F77
15501
15502 # Whether or not to disallow shared libs when runtime libs are static
15503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15504
15505 # Whether or not to optimize for fast installation.
15506 fast_install=$enable_fast_install
15507
15508 # The host system.
15509 host_alias=$host_alias
15510 host=$host
15511 host_os=$host_os
15512
15513 # The build system.
15514 build_alias=$build_alias
15515 build=$build
15516 build_os=$build_os
15517
15518 # An echo program that does not interpret backslashes.
15519 echo=$lt_echo
15520
15521 # The archiver.
15522 AR=$lt_AR
15523 AR_FLAGS=$lt_AR_FLAGS
15524
15525 # A C compiler.
15526 LTCC=$lt_LTCC
15527
15528 # A language-specific compiler.
15529 CC=$lt_compiler_F77
15530
15531 # Is the compiler the GNU C compiler?
15532 with_gcc=$GCC_F77
15533
15534 # An ERE matcher.
15535 EGREP=$lt_EGREP
15536
15537 # The linker used to build libraries.
15538 LD=$lt_LD_F77
15539
15540 # Whether we need hard or soft links.
15541 LN_S=$lt_LN_S
15542
15543 # A BSD-compatible nm program.
15544 NM=$lt_NM
15545
15546 # A symbol stripping program
15547 STRIP=$lt_STRIP
15548
15549 # Used to examine libraries when file_magic_cmd begins "file"
15550 MAGIC_CMD=$MAGIC_CMD
15551
15552 # Used on cygwin: DLL creation program.
15553 DLLTOOL="$DLLTOOL"
15554
15555 # Used on cygwin: object dumper.
15556 OBJDUMP="$OBJDUMP"
15557
15558 # Used on cygwin: assembler.
15559 AS="$AS"
15560
15561 # The name of the directory that contains temporary libtool files.
15562 objdir=$objdir
15563
15564 # How to create reloadable object files.
15565 reload_flag=$lt_reload_flag
15566 reload_cmds=$lt_reload_cmds
15567
15568 # How to pass a linker flag through the compiler.
15569 wl=$lt_lt_prog_compiler_wl_F77
15570
15571 # Object file suffix (normally "o").
15572 objext="$ac_objext"
15573
15574 # Old archive suffix (normally "a").
15575 libext="$libext"
15576
15577 # Shared library suffix (normally ".so").
15578 shrext_cmds='$shrext_cmds'
15579
15580 # Executable file suffix (normally "").
15581 exeext="$exeext"
15582
15583 # Additional compiler flags for building library objects.
15584 pic_flag=$lt_lt_prog_compiler_pic_F77
15585 pic_mode=$pic_mode
15586
15587 # What is the maximum length of a command?
15588 max_cmd_len=$lt_cv_sys_max_cmd_len
15589
15590 # Does compiler simultaneously support -c and -o options?
15591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15592
15593 # Must we lock files when doing compilation?
15594 need_locks=$lt_need_locks
15595
15596 # Do we need the lib prefix for modules?
15597 need_lib_prefix=$need_lib_prefix
15598
15599 # Do we need a version for libraries?
15600 need_version=$need_version
15601
15602 # Whether dlopen is supported.
15603 dlopen_support=$enable_dlopen
15604
15605 # Whether dlopen of programs is supported.
15606 dlopen_self=$enable_dlopen_self
15607
15608 # Whether dlopen of statically linked programs is supported.
15609 dlopen_self_static=$enable_dlopen_self_static
15610
15611 # Compiler flag to prevent dynamic linking.
15612 link_static_flag=$lt_lt_prog_compiler_static_F77
15613
15614 # Compiler flag to turn off builtin functions.
15615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15616
15617 # Compiler flag to allow reflexive dlopens.
15618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15619
15620 # Compiler flag to generate shared objects directly from archives.
15621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15622
15623 # Compiler flag to generate thread-safe objects.
15624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15625
15626 # Library versioning type.
15627 version_type=$version_type
15628
15629 # Format of library name prefix.
15630 libname_spec=$lt_libname_spec
15631
15632 # List of archive names. First name is the real one, the rest are links.
15633 # The last name is the one that the linker finds with -lNAME.
15634 library_names_spec=$lt_library_names_spec
15635
15636 # The coded name of the library, if different from the real name.
15637 soname_spec=$lt_soname_spec
15638
15639 # Commands used to build and install an old-style archive.
15640 RANLIB=$lt_RANLIB
15641 old_archive_cmds=$lt_old_archive_cmds_F77
15642 old_postinstall_cmds=$lt_old_postinstall_cmds
15643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15644
15645 # Create an old-style archive from a shared archive.
15646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15647
15648 # Create a temporary old-style archive to link instead of a shared archive.
15649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15650
15651 # Commands used to build and install a shared archive.
15652 archive_cmds=$lt_archive_cmds_F77
15653 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15654 postinstall_cmds=$lt_postinstall_cmds
15655 postuninstall_cmds=$lt_postuninstall_cmds
15656
15657 # Commands used to build a loadable module (assumed same as above if empty)
15658 module_cmds=$lt_module_cmds_F77
15659 module_expsym_cmds=$lt_module_expsym_cmds_F77
15660
15661 # Commands to strip libraries.
15662 old_striplib=$lt_old_striplib
15663 striplib=$lt_striplib
15664
15665 # Dependencies to place before the objects being linked to create a
15666 # shared library.
15667 predep_objects=$lt_predep_objects_F77
15668
15669 # Dependencies to place after the objects being linked to create a
15670 # shared library.
15671 postdep_objects=$lt_postdep_objects_F77
15672
15673 # Dependencies to place before the objects being linked to create a
15674 # shared library.
15675 predeps=$lt_predeps_F77
15676
15677 # Dependencies to place after the objects being linked to create a
15678 # shared library.
15679 postdeps=$lt_postdeps_F77
15680
15681 # The library search path used internally by the compiler when linking
15682 # a shared library.
15683 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15684
15685 # Method to check whether dependent libraries are shared objects.
15686 deplibs_check_method=$lt_deplibs_check_method
15687
15688 # Command to use when deplibs_check_method == file_magic.
15689 file_magic_cmd=$lt_file_magic_cmd
15690
15691 # Flag that allows shared libraries with undefined symbols to be built.
15692 allow_undefined_flag=$lt_allow_undefined_flag_F77
15693
15694 # Flag that forces no undefined symbols.
15695 no_undefined_flag=$lt_no_undefined_flag_F77
15696
15697 # Commands used to finish a libtool library installation in a directory.
15698 finish_cmds=$lt_finish_cmds
15699
15700 # Same as above, but a single script fragment to be evaled but not shown.
15701 finish_eval=$lt_finish_eval
15702
15703 # Take the output of nm and produce a listing of raw symbols and C names.
15704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15705
15706 # Transform the output of nm in a proper C declaration
15707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15708
15709 # Transform the output of nm in a C name address pair
15710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15711
15712 # This is the shared library runtime path variable.
15713 runpath_var=$runpath_var
15714
15715 # This is the shared library path variable.
15716 shlibpath_var=$shlibpath_var
15717
15718 # Is shlibpath searched before the hard-coded library search path?
15719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15720
15721 # How to hardcode a shared library path into an executable.
15722 hardcode_action=$hardcode_action_F77
15723
15724 # Whether we should hardcode library paths into libraries.
15725 hardcode_into_libs=$hardcode_into_libs
15726
15727 # Flag to hardcode \$libdir into a binary during linking.
15728 # This must work even if \$libdir does not exist.
15729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15730
15731 # If ld is used when linking, flag to hardcode \$libdir into
15732 # a binary during linking. This must work even if \$libdir does
15733 # not exist.
15734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15735
15736 # Whether we need a single -rpath flag with a separated argument.
15737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15738
15739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15740 # resulting binary.
15741 hardcode_direct=$hardcode_direct_F77
15742
15743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15744 # resulting binary.
15745 hardcode_minus_L=$hardcode_minus_L_F77
15746
15747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15748 # the resulting binary.
15749 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15750
15751 # Set to yes if building a shared library automatically hardcodes DIR into the library
15752 # and all subsequent libraries and executables linked against it.
15753 hardcode_automatic=$hardcode_automatic_F77
15754
15755 # Variables whose values should be saved in libtool wrapper scripts and
15756 # restored at relink time.
15757 variables_saved_for_relink="$variables_saved_for_relink"
15758
15759 # Whether libtool must link a program against all its dependency libraries.
15760 link_all_deplibs=$link_all_deplibs_F77
15761
15762 # Compile-time system search path for libraries
15763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15764
15765 # Run-time system search path for libraries
15766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15767
15768 # Fix the shell variable \$srcfile for the compiler.
15769 fix_srcfile_path="$fix_srcfile_path_F77"
15770
15771 # Set to yes if exported symbols are required.
15772 always_export_symbols=$always_export_symbols_F77
15773
15774 # The commands to list exported symbols.
15775 export_symbols_cmds=$lt_export_symbols_cmds_F77
15776
15777 # The commands to extract the exported symbol list from a shared archive.
15778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15779
15780 # Symbols that should not be listed in the preloaded symbols.
15781 exclude_expsyms=$lt_exclude_expsyms_F77
15782
15783 # Symbols that must always be exported.
15784 include_expsyms=$lt_include_expsyms_F77
15785
15786 # ### END LIBTOOL TAG CONFIG: $tagname
15787
15788 __EOF__
15789
15790
15791 else
15792 # If there is no Makefile yet, we rely on a make rule to execute
15793 # `config.status --recheck' to rerun these tests and create the
15794 # libtool script then.
15795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15796 if test -f "$ltmain_in"; then
15797 test -f Makefile && make "$ltmain"
15798 fi
15799 fi
15800
15801
15802 ac_ext=c
15803 ac_cpp='$CPP $CPPFLAGS'
15804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15807
15808 CC="$lt_save_CC"
15809
15810 else
15811 tagname=""
15812 fi
15813 ;;
15814
15815 GCJ)
15816 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15817
15818
15819
15820 # Source file extension for Java test sources.
15821 ac_ext=java
15822
15823 # Object file extension for compiled Java test sources.
15824 objext=o
15825 objext_GCJ=$objext
15826
15827 # Code to be used in simple compile tests
15828 lt_simple_compile_test_code="class foo {}\n"
15829
15830 # Code to be used in simple link tests
15831 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15832
15833 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15834
15835 # If no C compiler was specified, use CC.
15836 LTCC=${LTCC-"$CC"}
15837
15838 # Allow CC to be a program name with arguments.
15839 compiler=$CC
15840
15841
15842 # save warnings/boilerplate of simple test code
15843 ac_outfile=conftest.$ac_objext
15844 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15845 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15846 _lt_compiler_boilerplate=`cat conftest.err`
15847 $rm conftest*
15848
15849 ac_outfile=conftest.$ac_objext
15850 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15851 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15852 _lt_linker_boilerplate=`cat conftest.err`
15853 $rm conftest*
15854
15855
15856 # Allow CC to be a program name with arguments.
15857 lt_save_CC="$CC"
15858 CC=${GCJ-"gcj"}
15859 compiler=$CC
15860 compiler_GCJ=$CC
15861 for cc_temp in $compiler""; do
15862 case $cc_temp in
15863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15865 \-*) ;;
15866 *) break;;
15867 esac
15868 done
15869 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15870
15871
15872 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15873 archive_cmds_need_lc_GCJ=no
15874
15875 old_archive_cmds_GCJ=$old_archive_cmds
15876
15877
15878 lt_prog_compiler_no_builtin_flag_GCJ=
15879
15880 if test "$GCC" = yes; then
15881 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15882
15883
15884 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15885 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15886 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889 lt_cv_prog_compiler_rtti_exceptions=no
15890 ac_outfile=conftest.$ac_objext
15891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15892 lt_compiler_flag="-fno-rtti -fno-exceptions"
15893 # Insert the option either (1) after the last *FLAGS variable, or
15894 # (2) before a word containing "conftest.", or (3) at the end.
15895 # Note that $ac_compile itself does not contain backslashes and begins
15896 # with a dollar sign (not a hyphen), so the echo should work correctly.
15897 # The option is referenced via a variable to avoid confusing sed.
15898 lt_compile=`echo "$ac_compile" | $SED \
15899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15901 -e 's:$: $lt_compiler_flag:'`
15902 (eval echo "\"\$as_me:15902: $lt_compile\"" >&5)
15903 (eval "$lt_compile" 2>conftest.err)
15904 ac_status=$?
15905 cat conftest.err >&5
15906 echo "$as_me:15906: \$? = $ac_status" >&5
15907 if (exit $ac_status) && test -s "$ac_outfile"; then
15908 # The compiler can only warn and ignore the option if not recognized
15909 # So say no if there are warnings other than the usual output.
15910 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15911 $SED '/^$/d' conftest.err >conftest.er2
15912 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15913 lt_cv_prog_compiler_rtti_exceptions=yes
15914 fi
15915 fi
15916 $rm conftest*
15917
15918 fi
15919 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15920 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15921
15922 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15923 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15924 else
15925 :
15926 fi
15927
15928 fi
15929
15930 lt_prog_compiler_wl_GCJ=
15931 lt_prog_compiler_pic_GCJ=
15932 lt_prog_compiler_static_GCJ=
15933
15934 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15935 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15936
15937 if test "$GCC" = yes; then
15938 lt_prog_compiler_wl_GCJ='-Wl,'
15939 lt_prog_compiler_static_GCJ='-static'
15940
15941 case $host_os in
15942 aix*)
15943 # All AIX code is PIC.
15944 if test "$host_cpu" = ia64; then
15945 # AIX 5 now supports IA64 processor
15946 lt_prog_compiler_static_GCJ='-Bstatic'
15947 fi
15948 ;;
15949
15950 amigaos*)
15951 # FIXME: we need at least 68020 code to build shared libraries, but
15952 # adding the `-m68020' flag to GCC prevents building anything better,
15953 # like `-m68040'.
15954 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15955 ;;
15956
15957 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15958 # PIC is the default for these OSes.
15959 ;;
15960
15961 mingw* | pw32* | os2*)
15962 # This hack is so that the source file can tell whether it is being
15963 # built for inclusion in a dll (and should export symbols for example).
15964 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15965 ;;
15966
15967 darwin* | rhapsody*)
15968 # PIC is the default on this platform
15969 # Common symbols not allowed in MH_DYLIB files
15970 lt_prog_compiler_pic_GCJ='-fno-common'
15971 ;;
15972
15973 msdosdjgpp*)
15974 # Just because we use GCC doesn't mean we suddenly get shared libraries
15975 # on systems that don't support them.
15976 lt_prog_compiler_can_build_shared_GCJ=no
15977 enable_shared=no
15978 ;;
15979
15980 sysv4*MP*)
15981 if test -d /usr/nec; then
15982 lt_prog_compiler_pic_GCJ=-Kconform_pic
15983 fi
15984 ;;
15985
15986 hpux*)
15987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15988 # not for PA HP-UX.
15989 case $host_cpu in
15990 hppa*64*|ia64*)
15991 # +Z the default
15992 ;;
15993 *)
15994 lt_prog_compiler_pic_GCJ='-fPIC'
15995 ;;
15996 esac
15997 ;;
15998
15999 *)
16000 lt_prog_compiler_pic_GCJ='-fPIC'
16001 ;;
16002 esac
16003 else
16004 # PORTME Check for flag to pass linker flags through the system compiler.
16005 case $host_os in
16006 aix*)
16007 lt_prog_compiler_wl_GCJ='-Wl,'
16008 if test "$host_cpu" = ia64; then
16009 # AIX 5 now supports IA64 processor
16010 lt_prog_compiler_static_GCJ='-Bstatic'
16011 else
16012 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16013 fi
16014 ;;
16015 darwin*)
16016 # PIC is the default on this platform
16017 # Common symbols not allowed in MH_DYLIB files
16018 case $cc_basename in
16019 xlc*)
16020 lt_prog_compiler_pic_GCJ='-qnocommon'
16021 lt_prog_compiler_wl_GCJ='-Wl,'
16022 ;;
16023 esac
16024 ;;
16025
16026 mingw* | pw32* | os2*)
16027 # This hack is so that the source file can tell whether it is being
16028 # built for inclusion in a dll (and should export symbols for example).
16029 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16030 ;;
16031
16032 hpux9* | hpux10* | hpux11*)
16033 lt_prog_compiler_wl_GCJ='-Wl,'
16034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16035 # not for PA HP-UX.
16036 case $host_cpu in
16037 hppa*64*|ia64*)
16038 # +Z the default
16039 ;;
16040 *)
16041 lt_prog_compiler_pic_GCJ='+Z'
16042 ;;
16043 esac
16044 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16045 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16046 ;;
16047
16048 irix5* | irix6* | nonstopux*)
16049 lt_prog_compiler_wl_GCJ='-Wl,'
16050 # PIC (with -KPIC) is the default.
16051 lt_prog_compiler_static_GCJ='-non_shared'
16052 ;;
16053
16054 newsos6)
16055 lt_prog_compiler_pic_GCJ='-KPIC'
16056 lt_prog_compiler_static_GCJ='-Bstatic'
16057 ;;
16058
16059 linux*)
16060 case $cc_basename in
16061 icc* | ecc*)
16062 lt_prog_compiler_wl_GCJ='-Wl,'
16063 lt_prog_compiler_pic_GCJ='-KPIC'
16064 lt_prog_compiler_static_GCJ='-static'
16065 ;;
16066 pgcc* | pgf77* | pgf90* | pgf95*)
16067 # Portland Group compilers (*not* the Pentium gcc compiler,
16068 # which looks to be a dead project)
16069 lt_prog_compiler_wl_GCJ='-Wl,'
16070 lt_prog_compiler_pic_GCJ='-fpic'
16071 lt_prog_compiler_static_GCJ='-Bstatic'
16072 ;;
16073 ccc*)
16074 lt_prog_compiler_wl_GCJ='-Wl,'
16075 # All Alpha code is PIC.
16076 lt_prog_compiler_static_GCJ='-non_shared'
16077 ;;
16078 esac
16079 ;;
16080
16081 osf3* | osf4* | osf5*)
16082 lt_prog_compiler_wl_GCJ='-Wl,'
16083 # All OSF/1 code is PIC.
16084 lt_prog_compiler_static_GCJ='-non_shared'
16085 ;;
16086
16087 sco3.2v5*)
16088 lt_prog_compiler_pic_GCJ='-Kpic'
16089 lt_prog_compiler_static_GCJ='-dn'
16090 ;;
16091
16092 solaris*)
16093 lt_prog_compiler_pic_GCJ='-KPIC'
16094 lt_prog_compiler_static_GCJ='-Bstatic'
16095 case $cc_basename in
16096 f77* | f90* | f95*)
16097 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16098 *)
16099 lt_prog_compiler_wl_GCJ='-Wl,';;
16100 esac
16101 ;;
16102
16103 sunos4*)
16104 lt_prog_compiler_wl_GCJ='-Qoption ld '
16105 lt_prog_compiler_pic_GCJ='-PIC'
16106 lt_prog_compiler_static_GCJ='-Bstatic'
16107 ;;
16108
16109 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16110 lt_prog_compiler_wl_GCJ='-Wl,'
16111 lt_prog_compiler_pic_GCJ='-KPIC'
16112 lt_prog_compiler_static_GCJ='-Bstatic'
16113 ;;
16114
16115 sysv4*MP*)
16116 if test -d /usr/nec ;then
16117 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16118 lt_prog_compiler_static_GCJ='-Bstatic'
16119 fi
16120 ;;
16121
16122 unicos*)
16123 lt_prog_compiler_wl_GCJ='-Wl,'
16124 lt_prog_compiler_can_build_shared_GCJ=no
16125 ;;
16126
16127 uts4*)
16128 lt_prog_compiler_pic_GCJ='-pic'
16129 lt_prog_compiler_static_GCJ='-Bstatic'
16130 ;;
16131
16132 *)
16133 lt_prog_compiler_can_build_shared_GCJ=no
16134 ;;
16135 esac
16136 fi
16137
16138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16139 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16140
16141 #
16142 # Check to make sure the PIC flag actually works.
16143 #
16144 if test -n "$lt_prog_compiler_pic_GCJ"; then
16145
16146 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16147 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16148 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151 lt_prog_compiler_pic_works_GCJ=no
16152 ac_outfile=conftest.$ac_objext
16153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16154 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16155 # Insert the option either (1) after the last *FLAGS variable, or
16156 # (2) before a word containing "conftest.", or (3) at the end.
16157 # Note that $ac_compile itself does not contain backslashes and begins
16158 # with a dollar sign (not a hyphen), so the echo should work correctly.
16159 # The option is referenced via a variable to avoid confusing sed.
16160 lt_compile=`echo "$ac_compile" | $SED \
16161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16163 -e 's:$: $lt_compiler_flag:'`
16164 (eval echo "\"\$as_me:16164: $lt_compile\"" >&5)
16165 (eval "$lt_compile" 2>conftest.err)
16166 ac_status=$?
16167 cat conftest.err >&5
16168 echo "$as_me:16168: \$? = $ac_status" >&5
16169 if (exit $ac_status) && test -s "$ac_outfile"; then
16170 # The compiler can only warn and ignore the option if not recognized
16171 # So say no if there are warnings other than the usual output.
16172 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16173 $SED '/^$/d' conftest.err >conftest.er2
16174 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16175 lt_prog_compiler_pic_works_GCJ=yes
16176 fi
16177 fi
16178 $rm conftest*
16179
16180 fi
16181 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16182 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16183
16184 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16185 case $lt_prog_compiler_pic_GCJ in
16186 "" | " "*) ;;
16187 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16188 esac
16189 else
16190 lt_prog_compiler_pic_GCJ=
16191 lt_prog_compiler_can_build_shared_GCJ=no
16192 fi
16193
16194 fi
16195 case $host_os in
16196 # For platforms which do not support PIC, -DPIC is meaningless:
16197 *djgpp*)
16198 lt_prog_compiler_pic_GCJ=
16199 ;;
16200 *)
16201 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16202 ;;
16203 esac
16204
16205 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16207 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 lt_cv_prog_compiler_c_o_GCJ=no
16211 $rm -r conftest 2>/dev/null
16212 mkdir conftest
16213 cd conftest
16214 mkdir out
16215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16216
16217 lt_compiler_flag="-o out/conftest2.$ac_objext"
16218 # Insert the option either (1) after the last *FLAGS variable, or
16219 # (2) before a word containing "conftest.", or (3) at the end.
16220 # Note that $ac_compile itself does not contain backslashes and begins
16221 # with a dollar sign (not a hyphen), so the echo should work correctly.
16222 lt_compile=`echo "$ac_compile" | $SED \
16223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16225 -e 's:$: $lt_compiler_flag:'`
16226 (eval echo "\"\$as_me:16226: $lt_compile\"" >&5)
16227 (eval "$lt_compile" 2>out/conftest.err)
16228 ac_status=$?
16229 cat out/conftest.err >&5
16230 echo "$as_me:16230: \$? = $ac_status" >&5
16231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16232 then
16233 # The compiler can only warn and ignore the option if not recognized
16234 # So say no if there are warnings
16235 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16236 $SED '/^$/d' out/conftest.err >out/conftest.er2
16237 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16238 lt_cv_prog_compiler_c_o_GCJ=yes
16239 fi
16240 fi
16241 chmod u+w . 2>&5
16242 $rm conftest*
16243 # SGI C++ compiler will create directory out/ii_files/ for
16244 # template instantiation
16245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16246 $rm out/* && rmdir out
16247 cd ..
16248 rmdir conftest
16249 $rm conftest*
16250
16251 fi
16252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16254
16255
16256 hard_links="nottested"
16257 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16258 # do not overwrite the value of need_locks provided by the user
16259 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16261 hard_links=yes
16262 $rm conftest*
16263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16264 touch conftest.a
16265 ln conftest.a conftest.b 2>&5 || hard_links=no
16266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16267 echo "$as_me:$LINENO: result: $hard_links" >&5
16268 echo "${ECHO_T}$hard_links" >&6
16269 if test "$hard_links" = no; then
16270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16272 need_locks=warn
16273 fi
16274 else
16275 need_locks=no
16276 fi
16277
16278 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16280
16281 runpath_var=
16282 allow_undefined_flag_GCJ=
16283 enable_shared_with_static_runtimes_GCJ=no
16284 archive_cmds_GCJ=
16285 archive_expsym_cmds_GCJ=
16286 old_archive_From_new_cmds_GCJ=
16287 old_archive_from_expsyms_cmds_GCJ=
16288 export_dynamic_flag_spec_GCJ=
16289 whole_archive_flag_spec_GCJ=
16290 thread_safe_flag_spec_GCJ=
16291 hardcode_libdir_flag_spec_GCJ=
16292 hardcode_libdir_flag_spec_ld_GCJ=
16293 hardcode_libdir_separator_GCJ=
16294 hardcode_direct_GCJ=no
16295 hardcode_minus_L_GCJ=no
16296 hardcode_shlibpath_var_GCJ=unsupported
16297 link_all_deplibs_GCJ=unknown
16298 hardcode_automatic_GCJ=no
16299 module_cmds_GCJ=
16300 module_expsym_cmds_GCJ=
16301 always_export_symbols_GCJ=no
16302 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16303 # include_expsyms should be a list of space-separated symbols to be *always*
16304 # included in the symbol list
16305 include_expsyms_GCJ=
16306 # exclude_expsyms can be an extended regexp of symbols to exclude
16307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16309 # as well as any symbol that contains `d'.
16310 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16312 # platforms (ab)use it in PIC code, but their linkers get confused if
16313 # the symbol is explicitly referenced. Since portable code cannot
16314 # rely on this symbol name, it's probably fine to never include it in
16315 # preloaded symbol tables.
16316 extract_expsyms_cmds=
16317 # Just being paranoid about ensuring that cc_basename is set.
16318 for cc_temp in $compiler""; do
16319 case $cc_temp in
16320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16322 \-*) ;;
16323 *) break;;
16324 esac
16325 done
16326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16327
16328 case $host_os in
16329 cygwin* | mingw* | pw32*)
16330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16331 # When not using gcc, we currently assume that we are using
16332 # Microsoft Visual C++.
16333 if test "$GCC" != yes; then
16334 with_gnu_ld=no
16335 fi
16336 ;;
16337 openbsd*)
16338 with_gnu_ld=no
16339 ;;
16340 esac
16341
16342 ld_shlibs_GCJ=yes
16343 if test "$with_gnu_ld" = yes; then
16344 # If archive_cmds runs LD, not CC, wlarc should be empty
16345 wlarc='${wl}'
16346
16347 # Set some defaults for GNU ld with shared library support. These
16348 # are reset later if shared libraries are not supported. Putting them
16349 # here allows them to be overridden if necessary.
16350 runpath_var=LD_RUN_PATH
16351 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16352 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16353 # ancient GNU ld didn't support --whole-archive et. al.
16354 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16355 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16356 else
16357 whole_archive_flag_spec_GCJ=
16358 fi
16359 supports_anon_versioning=no
16360 case `$LD -v 2>/dev/null` in
16361 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16362 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16363 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16364 *\ 2.11.*) ;; # other 2.11 versions
16365 *) supports_anon_versioning=yes ;;
16366 esac
16367
16368 # See if GNU ld supports shared libraries.
16369 case $host_os in
16370 aix3* | aix4* | aix5*)
16371 # On AIX/PPC, the GNU linker is very broken
16372 if test "$host_cpu" != ia64; then
16373 ld_shlibs_GCJ=no
16374 cat <<EOF 1>&2
16375
16376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16377 *** to be unable to reliably create shared libraries on AIX.
16378 *** Therefore, libtool is disabling shared libraries support. If you
16379 *** really care for shared libraries, you may want to modify your PATH
16380 *** so that a non-GNU linker is found, and then restart.
16381
16382 EOF
16383 fi
16384 ;;
16385
16386 amigaos*)
16387 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)'
16388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16389 hardcode_minus_L_GCJ=yes
16390
16391 # Samuel A. Falvo II <[email protected]> reports
16392 # that the semantics of dynamic libraries on AmigaOS, at least up
16393 # to version 4, is to share data among multiple programs linked
16394 # with the same dynamic library. Since this doesn't match the
16395 # behavior of shared libraries on other platforms, we can't use
16396 # them.
16397 ld_shlibs_GCJ=no
16398 ;;
16399
16400 beos*)
16401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16402 allow_undefined_flag_GCJ=unsupported
16403 # Joseph Beckenbach <[email protected]> says some releases of gcc
16404 # support --undefined. This deserves some investigation. FIXME
16405 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16406 else
16407 ld_shlibs_GCJ=no
16408 fi
16409 ;;
16410
16411 cygwin* | mingw* | pw32*)
16412 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16413 # as there is no search path for DLLs.
16414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16415 allow_undefined_flag_GCJ=unsupported
16416 always_export_symbols_GCJ=no
16417 enable_shared_with_static_runtimes_GCJ=yes
16418 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16419
16420 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16421 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16422 # If the export-symbols file already is a .def file (1st line
16423 # is EXPORTS), use it as is; otherwise, prepend...
16424 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16425 cp $export_symbols $output_objdir/$soname.def;
16426 else
16427 echo EXPORTS > $output_objdir/$soname.def;
16428 cat $export_symbols >> $output_objdir/$soname.def;
16429 fi~
16430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16431 else
16432 ld_shlibs_GCJ=no
16433 fi
16434 ;;
16435
16436 linux*)
16437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16438 tmp_addflag=
16439 case $cc_basename,$host_cpu in
16440 pgcc*) # Portland Group C compiler
16441 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16442 tmp_addflag=' $pic_flag'
16443 ;;
16444 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16445 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16446 tmp_addflag=' $pic_flag -Mnomain' ;;
16447 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16448 tmp_addflag=' -i_dynamic' ;;
16449 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16450 tmp_addflag=' -i_dynamic -nofor_main' ;;
16451 ifc* | ifort*) # Intel Fortran compiler
16452 tmp_addflag=' -nofor_main' ;;
16453 esac
16454 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455
16456 if test $supports_anon_versioning = yes; then
16457 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16458 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16459 $echo "local: *; };" >> $output_objdir/$libname.ver~
16460 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16461 fi
16462 link_all_deplibs_GCJ=no
16463 else
16464 ld_shlibs_GCJ=no
16465 fi
16466 ;;
16467
16468 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16470 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16471 wlarc=
16472 else
16473 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16474 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16475 fi
16476 ;;
16477
16478 solaris* | sysv5*)
16479 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16480 ld_shlibs_GCJ=no
16481 cat <<EOF 1>&2
16482
16483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16484 *** create shared libraries on Solaris systems. Therefore, libtool
16485 *** is disabling shared libraries support. We urge you to upgrade GNU
16486 *** binutils to release 2.9.1 or newer. Another option is to modify
16487 *** your PATH or compiler configuration so that the native linker is
16488 *** used, and then restart.
16489
16490 EOF
16491 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16493 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16494 else
16495 ld_shlibs_GCJ=no
16496 fi
16497 ;;
16498
16499 sunos4*)
16500 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16501 wlarc=
16502 hardcode_direct_GCJ=yes
16503 hardcode_shlibpath_var_GCJ=no
16504 ;;
16505
16506 *)
16507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16510 else
16511 ld_shlibs_GCJ=no
16512 fi
16513 ;;
16514 esac
16515
16516 if test "$ld_shlibs_GCJ" = no; then
16517 runpath_var=
16518 hardcode_libdir_flag_spec_GCJ=
16519 export_dynamic_flag_spec_GCJ=
16520 whole_archive_flag_spec_GCJ=
16521 fi
16522 else
16523 # PORTME fill in a description of your system's linker (not GNU ld)
16524 case $host_os in
16525 aix3*)
16526 allow_undefined_flag_GCJ=unsupported
16527 always_export_symbols_GCJ=yes
16528 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'
16529 # Note: this linker hardcodes the directories in LIBPATH if there
16530 # are no directories specified by -L.
16531 hardcode_minus_L_GCJ=yes
16532 if test "$GCC" = yes && test -z "$link_static_flag"; then
16533 # Neither direct hardcoding nor static linking is supported with a
16534 # broken collect2.
16535 hardcode_direct_GCJ=unsupported
16536 fi
16537 ;;
16538
16539 aix4* | aix5*)
16540 if test "$host_cpu" = ia64; then
16541 # On IA64, the linker does run time linking by default, so we don't
16542 # have to do anything special.
16543 aix_use_runtimelinking=no
16544 exp_sym_flag='-Bexport'
16545 no_entry_flag=""
16546 else
16547 # If we're using GNU nm, then we don't want the "-C" option.
16548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16549 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16550 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'
16551 else
16552 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'
16553 fi
16554 aix_use_runtimelinking=no
16555
16556 # Test if we are trying to use run time linking or normal
16557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16558 # need to do runtime linking.
16559 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16560 for ld_flag in $LDFLAGS; do
16561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16562 aix_use_runtimelinking=yes
16563 break
16564 fi
16565 done
16566 esac
16567
16568 exp_sym_flag='-bexport'
16569 no_entry_flag='-bnoentry'
16570 fi
16571
16572 # When large executables or shared objects are built, AIX ld can
16573 # have problems creating the table of contents. If linking a library
16574 # or program results in "error TOC overflow" add -mminimal-toc to
16575 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16576 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16577
16578 archive_cmds_GCJ=''
16579 hardcode_direct_GCJ=yes
16580 hardcode_libdir_separator_GCJ=':'
16581 link_all_deplibs_GCJ=yes
16582
16583 if test "$GCC" = yes; then
16584 case $host_os in aix4.[012]|aix4.[012].*)
16585 # We only want to do this on AIX 4.2 and lower, the check
16586 # below for broken collect2 doesn't work under 4.3+
16587 collect2name=`${CC} -print-prog-name=collect2`
16588 if test -f "$collect2name" && \
16589 strings "$collect2name" | grep resolve_lib_name >/dev/null
16590 then
16591 # We have reworked collect2
16592 hardcode_direct_GCJ=yes
16593 else
16594 # We have old collect2
16595 hardcode_direct_GCJ=unsupported
16596 # It fails to find uninstalled libraries when the uninstalled
16597 # path is not listed in the libpath. Setting hardcode_minus_L
16598 # to unsupported forces relinking
16599 hardcode_minus_L_GCJ=yes
16600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16601 hardcode_libdir_separator_GCJ=
16602 fi
16603 esac
16604 shared_flag='-shared'
16605 if test "$aix_use_runtimelinking" = yes; then
16606 shared_flag="$shared_flag "'${wl}-G'
16607 fi
16608 else
16609 # not using gcc
16610 if test "$host_cpu" = ia64; then
16611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16612 # chokes on -Wl,-G. The following line is correct:
16613 shared_flag='-G'
16614 else
16615 if test "$aix_use_runtimelinking" = yes; then
16616 shared_flag='${wl}-G'
16617 else
16618 shared_flag='${wl}-bM:SRE'
16619 fi
16620 fi
16621 fi
16622
16623 # It seems that -bexpall does not export symbols beginning with
16624 # underscore (_), so it is better to generate a list of symbols to export.
16625 always_export_symbols_GCJ=yes
16626 if test "$aix_use_runtimelinking" = yes; then
16627 # Warning - without using the other runtime loading flags (-brtl),
16628 # -berok will link without error, but may produce a broken library.
16629 allow_undefined_flag_GCJ='-berok'
16630 # Determine the default libpath from the value encoded in an empty executable.
16631 cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h. */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637
16638 int
16639 main ()
16640 {
16641
16642 ;
16643 return 0;
16644 }
16645 _ACEOF
16646 rm -f conftest.$ac_objext conftest$ac_exeext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16648 (eval $ac_link) 2>conftest.er1
16649 ac_status=$?
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; } &&
16661 { ac_try='test -s conftest$ac_exeext'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667
16668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16669 }'`
16670 # Check for a 64-bit object if we didn't find anything.
16671 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; }
16672 }'`; fi
16673 else
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 fi
16678 rm -f conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16681
16682 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16683 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"
16684 else
16685 if test "$host_cpu" = ia64; then
16686 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16687 allow_undefined_flag_GCJ="-z nodefs"
16688 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"
16689 else
16690 # Determine the default libpath from the value encoded in an empty executable.
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h. */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697
16698 int
16699 main ()
16700 {
16701
16702 ;
16703 return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16708 (eval $ac_link) 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest$ac_exeext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727
16728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16729 }'`
16730 # Check for a 64-bit object if we didn't find anything.
16731 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; }
16732 }'`; fi
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 fi
16738 rm -f conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16741
16742 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16743 # Warning - without using the other run time loading flags,
16744 # -berok will link without error, but may produce a broken library.
16745 no_undefined_flag_GCJ=' ${wl}-bernotok'
16746 allow_undefined_flag_GCJ=' ${wl}-berok'
16747 # -bexpall does not export symbols beginning with underscore (_)
16748 always_export_symbols_GCJ=yes
16749 # Exported symbols can be pulled into shared objects from archives
16750 whole_archive_flag_spec_GCJ=' '
16751 archive_cmds_need_lc_GCJ=yes
16752 # This is similar to how AIX traditionally builds its shared libraries.
16753 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'
16754 fi
16755 fi
16756 ;;
16757
16758 amigaos*)
16759 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)'
16760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16761 hardcode_minus_L_GCJ=yes
16762 # see comment about different semantics on the GNU ld section
16763 ld_shlibs_GCJ=no
16764 ;;
16765
16766 bsdi[45]*)
16767 export_dynamic_flag_spec_GCJ=-rdynamic
16768 ;;
16769
16770 cygwin* | mingw* | pw32*)
16771 # When not using gcc, we currently assume that we are using
16772 # Microsoft Visual C++.
16773 # hardcode_libdir_flag_spec is actually meaningless, as there is
16774 # no search path for DLLs.
16775 hardcode_libdir_flag_spec_GCJ=' '
16776 allow_undefined_flag_GCJ=unsupported
16777 # Tell ltmain to make .lib files, not .a files.
16778 libext=lib
16779 # Tell ltmain to make .dll files, not .so files.
16780 shrext_cmds=".dll"
16781 # FIXME: Setting linknames here is a bad hack.
16782 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16783 # The linker will automatically build a .lib file if we build a DLL.
16784 old_archive_From_new_cmds_GCJ='true'
16785 # FIXME: Should let the user specify the lib program.
16786 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16787 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16788 enable_shared_with_static_runtimes_GCJ=yes
16789 ;;
16790
16791 darwin* | rhapsody*)
16792 case $host_os in
16793 rhapsody* | darwin1.[012])
16794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16795 ;;
16796 *) # Darwin 1.3 on
16797 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16798 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16799 else
16800 case ${MACOSX_DEPLOYMENT_TARGET} in
16801 10.[012])
16802 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16803 ;;
16804 10.*)
16805 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16806 ;;
16807 esac
16808 fi
16809 ;;
16810 esac
16811 archive_cmds_need_lc_GCJ=no
16812 hardcode_direct_GCJ=no
16813 hardcode_automatic_GCJ=yes
16814 hardcode_shlibpath_var_GCJ=unsupported
16815 whole_archive_flag_spec_GCJ=''
16816 link_all_deplibs_GCJ=yes
16817 if test "$GCC" = yes ; then
16818 output_verbose_link_cmd='echo'
16819 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16822 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16823 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}'
16824 else
16825 case $cc_basename in
16826 xlc*)
16827 output_verbose_link_cmd='echo'
16828 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16831 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16832 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}'
16833 ;;
16834 *)
16835 ld_shlibs_GCJ=no
16836 ;;
16837 esac
16838 fi
16839 ;;
16840
16841 dgux*)
16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16844 hardcode_shlibpath_var_GCJ=no
16845 ;;
16846
16847 freebsd1*)
16848 ld_shlibs_GCJ=no
16849 ;;
16850
16851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16852 # support. Future versions do this automatically, but an explicit c++rt0.o
16853 # does not break anything, and helps significantly (at the cost of a little
16854 # extra space).
16855 freebsd2.2*)
16856 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16857 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16858 hardcode_direct_GCJ=yes
16859 hardcode_shlibpath_var_GCJ=no
16860 ;;
16861
16862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16863 freebsd2*)
16864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16865 hardcode_direct_GCJ=yes
16866 hardcode_minus_L_GCJ=yes
16867 hardcode_shlibpath_var_GCJ=no
16868 ;;
16869
16870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16871 freebsd* | kfreebsd*-gnu | dragonfly*)
16872 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16873 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16874 hardcode_direct_GCJ=yes
16875 hardcode_shlibpath_var_GCJ=no
16876 ;;
16877
16878 hpux9*)
16879 if test "$GCC" = yes; then
16880 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'
16881 else
16882 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'
16883 fi
16884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16885 hardcode_libdir_separator_GCJ=:
16886 hardcode_direct_GCJ=yes
16887
16888 # hardcode_minus_L: Not really in the search PATH,
16889 # but as the default location of the library.
16890 hardcode_minus_L_GCJ=yes
16891 export_dynamic_flag_spec_GCJ='${wl}-E'
16892 ;;
16893
16894 hpux10* | hpux11*)
16895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16896 case $host_cpu in
16897 hppa*64*|ia64*)
16898 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16899 ;;
16900 *)
16901 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16902 ;;
16903 esac
16904 else
16905 case $host_cpu in
16906 hppa*64*|ia64*)
16907 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16908 ;;
16909 *)
16910 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16911 ;;
16912 esac
16913 fi
16914 if test "$with_gnu_ld" = no; then
16915 case $host_cpu in
16916 hppa*64*)
16917 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16918 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16919 hardcode_libdir_separator_GCJ=:
16920 hardcode_direct_GCJ=no
16921 hardcode_shlibpath_var_GCJ=no
16922 ;;
16923 ia64*)
16924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16925 hardcode_direct_GCJ=no
16926 hardcode_shlibpath_var_GCJ=no
16927
16928 # hardcode_minus_L: Not really in the search PATH,
16929 # but as the default location of the library.
16930 hardcode_minus_L_GCJ=yes
16931 ;;
16932 *)
16933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16934 hardcode_libdir_separator_GCJ=:
16935 hardcode_direct_GCJ=yes
16936 export_dynamic_flag_spec_GCJ='${wl}-E'
16937
16938 # hardcode_minus_L: Not really in the search PATH,
16939 # but as the default location of the library.
16940 hardcode_minus_L_GCJ=yes
16941 ;;
16942 esac
16943 fi
16944 ;;
16945
16946 irix5* | irix6* | nonstopux*)
16947 if test "$GCC" = yes; then
16948 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'
16949 else
16950 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'
16951 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16952 fi
16953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16954 hardcode_libdir_separator_GCJ=:
16955 link_all_deplibs_GCJ=yes
16956 ;;
16957
16958 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16961 else
16962 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16963 fi
16964 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16965 hardcode_direct_GCJ=yes
16966 hardcode_shlibpath_var_GCJ=no
16967 ;;
16968
16969 newsos6)
16970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16971 hardcode_direct_GCJ=yes
16972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16973 hardcode_libdir_separator_GCJ=:
16974 hardcode_shlibpath_var_GCJ=no
16975 ;;
16976
16977 openbsd*)
16978 hardcode_direct_GCJ=yes
16979 hardcode_shlibpath_var_GCJ=no
16980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16981 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16982 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16984 export_dynamic_flag_spec_GCJ='${wl}-E'
16985 else
16986 case $host_os in
16987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16990 ;;
16991 *)
16992 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16994 ;;
16995 esac
16996 fi
16997 ;;
16998
16999 os2*)
17000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17001 hardcode_minus_L_GCJ=yes
17002 allow_undefined_flag_GCJ=unsupported
17003 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'
17004 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17005 ;;
17006
17007 osf3*)
17008 if test "$GCC" = yes; then
17009 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17010 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'
17011 else
17012 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17013 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'
17014 fi
17015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17016 hardcode_libdir_separator_GCJ=:
17017 ;;
17018
17019 osf4* | osf5*) # as osf3* with the addition of -msym flag
17020 if test "$GCC" = yes; then
17021 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17022 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'
17023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17024 else
17025 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17026 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'
17027 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~
17028 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17029
17030 # Both c and cxx compiler support -rpath directly
17031 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17032 fi
17033 hardcode_libdir_separator_GCJ=:
17034 ;;
17035
17036 sco3.2v5*)
17037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17038 hardcode_shlibpath_var_GCJ=no
17039 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17040 runpath_var=LD_RUN_PATH
17041 hardcode_runpath_var=yes
17042 ;;
17043
17044 solaris*)
17045 no_undefined_flag_GCJ=' -z text'
17046 if test "$GCC" = yes; then
17047 wlarc='${wl}'
17048 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17050 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17051 else
17052 wlarc=''
17053 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17054 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17056 fi
17057 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17058 hardcode_shlibpath_var_GCJ=no
17059 case $host_os in
17060 solaris2.[0-5] | solaris2.[0-5].*) ;;
17061 *)
17062 # The compiler driver will combine linker options so we
17063 # cannot just pass the convience library names through
17064 # without $wl, iff we do not link with $LD.
17065 # Luckily, gcc supports the same syntax we need for Sun Studio.
17066 # Supported since Solaris 2.6 (maybe 2.5.1?)
17067 case $wlarc in
17068 '')
17069 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17070 *)
17071 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17072 esac ;;
17073 esac
17074 link_all_deplibs_GCJ=yes
17075 ;;
17076
17077 sunos4*)
17078 if test "x$host_vendor" = xsequent; then
17079 # Use $CC to link under sequent, because it throws in some extra .o
17080 # files that make .init and .fini sections work.
17081 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17082 else
17083 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17084 fi
17085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17086 hardcode_direct_GCJ=yes
17087 hardcode_minus_L_GCJ=yes
17088 hardcode_shlibpath_var_GCJ=no
17089 ;;
17090
17091 sysv4)
17092 case $host_vendor in
17093 sni)
17094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095 hardcode_direct_GCJ=yes # is this really true???
17096 ;;
17097 siemens)
17098 ## LD is ld it makes a PLAMLIB
17099 ## CC just makes a GrossModule.
17100 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17101 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17102 hardcode_direct_GCJ=no
17103 ;;
17104 motorola)
17105 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17107 ;;
17108 esac
17109 runpath_var='LD_RUN_PATH'
17110 hardcode_shlibpath_var_GCJ=no
17111 ;;
17112
17113 sysv4.3*)
17114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115 hardcode_shlibpath_var_GCJ=no
17116 export_dynamic_flag_spec_GCJ='-Bexport'
17117 ;;
17118
17119 sysv4*MP*)
17120 if test -d /usr/nec; then
17121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17122 hardcode_shlibpath_var_GCJ=no
17123 runpath_var=LD_RUN_PATH
17124 hardcode_runpath_var=yes
17125 ld_shlibs_GCJ=yes
17126 fi
17127 ;;
17128
17129 sysv4.2uw2*)
17130 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17131 hardcode_direct_GCJ=yes
17132 hardcode_minus_L_GCJ=no
17133 hardcode_shlibpath_var_GCJ=no
17134 hardcode_runpath_var=yes
17135 runpath_var=LD_RUN_PATH
17136 ;;
17137
17138 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17139 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17140 if test "$GCC" = yes; then
17141 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17142 else
17143 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17144 fi
17145 runpath_var='LD_RUN_PATH'
17146 hardcode_shlibpath_var_GCJ=no
17147 ;;
17148
17149 sysv5*)
17150 no_undefined_flag_GCJ=' -z text'
17151 # $CC -shared without GNU ld will not create a library from C++
17152 # object files and a static libstdc++, better avoid it by now
17153 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17155 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17156 hardcode_libdir_flag_spec_GCJ=
17157 hardcode_shlibpath_var_GCJ=no
17158 runpath_var='LD_RUN_PATH'
17159 ;;
17160
17161 uts4*)
17162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17164 hardcode_shlibpath_var_GCJ=no
17165 ;;
17166
17167 *)
17168 ld_shlibs_GCJ=no
17169 ;;
17170 esac
17171 fi
17172
17173 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17174 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17175 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17176
17177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17178 if test "$GCC" = yes; then
17179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17180 fi
17181
17182 #
17183 # Do we need to explicitly link libc?
17184 #
17185 case "x$archive_cmds_need_lc_GCJ" in
17186 x|xyes)
17187 # Assume -lc should be added
17188 archive_cmds_need_lc_GCJ=yes
17189
17190 if test "$enable_shared" = yes && test "$GCC" = yes; then
17191 case $archive_cmds_GCJ in
17192 *'~'*)
17193 # FIXME: we may have to deal with multi-command sequences.
17194 ;;
17195 '$CC '*)
17196 # Test whether the compiler implicitly links with -lc since on some
17197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17198 # to ld, don't add -lc before -lgcc.
17199 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17201 $rm conftest*
17202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17203
17204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } 2>conftest.err; then
17209 soname=conftest
17210 lib=conftest
17211 libobjs=conftest.$ac_objext
17212 deplibs=
17213 wl=$lt_prog_compiler_wl_GCJ
17214 compiler_flags=-v
17215 linker_flags=-v
17216 verstring=
17217 output_objdir=.
17218 libname=conftest
17219 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17220 allow_undefined_flag_GCJ=
17221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17222 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }
17226 then
17227 archive_cmds_need_lc_GCJ=no
17228 else
17229 archive_cmds_need_lc_GCJ=yes
17230 fi
17231 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17232 else
17233 cat conftest.err 1>&5
17234 fi
17235 $rm conftest*
17236 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17237 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17238 ;;
17239 esac
17240 fi
17241 ;;
17242 esac
17243
17244 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17246 library_names_spec=
17247 libname_spec='lib$name'
17248 soname_spec=
17249 shrext_cmds=".so"
17250 postinstall_cmds=
17251 postuninstall_cmds=
17252 finish_cmds=
17253 finish_eval=
17254 shlibpath_var=
17255 shlibpath_overrides_runpath=unknown
17256 version_type=none
17257 dynamic_linker="$host_os ld.so"
17258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17259 if test "$GCC" = yes; then
17260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17262 # if the path contains ";" then we assume it to be the separator
17263 # otherwise default to the standard path separator (i.e. ":") - it is
17264 # assumed that no part of a normal pathname contains ";" but that should
17265 # okay in the real world where ";" in dirpaths is itself problematic.
17266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17267 else
17268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17269 fi
17270 else
17271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17272 fi
17273 need_lib_prefix=unknown
17274 hardcode_into_libs=no
17275
17276 # when you set need_version to no, make sure it does not cause -set_version
17277 # flags to be left without arguments
17278 need_version=unknown
17279
17280 case $host_os in
17281 aix3*)
17282 version_type=linux
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17284 shlibpath_var=LIBPATH
17285
17286 # AIX 3 has no versioning support, so we append a major version to the name.
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 ;;
17289
17290 aix4* | aix5*)
17291 version_type=linux
17292 need_lib_prefix=no
17293 need_version=no
17294 hardcode_into_libs=yes
17295 if test "$host_cpu" = ia64; then
17296 # AIX 5 supports IA64
17297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17298 shlibpath_var=LD_LIBRARY_PATH
17299 else
17300 # With GCC up to 2.95.x, collect2 would create an import file
17301 # for dependence libraries. The import file would start with
17302 # the line `#! .'. This would cause the generated library to
17303 # depend on `.', always an invalid library. This was fixed in
17304 # development snapshots of GCC prior to 3.0.
17305 case $host_os in
17306 aix4 | aix4.[01] | aix4.[01].*)
17307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17308 echo ' yes '
17309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17310 :
17311 else
17312 can_build_shared=no
17313 fi
17314 ;;
17315 esac
17316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17317 # soname into executable. Probably we can add versioning support to
17318 # collect2, so additional links can be useful in future.
17319 if test "$aix_use_runtimelinking" = yes; then
17320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17321 # instead of lib<name>.a to let people know that these are not
17322 # typical AIX shared libraries.
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17324 else
17325 # We preserve .a as extension for shared libraries through AIX4.2
17326 # and later when we are not doing run time linking.
17327 library_names_spec='${libname}${release}.a $libname.a'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 fi
17330 shlibpath_var=LIBPATH
17331 fi
17332 ;;
17333
17334 amigaos*)
17335 library_names_spec='$libname.ixlibrary $libname.a'
17336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17337 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'
17338 ;;
17339
17340 beos*)
17341 library_names_spec='${libname}${shared_ext}'
17342 dynamic_linker="$host_os ld.so"
17343 shlibpath_var=LIBRARY_PATH
17344 ;;
17345
17346 bsdi[45]*)
17347 version_type=linux
17348 need_version=no
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17352 shlibpath_var=LD_LIBRARY_PATH
17353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17355 # the default ld.so.conf also contains /usr/contrib/lib and
17356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17357 # libtool to hard-code these into programs
17358 ;;
17359
17360 cygwin* | mingw* | pw32*)
17361 version_type=windows
17362 shrext_cmds=".dll"
17363 need_version=no
17364 need_lib_prefix=no
17365
17366 case $GCC,$host_os in
17367 yes,cygwin* | yes,mingw* | yes,pw32*)
17368 library_names_spec='$libname.dll.a'
17369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17370 postinstall_cmds='base_file=`basename \${file}`~
17371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17372 dldir=$destdir/`dirname \$dlpath`~
17373 test -d \$dldir || mkdir -p \$dldir~
17374 $install_prog $dir/$dlname \$dldir/$dlname~
17375 chmod a+x \$dldir/$dlname'
17376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17377 dlpath=$dir/\$dldll~
17378 $rm \$dlpath'
17379 shlibpath_overrides_runpath=yes
17380
17381 case $host_os in
17382 cygwin*)
17383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17386 ;;
17387 mingw*)
17388 # MinGW DLLs use traditional 'lib' prefix
17389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17392 # It is most probably a Windows format PATH printed by
17393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17394 # path with ; separators, and with drive letters. We can handle the
17395 # drive letters (cygwin fileutils understands them), so leave them,
17396 # especially as we might pass files found there to a mingw objdump,
17397 # which wouldn't understand a cygwinified path. Ahh.
17398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17399 else
17400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17401 fi
17402 ;;
17403 pw32*)
17404 # pw32 DLLs use 'pw' prefix rather than 'lib'
17405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406 ;;
17407 esac
17408 ;;
17409
17410 *)
17411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17412 ;;
17413 esac
17414 dynamic_linker='Win32 ld.exe'
17415 # FIXME: first we should search . and the directory the executable is in
17416 shlibpath_var=PATH
17417 ;;
17418
17419 darwin* | rhapsody*)
17420 dynamic_linker="$host_os dyld"
17421 version_type=darwin
17422 need_lib_prefix=no
17423 need_version=no
17424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17425 soname_spec='${libname}${release}${major}$shared_ext'
17426 shlibpath_overrides_runpath=yes
17427 shlibpath_var=DYLD_LIBRARY_PATH
17428 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17430 if test "$GCC" = yes; then
17431 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"`
17432 else
17433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17434 fi
17435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17436 ;;
17437
17438 dgux*)
17439 version_type=linux
17440 need_lib_prefix=no
17441 need_version=no
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 ;;
17446
17447 freebsd1*)
17448 dynamic_linker=no
17449 ;;
17450
17451 kfreebsd*-gnu)
17452 version_type=linux
17453 need_lib_prefix=no
17454 need_version=no
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17456 soname_spec='${libname}${release}${shared_ext}$major'
17457 shlibpath_var=LD_LIBRARY_PATH
17458 shlibpath_overrides_runpath=no
17459 hardcode_into_libs=yes
17460 dynamic_linker='GNU ld.so'
17461 ;;
17462
17463 freebsd* | dragonfly*)
17464 # DragonFly does not have aout. When/if they implement a new
17465 # versioning mechanism, adjust this.
17466 if test -x /usr/bin/objformat; then
17467 objformat=`/usr/bin/objformat`
17468 else
17469 case $host_os in
17470 freebsd[123]*) objformat=aout ;;
17471 *) objformat=elf ;;
17472 esac
17473 fi
17474 version_type=freebsd-$objformat
17475 case $version_type in
17476 freebsd-elf*)
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17478 need_version=no
17479 need_lib_prefix=no
17480 ;;
17481 freebsd-*)
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17483 need_version=yes
17484 ;;
17485 esac
17486 shlibpath_var=LD_LIBRARY_PATH
17487 case $host_os in
17488 freebsd2*)
17489 shlibpath_overrides_runpath=yes
17490 ;;
17491 freebsd3.[01]* | freebsdelf3.[01]*)
17492 shlibpath_overrides_runpath=yes
17493 hardcode_into_libs=yes
17494 ;;
17495 *) # from 3.2 on
17496 shlibpath_overrides_runpath=no
17497 hardcode_into_libs=yes
17498 ;;
17499 esac
17500 ;;
17501
17502 gnu*)
17503 version_type=linux
17504 need_lib_prefix=no
17505 need_version=no
17506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 hardcode_into_libs=yes
17510 ;;
17511
17512 hpux9* | hpux10* | hpux11*)
17513 # Give a soname corresponding to the major version so that dld.sl refuses to
17514 # link against other versions.
17515 version_type=sunos
17516 need_lib_prefix=no
17517 need_version=no
17518 case $host_cpu in
17519 ia64*)
17520 shrext_cmds='.so'
17521 hardcode_into_libs=yes
17522 dynamic_linker="$host_os dld.so"
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17526 soname_spec='${libname}${release}${shared_ext}$major'
17527 if test "X$HPUX_IA64_MODE" = X32; then
17528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17529 else
17530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17531 fi
17532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17533 ;;
17534 hppa*64*)
17535 shrext_cmds='.sl'
17536 hardcode_into_libs=yes
17537 dynamic_linker="$host_os dld.sl"
17538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17544 ;;
17545 *)
17546 shrext_cmds='.sl'
17547 dynamic_linker="$host_os dld.sl"
17548 shlibpath_var=SHLIB_PATH
17549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 soname_spec='${libname}${release}${shared_ext}$major'
17552 ;;
17553 esac
17554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17555 postinstall_cmds='chmod 555 $lib'
17556 ;;
17557
17558 irix5* | irix6* | nonstopux*)
17559 case $host_os in
17560 nonstopux*) version_type=nonstopux ;;
17561 *)
17562 if test "$lt_cv_prog_gnu_ld" = yes; then
17563 version_type=linux
17564 else
17565 version_type=irix
17566 fi ;;
17567 esac
17568 need_lib_prefix=no
17569 need_version=no
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17572 case $host_os in
17573 irix5* | nonstopux*)
17574 libsuff= shlibsuff=
17575 ;;
17576 *)
17577 case $LD in # libtool.m4 will add one of these switches to LD
17578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17579 libsuff= shlibsuff= libmagic=32-bit;;
17580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17581 libsuff=32 shlibsuff=N32 libmagic=N32;;
17582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17583 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17584 *) libsuff= shlibsuff= libmagic=never-match;;
17585 esac
17586 ;;
17587 esac
17588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17589 shlibpath_overrides_runpath=no
17590 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17591 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17592 hardcode_into_libs=yes
17593 ;;
17594
17595 # No shared lib support for Linux oldld, aout, or coff.
17596 linux*oldld* | linux*aout* | linux*coff*)
17597 dynamic_linker=no
17598 ;;
17599
17600 # This must be Linux ELF.
17601 linux*)
17602 version_type=linux
17603 need_lib_prefix=no
17604 need_version=no
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=no
17610 # This implies no fast_install, which is unacceptable.
17611 # Some rework will be needed to allow for fast_install
17612 # before this can be enabled.
17613 hardcode_into_libs=yes
17614
17615 # Append ld.so.conf contents to the search path
17616 if test -f /etc/ld.so.conf; then
17617 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17618 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17619 fi
17620
17621 # We used to test for /lib/ld.so.1 and disable shared libraries on
17622 # powerpc, because MkLinux only supported shared libraries with the
17623 # GNU dynamic linker. Since this was broken with cross compilers,
17624 # most powerpc-linux boxes support dynamic linking these days and
17625 # people can always --disable-shared, the test was removed, and we
17626 # assume the GNU/Linux dynamic linker is in use.
17627 dynamic_linker='GNU/Linux ld.so'
17628 ;;
17629
17630 netbsdelf*-gnu)
17631 version_type=linux
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=no
17638 hardcode_into_libs=yes
17639 dynamic_linker='NetBSD ld.elf_so'
17640 ;;
17641
17642 knetbsd*-gnu)
17643 version_type=linux
17644 need_lib_prefix=no
17645 need_version=no
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17647 soname_spec='${libname}${release}${shared_ext}$major'
17648 shlibpath_var=LD_LIBRARY_PATH
17649 shlibpath_overrides_runpath=no
17650 hardcode_into_libs=yes
17651 dynamic_linker='GNU ld.so'
17652 ;;
17653
17654 netbsd*)
17655 version_type=sunos
17656 need_lib_prefix=no
17657 need_version=no
17658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17661 dynamic_linker='NetBSD (a.out) ld.so'
17662 else
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 dynamic_linker='NetBSD ld.elf_so'
17666 fi
17667 shlibpath_var=LD_LIBRARY_PATH
17668 shlibpath_overrides_runpath=yes
17669 hardcode_into_libs=yes
17670 ;;
17671
17672 newsos6)
17673 version_type=linux
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 shlibpath_overrides_runpath=yes
17677 ;;
17678
17679 nto-qnx*)
17680 version_type=linux
17681 need_lib_prefix=no
17682 need_version=no
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=yes
17687 ;;
17688
17689 openbsd*)
17690 version_type=sunos
17691 need_lib_prefix=no
17692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17693 case $host_os in
17694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17695 *) need_version=no ;;
17696 esac
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17699 shlibpath_var=LD_LIBRARY_PATH
17700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17701 case $host_os in
17702 openbsd2.[89] | openbsd2.[89].*)
17703 shlibpath_overrides_runpath=no
17704 ;;
17705 *)
17706 shlibpath_overrides_runpath=yes
17707 ;;
17708 esac
17709 else
17710 shlibpath_overrides_runpath=yes
17711 fi
17712 ;;
17713
17714 os2*)
17715 libname_spec='$name'
17716 shrext_cmds=".dll"
17717 need_lib_prefix=no
17718 library_names_spec='$libname${shared_ext} $libname.a'
17719 dynamic_linker='OS/2 ld.exe'
17720 shlibpath_var=LIBPATH
17721 ;;
17722
17723 osf3* | osf4* | osf5*)
17724 version_type=osf
17725 need_lib_prefix=no
17726 need_version=no
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 shlibpath_var=LD_LIBRARY_PATH
17730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17732 ;;
17733
17734 sco3.2v5*)
17735 version_type=osf
17736 soname_spec='${libname}${release}${shared_ext}$major'
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738 shlibpath_var=LD_LIBRARY_PATH
17739 ;;
17740
17741 solaris*)
17742 version_type=linux
17743 need_lib_prefix=no
17744 need_version=no
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=yes
17749 hardcode_into_libs=yes
17750 # ldd complains unless libraries are executable
17751 postinstall_cmds='chmod +x $lib'
17752 ;;
17753
17754 sunos4*)
17755 version_type=sunos
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17758 shlibpath_var=LD_LIBRARY_PATH
17759 shlibpath_overrides_runpath=yes
17760 if test "$with_gnu_ld" = yes; then
17761 need_lib_prefix=no
17762 fi
17763 need_version=yes
17764 ;;
17765
17766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17767 version_type=linux
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 case $host_vendor in
17772 sni)
17773 shlibpath_overrides_runpath=no
17774 need_lib_prefix=no
17775 export_dynamic_flag_spec='${wl}-Blargedynsym'
17776 runpath_var=LD_RUN_PATH
17777 ;;
17778 siemens)
17779 need_lib_prefix=no
17780 ;;
17781 motorola)
17782 need_lib_prefix=no
17783 need_version=no
17784 shlibpath_overrides_runpath=no
17785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17786 ;;
17787 esac
17788 ;;
17789
17790 sysv4*MP*)
17791 if test -d /usr/nec ;then
17792 version_type=linux
17793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17794 soname_spec='$libname${shared_ext}.$major'
17795 shlibpath_var=LD_LIBRARY_PATH
17796 fi
17797 ;;
17798
17799 uts4*)
17800 version_type=linux
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802 soname_spec='${libname}${release}${shared_ext}$major'
17803 shlibpath_var=LD_LIBRARY_PATH
17804 ;;
17805
17806 *)
17807 dynamic_linker=no
17808 ;;
17809 esac
17810 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17811 echo "${ECHO_T}$dynamic_linker" >&6
17812 test "$dynamic_linker" = no && can_build_shared=no
17813
17814 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17816 hardcode_action_GCJ=
17817 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17818 test -n "$runpath_var_GCJ" || \
17819 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17820
17821 # We can hardcode non-existant directories.
17822 if test "$hardcode_direct_GCJ" != no &&
17823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17824 # have to relink, otherwise we might link with an installed library
17825 # when we should be linking with a yet-to-be-installed one
17826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17827 test "$hardcode_minus_L_GCJ" != no; then
17828 # Linking always hardcodes the temporary library directory.
17829 hardcode_action_GCJ=relink
17830 else
17831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17832 hardcode_action_GCJ=immediate
17833 fi
17834 else
17835 # We cannot hardcode anything, or else we can only hardcode existing
17836 # directories.
17837 hardcode_action_GCJ=unsupported
17838 fi
17839 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17840 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17841
17842 if test "$hardcode_action_GCJ" = relink; then
17843 # Fast installation is not supported
17844 enable_fast_install=no
17845 elif test "$shlibpath_overrides_runpath" = yes ||
17846 test "$enable_shared" = no; then
17847 # Fast installation is not necessary
17848 enable_fast_install=needless
17849 fi
17850
17851 striplib=
17852 old_striplib=
17853 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17854 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17855 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17856 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17857 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17858 echo "$as_me:$LINENO: result: yes" >&5
17859 echo "${ECHO_T}yes" >&6
17860 else
17861 # FIXME - insert some real tests, host_os isn't really good enough
17862 case $host_os in
17863 darwin*)
17864 if test -n "$STRIP" ; then
17865 striplib="$STRIP -x"
17866 echo "$as_me:$LINENO: result: yes" >&5
17867 echo "${ECHO_T}yes" >&6
17868 else
17869 echo "$as_me:$LINENO: result: no" >&5
17870 echo "${ECHO_T}no" >&6
17871 fi
17872 ;;
17873 *)
17874 echo "$as_me:$LINENO: result: no" >&5
17875 echo "${ECHO_T}no" >&6
17876 ;;
17877 esac
17878 fi
17879
17880 if test "x$enable_dlopen" != xyes; then
17881 enable_dlopen=unknown
17882 enable_dlopen_self=unknown
17883 enable_dlopen_self_static=unknown
17884 else
17885 lt_cv_dlopen=no
17886 lt_cv_dlopen_libs=
17887
17888 case $host_os in
17889 beos*)
17890 lt_cv_dlopen="load_add_on"
17891 lt_cv_dlopen_libs=
17892 lt_cv_dlopen_self=yes
17893 ;;
17894
17895 mingw* | pw32*)
17896 lt_cv_dlopen="LoadLibrary"
17897 lt_cv_dlopen_libs=
17898 ;;
17899
17900 cygwin*)
17901 lt_cv_dlopen="dlopen"
17902 lt_cv_dlopen_libs=
17903 ;;
17904
17905 darwin*)
17906 # if libdl is installed we need to link against it
17907 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17908 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-ldl $LIBS"
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920
17921 /* Override any gcc2 internal prototype to avoid an error. */
17922 #ifdef __cplusplus
17923 extern "C"
17924 #endif
17925 /* We use char because int might match the return type of a gcc2
17926 builtin and then its argument prototype would still apply. */
17927 char dlopen ();
17928 int
17929 main ()
17930 {
17931 dlopen ();
17932 ;
17933 return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_cv_lib_dl_dlopen=yes
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 ac_cv_lib_dl_dlopen=no
17963 fi
17964 rm -f conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17967 fi
17968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17970 if test $ac_cv_lib_dl_dlopen = yes; then
17971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17972 else
17973
17974 lt_cv_dlopen="dyld"
17975 lt_cv_dlopen_libs=
17976 lt_cv_dlopen_self=yes
17977
17978 fi
17979
17980 ;;
17981
17982 *)
17983 echo "$as_me:$LINENO: checking for shl_load" >&5
17984 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17985 if test "${ac_cv_func_shl_load+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h. */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996 #define shl_load innocuous_shl_load
17997
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char shl_load (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18002
18003 #ifdef __STDC__
18004 # include <limits.h>
18005 #else
18006 # include <assert.h>
18007 #endif
18008
18009 #undef shl_load
18010
18011 /* Override any gcc2 internal prototype to avoid an error. */
18012 #ifdef __cplusplus
18013 extern "C"
18014 {
18015 #endif
18016 /* We use char because int might match the return type of a gcc2
18017 builtin and then its argument prototype would still apply. */
18018 char shl_load ();
18019 /* The GNU C library defines this for functions which it implements
18020 to always fail with ENOSYS. Some functions are actually named
18021 something starting with __ and the normal name is an alias. */
18022 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18023 choke me
18024 #else
18025 char (*f) () = shl_load;
18026 #endif
18027 #ifdef __cplusplus
18028 }
18029 #endif
18030
18031 int
18032 main ()
18033 {
18034 return f != shl_load;
18035 ;
18036 return 0;
18037 }
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041 (eval $ac_link) 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try='test -s conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_func_shl_load=yes
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065 ac_cv_func_shl_load=no
18066 fi
18067 rm -f conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18069 fi
18070 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18071 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18072 if test $ac_cv_func_shl_load = yes; then
18073 lt_cv_dlopen="shl_load"
18074 else
18075 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18076 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18077 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-ldld $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088
18089 /* Override any gcc2 internal prototype to avoid an error. */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 /* We use char because int might match the return type of a gcc2
18094 builtin and then its argument prototype would still apply. */
18095 char shl_load ();
18096 int
18097 main ()
18098 {
18099 shl_load ();
18100 ;
18101 return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_lib_dld_shl_load=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_cv_lib_dld_shl_load=no
18131 fi
18132 rm -f conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18135 fi
18136 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18137 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18138 if test $ac_cv_lib_dld_shl_load = yes; then
18139 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18140 else
18141 echo "$as_me:$LINENO: checking for dlopen" >&5
18142 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18143 if test "${ac_cv_func_dlopen+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18154 #define dlopen innocuous_dlopen
18155
18156 /* System header to define __stub macros and hopefully few prototypes,
18157 which can conflict with char dlopen (); below.
18158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18159 <limits.h> exists even on freestanding compilers. */
18160
18161 #ifdef __STDC__
18162 # include <limits.h>
18163 #else
18164 # include <assert.h>
18165 #endif
18166
18167 #undef dlopen
18168
18169 /* Override any gcc2 internal prototype to avoid an error. */
18170 #ifdef __cplusplus
18171 extern "C"
18172 {
18173 #endif
18174 /* We use char because int might match the return type of a gcc2
18175 builtin and then its argument prototype would still apply. */
18176 char dlopen ();
18177 /* The GNU C library defines this for functions which it implements
18178 to always fail with ENOSYS. Some functions are actually named
18179 something starting with __ and the normal name is an alias. */
18180 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18181 choke me
18182 #else
18183 char (*f) () = dlopen;
18184 #endif
18185 #ifdef __cplusplus
18186 }
18187 #endif
18188
18189 int
18190 main ()
18191 {
18192 return f != dlopen;
18193 ;
18194 return 0;
18195 }
18196 _ACEOF
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18199 (eval $ac_link) 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; } &&
18212 { ac_try='test -s conftest$ac_exeext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_func_dlopen=yes
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 ac_cv_func_dlopen=no
18224 fi
18225 rm -f conftest.err conftest.$ac_objext \
18226 conftest$ac_exeext conftest.$ac_ext
18227 fi
18228 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18229 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18230 if test $ac_cv_func_dlopen = yes; then
18231 lt_cv_dlopen="dlopen"
18232 else
18233 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18234 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18235 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 else
18238 ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-ldl $LIBS"
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246
18247 /* Override any gcc2 internal prototype to avoid an error. */
18248 #ifdef __cplusplus
18249 extern "C"
18250 #endif
18251 /* We use char because int might match the return type of a gcc2
18252 builtin and then its argument prototype would still apply. */
18253 char dlopen ();
18254 int
18255 main ()
18256 {
18257 dlopen ();
18258 ;
18259 return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; } &&
18277 { ac_try='test -s conftest$ac_exeext'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 ac_cv_lib_dl_dlopen=yes
18284 else
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288 ac_cv_lib_dl_dlopen=no
18289 fi
18290 rm -f conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
18292 LIBS=$ac_check_lib_save_LIBS
18293 fi
18294 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18295 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18296 if test $ac_cv_lib_dl_dlopen = yes; then
18297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18298 else
18299 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18300 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18301 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304 ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lsvld $LIBS"
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h. */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312
18313 /* Override any gcc2 internal prototype to avoid an error. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 /* We use char because int might match the return type of a gcc2
18318 builtin and then its argument prototype would still apply. */
18319 char dlopen ();
18320 int
18321 main ()
18322 {
18323 dlopen ();
18324 ;
18325 return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 ac_cv_lib_svld_dlopen=yes
18350 else
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354 ac_cv_lib_svld_dlopen=no
18355 fi
18356 rm -f conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18359 fi
18360 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18361 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18362 if test $ac_cv_lib_svld_dlopen = yes; then
18363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18364 else
18365 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18366 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370 ac_check_lib_save_LIBS=$LIBS
18371 LIBS="-ldld $LIBS"
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378
18379 /* Override any gcc2 internal prototype to avoid an error. */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 /* We use char because int might match the return type of a gcc2
18384 builtin and then its argument prototype would still apply. */
18385 char dld_link ();
18386 int
18387 main ()
18388 {
18389 dld_link ();
18390 ;
18391 return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396 (eval $ac_link) 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 ac_cv_lib_dld_dld_link=yes
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 ac_cv_lib_dld_dld_link=no
18421 fi
18422 rm -f conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18424 LIBS=$ac_check_lib_save_LIBS
18425 fi
18426 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18427 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18428 if test $ac_cv_lib_dld_dld_link = yes; then
18429 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18430 fi
18431
18432
18433 fi
18434
18435
18436 fi
18437
18438
18439 fi
18440
18441
18442 fi
18443
18444
18445 fi
18446
18447 ;;
18448 esac
18449
18450 if test "x$lt_cv_dlopen" != xno; then
18451 enable_dlopen=yes
18452 else
18453 enable_dlopen=no
18454 fi
18455
18456 case $lt_cv_dlopen in
18457 dlopen)
18458 save_CPPFLAGS="$CPPFLAGS"
18459 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18460
18461 save_LDFLAGS="$LDFLAGS"
18462 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18463
18464 save_LIBS="$LIBS"
18465 LIBS="$lt_cv_dlopen_libs $LIBS"
18466
18467 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18468 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18469 if test "${lt_cv_dlopen_self+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 else
18472 if test "$cross_compiling" = yes; then :
18473 lt_cv_dlopen_self=cross
18474 else
18475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18476 lt_status=$lt_dlunknown
18477 cat > conftest.$ac_ext <<EOF
18478 #line 18478 "configure"
18479 #include "confdefs.h"
18480
18481 #if HAVE_DLFCN_H
18482 #include <dlfcn.h>
18483 #endif
18484
18485 #include <stdio.h>
18486
18487 #ifdef RTLD_GLOBAL
18488 # define LT_DLGLOBAL RTLD_GLOBAL
18489 #else
18490 # ifdef DL_GLOBAL
18491 # define LT_DLGLOBAL DL_GLOBAL
18492 # else
18493 # define LT_DLGLOBAL 0
18494 # endif
18495 #endif
18496
18497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18498 find out it does not work in some platform. */
18499 #ifndef LT_DLLAZY_OR_NOW
18500 # ifdef RTLD_LAZY
18501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18502 # else
18503 # ifdef DL_LAZY
18504 # define LT_DLLAZY_OR_NOW DL_LAZY
18505 # else
18506 # ifdef RTLD_NOW
18507 # define LT_DLLAZY_OR_NOW RTLD_NOW
18508 # else
18509 # ifdef DL_NOW
18510 # define LT_DLLAZY_OR_NOW DL_NOW
18511 # else
18512 # define LT_DLLAZY_OR_NOW 0
18513 # endif
18514 # endif
18515 # endif
18516 # endif
18517 #endif
18518
18519 #ifdef __cplusplus
18520 extern "C" void exit (int);
18521 #endif
18522
18523 void fnord() { int i=42;}
18524 int main ()
18525 {
18526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18527 int status = $lt_dlunknown;
18528
18529 if (self)
18530 {
18531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18533 /* dlclose (self); */
18534 }
18535
18536 exit (status);
18537 }
18538 EOF
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18544 (./conftest; exit; ) >&5 2>/dev/null
18545 lt_status=$?
18546 case x$lt_status in
18547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18549 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18550 esac
18551 else :
18552 # compilation failed
18553 lt_cv_dlopen_self=no
18554 fi
18555 fi
18556 rm -fr conftest*
18557
18558
18559 fi
18560 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18561 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18562
18563 if test "x$lt_cv_dlopen_self" = xyes; then
18564 LDFLAGS="$LDFLAGS $link_static_flag"
18565 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18566 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18567 if test "${lt_cv_dlopen_self_static+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570 if test "$cross_compiling" = yes; then :
18571 lt_cv_dlopen_self_static=cross
18572 else
18573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18574 lt_status=$lt_dlunknown
18575 cat > conftest.$ac_ext <<EOF
18576 #line 18576 "configure"
18577 #include "confdefs.h"
18578
18579 #if HAVE_DLFCN_H
18580 #include <dlfcn.h>
18581 #endif
18582
18583 #include <stdio.h>
18584
18585 #ifdef RTLD_GLOBAL
18586 # define LT_DLGLOBAL RTLD_GLOBAL
18587 #else
18588 # ifdef DL_GLOBAL
18589 # define LT_DLGLOBAL DL_GLOBAL
18590 # else
18591 # define LT_DLGLOBAL 0
18592 # endif
18593 #endif
18594
18595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18596 find out it does not work in some platform. */
18597 #ifndef LT_DLLAZY_OR_NOW
18598 # ifdef RTLD_LAZY
18599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18600 # else
18601 # ifdef DL_LAZY
18602 # define LT_DLLAZY_OR_NOW DL_LAZY
18603 # else
18604 # ifdef RTLD_NOW
18605 # define LT_DLLAZY_OR_NOW RTLD_NOW
18606 # else
18607 # ifdef DL_NOW
18608 # define LT_DLLAZY_OR_NOW DL_NOW
18609 # else
18610 # define LT_DLLAZY_OR_NOW 0
18611 # endif
18612 # endif
18613 # endif
18614 # endif
18615 #endif
18616
18617 #ifdef __cplusplus
18618 extern "C" void exit (int);
18619 #endif
18620
18621 void fnord() { int i=42;}
18622 int main ()
18623 {
18624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18625 int status = $lt_dlunknown;
18626
18627 if (self)
18628 {
18629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18630 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18631 /* dlclose (self); */
18632 }
18633
18634 exit (status);
18635 }
18636 EOF
18637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638 (eval $ac_link) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18642 (./conftest; exit; ) >&5 2>/dev/null
18643 lt_status=$?
18644 case x$lt_status in
18645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18647 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18648 esac
18649 else :
18650 # compilation failed
18651 lt_cv_dlopen_self_static=no
18652 fi
18653 fi
18654 rm -fr conftest*
18655
18656
18657 fi
18658 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18659 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18660 fi
18661
18662 CPPFLAGS="$save_CPPFLAGS"
18663 LDFLAGS="$save_LDFLAGS"
18664 LIBS="$save_LIBS"
18665 ;;
18666 esac
18667
18668 case $lt_cv_dlopen_self in
18669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18670 *) enable_dlopen_self=unknown ;;
18671 esac
18672
18673 case $lt_cv_dlopen_self_static in
18674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18675 *) enable_dlopen_self_static=unknown ;;
18676 esac
18677 fi
18678
18679
18680 # The else clause should only fire when bootstrapping the
18681 # libtool distribution, otherwise you forgot to ship ltmain.sh
18682 # with your package, and you will get complaints that there are
18683 # no rules to generate ltmain.sh.
18684 if test -f "$ltmain"; then
18685 # See if we are running on zsh, and set the options which allow our commands through
18686 # without removal of \ escapes.
18687 if test -n "${ZSH_VERSION+set}" ; then
18688 setopt NO_GLOB_SUBST
18689 fi
18690 # Now quote all the things that may contain metacharacters while being
18691 # careful not to overquote the AC_SUBSTed values. We take copies of the
18692 # variables and quote the copies for generation of the libtool script.
18693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18694 SED SHELL STRIP \
18695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18697 deplibs_check_method reload_flag reload_cmds need_locks \
18698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18699 lt_cv_sys_global_symbol_to_c_name_address \
18700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18701 old_postinstall_cmds old_postuninstall_cmds \
18702 compiler_GCJ \
18703 CC_GCJ \
18704 LD_GCJ \
18705 lt_prog_compiler_wl_GCJ \
18706 lt_prog_compiler_pic_GCJ \
18707 lt_prog_compiler_static_GCJ \
18708 lt_prog_compiler_no_builtin_flag_GCJ \
18709 export_dynamic_flag_spec_GCJ \
18710 thread_safe_flag_spec_GCJ \
18711 whole_archive_flag_spec_GCJ \
18712 enable_shared_with_static_runtimes_GCJ \
18713 old_archive_cmds_GCJ \
18714 old_archive_from_new_cmds_GCJ \
18715 predep_objects_GCJ \
18716 postdep_objects_GCJ \
18717 predeps_GCJ \
18718 postdeps_GCJ \
18719 compiler_lib_search_path_GCJ \
18720 archive_cmds_GCJ \
18721 archive_expsym_cmds_GCJ \
18722 postinstall_cmds_GCJ \
18723 postuninstall_cmds_GCJ \
18724 old_archive_from_expsyms_cmds_GCJ \
18725 allow_undefined_flag_GCJ \
18726 no_undefined_flag_GCJ \
18727 export_symbols_cmds_GCJ \
18728 hardcode_libdir_flag_spec_GCJ \
18729 hardcode_libdir_flag_spec_ld_GCJ \
18730 hardcode_libdir_separator_GCJ \
18731 hardcode_automatic_GCJ \
18732 module_cmds_GCJ \
18733 module_expsym_cmds_GCJ \
18734 lt_cv_prog_compiler_c_o_GCJ \
18735 exclude_expsyms_GCJ \
18736 include_expsyms_GCJ; do
18737
18738 case $var in
18739 old_archive_cmds_GCJ | \
18740 old_archive_from_new_cmds_GCJ | \
18741 archive_cmds_GCJ | \
18742 archive_expsym_cmds_GCJ | \
18743 module_cmds_GCJ | \
18744 module_expsym_cmds_GCJ | \
18745 old_archive_from_expsyms_cmds_GCJ | \
18746 export_symbols_cmds_GCJ | \
18747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18748 postinstall_cmds | postuninstall_cmds | \
18749 old_postinstall_cmds | old_postuninstall_cmds | \
18750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18751 # Double-quote double-evaled strings.
18752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18753 ;;
18754 *)
18755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18756 ;;
18757 esac
18758 done
18759
18760 case $lt_echo in
18761 *'\$0 --fallback-echo"')
18762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18763 ;;
18764 esac
18765
18766 cfgfile="$ofile"
18767
18768 cat <<__EOF__ >> "$cfgfile"
18769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18770
18771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18772
18773 # Shell to use when invoking shell scripts.
18774 SHELL=$lt_SHELL
18775
18776 # Whether or not to build shared libraries.
18777 build_libtool_libs=$enable_shared
18778
18779 # Whether or not to build static libraries.
18780 build_old_libs=$enable_static
18781
18782 # Whether or not to add -lc for building shared libraries.
18783 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18784
18785 # Whether or not to disallow shared libs when runtime libs are static
18786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18787
18788 # Whether or not to optimize for fast installation.
18789 fast_install=$enable_fast_install
18790
18791 # The host system.
18792 host_alias=$host_alias
18793 host=$host
18794 host_os=$host_os
18795
18796 # The build system.
18797 build_alias=$build_alias
18798 build=$build
18799 build_os=$build_os
18800
18801 # An echo program that does not interpret backslashes.
18802 echo=$lt_echo
18803
18804 # The archiver.
18805 AR=$lt_AR
18806 AR_FLAGS=$lt_AR_FLAGS
18807
18808 # A C compiler.
18809 LTCC=$lt_LTCC
18810
18811 # A language-specific compiler.
18812 CC=$lt_compiler_GCJ
18813
18814 # Is the compiler the GNU C compiler?
18815 with_gcc=$GCC_GCJ
18816
18817 # An ERE matcher.
18818 EGREP=$lt_EGREP
18819
18820 # The linker used to build libraries.
18821 LD=$lt_LD_GCJ
18822
18823 # Whether we need hard or soft links.
18824 LN_S=$lt_LN_S
18825
18826 # A BSD-compatible nm program.
18827 NM=$lt_NM
18828
18829 # A symbol stripping program
18830 STRIP=$lt_STRIP
18831
18832 # Used to examine libraries when file_magic_cmd begins "file"
18833 MAGIC_CMD=$MAGIC_CMD
18834
18835 # Used on cygwin: DLL creation program.
18836 DLLTOOL="$DLLTOOL"
18837
18838 # Used on cygwin: object dumper.
18839 OBJDUMP="$OBJDUMP"
18840
18841 # Used on cygwin: assembler.
18842 AS="$AS"
18843
18844 # The name of the directory that contains temporary libtool files.
18845 objdir=$objdir
18846
18847 # How to create reloadable object files.
18848 reload_flag=$lt_reload_flag
18849 reload_cmds=$lt_reload_cmds
18850
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl_GCJ
18853
18854 # Object file suffix (normally "o").
18855 objext="$ac_objext"
18856
18857 # Old archive suffix (normally "a").
18858 libext="$libext"
18859
18860 # Shared library suffix (normally ".so").
18861 shrext_cmds='$shrext_cmds'
18862
18863 # Executable file suffix (normally "").
18864 exeext="$exeext"
18865
18866 # Additional compiler flags for building library objects.
18867 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18868 pic_mode=$pic_mode
18869
18870 # What is the maximum length of a command?
18871 max_cmd_len=$lt_cv_sys_max_cmd_len
18872
18873 # Does compiler simultaneously support -c and -o options?
18874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18875
18876 # Must we lock files when doing compilation?
18877 need_locks=$lt_need_locks
18878
18879 # Do we need the lib prefix for modules?
18880 need_lib_prefix=$need_lib_prefix
18881
18882 # Do we need a version for libraries?
18883 need_version=$need_version
18884
18885 # Whether dlopen is supported.
18886 dlopen_support=$enable_dlopen
18887
18888 # Whether dlopen of programs is supported.
18889 dlopen_self=$enable_dlopen_self
18890
18891 # Whether dlopen of statically linked programs is supported.
18892 dlopen_self_static=$enable_dlopen_self_static
18893
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18896
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18899
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18902
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18905
18906 # Compiler flag to generate thread-safe objects.
18907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18908
18909 # Library versioning type.
18910 version_type=$version_type
18911
18912 # Format of library name prefix.
18913 libname_spec=$lt_libname_spec
18914
18915 # List of archive names. First name is the real one, the rest are links.
18916 # The last name is the one that the linker finds with -lNAME.
18917 library_names_spec=$lt_library_names_spec
18918
18919 # The coded name of the library, if different from the real name.
18920 soname_spec=$lt_soname_spec
18921
18922 # Commands used to build and install an old-style archive.
18923 RANLIB=$lt_RANLIB
18924 old_archive_cmds=$lt_old_archive_cmds_GCJ
18925 old_postinstall_cmds=$lt_old_postinstall_cmds
18926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18927
18928 # Create an old-style archive from a shared archive.
18929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18930
18931 # Create a temporary old-style archive to link instead of a shared archive.
18932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18933
18934 # Commands used to build and install a shared archive.
18935 archive_cmds=$lt_archive_cmds_GCJ
18936 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18937 postinstall_cmds=$lt_postinstall_cmds
18938 postuninstall_cmds=$lt_postuninstall_cmds
18939
18940 # Commands used to build a loadable module (assumed same as above if empty)
18941 module_cmds=$lt_module_cmds_GCJ
18942 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18943
18944 # Commands to strip libraries.
18945 old_striplib=$lt_old_striplib
18946 striplib=$lt_striplib
18947
18948 # Dependencies to place before the objects being linked to create a
18949 # shared library.
18950 predep_objects=$lt_predep_objects_GCJ
18951
18952 # Dependencies to place after the objects being linked to create a
18953 # shared library.
18954 postdep_objects=$lt_postdep_objects_GCJ
18955
18956 # Dependencies to place before the objects being linked to create a
18957 # shared library.
18958 predeps=$lt_predeps_GCJ
18959
18960 # Dependencies to place after the objects being linked to create a
18961 # shared library.
18962 postdeps=$lt_postdeps_GCJ
18963
18964 # The library search path used internally by the compiler when linking
18965 # a shared library.
18966 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18967
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18970
18971 # Command to use when deplibs_check_method == file_magic.
18972 file_magic_cmd=$lt_file_magic_cmd
18973
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18976
18977 # Flag that forces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag_GCJ
18979
18980 # Commands used to finish a libtool library installation in a directory.
18981 finish_cmds=$lt_finish_cmds
18982
18983 # Same as above, but a single script fragment to be evaled but not shown.
18984 finish_eval=$lt_finish_eval
18985
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18988
18989 # Transform the output of nm in a proper C declaration
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18991
18992 # Transform the output of nm in a C name address pair
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18994
18995 # This is the shared library runtime path variable.
18996 runpath_var=$runpath_var
18997
18998 # This is the shared library path variable.
18999 shlibpath_var=$shlibpath_var
19000
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19003
19004 # How to hardcode a shared library path into an executable.
19005 hardcode_action=$hardcode_action_GCJ
19006
19007 # Whether we should hardcode library paths into libraries.
19008 hardcode_into_libs=$hardcode_into_libs
19009
19010 # Flag to hardcode \$libdir into a binary during linking.
19011 # This must work even if \$libdir does not exist.
19012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19013
19014 # If ld is used when linking, flag to hardcode \$libdir into
19015 # a binary during linking. This must work even if \$libdir does
19016 # not exist.
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19018
19019 # Whether we need a single -rpath flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19021
19022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 # resulting binary.
19024 hardcode_direct=$hardcode_direct_GCJ
19025
19026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 # resulting binary.
19028 hardcode_minus_L=$hardcode_minus_L_GCJ
19029
19030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 # the resulting binary.
19032 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19033
19034 # Set to yes if building a shared library automatically hardcodes DIR into the library
19035 # and all subsequent libraries and executables linked against it.
19036 hardcode_automatic=$hardcode_automatic_GCJ
19037
19038 # Variables whose values should be saved in libtool wrapper scripts and
19039 # restored at relink time.
19040 variables_saved_for_relink="$variables_saved_for_relink"
19041
19042 # Whether libtool must link a program against all its dependency libraries.
19043 link_all_deplibs=$link_all_deplibs_GCJ
19044
19045 # Compile-time system search path for libraries
19046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19047
19048 # Run-time system search path for libraries
19049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19050
19051 # Fix the shell variable \$srcfile for the compiler.
19052 fix_srcfile_path="$fix_srcfile_path_GCJ"
19053
19054 # Set to yes if exported symbols are required.
19055 always_export_symbols=$always_export_symbols_GCJ
19056
19057 # The commands to list exported symbols.
19058 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19059
19060 # The commands to extract the exported symbol list from a shared archive.
19061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19062
19063 # Symbols that should not be listed in the preloaded symbols.
19064 exclude_expsyms=$lt_exclude_expsyms_GCJ
19065
19066 # Symbols that must always be exported.
19067 include_expsyms=$lt_include_expsyms_GCJ
19068
19069 # ### END LIBTOOL TAG CONFIG: $tagname
19070
19071 __EOF__
19072
19073
19074 else
19075 # If there is no Makefile yet, we rely on a make rule to execute
19076 # `config.status --recheck' to rerun these tests and create the
19077 # libtool script then.
19078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079 if test -f "$ltmain_in"; then
19080 test -f Makefile && make "$ltmain"
19081 fi
19082 fi
19083
19084
19085 ac_ext=c
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090
19091 CC="$lt_save_CC"
19092
19093 else
19094 tagname=""
19095 fi
19096 ;;
19097
19098 RC)
19099
19100
19101
19102 # Source file extension for RC test sources.
19103 ac_ext=rc
19104
19105 # Object file extension for compiled RC test sources.
19106 objext=o
19107 objext_RC=$objext
19108
19109 # Code to be used in simple compile tests
19110 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19111
19112 # Code to be used in simple link tests
19113 lt_simple_link_test_code="$lt_simple_compile_test_code"
19114
19115 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19116
19117 # If no C compiler was specified, use CC.
19118 LTCC=${LTCC-"$CC"}
19119
19120 # Allow CC to be a program name with arguments.
19121 compiler=$CC
19122
19123
19124 # save warnings/boilerplate of simple test code
19125 ac_outfile=conftest.$ac_objext
19126 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19128 _lt_compiler_boilerplate=`cat conftest.err`
19129 $rm conftest*
19130
19131 ac_outfile=conftest.$ac_objext
19132 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19134 _lt_linker_boilerplate=`cat conftest.err`
19135 $rm conftest*
19136
19137
19138 # Allow CC to be a program name with arguments.
19139 lt_save_CC="$CC"
19140 CC=${RC-"windres"}
19141 compiler=$CC
19142 compiler_RC=$CC
19143 for cc_temp in $compiler""; do
19144 case $cc_temp in
19145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19147 \-*) ;;
19148 *) break;;
19149 esac
19150 done
19151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19152
19153 lt_cv_prog_compiler_c_o_RC=yes
19154
19155 # The else clause should only fire when bootstrapping the
19156 # libtool distribution, otherwise you forgot to ship ltmain.sh
19157 # with your package, and you will get complaints that there are
19158 # no rules to generate ltmain.sh.
19159 if test -f "$ltmain"; then
19160 # See if we are running on zsh, and set the options which allow our commands through
19161 # without removal of \ escapes.
19162 if test -n "${ZSH_VERSION+set}" ; then
19163 setopt NO_GLOB_SUBST
19164 fi
19165 # Now quote all the things that may contain metacharacters while being
19166 # careful not to overquote the AC_SUBSTed values. We take copies of the
19167 # variables and quote the copies for generation of the libtool script.
19168 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19169 SED SHELL STRIP \
19170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19172 deplibs_check_method reload_flag reload_cmds need_locks \
19173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19174 lt_cv_sys_global_symbol_to_c_name_address \
19175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19176 old_postinstall_cmds old_postuninstall_cmds \
19177 compiler_RC \
19178 CC_RC \
19179 LD_RC \
19180 lt_prog_compiler_wl_RC \
19181 lt_prog_compiler_pic_RC \
19182 lt_prog_compiler_static_RC \
19183 lt_prog_compiler_no_builtin_flag_RC \
19184 export_dynamic_flag_spec_RC \
19185 thread_safe_flag_spec_RC \
19186 whole_archive_flag_spec_RC \
19187 enable_shared_with_static_runtimes_RC \
19188 old_archive_cmds_RC \
19189 old_archive_from_new_cmds_RC \
19190 predep_objects_RC \
19191 postdep_objects_RC \
19192 predeps_RC \
19193 postdeps_RC \
19194 compiler_lib_search_path_RC \
19195 archive_cmds_RC \
19196 archive_expsym_cmds_RC \
19197 postinstall_cmds_RC \
19198 postuninstall_cmds_RC \
19199 old_archive_from_expsyms_cmds_RC \
19200 allow_undefined_flag_RC \
19201 no_undefined_flag_RC \
19202 export_symbols_cmds_RC \
19203 hardcode_libdir_flag_spec_RC \
19204 hardcode_libdir_flag_spec_ld_RC \
19205 hardcode_libdir_separator_RC \
19206 hardcode_automatic_RC \
19207 module_cmds_RC \
19208 module_expsym_cmds_RC \
19209 lt_cv_prog_compiler_c_o_RC \
19210 exclude_expsyms_RC \
19211 include_expsyms_RC; do
19212
19213 case $var in
19214 old_archive_cmds_RC | \
19215 old_archive_from_new_cmds_RC | \
19216 archive_cmds_RC | \
19217 archive_expsym_cmds_RC | \
19218 module_cmds_RC | \
19219 module_expsym_cmds_RC | \
19220 old_archive_from_expsyms_cmds_RC | \
19221 export_symbols_cmds_RC | \
19222 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19223 postinstall_cmds | postuninstall_cmds | \
19224 old_postinstall_cmds | old_postuninstall_cmds | \
19225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19226 # Double-quote double-evaled strings.
19227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19228 ;;
19229 *)
19230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19231 ;;
19232 esac
19233 done
19234
19235 case $lt_echo in
19236 *'\$0 --fallback-echo"')
19237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19238 ;;
19239 esac
19240
19241 cfgfile="$ofile"
19242
19243 cat <<__EOF__ >> "$cfgfile"
19244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19245
19246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19247
19248 # Shell to use when invoking shell scripts.
19249 SHELL=$lt_SHELL
19250
19251 # Whether or not to build shared libraries.
19252 build_libtool_libs=$enable_shared
19253
19254 # Whether or not to build static libraries.
19255 build_old_libs=$enable_static
19256
19257 # Whether or not to add -lc for building shared libraries.
19258 build_libtool_need_lc=$archive_cmds_need_lc_RC
19259
19260 # Whether or not to disallow shared libs when runtime libs are static
19261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19262
19263 # Whether or not to optimize for fast installation.
19264 fast_install=$enable_fast_install
19265
19266 # The host system.
19267 host_alias=$host_alias
19268 host=$host
19269 host_os=$host_os
19270
19271 # The build system.
19272 build_alias=$build_alias
19273 build=$build
19274 build_os=$build_os
19275
19276 # An echo program that does not interpret backslashes.
19277 echo=$lt_echo
19278
19279 # The archiver.
19280 AR=$lt_AR
19281 AR_FLAGS=$lt_AR_FLAGS
19282
19283 # A C compiler.
19284 LTCC=$lt_LTCC
19285
19286 # A language-specific compiler.
19287 CC=$lt_compiler_RC
19288
19289 # Is the compiler the GNU C compiler?
19290 with_gcc=$GCC_RC
19291
19292 # An ERE matcher.
19293 EGREP=$lt_EGREP
19294
19295 # The linker used to build libraries.
19296 LD=$lt_LD_RC
19297
19298 # Whether we need hard or soft links.
19299 LN_S=$lt_LN_S
19300
19301 # A BSD-compatible nm program.
19302 NM=$lt_NM
19303
19304 # A symbol stripping program
19305 STRIP=$lt_STRIP
19306
19307 # Used to examine libraries when file_magic_cmd begins "file"
19308 MAGIC_CMD=$MAGIC_CMD
19309
19310 # Used on cygwin: DLL creation program.
19311 DLLTOOL="$DLLTOOL"
19312
19313 # Used on cygwin: object dumper.
19314 OBJDUMP="$OBJDUMP"
19315
19316 # Used on cygwin: assembler.
19317 AS="$AS"
19318
19319 # The name of the directory that contains temporary libtool files.
19320 objdir=$objdir
19321
19322 # How to create reloadable object files.
19323 reload_flag=$lt_reload_flag
19324 reload_cmds=$lt_reload_cmds
19325
19326 # How to pass a linker flag through the compiler.
19327 wl=$lt_lt_prog_compiler_wl_RC
19328
19329 # Object file suffix (normally "o").
19330 objext="$ac_objext"
19331
19332 # Old archive suffix (normally "a").
19333 libext="$libext"
19334
19335 # Shared library suffix (normally ".so").
19336 shrext_cmds='$shrext_cmds'
19337
19338 # Executable file suffix (normally "").
19339 exeext="$exeext"
19340
19341 # Additional compiler flags for building library objects.
19342 pic_flag=$lt_lt_prog_compiler_pic_RC
19343 pic_mode=$pic_mode
19344
19345 # What is the maximum length of a command?
19346 max_cmd_len=$lt_cv_sys_max_cmd_len
19347
19348 # Does compiler simultaneously support -c and -o options?
19349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19350
19351 # Must we lock files when doing compilation?
19352 need_locks=$lt_need_locks
19353
19354 # Do we need the lib prefix for modules?
19355 need_lib_prefix=$need_lib_prefix
19356
19357 # Do we need a version for libraries?
19358 need_version=$need_version
19359
19360 # Whether dlopen is supported.
19361 dlopen_support=$enable_dlopen
19362
19363 # Whether dlopen of programs is supported.
19364 dlopen_self=$enable_dlopen_self
19365
19366 # Whether dlopen of statically linked programs is supported.
19367 dlopen_self_static=$enable_dlopen_self_static
19368
19369 # Compiler flag to prevent dynamic linking.
19370 link_static_flag=$lt_lt_prog_compiler_static_RC
19371
19372 # Compiler flag to turn off builtin functions.
19373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19374
19375 # Compiler flag to allow reflexive dlopens.
19376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19377
19378 # Compiler flag to generate shared objects directly from archives.
19379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19380
19381 # Compiler flag to generate thread-safe objects.
19382 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19383
19384 # Library versioning type.
19385 version_type=$version_type
19386
19387 # Format of library name prefix.
19388 libname_spec=$lt_libname_spec
19389
19390 # List of archive names. First name is the real one, the rest are links.
19391 # The last name is the one that the linker finds with -lNAME.
19392 library_names_spec=$lt_library_names_spec
19393
19394 # The coded name of the library, if different from the real name.
19395 soname_spec=$lt_soname_spec
19396
19397 # Commands used to build and install an old-style archive.
19398 RANLIB=$lt_RANLIB
19399 old_archive_cmds=$lt_old_archive_cmds_RC
19400 old_postinstall_cmds=$lt_old_postinstall_cmds
19401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19402
19403 # Create an old-style archive from a shared archive.
19404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19405
19406 # Create a temporary old-style archive to link instead of a shared archive.
19407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19408
19409 # Commands used to build and install a shared archive.
19410 archive_cmds=$lt_archive_cmds_RC
19411 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19412 postinstall_cmds=$lt_postinstall_cmds
19413 postuninstall_cmds=$lt_postuninstall_cmds
19414
19415 # Commands used to build a loadable module (assumed same as above if empty)
19416 module_cmds=$lt_module_cmds_RC
19417 module_expsym_cmds=$lt_module_expsym_cmds_RC
19418
19419 # Commands to strip libraries.
19420 old_striplib=$lt_old_striplib
19421 striplib=$lt_striplib
19422
19423 # Dependencies to place before the objects being linked to create a
19424 # shared library.
19425 predep_objects=$lt_predep_objects_RC
19426
19427 # Dependencies to place after the objects being linked to create a
19428 # shared library.
19429 postdep_objects=$lt_postdep_objects_RC
19430
19431 # Dependencies to place before the objects being linked to create a
19432 # shared library.
19433 predeps=$lt_predeps_RC
19434
19435 # Dependencies to place after the objects being linked to create a
19436 # shared library.
19437 postdeps=$lt_postdeps_RC
19438
19439 # The library search path used internally by the compiler when linking
19440 # a shared library.
19441 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19442
19443 # Method to check whether dependent libraries are shared objects.
19444 deplibs_check_method=$lt_deplibs_check_method
19445
19446 # Command to use when deplibs_check_method == file_magic.
19447 file_magic_cmd=$lt_file_magic_cmd
19448
19449 # Flag that allows shared libraries with undefined symbols to be built.
19450 allow_undefined_flag=$lt_allow_undefined_flag_RC
19451
19452 # Flag that forces no undefined symbols.
19453 no_undefined_flag=$lt_no_undefined_flag_RC
19454
19455 # Commands used to finish a libtool library installation in a directory.
19456 finish_cmds=$lt_finish_cmds
19457
19458 # Same as above, but a single script fragment to be evaled but not shown.
19459 finish_eval=$lt_finish_eval
19460
19461 # Take the output of nm and produce a listing of raw symbols and C names.
19462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19463
19464 # Transform the output of nm in a proper C declaration
19465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19466
19467 # Transform the output of nm in a C name address pair
19468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19469
19470 # This is the shared library runtime path variable.
19471 runpath_var=$runpath_var
19472
19473 # This is the shared library path variable.
19474 shlibpath_var=$shlibpath_var
19475
19476 # Is shlibpath searched before the hard-coded library search path?
19477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19478
19479 # How to hardcode a shared library path into an executable.
19480 hardcode_action=$hardcode_action_RC
19481
19482 # Whether we should hardcode library paths into libraries.
19483 hardcode_into_libs=$hardcode_into_libs
19484
19485 # Flag to hardcode \$libdir into a binary during linking.
19486 # This must work even if \$libdir does not exist.
19487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19488
19489 # If ld is used when linking, flag to hardcode \$libdir into
19490 # a binary during linking. This must work even if \$libdir does
19491 # not exist.
19492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19493
19494 # Whether we need a single -rpath flag with a separated argument.
19495 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19496
19497 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19498 # resulting binary.
19499 hardcode_direct=$hardcode_direct_RC
19500
19501 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19502 # resulting binary.
19503 hardcode_minus_L=$hardcode_minus_L_RC
19504
19505 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19506 # the resulting binary.
19507 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19508
19509 # Set to yes if building a shared library automatically hardcodes DIR into the library
19510 # and all subsequent libraries and executables linked against it.
19511 hardcode_automatic=$hardcode_automatic_RC
19512
19513 # Variables whose values should be saved in libtool wrapper scripts and
19514 # restored at relink time.
19515 variables_saved_for_relink="$variables_saved_for_relink"
19516
19517 # Whether libtool must link a program against all its dependency libraries.
19518 link_all_deplibs=$link_all_deplibs_RC
19519
19520 # Compile-time system search path for libraries
19521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19522
19523 # Run-time system search path for libraries
19524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19525
19526 # Fix the shell variable \$srcfile for the compiler.
19527 fix_srcfile_path="$fix_srcfile_path_RC"
19528
19529 # Set to yes if exported symbols are required.
19530 always_export_symbols=$always_export_symbols_RC
19531
19532 # The commands to list exported symbols.
19533 export_symbols_cmds=$lt_export_symbols_cmds_RC
19534
19535 # The commands to extract the exported symbol list from a shared archive.
19536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19537
19538 # Symbols that should not be listed in the preloaded symbols.
19539 exclude_expsyms=$lt_exclude_expsyms_RC
19540
19541 # Symbols that must always be exported.
19542 include_expsyms=$lt_include_expsyms_RC
19543
19544 # ### END LIBTOOL TAG CONFIG: $tagname
19545
19546 __EOF__
19547
19548
19549 else
19550 # If there is no Makefile yet, we rely on a make rule to execute
19551 # `config.status --recheck' to rerun these tests and create the
19552 # libtool script then.
19553 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19554 if test -f "$ltmain_in"; then
19555 test -f Makefile && make "$ltmain"
19556 fi
19557 fi
19558
19559
19560 ac_ext=c
19561 ac_cpp='$CPP $CPPFLAGS'
19562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19565
19566 CC="$lt_save_CC"
19567
19568 ;;
19569
19570 *)
19571 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19572 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19573 { (exit 1); exit 1; }; }
19574 ;;
19575 esac
19576
19577 # Append the new tag name to the list of available tags.
19578 if test -n "$tagname" ; then
19579 available_tags="$available_tags $tagname"
19580 fi
19581 fi
19582 done
19583 IFS="$lt_save_ifs"
19584
19585 # Now substitute the updated list of available tags.
19586 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19587 mv "${ofile}T" "$ofile"
19588 chmod +x "$ofile"
19589 else
19590 rm -f "${ofile}T"
19591 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19592 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19593 { (exit 1); exit 1; }; }
19594 fi
19595 fi
19596
19597
19598
19599 # This can be used to rebuild libtool when needed
19600 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19601
19602 # Always use our own libtool.
19603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19604
19605 # Prevent multiple expansion
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627 # Check for standard lib stuff
19628 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19630 if test "${ac_cv_header_stdc+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <stdlib.h>
19640 #include <stdarg.h>
19641 #include <string.h>
19642 #include <float.h>
19643
19644 int
19645 main ()
19646 {
19647
19648 ;
19649 return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19654 (eval $ac_compile) 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_cv_header_stdc=yes
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678 ac_cv_header_stdc=no
19679 fi
19680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19681
19682 if test $ac_cv_header_stdc = yes; then
19683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19684 cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <string.h>
19691
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694 $EGREP "memchr" >/dev/null 2>&1; then
19695 :
19696 else
19697 ac_cv_header_stdc=no
19698 fi
19699 rm -f conftest*
19700
19701 fi
19702
19703 if test $ac_cv_header_stdc = yes; then
19704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h. */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 #include <stdlib.h>
19712
19713 _ACEOF
19714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19715 $EGREP "free" >/dev/null 2>&1; then
19716 :
19717 else
19718 ac_cv_header_stdc=no
19719 fi
19720 rm -f conftest*
19721
19722 fi
19723
19724 if test $ac_cv_header_stdc = yes; then
19725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19726 if test "$cross_compiling" = yes; then
19727 :
19728 else
19729 cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h. */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 #include <ctype.h>
19736 #if ((' ' & 0x0FF) == 0x020)
19737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19739 #else
19740 # define ISLOWER(c) \
19741 (('a' <= (c) && (c) <= 'i') \
19742 || ('j' <= (c) && (c) <= 'r') \
19743 || ('s' <= (c) && (c) <= 'z'))
19744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19745 #endif
19746
19747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19748 int
19749 main ()
19750 {
19751 int i;
19752 for (i = 0; i < 256; i++)
19753 if (XOR (islower (i), ISLOWER (i))
19754 || toupper (i) != TOUPPER (i))
19755 exit(2);
19756 exit (0);
19757 }
19758 _ACEOF
19759 rm -f conftest$ac_exeext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19761 (eval $ac_link) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 :
19771 else
19772 echo "$as_me: program exited with status $ac_status" >&5
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776 ( exit $ac_status )
19777 ac_cv_header_stdc=no
19778 fi
19779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19780 fi
19781 fi
19782 fi
19783 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19784 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19785 if test $ac_cv_header_stdc = yes; then
19786
19787 cat >>confdefs.h <<\_ACEOF
19788 #define STDC_HEADERS 1
19789 _ACEOF
19790
19791 fi
19792
19793
19794
19795
19796 for ac_header in stdlib.h string.h math.h
19797 do
19798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19800 echo "$as_me:$LINENO: checking for $ac_header" >&5
19801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 fi
19805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19807 else
19808 # Is the header compilable?
19809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 $ac_includes_default
19818 #include <$ac_header>
19819 _ACEOF
19820 rm -f conftest.$ac_objext
19821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19822 (eval $ac_compile) 2>conftest.er1
19823 ac_status=$?
19824 grep -v '^ *+' conftest.er1 >conftest.err
19825 rm -f conftest.er1
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } &&
19829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; } &&
19835 { ac_try='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_header_compiler=yes
19842 else
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846 ac_header_compiler=no
19847 fi
19848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19850 echo "${ECHO_T}$ac_header_compiler" >&6
19851
19852 # Is the header present?
19853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h. */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <$ac_header>
19862 _ACEOF
19863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } >/dev/null; then
19871 if test -s conftest.err; then
19872 ac_cpp_err=$ac_c_preproc_warn_flag
19873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19874 else
19875 ac_cpp_err=
19876 fi
19877 else
19878 ac_cpp_err=yes
19879 fi
19880 if test -z "$ac_cpp_err"; then
19881 ac_header_preproc=yes
19882 else
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886 ac_header_preproc=no
19887 fi
19888 rm -f conftest.err conftest.$ac_ext
19889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19890 echo "${ECHO_T}$ac_header_preproc" >&6
19891
19892 # So? What about this header?
19893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19894 yes:no: )
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19899 ac_header_preproc=yes
19900 ;;
19901 no:yes:* )
19902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19914 (
19915 cat <<\_ASBOX
19916 ## ------------------------------------------- ##
19917 ## Report this to [email protected] ##
19918 ## ------------------------------------------- ##
19919 _ASBOX
19920 ) |
19921 sed "s/^/$as_me: WARNING: /" >&2
19922 ;;
19923 esac
19924 echo "$as_me:$LINENO: checking for $ac_header" >&5
19925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929 eval "$as_ac_Header=\$ac_header_preproc"
19930 fi
19931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19933
19934 fi
19935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19936 cat >>confdefs.h <<_ACEOF
19937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19938 _ACEOF
19939
19940 fi
19941
19942 done
19943
19944
19945
19946 for ac_func in strdup strndup
19947 do
19948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19949 echo "$as_me:$LINENO: checking for $ac_func" >&5
19950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19951 if eval "test \"\${$as_ac_var+set}\" = set"; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19962 #define $ac_func innocuous_$ac_func
19963
19964 /* System header to define __stub macros and hopefully few prototypes,
19965 which can conflict with char $ac_func (); below.
19966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19967 <limits.h> exists even on freestanding compilers. */
19968
19969 #ifdef __STDC__
19970 # include <limits.h>
19971 #else
19972 # include <assert.h>
19973 #endif
19974
19975 #undef $ac_func
19976
19977 /* Override any gcc2 internal prototype to avoid an error. */
19978 #ifdef __cplusplus
19979 extern "C"
19980 {
19981 #endif
19982 /* We use char because int might match the return type of a gcc2
19983 builtin and then its argument prototype would still apply. */
19984 char $ac_func ();
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19989 choke me
19990 #else
19991 char (*f) () = $ac_func;
19992 #endif
19993 #ifdef __cplusplus
19994 }
19995 #endif
19996
19997 int
19998 main ()
19999 {
20000 return f != $ac_func;
20001 ;
20002 return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007 (eval $ac_link) 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } &&
20014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; } &&
20020 { ac_try='test -s conftest$ac_exeext'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20023 ac_status=$?
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; }; then
20026 eval "$as_ac_var=yes"
20027 else
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 eval "$as_ac_var=no"
20032 fi
20033 rm -f conftest.err conftest.$ac_objext \
20034 conftest$ac_exeext conftest.$ac_ext
20035 fi
20036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20038 if test `eval echo '${'$as_ac_var'}'` = yes; then
20039 cat >>confdefs.h <<_ACEOF
20040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20041 _ACEOF
20042
20043 fi
20044 done
20045
20046
20047 # Check random other stuff
20048 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20049 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20050 if test "${ac_cv_c_const+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059
20060 int
20061 main ()
20062 {
20063 /* FIXME: Include the comments suggested by Paul. */
20064 #ifndef __cplusplus
20065 /* Ultrix mips cc rejects this. */
20066 typedef int charset[2];
20067 const charset x;
20068 /* SunOS 4.1.1 cc rejects this. */
20069 char const *const *ccp;
20070 char **p;
20071 /* NEC SVR4.0.2 mips cc rejects this. */
20072 struct point {int x, y;};
20073 static struct point const zero = {0,0};
20074 /* AIX XL C 1.02.0.0 rejects this.
20075 It does not let you subtract one const X* pointer from another in
20076 an arm of an if-expression whose if-part is not a constant
20077 expression */
20078 const char *g = "string";
20079 ccp = &g + (g ? g-g : 0);
20080 /* HPUX 7.0 cc rejects these. */
20081 ++ccp;
20082 p = (char**) ccp;
20083 ccp = (char const *const *) p;
20084 { /* SCO 3.2v4 cc rejects this. */
20085 char *t;
20086 char const *s = 0 ? (char *) 0 : (char const *) 0;
20087
20088 *t++ = 0;
20089 }
20090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20091 int x[] = {25, 17};
20092 const int *foo = &x[0];
20093 ++foo;
20094 }
20095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20096 typedef const int *iptr;
20097 iptr p = 0;
20098 ++p;
20099 }
20100 { /* AIX XL C 1.02.0.0 rejects this saying
20101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20102 struct s { int j; const int *ap[3]; };
20103 struct s *b; b->j = 5;
20104 }
20105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20106 const int foo = 10;
20107 }
20108 #endif
20109
20110 ;
20111 return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116 (eval $ac_compile) 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_cv_c_const=yes
20136 else
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140 ac_cv_c_const=no
20141 fi
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 fi
20144 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20145 echo "${ECHO_T}$ac_cv_c_const" >&6
20146 if test $ac_cv_c_const = no; then
20147
20148 cat >>confdefs.h <<\_ACEOF
20149 #define const
20150 _ACEOF
20151
20152 fi
20153
20154 echo "$as_me:$LINENO: checking for inline" >&5
20155 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20156 if test "${ac_cv_c_inline+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159 ac_cv_c_inline=no
20160 for ac_kw in inline __inline__ __inline; do
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 #ifndef __cplusplus
20168 typedef int foo_t;
20169 static $ac_kw foo_t static_foo () {return 0; }
20170 $ac_kw foo_t foo () {return 0; }
20171 #endif
20172
20173 _ACEOF
20174 rm -f conftest.$ac_objext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176 (eval $ac_compile) 2>conftest.er1
20177 ac_status=$?
20178 grep -v '^ *+' conftest.er1 >conftest.err
20179 rm -f conftest.er1
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } &&
20189 { ac_try='test -s conftest.$ac_objext'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 ac_cv_c_inline=$ac_kw; break
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200 fi
20201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20202 done
20203
20204 fi
20205 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20206 echo "${ECHO_T}$ac_cv_c_inline" >&6
20207
20208
20209 case $ac_cv_c_inline in
20210 inline | yes) ;;
20211 *)
20212 case $ac_cv_c_inline in
20213 no) ac_val=;;
20214 *) ac_val=$ac_cv_c_inline;;
20215 esac
20216 cat >>confdefs.h <<_ACEOF
20217 #ifndef __cplusplus
20218 #define inline $ac_val
20219 #endif
20220 _ACEOF
20221 ;;
20222 esac
20223
20224
20225 for ac_header in stdlib.h
20226 do
20227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20229 echo "$as_me:$LINENO: checking for $ac_header" >&5
20230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 fi
20234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20236 else
20237 # Is the header compilable?
20238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h. */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246 $ac_includes_default
20247 #include <$ac_header>
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251 (eval $ac_compile) 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
20258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; } &&
20264 { ac_try='test -s conftest.$ac_objext'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 ac_header_compiler=yes
20271 else
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20274
20275 ac_header_compiler=no
20276 fi
20277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20279 echo "${ECHO_T}$ac_header_compiler" >&6
20280
20281 # Is the header present?
20282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h. */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 #include <$ac_header>
20291 _ACEOF
20292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } >/dev/null; then
20300 if test -s conftest.err; then
20301 ac_cpp_err=$ac_c_preproc_warn_flag
20302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20303 else
20304 ac_cpp_err=
20305 fi
20306 else
20307 ac_cpp_err=yes
20308 fi
20309 if test -z "$ac_cpp_err"; then
20310 ac_header_preproc=yes
20311 else
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 ac_header_preproc=no
20316 fi
20317 rm -f conftest.err conftest.$ac_ext
20318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20319 echo "${ECHO_T}$ac_header_preproc" >&6
20320
20321 # So? What about this header?
20322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20323 yes:no: )
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20328 ac_header_preproc=yes
20329 ;;
20330 no:yes:* )
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20343 (
20344 cat <<\_ASBOX
20345 ## ------------------------------------------- ##
20346 ## Report this to [email protected] ##
20347 ## ------------------------------------------- ##
20348 _ASBOX
20349 ) |
20350 sed "s/^/$as_me: WARNING: /" >&2
20351 ;;
20352 esac
20353 echo "$as_me:$LINENO: checking for $ac_header" >&5
20354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358 eval "$as_ac_Header=\$ac_header_preproc"
20359 fi
20360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20362
20363 fi
20364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20365 cat >>confdefs.h <<_ACEOF
20366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20367 _ACEOF
20368
20369 fi
20370
20371 done
20372
20373 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20374 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20375 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 if test "$cross_compiling" = yes; then
20379 ac_cv_func_malloc_0_nonnull=no
20380 else
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 #if STDC_HEADERS || HAVE_STDLIB_H
20388 # include <stdlib.h>
20389 #else
20390 char *malloc ();
20391 #endif
20392
20393 int
20394 main ()
20395 {
20396 exit (malloc (0) ? 0 : 1);
20397 ;
20398 return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest$ac_exeext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20403 (eval $ac_link) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_cv_func_malloc_0_nonnull=yes
20413 else
20414 echo "$as_me: program exited with status $ac_status" >&5
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ( exit $ac_status )
20419 ac_cv_func_malloc_0_nonnull=no
20420 fi
20421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20422 fi
20423 fi
20424 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20425 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20426 if test $ac_cv_func_malloc_0_nonnull = yes; then
20427
20428 cat >>confdefs.h <<\_ACEOF
20429 #define HAVE_MALLOC 1
20430 _ACEOF
20431
20432 else
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE_MALLOC 0
20435 _ACEOF
20436
20437 case $LIBOBJS in
20438 "malloc.$ac_objext" | \
20439 *" malloc.$ac_objext" | \
20440 "malloc.$ac_objext "* | \
20441 *" malloc.$ac_objext "* ) ;;
20442 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20443 esac
20444
20445
20446 cat >>confdefs.h <<\_ACEOF
20447 #define malloc rpl_malloc
20448 _ACEOF
20449
20450 fi
20451
20452
20453
20454 echo "$as_me:$LINENO: checking for size_t" >&5
20455 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20456 if test "${ac_cv_type_size_t+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 else
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h. */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 $ac_includes_default
20466 int
20467 main ()
20468 {
20469 if ((size_t *) 0)
20470 return 0;
20471 if (sizeof (size_t))
20472 return 0;
20473 ;
20474 return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
20486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; } &&
20492 { ac_try='test -s conftest.$ac_objext'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_cv_type_size_t=yes
20499 else
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ac_cv_type_size_t=no
20504 fi
20505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20506 fi
20507 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20508 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20509 if test $ac_cv_type_size_t = yes; then
20510 :
20511 else
20512
20513 cat >>confdefs.h <<_ACEOF
20514 #define size_t unsigned
20515 _ACEOF
20516
20517 fi
20518
20519
20520 # Check for ladspa.h
20521 if test "${ac_cv_header_ladspa_h+set}" = set; then
20522 echo "$as_me:$LINENO: checking for ladspa.h" >&5
20523 echo $ECHO_N "checking for ladspa.h... $ECHO_C" >&6
20524 if test "${ac_cv_header_ladspa_h+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 fi
20527 echo "$as_me:$LINENO: result: $ac_cv_header_ladspa_h" >&5
20528 echo "${ECHO_T}$ac_cv_header_ladspa_h" >&6
20529 else
20530 # Is the header compilable?
20531 echo "$as_me:$LINENO: checking ladspa.h usability" >&5
20532 echo $ECHO_N "checking ladspa.h usability... $ECHO_C" >&6
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h. */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 $ac_includes_default
20540 #include <ladspa.h>
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest.$ac_objext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_header_compiler=yes
20564 else
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 ac_header_compiler=no
20569 fi
20570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20572 echo "${ECHO_T}$ac_header_compiler" >&6
20573
20574 # Is the header present?
20575 echo "$as_me:$LINENO: checking ladspa.h presence" >&5
20576 echo $ECHO_N "checking ladspa.h presence... $ECHO_C" >&6
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <ladspa.h>
20584 _ACEOF
20585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } >/dev/null; then
20593 if test -s conftest.err; then
20594 ac_cpp_err=$ac_c_preproc_warn_flag
20595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20596 else
20597 ac_cpp_err=
20598 fi
20599 else
20600 ac_cpp_err=yes
20601 fi
20602 if test -z "$ac_cpp_err"; then
20603 ac_header_preproc=yes
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_header_preproc=no
20609 fi
20610 rm -f conftest.err conftest.$ac_ext
20611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20612 echo "${ECHO_T}$ac_header_preproc" >&6
20613
20614 # So? What about this header?
20615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20616 yes:no: )
20617 { echo "$as_me:$LINENO: WARNING: ladspa.h: accepted by the compiler, rejected by the preprocessor!" >&5
20618 echo "$as_me: WARNING: ladspa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: ladspa.h: proceeding with the compiler's result" >&5
20620 echo "$as_me: WARNING: ladspa.h: proceeding with the compiler's result" >&2;}
20621 ac_header_preproc=yes
20622 ;;
20623 no:yes:* )
20624 { echo "$as_me:$LINENO: WARNING: ladspa.h: present but cannot be compiled" >&5
20625 echo "$as_me: WARNING: ladspa.h: present but cannot be compiled" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: ladspa.h: check for missing prerequisite headers?" >&5
20627 echo "$as_me: WARNING: ladspa.h: check for missing prerequisite headers?" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: ladspa.h: see the Autoconf documentation" >&5
20629 echo "$as_me: WARNING: ladspa.h: see the Autoconf documentation" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: ladspa.h: section \"Present But Cannot Be Compiled\"" >&5
20631 echo "$as_me: WARNING: ladspa.h: section \"Present But Cannot Be Compiled\"" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: ladspa.h: proceeding with the preprocessor's result" >&5
20633 echo "$as_me: WARNING: ladspa.h: proceeding with the preprocessor's result" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: ladspa.h: in the future, the compiler will take precedence" >&5
20635 echo "$as_me: WARNING: ladspa.h: in the future, the compiler will take precedence" >&2;}
20636 (
20637 cat <<\_ASBOX
20638 ## ------------------------------------------- ##
20639 ## Report this to [email protected] ##
20640 ## ------------------------------------------- ##
20641 _ASBOX
20642 ) |
20643 sed "s/^/$as_me: WARNING: /" >&2
20644 ;;
20645 esac
20646 echo "$as_me:$LINENO: checking for ladspa.h" >&5
20647 echo $ECHO_N "checking for ladspa.h... $ECHO_C" >&6
20648 if test "${ac_cv_header_ladspa_h+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651 ac_cv_header_ladspa_h=$ac_header_preproc
20652 fi
20653 echo "$as_me:$LINENO: result: $ac_cv_header_ladspa_h" >&5
20654 echo "${ECHO_T}$ac_cv_header_ladspa_h" >&6
20655
20656 fi
20657 if test $ac_cv_header_ladspa_h = yes; then
20658 :
20659 else
20660 { { echo "$as_me:$LINENO: error: Omins requires LADSPA - you do not seem to have ladspa.h" >&5
20661 echo "$as_me: error: Omins requires LADSPA - you do not seem to have ladspa.h" >&2;}
20662 { (exit 1); exit 1; }; }
20663 fi
20664
20665
20666
20667 # Check plugin install directory
20668 echo "$as_me:$LINENO: checking where to install LADSPA plugins" >&5
20669 echo $ECHO_N "checking where to install LADSPA plugins... $ECHO_C" >&6
20670
20671 # Check whether --with-ladspa-dir or --without-ladspa-dir was given.
20672 if test "${with_ladspa_dir+set}" = set; then
20673 withval="$with_ladspa_dir"
20674 ladspadir=$withval
20675 else
20676 ladspadir=$libdir/ladspa
20677 fi;
20678 echo "$as_me:$LINENO: result: $ladspadir" >&5
20679 echo "${ECHO_T}$ladspadir" >&6
20680
20681
20682 # Check for debugging flag
20683 debug="no"
20684 # Check whether --enable-debug or --disable-debug was given.
20685 if test "${enable_debug+set}" = set; then
20686 enableval="$enable_debug"
20687 debug="$enableval"
20688 fi;
20689 if test "$debug" = "yes"; then
20690 CFLAGS="-O1 -g -DDEBUG"
20691 else
20692 CFLAGS="$CFLAGS -DNDEBUG"
20693 fi
20694
20695 # Check for strict flag
20696 strict="no"
20697 # Check whether --enable-strict or --disable-strict was given.
20698 if test "${enable_strict+set}" = set; then
20699 enableval="$enable_strict"
20700 strict="$enableval"
20701 fi;
20702 if test "$strict" = "yes"; then
20703 CFLAGS="$CFLAGS -std=c99 -pedantic -Wall -Wconversion -Winit-self"
20704 fi
20705
20706 # Bolt on a few specific flags to CFLAGS that should always be used
20707 CFLAGS="$CFLAGS -pipe -fmessage-length=139 -fdiagnostics-show-location=every-line"
20708
20709
20710
20711 # Write it!
20712 ac_config_files="$ac_config_files Makefile"
20713
20714 ac_config_files="$ac_config_files src/Makefile"
20715
20716 cat >confcache <<\_ACEOF
20717 # This file is a shell script that caches the results of configure
20718 # tests run on this system so they can be shared between configure
20719 # scripts and configure runs, see configure's option --config-cache.
20720 # It is not useful on other systems. If it contains results you don't
20721 # want to keep, you may remove or edit it.
20722 #
20723 # config.status only pays attention to the cache file if you give it
20724 # the --recheck option to rerun configure.
20725 #
20726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20728 # following values.
20729
20730 _ACEOF
20731
20732 # The following way of writing the cache mishandles newlines in values,
20733 # but we know of no workaround that is simple, portable, and efficient.
20734 # So, don't put newlines in cache variables' values.
20735 # Ultrix sh set writes to stderr and can't be redirected directly,
20736 # and sets the high bit in the cache file unless we assign to the vars.
20737 {
20738 (set) 2>&1 |
20739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20740 *ac_space=\ *)
20741 # `set' does not quote correctly, so add quotes (double-quote
20742 # substitution turns \\\\ into \\, and sed turns \\ into \).
20743 sed -n \
20744 "s/'/'\\\\''/g;
20745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20746 ;;
20747 *)
20748 # `set' quotes correctly as required by POSIX, so do not add quotes.
20749 sed -n \
20750 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20751 ;;
20752 esac;
20753 } |
20754 sed '
20755 t clear
20756 : clear
20757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20758 t end
20759 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20760 : end' >>confcache
20761 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20762 if test -w $cache_file; then
20763 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20764 cat confcache >$cache_file
20765 else
20766 echo "not updating unwritable cache $cache_file"
20767 fi
20768 fi
20769 rm -f confcache
20770
20771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20772 # Let make expand exec_prefix.
20773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20774
20775 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20776 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20777 # trailing colons and then remove the whole line if VPATH becomes empty
20778 # (actually we leave an empty line to preserve line numbers).
20779 if test "x$srcdir" = x.; then
20780 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20781 s/:*\$(srcdir):*/:/;
20782 s/:*\${srcdir}:*/:/;
20783 s/:*@srcdir@:*/:/;
20784 s/^\([^=]*=[ ]*\):*/\1/;
20785 s/:*$//;
20786 s/^[^=]*=[ ]*$//;
20787 }'
20788 fi
20789
20790 DEFS=-DHAVE_CONFIG_H
20791
20792 ac_libobjs=
20793 ac_ltlibobjs=
20794 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20795 # 1. Remove the extension, and $U if already installed.
20796 ac_i=`echo "$ac_i" |
20797 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20798 # 2. Add them.
20799 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20800 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20801 done
20802 LIBOBJS=$ac_libobjs
20803
20804 LTLIBOBJS=$ac_ltlibobjs
20805
20806
20807 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20808 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20809 Usually this means the macro was only invoked conditionally." >&5
20810 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20811 Usually this means the macro was only invoked conditionally." >&2;}
20812 { (exit 1); exit 1; }; }
20813 fi
20814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20815 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20816 Usually this means the macro was only invoked conditionally." >&5
20817 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20818 Usually this means the macro was only invoked conditionally." >&2;}
20819 { (exit 1); exit 1; }; }
20820 fi
20821 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20822 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20823 Usually this means the macro was only invoked conditionally." >&5
20824 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20825 Usually this means the macro was only invoked conditionally." >&2;}
20826 { (exit 1); exit 1; }; }
20827 fi
20828
20829 : ${CONFIG_STATUS=./config.status}
20830 ac_clean_files_save=$ac_clean_files
20831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20832 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20833 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20834 cat >$CONFIG_STATUS <<_ACEOF
20835 #! $SHELL
20836 # Generated by $as_me.
20837 # Run this file to recreate the current configuration.
20838 # Compiler output produced by configure, useful for debugging
20839 # configure, is in config.log if it exists.
20840
20841 debug=false
20842 ac_cs_recheck=false
20843 ac_cs_silent=false
20844 SHELL=\${CONFIG_SHELL-$SHELL}
20845 _ACEOF
20846
20847 cat >>$CONFIG_STATUS <<\_ACEOF
20848 ## --------------------- ##
20849 ## M4sh Initialization. ##
20850 ## --------------------- ##
20851
20852 # Be Bourne compatible
20853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20854 emulate sh
20855 NULLCMD=:
20856 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20857 # is contrary to our usage. Disable this feature.
20858 alias -g '${1+"$@"}'='"$@"'
20859 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20860 set -o posix
20861 fi
20862 DUALCASE=1; export DUALCASE # for MKS sh
20863
20864 # Support unset when possible.
20865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20866 as_unset=unset
20867 else
20868 as_unset=false
20869 fi
20870
20871
20872 # Work around bugs in pre-3.0 UWIN ksh.
20873 $as_unset ENV MAIL MAILPATH
20874 PS1='$ '
20875 PS2='> '
20876 PS4='+ '
20877
20878 # NLS nuisances.
20879 for as_var in \
20880 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20881 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20882 LC_TELEPHONE LC_TIME
20883 do
20884 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20885 eval $as_var=C; export $as_var
20886 else
20887 $as_unset $as_var
20888 fi
20889 done
20890
20891 # Required to use basename.
20892 if expr a : '\(a\)' >/dev/null 2>&1; then
20893 as_expr=expr
20894 else
20895 as_expr=false
20896 fi
20897
20898 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20899 as_basename=basename
20900 else
20901 as_basename=false
20902 fi
20903
20904
20905 # Name of the executable.
20906 as_me=`$as_basename "$0" ||
20907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20908 X"$0" : 'X\(//\)$' \| \
20909 X"$0" : 'X\(/\)$' \| \
20910 . : '\(.\)' 2>/dev/null ||
20911 echo X/"$0" |
20912 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20913 /^X\/\(\/\/\)$/{ s//\1/; q; }
20914 /^X\/\(\/\).*/{ s//\1/; q; }
20915 s/.*/./; q'`
20916
20917
20918 # PATH needs CR, and LINENO needs CR and PATH.
20919 # Avoid depending upon Character Ranges.
20920 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20921 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20922 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20923 as_cr_digits='0123456789'
20924 as_cr_alnum=$as_cr_Letters$as_cr_digits
20925
20926 # The user is always right.
20927 if test "${PATH_SEPARATOR+set}" != set; then
20928 echo "#! /bin/sh" >conf$$.sh
20929 echo "exit 0" >>conf$$.sh
20930 chmod +x conf$$.sh
20931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20932 PATH_SEPARATOR=';'
20933 else
20934 PATH_SEPARATOR=:
20935 fi
20936 rm -f conf$$.sh
20937 fi
20938
20939
20940 as_lineno_1=$LINENO
20941 as_lineno_2=$LINENO
20942 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20943 test "x$as_lineno_1" != "x$as_lineno_2" &&
20944 test "x$as_lineno_3" = "x$as_lineno_2" || {
20945 # Find who we are. Look in the path if we contain no path at all
20946 # relative or not.
20947 case $0 in
20948 *[\\/]* ) as_myself=$0 ;;
20949 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20950 for as_dir in $PATH
20951 do
20952 IFS=$as_save_IFS
20953 test -z "$as_dir" && as_dir=.
20954 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20955 done
20956
20957 ;;
20958 esac
20959 # We did not find ourselves, most probably we were run as `sh COMMAND'
20960 # in which case we are not to be found in the path.
20961 if test "x$as_myself" = x; then
20962 as_myself=$0
20963 fi
20964 if test ! -f "$as_myself"; then
20965 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20966 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20967 { (exit 1); exit 1; }; }
20968 fi
20969 case $CONFIG_SHELL in
20970 '')
20971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20972 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20973 do
20974 IFS=$as_save_IFS
20975 test -z "$as_dir" && as_dir=.
20976 for as_base in sh bash ksh sh5; do
20977 case $as_dir in
20978 /*)
20979 if ("$as_dir/$as_base" -c '
20980 as_lineno_1=$LINENO
20981 as_lineno_2=$LINENO
20982 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20983 test "x$as_lineno_1" != "x$as_lineno_2" &&
20984 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20985 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20986 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20987 CONFIG_SHELL=$as_dir/$as_base
20988 export CONFIG_SHELL
20989 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20990 fi;;
20991 esac
20992 done
20993 done
20994 ;;
20995 esac
20996
20997 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20998 # uniformly replaced by the line number. The first 'sed' inserts a
20999 # line-number line before each line; the second 'sed' does the real
21000 # work. The second script uses 'N' to pair each line-number line
21001 # with the numbered line, and appends trailing '-' during
21002 # substitution so that $LINENO is not a special case at line end.
21003 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21004 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21005 sed '=' <$as_myself |
21006 sed '
21007 N
21008 s,$,-,
21009 : loop
21010 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21011 t loop
21012 s,-$,,
21013 s,^['$as_cr_digits']*\n,,
21014 ' >$as_me.lineno &&
21015 chmod +x $as_me.lineno ||
21016 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21017 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21018 { (exit 1); exit 1; }; }
21019
21020 # Don't try to exec as it changes $[0], causing all sort of problems
21021 # (the dirname of $[0] is not the place where we might find the
21022 # original and so on. Autoconf is especially sensible to this).
21023 . ./$as_me.lineno
21024 # Exit status is that of the last command.
21025 exit
21026 }
21027
21028
21029 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21030 *c*,-n*) ECHO_N= ECHO_C='
21031 ' ECHO_T=' ' ;;
21032 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21033 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21034 esac
21035
21036 if expr a : '\(a\)' >/dev/null 2>&1; then
21037 as_expr=expr
21038 else
21039 as_expr=false
21040 fi
21041
21042 rm -f conf$$ conf$$.exe conf$$.file
21043 echo >conf$$.file
21044 if ln -s conf$$.file conf$$ 2>/dev/null; then
21045 # We could just check for DJGPP; but this test a) works b) is more generic
21046 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21047 if test -f conf$$.exe; then
21048 # Don't use ln at all; we don't have any links
21049 as_ln_s='cp -p'
21050 else
21051 as_ln_s='ln -s'
21052 fi
21053 elif ln conf$$.file conf$$ 2>/dev/null; then
21054 as_ln_s=ln
21055 else
21056 as_ln_s='cp -p'
21057 fi
21058 rm -f conf$$ conf$$.exe conf$$.file
21059
21060 if mkdir -p . 2>/dev/null; then
21061 as_mkdir_p=:
21062 else
21063 test -d ./-p && rmdir ./-p
21064 as_mkdir_p=false
21065 fi
21066
21067 as_executable_p="test -f"
21068
21069 # Sed expression to map a string onto a valid CPP name.
21070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21071
21072 # Sed expression to map a string onto a valid variable name.
21073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21074
21075
21076 # IFS
21077 # We need space, tab and new line, in precisely that order.
21078 as_nl='
21079 '
21080 IFS=" $as_nl"
21081
21082 # CDPATH.
21083 $as_unset CDPATH
21084
21085 exec 6>&1
21086
21087 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21088 # report actual input values of CONFIG_FILES etc. instead of their
21089 # values after options handling. Logging --version etc. is OK.
21090 exec 5>>config.log
21091 {
21092 echo
21093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21094 ## Running $as_me. ##
21095 _ASBOX
21096 } >&5
21097 cat >&5 <<_CSEOF
21098
21099 This file was extended by omins $as_me 0.2.0, which was
21100 generated by GNU Autoconf 2.59. Invocation command line was
21101
21102 CONFIG_FILES = $CONFIG_FILES
21103 CONFIG_HEADERS = $CONFIG_HEADERS
21104 CONFIG_LINKS = $CONFIG_LINKS
21105 CONFIG_COMMANDS = $CONFIG_COMMANDS
21106 $ $0 $@
21107
21108 _CSEOF
21109 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21110 echo >&5
21111 _ACEOF
21112
21113 # Files that config.status was made for.
21114 if test -n "$ac_config_files"; then
21115 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21116 fi
21117
21118 if test -n "$ac_config_headers"; then
21119 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21120 fi
21121
21122 if test -n "$ac_config_links"; then
21123 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21124 fi
21125
21126 if test -n "$ac_config_commands"; then
21127 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21128 fi
21129
21130 cat >>$CONFIG_STATUS <<\_ACEOF
21131
21132 ac_cs_usage="\
21133 \`$as_me' instantiates files from templates according to the
21134 current configuration.
21135
21136 Usage: $0 [OPTIONS] [FILE]...
21137
21138 -h, --help print this help, then exit
21139 -V, --version print version number, then exit
21140 -q, --quiet do not print progress messages
21141 -d, --debug don't remove temporary files
21142 --recheck update $as_me by reconfiguring in the same conditions
21143 --file=FILE[:TEMPLATE]
21144 instantiate the configuration file FILE
21145 --header=FILE[:TEMPLATE]
21146 instantiate the configuration header FILE
21147
21148 Configuration files:
21149 $config_files
21150
21151 Configuration headers:
21152 $config_headers
21153
21154 Configuration commands:
21155 $config_commands
21156
21157 Report bugs to <[email protected]>."
21158 _ACEOF
21159
21160 cat >>$CONFIG_STATUS <<_ACEOF
21161 ac_cs_version="\\
21162 omins config.status 0.2.0
21163 configured by $0, generated by GNU Autoconf 2.59,
21164 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21165
21166 Copyright (C) 2003 Free Software Foundation, Inc.
21167 This config.status script is free software; the Free Software Foundation
21168 gives unlimited permission to copy, distribute and modify it."
21169 srcdir=$srcdir
21170 INSTALL="$INSTALL"
21171 _ACEOF
21172
21173 cat >>$CONFIG_STATUS <<\_ACEOF
21174 # If no file are specified by the user, then we need to provide default
21175 # value. By we need to know if files were specified by the user.
21176 ac_need_defaults=:
21177 while test $# != 0
21178 do
21179 case $1 in
21180 --*=*)
21181 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21182 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21183 ac_shift=:
21184 ;;
21185 -*)
21186 ac_option=$1
21187 ac_optarg=$2
21188 ac_shift=shift
21189 ;;
21190 *) # This is not an option, so the user has probably given explicit
21191 # arguments.
21192 ac_option=$1
21193 ac_need_defaults=false;;
21194 esac
21195
21196 case $ac_option in
21197 # Handling of the options.
21198 _ACEOF
21199 cat >>$CONFIG_STATUS <<\_ACEOF
21200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21201 ac_cs_recheck=: ;;
21202 --version | --vers* | -V )
21203 echo "$ac_cs_version"; exit 0 ;;
21204 --he | --h)
21205 # Conflict between --help and --header
21206 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21207 Try \`$0 --help' for more information." >&5
21208 echo "$as_me: error: ambiguous option: $1
21209 Try \`$0 --help' for more information." >&2;}
21210 { (exit 1); exit 1; }; };;
21211 --help | --hel | -h )
21212 echo "$ac_cs_usage"; exit 0 ;;
21213 --debug | --d* | -d )
21214 debug=: ;;
21215 --file | --fil | --fi | --f )
21216 $ac_shift
21217 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21218 ac_need_defaults=false;;
21219 --header | --heade | --head | --hea )
21220 $ac_shift
21221 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21222 ac_need_defaults=false;;
21223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21225 ac_cs_silent=: ;;
21226
21227 # This is an error.
21228 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21229 Try \`$0 --help' for more information." >&5
21230 echo "$as_me: error: unrecognized option: $1
21231 Try \`$0 --help' for more information." >&2;}
21232 { (exit 1); exit 1; }; } ;;
21233
21234 *) ac_config_targets="$ac_config_targets $1" ;;
21235
21236 esac
21237 shift
21238 done
21239
21240 ac_configure_extra_args=
21241
21242 if $ac_cs_silent; then
21243 exec 6>/dev/null
21244 ac_configure_extra_args="$ac_configure_extra_args --silent"
21245 fi
21246
21247 _ACEOF
21248 cat >>$CONFIG_STATUS <<_ACEOF
21249 if \$ac_cs_recheck; then
21250 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21251 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21252 fi
21253
21254 _ACEOF
21255
21256 cat >>$CONFIG_STATUS <<_ACEOF
21257 #
21258 # INIT-COMMANDS section.
21259 #
21260
21261 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21262
21263 _ACEOF
21264
21265
21266
21267 cat >>$CONFIG_STATUS <<\_ACEOF
21268 for ac_config_target in $ac_config_targets
21269 do
21270 case "$ac_config_target" in
21271 # Handling of arguments.
21272 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21273 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21274 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21275 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21276 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21278 { (exit 1); exit 1; }; };;
21279 esac
21280 done
21281
21282 # If the user did not use the arguments to specify the items to instantiate,
21283 # then the envvar interface is used. Set only those that are not.
21284 # We use the long form for the default assignment because of an extremely
21285 # bizarre bug on SunOS 4.1.3.
21286 if $ac_need_defaults; then
21287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21290 fi
21291
21292 # Have a temporary directory for convenience. Make it in the build tree
21293 # simply because there is no reason to put it here, and in addition,
21294 # creating and moving files from /tmp can sometimes cause problems.
21295 # Create a temporary directory, and hook for its removal unless debugging.
21296 $debug ||
21297 {
21298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21299 trap '{ (exit 1); exit 1; }' 1 2 13 15
21300 }
21301
21302 # Create a (secure) tmp directory for tmp files.
21303
21304 {
21305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21306 test -n "$tmp" && test -d "$tmp"
21307 } ||
21308 {
21309 tmp=./confstat$$-$RANDOM
21310 (umask 077 && mkdir $tmp)
21311 } ||
21312 {
21313 echo "$me: cannot create a temporary directory in ." >&2
21314 { (exit 1); exit 1; }
21315 }
21316
21317 _ACEOF
21318
21319 cat >>$CONFIG_STATUS <<_ACEOF
21320
21321 #
21322 # CONFIG_FILES section.
21323 #
21324
21325 # No need to generate the scripts if there are no CONFIG_FILES.
21326 # This happens for instance when ./config.status config.h
21327 if test -n "\$CONFIG_FILES"; then
21328 # Protect against being on the right side of a sed subst in config.status.
21329 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21330 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21331 s,@SHELL@,$SHELL,;t t
21332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21338 s,@exec_prefix@,$exec_prefix,;t t
21339 s,@prefix@,$prefix,;t t
21340 s,@program_transform_name@,$program_transform_name,;t t
21341 s,@bindir@,$bindir,;t t
21342 s,@sbindir@,$sbindir,;t t
21343 s,@libexecdir@,$libexecdir,;t t
21344 s,@datadir@,$datadir,;t t
21345 s,@sysconfdir@,$sysconfdir,;t t
21346 s,@sharedstatedir@,$sharedstatedir,;t t
21347 s,@localstatedir@,$localstatedir,;t t
21348 s,@libdir@,$libdir,;t t
21349 s,@includedir@,$includedir,;t t
21350 s,@oldincludedir@,$oldincludedir,;t t
21351 s,@infodir@,$infodir,;t t
21352 s,@mandir@,$mandir,;t t
21353 s,@build_alias@,$build_alias,;t t
21354 s,@host_alias@,$host_alias,;t t
21355 s,@target_alias@,$target_alias,;t t
21356 s,@DEFS@,$DEFS,;t t
21357 s,@ECHO_C@,$ECHO_C,;t t
21358 s,@ECHO_N@,$ECHO_N,;t t
21359 s,@ECHO_T@,$ECHO_T,;t t
21360 s,@LIBS@,$LIBS,;t t
21361 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21362 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21363 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21364 s,@CYGPATH_W@,$CYGPATH_W,;t t
21365 s,@PACKAGE@,$PACKAGE,;t t
21366 s,@VERSION@,$VERSION,;t t
21367 s,@ACLOCAL@,$ACLOCAL,;t t
21368 s,@AUTOCONF@,$AUTOCONF,;t t
21369 s,@AUTOMAKE@,$AUTOMAKE,;t t
21370 s,@AUTOHEADER@,$AUTOHEADER,;t t
21371 s,@MAKEINFO@,$MAKEINFO,;t t
21372 s,@install_sh@,$install_sh,;t t
21373 s,@STRIP@,$STRIP,;t t
21374 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21375 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21376 s,@mkdir_p@,$mkdir_p,;t t
21377 s,@AWK@,$AWK,;t t
21378 s,@SET_MAKE@,$SET_MAKE,;t t
21379 s,@am__leading_dot@,$am__leading_dot,;t t
21380 s,@AMTAR@,$AMTAR,;t t
21381 s,@am__tar@,$am__tar,;t t
21382 s,@am__untar@,$am__untar,;t t
21383 s,@CC@,$CC,;t t
21384 s,@CFLAGS@,$CFLAGS,;t t
21385 s,@LDFLAGS@,$LDFLAGS,;t t
21386 s,@CPPFLAGS@,$CPPFLAGS,;t t
21387 s,@ac_ct_CC@,$ac_ct_CC,;t t
21388 s,@EXEEXT@,$EXEEXT,;t t
21389 s,@OBJEXT@,$OBJEXT,;t t
21390 s,@DEPDIR@,$DEPDIR,;t t
21391 s,@am__include@,$am__include,;t t
21392 s,@am__quote@,$am__quote,;t t
21393 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21394 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21395 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21396 s,@CCDEPMODE@,$CCDEPMODE,;t t
21397 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21398 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21399 s,@build@,$build,;t t
21400 s,@build_cpu@,$build_cpu,;t t
21401 s,@build_vendor@,$build_vendor,;t t
21402 s,@build_os@,$build_os,;t t
21403 s,@host@,$host,;t t
21404 s,@host_cpu@,$host_cpu,;t t
21405 s,@host_vendor@,$host_vendor,;t t
21406 s,@host_os@,$host_os,;t t
21407 s,@EGREP@,$EGREP,;t t
21408 s,@LN_S@,$LN_S,;t t
21409 s,@ECHO@,$ECHO,;t t
21410 s,@AR@,$AR,;t t
21411 s,@ac_ct_AR@,$ac_ct_AR,;t t
21412 s,@RANLIB@,$RANLIB,;t t
21413 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21414 s,@CPP@,$CPP,;t t
21415 s,@CXX@,$CXX,;t t
21416 s,@CXXFLAGS@,$CXXFLAGS,;t t
21417 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21418 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21419 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21420 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21421 s,@CXXCPP@,$CXXCPP,;t t
21422 s,@F77@,$F77,;t t
21423 s,@FFLAGS@,$FFLAGS,;t t
21424 s,@ac_ct_F77@,$ac_ct_F77,;t t
21425 s,@LIBTOOL@,$LIBTOOL,;t t
21426 s,@LIBOBJS@,$LIBOBJS,;t t
21427 s,@ladspadir@,$ladspadir,;t t
21428 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21429 CEOF
21430
21431 _ACEOF
21432
21433 cat >>$CONFIG_STATUS <<\_ACEOF
21434 # Split the substitutions into bite-sized pieces for seds with
21435 # small command number limits, like on Digital OSF/1 and HP-UX.
21436 ac_max_sed_lines=48
21437 ac_sed_frag=1 # Number of current file.
21438 ac_beg=1 # First line for current file.
21439 ac_end=$ac_max_sed_lines # Line after last line for current file.
21440 ac_more_lines=:
21441 ac_sed_cmds=
21442 while $ac_more_lines; do
21443 if test $ac_beg -gt 1; then
21444 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21445 else
21446 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21447 fi
21448 if test ! -s $tmp/subs.frag; then
21449 ac_more_lines=false
21450 else
21451 # The purpose of the label and of the branching condition is to
21452 # speed up the sed processing (if there are no `@' at all, there
21453 # is no need to browse any of the substitutions).
21454 # These are the two extra sed commands mentioned above.
21455 (echo ':t
21456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21457 if test -z "$ac_sed_cmds"; then
21458 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21459 else
21460 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21461 fi
21462 ac_sed_frag=`expr $ac_sed_frag + 1`
21463 ac_beg=$ac_end
21464 ac_end=`expr $ac_end + $ac_max_sed_lines`
21465 fi
21466 done
21467 if test -z "$ac_sed_cmds"; then
21468 ac_sed_cmds=cat
21469 fi
21470 fi # test -n "$CONFIG_FILES"
21471
21472 _ACEOF
21473 cat >>$CONFIG_STATUS <<\_ACEOF
21474 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21476 case $ac_file in
21477 - | *:- | *:-:* ) # input from stdin
21478 cat >$tmp/stdin
21479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21483 * ) ac_file_in=$ac_file.in ;;
21484 esac
21485
21486 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21487 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21489 X"$ac_file" : 'X\(//\)[^/]' \| \
21490 X"$ac_file" : 'X\(//\)$' \| \
21491 X"$ac_file" : 'X\(/\)' \| \
21492 . : '\(.\)' 2>/dev/null ||
21493 echo X"$ac_file" |
21494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21496 /^X\(\/\/\)$/{ s//\1/; q; }
21497 /^X\(\/\).*/{ s//\1/; q; }
21498 s/.*/./; q'`
21499 { if $as_mkdir_p; then
21500 mkdir -p "$ac_dir"
21501 else
21502 as_dir="$ac_dir"
21503 as_dirs=
21504 while test ! -d "$as_dir"; do
21505 as_dirs="$as_dir $as_dirs"
21506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21508 X"$as_dir" : 'X\(//\)[^/]' \| \
21509 X"$as_dir" : 'X\(//\)$' \| \
21510 X"$as_dir" : 'X\(/\)' \| \
21511 . : '\(.\)' 2>/dev/null ||
21512 echo X"$as_dir" |
21513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21515 /^X\(\/\/\)$/{ s//\1/; q; }
21516 /^X\(\/\).*/{ s//\1/; q; }
21517 s/.*/./; q'`
21518 done
21519 test ! -n "$as_dirs" || mkdir $as_dirs
21520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21522 { (exit 1); exit 1; }; }; }
21523
21524 ac_builddir=.
21525
21526 if test "$ac_dir" != .; then
21527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21528 # A "../" for each directory in $ac_dir_suffix.
21529 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21530 else
21531 ac_dir_suffix= ac_top_builddir=
21532 fi
21533
21534 case $srcdir in
21535 .) # No --srcdir option. We are building in place.
21536 ac_srcdir=.
21537 if test -z "$ac_top_builddir"; then
21538 ac_top_srcdir=.
21539 else
21540 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21541 fi ;;
21542 [\\/]* | ?:[\\/]* ) # Absolute path.
21543 ac_srcdir=$srcdir$ac_dir_suffix;
21544 ac_top_srcdir=$srcdir ;;
21545 *) # Relative path.
21546 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21547 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21548 esac
21549
21550 # Do not use `cd foo && pwd` to compute absolute paths, because
21551 # the directories may not exist.
21552 case `pwd` in
21553 .) ac_abs_builddir="$ac_dir";;
21554 *)
21555 case "$ac_dir" in
21556 .) ac_abs_builddir=`pwd`;;
21557 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21558 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21559 esac;;
21560 esac
21561 case $ac_abs_builddir in
21562 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21563 *)
21564 case ${ac_top_builddir}. in
21565 .) ac_abs_top_builddir=$ac_abs_builddir;;
21566 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21567 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21568 esac;;
21569 esac
21570 case $ac_abs_builddir in
21571 .) ac_abs_srcdir=$ac_srcdir;;
21572 *)
21573 case $ac_srcdir in
21574 .) ac_abs_srcdir=$ac_abs_builddir;;
21575 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21576 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21577 esac;;
21578 esac
21579 case $ac_abs_builddir in
21580 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21581 *)
21582 case $ac_top_srcdir in
21583 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21584 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21585 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21586 esac;;
21587 esac
21588
21589
21590 case $INSTALL in
21591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21592 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21593 esac
21594
21595 # Let's still pretend it is `configure' which instantiates (i.e., don't
21596 # use $as_me), people would be surprised to read:
21597 # /* config.h. Generated by config.status. */
21598 if test x"$ac_file" = x-; then
21599 configure_input=
21600 else
21601 configure_input="$ac_file. "
21602 fi
21603 configure_input=$configure_input"Generated from `echo $ac_file_in |
21604 sed 's,.*/,,'` by configure."
21605
21606 # First look for the input files in the build tree, otherwise in the
21607 # src tree.
21608 ac_file_inputs=`IFS=:
21609 for f in $ac_file_in; do
21610 case $f in
21611 -) echo $tmp/stdin ;;
21612 [\\/$]*)
21613 # Absolute (can't be DOS-style, as IFS=:)
21614 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21615 echo "$as_me: error: cannot find input file: $f" >&2;}
21616 { (exit 1); exit 1; }; }
21617 echo "$f";;
21618 *) # Relative
21619 if test -f "$f"; then
21620 # Build tree
21621 echo "$f"
21622 elif test -f "$srcdir/$f"; then
21623 # Source tree
21624 echo "$srcdir/$f"
21625 else
21626 # /dev/null tree
21627 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21628 echo "$as_me: error: cannot find input file: $f" >&2;}
21629 { (exit 1); exit 1; }; }
21630 fi;;
21631 esac
21632 done` || { (exit 1); exit 1; }
21633
21634 if test x"$ac_file" != x-; then
21635 { echo "$as_me:$LINENO: creating $ac_file" >&5
21636 echo "$as_me: creating $ac_file" >&6;}
21637 rm -f "$ac_file"
21638 fi
21639 _ACEOF
21640 cat >>$CONFIG_STATUS <<_ACEOF
21641 sed "$ac_vpsub
21642 $extrasub
21643 _ACEOF
21644 cat >>$CONFIG_STATUS <<\_ACEOF
21645 :t
21646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21647 s,@configure_input@,$configure_input,;t t
21648 s,@srcdir@,$ac_srcdir,;t t
21649 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21650 s,@top_srcdir@,$ac_top_srcdir,;t t
21651 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21652 s,@builddir@,$ac_builddir,;t t
21653 s,@abs_builddir@,$ac_abs_builddir,;t t
21654 s,@top_builddir@,$ac_top_builddir,;t t
21655 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21656 s,@INSTALL@,$ac_INSTALL,;t t
21657 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21658 rm -f $tmp/stdin
21659 if test x"$ac_file" != x-; then
21660 mv $tmp/out $ac_file
21661 else
21662 cat $tmp/out
21663 rm -f $tmp/out
21664 fi
21665
21666 done
21667 _ACEOF
21668 cat >>$CONFIG_STATUS <<\_ACEOF
21669
21670 #
21671 # CONFIG_HEADER section.
21672 #
21673
21674 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21675 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21676 #
21677 # ac_d sets the value in "#define NAME VALUE" lines.
21678 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21679 ac_dB='[ ].*$,\1#\2'
21680 ac_dC=' '
21681 ac_dD=',;t'
21682 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21683 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21684 ac_uB='$,\1#\2define\3'
21685 ac_uC=' '
21686 ac_uD=',;t'
21687
21688 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21690 case $ac_file in
21691 - | *:- | *:-:* ) # input from stdin
21692 cat >$tmp/stdin
21693 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21695 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21697 * ) ac_file_in=$ac_file.in ;;
21698 esac
21699
21700 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21701 echo "$as_me: creating $ac_file" >&6;}
21702
21703 # First look for the input files in the build tree, otherwise in the
21704 # src tree.
21705 ac_file_inputs=`IFS=:
21706 for f in $ac_file_in; do
21707 case $f in
21708 -) echo $tmp/stdin ;;
21709 [\\/$]*)
21710 # Absolute (can't be DOS-style, as IFS=:)
21711 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21712 echo "$as_me: error: cannot find input file: $f" >&2;}
21713 { (exit 1); exit 1; }; }
21714 # Do quote $f, to prevent DOS paths from being IFS'd.
21715 echo "$f";;
21716 *) # Relative
21717 if test -f "$f"; then
21718 # Build tree
21719 echo "$f"
21720 elif test -f "$srcdir/$f"; then
21721 # Source tree
21722 echo "$srcdir/$f"
21723 else
21724 # /dev/null tree
21725 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21726 echo "$as_me: error: cannot find input file: $f" >&2;}
21727 { (exit 1); exit 1; }; }
21728 fi;;
21729 esac
21730 done` || { (exit 1); exit 1; }
21731 # Remove the trailing spaces.
21732 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21733
21734 _ACEOF
21735
21736 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21737 # `conftest.undefs', that substitutes the proper values into
21738 # config.h.in to produce config.h. The first handles `#define'
21739 # templates, and the second `#undef' templates.
21740 # And first: Protect against being on the right side of a sed subst in
21741 # config.status. Protect against being in an unquoted here document
21742 # in config.status.
21743 rm -f conftest.defines conftest.undefs
21744 # Using a here document instead of a string reduces the quoting nightmare.
21745 # Putting comments in sed scripts is not portable.
21746 #
21747 # `end' is used to avoid that the second main sed command (meant for
21748 # 0-ary CPP macros) applies to n-ary macro definitions.
21749 # See the Autoconf documentation for `clear'.
21750 cat >confdef2sed.sed <<\_ACEOF
21751 s/[\\&,]/\\&/g
21752 s,[\\$`],\\&,g
21753 t clear
21754 : clear
21755 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21756 t end
21757 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21758 : end
21759 _ACEOF
21760 # If some macros were called several times there might be several times
21761 # the same #defines, which is useless. Nevertheless, we may not want to
21762 # sort them, since we want the *last* AC-DEFINE to be honored.
21763 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21764 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21765 rm -f confdef2sed.sed
21766
21767 # This sed command replaces #undef with comments. This is necessary, for
21768 # example, in the case of _POSIX_SOURCE, which is predefined and required
21769 # on some systems where configure will not decide to define it.
21770 cat >>conftest.undefs <<\_ACEOF
21771 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21772 _ACEOF
21773
21774 # Break up conftest.defines because some shells have a limit on the size
21775 # of here documents, and old seds have small limits too (100 cmds).
21776 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21777 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21778 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21779 echo ' :' >>$CONFIG_STATUS
21780 rm -f conftest.tail
21781 while grep . conftest.defines >/dev/null
21782 do
21783 # Write a limited-size here document to $tmp/defines.sed.
21784 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21785 # Speed up: don't consider the non `#define' lines.
21786 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21787 # Work around the forget-to-reset-the-flag bug.
21788 echo 't clr' >>$CONFIG_STATUS
21789 echo ': clr' >>$CONFIG_STATUS
21790 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21791 echo 'CEOF
21792 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21793 rm -f $tmp/in
21794 mv $tmp/out $tmp/in
21795 ' >>$CONFIG_STATUS
21796 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21797 rm -f conftest.defines
21798 mv conftest.tail conftest.defines
21799 done
21800 rm -f conftest.defines
21801 echo ' fi # grep' >>$CONFIG_STATUS
21802 echo >>$CONFIG_STATUS
21803
21804 # Break up conftest.undefs because some shells have a limit on the size
21805 # of here documents, and old seds have small limits too (100 cmds).
21806 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21807 rm -f conftest.tail
21808 while grep . conftest.undefs >/dev/null
21809 do
21810 # Write a limited-size here document to $tmp/undefs.sed.
21811 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21812 # Speed up: don't consider the non `#undef'
21813 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21814 # Work around the forget-to-reset-the-flag bug.
21815 echo 't clr' >>$CONFIG_STATUS
21816 echo ': clr' >>$CONFIG_STATUS
21817 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21818 echo 'CEOF
21819 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21820 rm -f $tmp/in
21821 mv $tmp/out $tmp/in
21822 ' >>$CONFIG_STATUS
21823 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21824 rm -f conftest.undefs
21825 mv conftest.tail conftest.undefs
21826 done
21827 rm -f conftest.undefs
21828
21829 cat >>$CONFIG_STATUS <<\_ACEOF
21830 # Let's still pretend it is `configure' which instantiates (i.e., don't
21831 # use $as_me), people would be surprised to read:
21832 # /* config.h. Generated by config.status. */
21833 if test x"$ac_file" = x-; then
21834 echo "/* Generated by configure. */" >$tmp/config.h
21835 else
21836 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21837 fi
21838 cat $tmp/in >>$tmp/config.h
21839 rm -f $tmp/in
21840 if test x"$ac_file" != x-; then
21841 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21842 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21843 echo "$as_me: $ac_file is unchanged" >&6;}
21844 else
21845 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21847 X"$ac_file" : 'X\(//\)[^/]' \| \
21848 X"$ac_file" : 'X\(//\)$' \| \
21849 X"$ac_file" : 'X\(/\)' \| \
21850 . : '\(.\)' 2>/dev/null ||
21851 echo X"$ac_file" |
21852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21854 /^X\(\/\/\)$/{ s//\1/; q; }
21855 /^X\(\/\).*/{ s//\1/; q; }
21856 s/.*/./; q'`
21857 { if $as_mkdir_p; then
21858 mkdir -p "$ac_dir"
21859 else
21860 as_dir="$ac_dir"
21861 as_dirs=
21862 while test ! -d "$as_dir"; do
21863 as_dirs="$as_dir $as_dirs"
21864 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21866 X"$as_dir" : 'X\(//\)[^/]' \| \
21867 X"$as_dir" : 'X\(//\)$' \| \
21868 X"$as_dir" : 'X\(/\)' \| \
21869 . : '\(.\)' 2>/dev/null ||
21870 echo X"$as_dir" |
21871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21873 /^X\(\/\/\)$/{ s//\1/; q; }
21874 /^X\(\/\).*/{ s//\1/; q; }
21875 s/.*/./; q'`
21876 done
21877 test ! -n "$as_dirs" || mkdir $as_dirs
21878 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21879 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21880 { (exit 1); exit 1; }; }; }
21881
21882 rm -f $ac_file
21883 mv $tmp/config.h $ac_file
21884 fi
21885 else
21886 cat $tmp/config.h
21887 rm -f $tmp/config.h
21888 fi
21889 # Compute $ac_file's index in $config_headers.
21890 _am_stamp_count=1
21891 for _am_header in $config_headers :; do
21892 case $_am_header in
21893 $ac_file | $ac_file:* )
21894 break ;;
21895 * )
21896 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21897 esac
21898 done
21899 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21900 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21901 X$ac_file : 'X\(//\)[^/]' \| \
21902 X$ac_file : 'X\(//\)$' \| \
21903 X$ac_file : 'X\(/\)' \| \
21904 . : '\(.\)' 2>/dev/null ||
21905 echo X$ac_file |
21906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21908 /^X\(\/\/\)$/{ s//\1/; q; }
21909 /^X\(\/\).*/{ s//\1/; q; }
21910 s/.*/./; q'`/stamp-h$_am_stamp_count
21911 done
21912 _ACEOF
21913 cat >>$CONFIG_STATUS <<\_ACEOF
21914
21915 #
21916 # CONFIG_COMMANDS section.
21917 #
21918 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21919 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21920 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21921 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21922 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21923 X"$ac_dest" : 'X\(//\)[^/]' \| \
21924 X"$ac_dest" : 'X\(//\)$' \| \
21925 X"$ac_dest" : 'X\(/\)' \| \
21926 . : '\(.\)' 2>/dev/null ||
21927 echo X"$ac_dest" |
21928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21930 /^X\(\/\/\)$/{ s//\1/; q; }
21931 /^X\(\/\).*/{ s//\1/; q; }
21932 s/.*/./; q'`
21933 { if $as_mkdir_p; then
21934 mkdir -p "$ac_dir"
21935 else
21936 as_dir="$ac_dir"
21937 as_dirs=
21938 while test ! -d "$as_dir"; do
21939 as_dirs="$as_dir $as_dirs"
21940 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21942 X"$as_dir" : 'X\(//\)[^/]' \| \
21943 X"$as_dir" : 'X\(//\)$' \| \
21944 X"$as_dir" : 'X\(/\)' \| \
21945 . : '\(.\)' 2>/dev/null ||
21946 echo X"$as_dir" |
21947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21949 /^X\(\/\/\)$/{ s//\1/; q; }
21950 /^X\(\/\).*/{ s//\1/; q; }
21951 s/.*/./; q'`
21952 done
21953 test ! -n "$as_dirs" || mkdir $as_dirs
21954 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21956 { (exit 1); exit 1; }; }; }
21957
21958 ac_builddir=.
21959
21960 if test "$ac_dir" != .; then
21961 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21962 # A "../" for each directory in $ac_dir_suffix.
21963 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21964 else
21965 ac_dir_suffix= ac_top_builddir=
21966 fi
21967
21968 case $srcdir in
21969 .) # No --srcdir option. We are building in place.
21970 ac_srcdir=.
21971 if test -z "$ac_top_builddir"; then
21972 ac_top_srcdir=.
21973 else
21974 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21975 fi ;;
21976 [\\/]* | ?:[\\/]* ) # Absolute path.
21977 ac_srcdir=$srcdir$ac_dir_suffix;
21978 ac_top_srcdir=$srcdir ;;
21979 *) # Relative path.
21980 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21981 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21982 esac
21983
21984 # Do not use `cd foo && pwd` to compute absolute paths, because
21985 # the directories may not exist.
21986 case `pwd` in
21987 .) ac_abs_builddir="$ac_dir";;
21988 *)
21989 case "$ac_dir" in
21990 .) ac_abs_builddir=`pwd`;;
21991 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21992 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21993 esac;;
21994 esac
21995 case $ac_abs_builddir in
21996 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21997 *)
21998 case ${ac_top_builddir}. in
21999 .) ac_abs_top_builddir=$ac_abs_builddir;;
22000 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22001 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22002 esac;;
22003 esac
22004 case $ac_abs_builddir in
22005 .) ac_abs_srcdir=$ac_srcdir;;
22006 *)
22007 case $ac_srcdir in
22008 .) ac_abs_srcdir=$ac_abs_builddir;;
22009 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22010 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22011 esac;;
22012 esac
22013 case $ac_abs_builddir in
22014 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22015 *)
22016 case $ac_top_srcdir in
22017 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22018 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22019 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22020 esac;;
22021 esac
22022
22023
22024 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22025 echo "$as_me: executing $ac_dest commands" >&6;}
22026 case $ac_dest in
22027 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22028 # Strip MF so we end up with the name of the file.
22029 mf=`echo "$mf" | sed -e 's/:.*$//'`
22030 # Check whether this is an Automake generated Makefile or not.
22031 # We used to match only the files named `Makefile.in', but
22032 # some people rename them; so instead we look at the file content.
22033 # Grep'ing the first line is not enough: some people post-process
22034 # each Makefile.in and add a new line on top of each file to say so.
22035 # So let's grep whole file.
22036 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22037 dirpart=`(dirname "$mf") 2>/dev/null ||
22038 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22039 X"$mf" : 'X\(//\)[^/]' \| \
22040 X"$mf" : 'X\(//\)$' \| \
22041 X"$mf" : 'X\(/\)' \| \
22042 . : '\(.\)' 2>/dev/null ||
22043 echo X"$mf" |
22044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22046 /^X\(\/\/\)$/{ s//\1/; q; }
22047 /^X\(\/\).*/{ s//\1/; q; }
22048 s/.*/./; q'`
22049 else
22050 continue
22051 fi
22052 # Extract the definition of DEPDIR, am__include, and am__quote
22053 # from the Makefile without running `make'.
22054 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22055 test -z "$DEPDIR" && continue
22056 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22057 test -z "am__include" && continue
22058 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22059 # When using ansi2knr, U may be empty or an underscore; expand it
22060 U=`sed -n 's/^U = //p' < "$mf"`
22061 # Find all dependency output files, they are included files with
22062 # $(DEPDIR) in their names. We invoke sed twice because it is the
22063 # simplest approach to changing $(DEPDIR) to its actual value in the
22064 # expansion.
22065 for file in `sed -n "
22066 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22067 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22068 # Make sure the directory exists.
22069 test -f "$dirpart/$file" && continue
22070 fdir=`(dirname "$file") 2>/dev/null ||
22071 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22072 X"$file" : 'X\(//\)[^/]' \| \
22073 X"$file" : 'X\(//\)$' \| \
22074 X"$file" : 'X\(/\)' \| \
22075 . : '\(.\)' 2>/dev/null ||
22076 echo X"$file" |
22077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22079 /^X\(\/\/\)$/{ s//\1/; q; }
22080 /^X\(\/\).*/{ s//\1/; q; }
22081 s/.*/./; q'`
22082 { if $as_mkdir_p; then
22083 mkdir -p $dirpart/$fdir
22084 else
22085 as_dir=$dirpart/$fdir
22086 as_dirs=
22087 while test ! -d "$as_dir"; do
22088 as_dirs="$as_dir $as_dirs"
22089 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22091 X"$as_dir" : 'X\(//\)[^/]' \| \
22092 X"$as_dir" : 'X\(//\)$' \| \
22093 X"$as_dir" : 'X\(/\)' \| \
22094 . : '\(.\)' 2>/dev/null ||
22095 echo X"$as_dir" |
22096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22098 /^X\(\/\/\)$/{ s//\1/; q; }
22099 /^X\(\/\).*/{ s//\1/; q; }
22100 s/.*/./; q'`
22101 done
22102 test ! -n "$as_dirs" || mkdir $as_dirs
22103 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22104 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22105 { (exit 1); exit 1; }; }; }
22106
22107 # echo "creating $dirpart/$file"
22108 echo '# dummy' > "$dirpart/$file"
22109 done
22110 done
22111 ;;
22112 esac
22113 done
22114 _ACEOF
22115
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117
22118 { (exit 0); exit 0; }
22119 _ACEOF
22120 chmod +x $CONFIG_STATUS
22121 ac_clean_files=$ac_clean_files_save
22122
22123
22124 # configure is writing to config.log, and then calls config.status.
22125 # config.status does its own redirection, appending to config.log.
22126 # Unfortunately, on DOS this fails, as config.log is still kept open
22127 # by configure, so config.status won't be able to write to it; its
22128 # output is simply discarded. So we exec the FD to /dev/null,
22129 # effectively closing config.log, so it can be properly (re)opened and
22130 # appended to by config.status. When coming back to configure, we
22131 # need to make the FD available again.
22132 if test "$no_create" != yes; then
22133 ac_cs_success=:
22134 ac_config_status_args=
22135 test "$silent" = yes &&
22136 ac_config_status_args="$ac_config_status_args --quiet"
22137 exec 5>/dev/null
22138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22139 exec 5>>config.log
22140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22141 # would make configure fail if this is the last instruction.
22142 $ac_cs_success || { (exit 1); exit 1; }
22143 fi
22144